body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* HERO SECTION CON ALINEACIÓN SUPERIOR Y MARCA A LA EXTREMA IZQUIERDA */
.hub-header {
    position: relative;
    background: #0f172a url('hero-bg.png') center bottom/cover no-repeat;
    color: #ffffff;
    padding: 35px 40px 45px 40px;
    border-bottom: 4px solid #2563eb;
    min-height: 500px;
    display: flex;
    align-items: flex-start;
}

/* OVERLAY CON GRADIENTE HORIZONTAL */
.hub-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, 
        rgba(15, 23, 42, 0.88) 0%, 
        rgba(15, 23, 42, 0.20) 45%, 
        rgba(15, 23, 42, 0.25) 55%, 
        rgba(15, 23, 42, 0.92) 100%);
    z-index: 1;
}

/* CONTENEDOR PRINCIPAL DEL HERO */
.hub-header-container {
    position: relative;
    z-index: 2;
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* MARCA E ISOLOGO EN EL ÁNGULO SUPERIOR IZQUIERDO */
.hub-brand-column {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 5px;
}

.hub-logo-img {
    max-width: 240px; /* Tamaño optimizado para el conjunto marcario con tagline e isologo */
    height: auto;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.75));
    margin-bottom: 0;
}

/* BLOQUE DE TEXTO INSTITUCIONAL DERECHO */
.hub-header-content-right {
    flex: 0 1 720px;
    text-align: left;
    margin-left: auto;
    padding-top: 5px;
    display: flex;
    flex-direction: column;
}

.badge-institucional {
    align-self: flex-start;
    display: inline-block;
    background-color: rgba(15, 23, 42, 0.80);
    backdrop-filter: blur(6px);
    border: 1px solid #60a5fa;
    color: #bfdbfe;
    font-size: 0.75em;
    font-weight: 900;
    letter-spacing: 1.8px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hub-header-content-right h1 {
    font-size: 2.5em;
    font-weight: 900;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    color: #ffffff;
    line-height: 1.18;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
}

.hub-subtitulo {
    font-size: 1.15em;
    color: #f8fafc;
    font-weight: 400;
    margin: 0 0 22px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    line-height: 1.5;
}

/* NOTA LEGAL Y MARCO METODOLÓGICO DISCRETO EN ESQUINA INFERIOR DERECHA */
.marco-teorico-citacion {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    border-left: 3px solid #60a5fa;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    margin-top: auto;
    margin-left: auto;
    max-width: 420px;
}

.marco-teorico-citacion p {
    margin: 0 0 4px 0;
    font-size: 0.68em;
    color: #cbd5e1;
    line-height: 1.4;
}

.marco-teorico-citacion p:last-child {
    margin-bottom: 0;
}

.disclaimer-legal {
    font-size: 0.63em !important;
    color: #94a3b8 !important;
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 4px;
    margin-top: 4px !important;
}

/* FILTROS */
.hub-main-container {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}

.hub-filtros-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.btn-filtro {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.88em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-filtro:hover {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.btn-filtro.active {
    background-color: #1e3a8a;
    border-color: #1e40af;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

/* GRID DE TARJETAS TIPO MCKINSEY / HBR */
.hub-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.test-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.test-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
}

/* ENCABEZADOS FOTOGRÁFICOS PNG CON GARANTÍA DE RENDER */
.card-photo-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #0f172a;
    position: relative;
}

.card-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.test-card:hover .card-photo {
    transform: scale(1.05);
}

.card-body {
    padding: 22px 22px 15px 22px;
}

.card-tag {
    font-size: 0.7em;
    font-weight: 900;
    text-transform: uppercase;
    color: #2563eb;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 6px;
}

.test-card h3 {
    margin: 0 0 4px 0;
    font-size: 1.1em;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.35;
}

.card-methodology {
    font-size: 0.82em;
    font-weight: 700;
    color: #64748b;
    margin: 0 0 12px 0;
}

.card-description {
    font-size: 0.86em;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* BOTONERA DOBLE */
.card-footer {
    border-top: 1px solid #f1f5f9;
    padding: 15px 22px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-iniciar-test {
    display: block;
    width: 100%;
    padding: 11px 0;
    text-align: center;
    background-color: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88em;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
}

.btn-iniciar-test:hover {
    background-color: #2563eb;
}

.btn-ver-mas {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 0;
    font-size: 0.82em;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-ver-mas:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

/* MODAL DE ALCANCE TIPOGRÁFICO Y SOBRIO */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 10px;
    max-width: 650px;
    width: 100%;
    padding: 35px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    text-align: left;
}

.modal-cerrar {
    position: absolute;
    top: 20px; right: 20px;
    background: transparent;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #64748b;
    font-weight: 900;
}

.modal-content h2 {
    margin: 0 0 4px 0;
    font-size: 1.3em;
    color: #0f172a;
    font-weight: 900;
    text-transform: uppercase;
}

.modal-sub {
    color: #2563eb;
    font-weight: 700;
    font-size: 0.88em;
    margin: 0 0 15px 0;
}

.modal-divider {
    border: 0;
    height: 1px;
    background-color: #e2e8f0;
    margin-bottom: 20px;
}

.modal-section {
    margin-bottom: 18px;
}

.modal-section h4 {
    margin: 0 0 6px 0;
    font-size: 0.9em;
    color: #0f172a;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-section p {
    margin: 0;
    font-size: 0.88em;
    color: #334155;
    line-height: 1.55;
}

.modal-coaching-box {
    background-color: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 14px 18px;
    border-radius: 4px;
    margin-top: 22px;
}

.modal-coaching-box h4 {
    color: #0369a1;
}

.hub-footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 0.85em;
    margin-top: 60px;
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .hub-header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hub-brand-column {
        align-items: center;
    }
    .hub-header-content-right {
        margin-left: 0;
        text-align: center;
    }
    .marco-teorico-citacion {
        margin-left: auto;
        margin-right: auto;
    }
}