/* ============================================================
   FRONT-PAGE.CSS – ESTILO MAM
   ============================================================ */

/* ------------------------------------------------------------
   1. HERO
   ------------------------------------------------------------ */
.home-hero { padding: 80px 0; }
.home-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.home-hero-titulo {
    font-family: var(--mam-font-titulo, 'Cormorant', serif);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}
.home-hero-subtitulo {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 36px;
}
.home-hero-acciones {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
/*estilos cita*/
.home-hero-cierre {
    margin-bottom: 25px;
    font-weight: normal;
    font-size: 20px;
}
.home-hero-imagen {
    position: relative;
    aspect-ratio: 800 / 800;
    overflow: hidden;
    background: transparent;
}
.home-hero-imagen img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* ------------------------------------------------------------
   2. PILARES
   ------------------------------------------------------------ */
.home-pilares { padding: 100px 0; }
.home-pilares-titulo {
    font-family: var(--mam-font-titulo, 'Cormorant', serif);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--mam-text-dark, #0f172a);
}
.home-pilares-subtitulo {
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 48px;
    opacity: 0.8;
    color: var(--mam-text-dark, #0f172a);
}
.home-pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.pilar-item { text-align: center; }
.sec-2-light .pilar-titulo {
    font-family: var(--mam-font-titulo, 'Cormorant', serif);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--azul-para-fondo-claro, #0038d1) !important;
}
.pilar-titulo::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #E0C27B;
    margin: 12px auto 0;
}
.pilar-texto {
    font-size: 18px;
    line-height: 1.75;
    color: var(--mam-text-muted, #6b7280);
    margin-top: 16px;
}

/* ------------------------------------------------------------
   3. ÚLTIMOS CURSOS
   ------------------------------------------------------------ */
.home-cursos { padding: 100px 0 80px 0; }
.home-cursos-titulo {
    font-family: var(--mam-font-titulo, 'Cormorant', serif);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--mam-text-light, #ffffff);
}
.home-cursos-subtitulo {
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 48px;
    opacity: 0.8;
    color: var(--mam-text-light, #ffffff);
}
.home-cursos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.home-curso-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.home-curso-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.10);
}
.home-curso-imagen {
    width: 100%;
    overflow: hidden;
    margin-bottom: 16px;
}
.home-curso-imagen img { width: 100%; height: auto; display: block; }
.home-curso-titulo {
    font-family: var(--mam-font-titulo, 'Cormorant', serif);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
    color: var(--mam-text-light, #ffffff);
}
.home-curso-titulo a {
    color: var(--mam-text-light, #ffffff);
    text-decoration: none;
    transition: color 0.3s ease;
}
.home-curso-titulo a:hover { color: #E0C27B; }
.home-curso-descripcion {
    font-size: 18px;
    line-height: 1.7;
    color: var(--mam-text-light, #ffffff);
    opacity: 0.85;
    margin-bottom: 0;
}
.home-cursos-enlace { text-align: center; }
.home-cursos-vacio {
    text-align: center;
    color: var(--mam-text-light, #ffffff);
    opacity: 0.7;
}

/* ------------------------------------------------------------
   4. ÚLTIMAS NOTICIAS
   ------------------------------------------------------------ */
.home-noticias { padding: 100px 0; }
.home-noticias-titulo {
    font-family: var(--mam-font-titulo, 'Cormorant', serif);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--mam-text-dark, #0f172a);
}
.home-noticias-subtitulo {
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 48px;
    opacity: 0.8;
    color: var(--mam-text-dark, #0f172a);
}
.home-noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.home-noticia-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-noticia-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}
.home-noticia-imagen {
    width: 100%;
    overflow: hidden;
    margin-bottom: 16px;
}
.home-noticia-imagen img { width: 100%; height: auto; display: block; }
.home-noticia-titulo {
    font-family: var(--mam-font-titulo, 'Cormorant', serif);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}
.home-noticia-titulo a {
    color: var(--mam-text-dark, #0f172a);
    text-decoration: none;
    transition: color 0.3s ease;
}
.home-noticia-titulo a:hover { color: var(--mam-btn-primario, #0038d1); }
.home-noticia-fecha {
    font-size: 16px;
    color: var(--mam-text-muted, #6b7280);
    display: block;
    margin-bottom: 12px;
}
.home-noticia-resumen {
    font-size: 18px;
    line-height: 1.7;
    color: var(--mam-text-dark, #0f172a);
    margin-bottom: 0;
}
.home-noticias-enlace { text-align: center; }
.home-noticias-vacio {
    text-align: center;
    color: var(--mam-text-muted, #6b7280);
}

/* ------------------------------------------------------------
   4b. ÚLTIMOS ARTÍCULOS DEL BLOG
   Idéntico a noticias. Único cambio: fondo dorado mate.
   ------------------------------------------------------------ */
.home-blog {
    padding: 100px 0;
    background-color: #BFA76A; /* dorado mate */
}
.home-blog-titulo {
    font-family: var(--mam-font-titulo, 'Cormorant', serif);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--mam-text-dark, #0f172a);
}
.home-blog-subtitulo {
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 48px;
    opacity: 0.8;
    color: var(--mam-text-dark, #0f172a);
}
.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.home-blog-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-blog-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}
.home-blog-imagen {
    width: 100%;
    overflow: hidden;
    margin-bottom: 16px;
}
.home-blog-imagen img { width: 100%; height: auto; display: block; }
.home-blog-articulo-titulo {
    font-family: var(--mam-font-titulo, 'Cormorant', serif);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}
.home-blog-articulo-titulo a {
    color: var(--mam-text-dark, #0f172a);
    text-decoration: none;
    transition: color 0.3s ease;
}
.home-blog-articulo-titulo a:hover { color: var(--mam-btn-primario, #0038d1); }
.home-blog-fecha {
    font-size: 16px;
    color: var(--mam-text-muted, #6b7280);
    display: block;
    margin-bottom: 12px;
}
.home-blog-resumen {
    font-size: 18px;
    line-height: 1.7;
    color: var(--mam-text-dark, #0f172a);
    margin-bottom: 0;
}
.home-blog-enlace { text-align: center; }
.home-blog-vacio {
    text-align: center;
    color: var(--mam-text-muted, #6b7280);
}

/* ------------------------------------------------------------
   5. CONTENIDO DESTACADO
   ------------------------------------------------------------ */
.home-caminos { padding: 100px 0; }
.home-caminos-titulo {
    font-family: var(--mam-font-titulo, 'Cormorant', serif);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.2;
}
.home-caminos-subtitulo {
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 48px;
    opacity: 0.8;
}
.home-caminos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.camino-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.camino-imagen {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 24px;
    background: transparent;
    width: 100%;
}
.camino-imagen img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.camino-titulo {
    font-family: var(--mam-font-titulo, 'Cormorant', serif);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}
.camino-texto {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* ------------------------------------------------------------
   6. CONTACTO
   ------------------------------------------------------------ */
.home-cierre { padding: 120px 0; }
.home-cierre-contenido {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.home-cierre-titulo {
    font-family: var(--mam-font-titulo, 'Cormorant', serif);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--mam-text-dark, #0f172a);
}
.home-cierre-texto {
    font-size: 20px;
    line-height: 1.7;
    color: var(--mam-text-muted, #6b7280);
    margin-bottom: 32px;
}
.btn-mam-grande {
    padding: 20px 52px;
    font-size: 20px;
}

/* ------------------------------------------------------------
   7. TERRITORIO COMPLIANCE
   ------------------------------------------------------------ */
.home-territorio {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}
.home-territorio-contenido {
    display: flex;
    align-items: center;
    gap: 40px;
}
.home-territorio-logo { flex-shrink: 0; width: 100px; }
.home-territorio-logo img { width: 100%; height: auto; display: block; }
.home-territorio-texto { flex: 1; }
.home-territorio-frase {
    font-size: 18px;
    line-height: 1.7;
    color: var(--mam-text-dark, #0f172a);
    margin-bottom: 8px;
}
.home-territorio-enlace {
    font-size: 18px;
    font-weight: 600;
    color: var(--mam-btn-primario, #0038d1);
    text-decoration: none;
    transition: color 0.3s ease;
}
.home-territorio-enlace:hover {
    color: var(--mam-btn-primario-hover, #002a9e);
    text-decoration: underline;
}

/* ------------------------------------------------------------
   8. AVISO LEGAL Y COOKIES
   ------------------------------------------------------------ */
.home-aviso-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin: 40px 0;
}
.home-aviso-col { overflow: hidden; }
.home-aviso-col .page-section-title {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 20px;
}
.home-aviso-col .page-disclaimer-completo {
    font-size: 18px;
    line-height: 1.75;
}
.home-aviso-col .page-disclaimer-completo p,
.home-aviso-col .page-disclaimer-completo ul { margin-bottom: 12px; }
.home-aviso-col .page-disclaimer-completo ul { padding-left: 20px; }

.home-cookies-contenido {
    font-size: 18px;
    line-height: 1.75;
}
.home-cookies-contenido p { margin-bottom: 12px; }
.home-cookies-contenido ul {
    padding-left: 20px;
    margin-bottom: 12px;
    list-style: disc;
}
.home-cookies-contenido li { margin-bottom: 6px; }

.separador-wrapper {
    background: #f4f6f8;
    padding: 0;
    margin: 0;
    width: 100%;
    line-height: 0;
}
.linea-separadora {
    border: 0;
    border-top: 2px solid #E0C27B;
    width: 120px;
    margin: 0 auto;
    padding: 0;
    height: 0;
    background: transparent;
    display: block;
    box-sizing: border-box;
}
.mam-aviso-constitucion {
    padding-top: 30px;
    padding-bottom: 5px;
}

/* ------------------------------------------------------------
   9. AVISO INSTITUCIONAL
   ------------------------------------------------------------ */
.aviso-institucional a {
    color: #E0C27B;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}
.aviso-institucional a:hover { color: #f0d99a; }

/* ------------------------------------------------------------
   10. BARRA DE ADVERTENCIA
   ------------------------------------------------------------ */
.home-aviso-barra {
    background: #f4f6f8;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
}
.home-aviso-barra p {
    font-size: 18px;
    line-height: 1.6;
    color: #334155;
    text-align: center;
    margin: 0;
}
.home-aviso-barra a {
    color: #0038d1;
    text-decoration: none;
    font-weight: 500;
}
.home-aviso-barra a:hover { text-decoration: underline; }
.home-aviso-barra span {
    margin: 0 8px;
    color: #94a3b8;
}

/* ------------------------------------------------------------
   11. LIGHTBOX
   ------------------------------------------------------------ */
.mam-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #051d2c;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: pointer;
}
.mam-lightbox.activo { display: flex; opacity: 1; }
.mam-lightbox-contenedor {
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border-radius: 0px;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    background: #051d2c;
}
.mam-lightbox.activo .mam-lightbox-contenedor { transform: scale(1); }
.mam-lightbox-contenedor img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}
.mam-lightbox-cerrar {
    position: absolute;
    top: 30px; right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
    z-index: 10000;
    background: none;
    border: none;
    font-family: serif;
    padding: 0;
    margin: 0;
}
.mam-lightbox-cerrar:hover { opacity: 1; transform: rotate(90deg); }

/* ------------------------------------------------------------
   12. DIAGNÓSTICO
   ------------------------------------------------------------ */
.mam-diagnostico-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}
.btn-diagnostico-abrir {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0;
    color: var(--mam-text-light);
    font-family: var(--mam-font-base);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 30px rgba(5,29,44,0.4);
    cursor: pointer;
    transition: var(--mam-transition-smooth);
    backdrop-filter: blur(8px);
    background: rgba(11,34,51,0.92);
}
.btn-diagnostico-abrir:hover {
    background: var(--mam-bg-sec-1);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(5,29,44,0.6);
    border-color: rgba(255,255,255,0.25);
}
.btn-diagnostico-abrir svg {
    width: 26px; height: 26px;
    flex-shrink: 0;
    stroke: #c9a84c;
}
.btn-diagnostico-abrir span { line-height: 1.2; text-align: left; }
.btn-diagnostico-abrir small {
    display: block;
    font-weight: 300;
    font-size: 16px;
    opacity: 0.5;
    letter-spacing: 0.04em;
}

.mam-diagnostico-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(5,29,44,0.85);
    backdrop-filter: blur(4px);
    animation: overlayIn 0.35s ease;
}
.mam-diagnostico-overlay.active { display: flex; }
@keyframes overlayIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.mam-diagnostico-modal {
    width: 100%;
    max-width: 580px;
    background: var(--mam-bg-sec-4);
    border-radius: 0;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    animation: modalIn 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes modalIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.diagnostico-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 16px 32px;
    border-bottom: 1px solid var(--mam-card-light-border);
}
.diagnostico-logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--mam-text-dark);
    font-family: var(--mam-font-base);
    text-transform: uppercase;
}
.diagnostico-cerrar {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--mam-text-muted);
    cursor: pointer;
    transition: var(--mam-transition-smooth);
    border-radius: 0;
}
.diagnostico-cerrar:hover {
    background: var(--mam-bg-sec-2);
    color: var(--mam-text-dark);
}
.diagnostico-progreso {
    padding: 0 32px;
    margin: 6px 0 12px 0;
}
.diagnostico-progreso-barra {
    height: 3px;
    background: #c9a84c;
    border-radius: 0;
    transition: width 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
    width: 0%;
}
.diagnostico-cuerpo {
    padding: 24px 32px 20px 32px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--mam-text-dark);
}

.pregunta-item { display: none; animation: fadeSlide 0.35s ease; }
.pregunta-item.active { display: block; }
@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
.pregunta-etiqueta {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mam-text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--mam-font-base);
}
.pregunta-texto {
    font-family: var(--mam-font-titulo);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--mam-text-dark);
    margin: 0 0 20px 0;
}
.opciones-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.opcion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--mam-bg-sec-2);
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: var(--mam-transition-smooth);
    font-family: var(--mam-font-base);
    font-size: 18px;
    color: var(--mam-text-dark);
    text-align: left;
}
.opcion-item:hover {
    background: #f0f4f8;
    border-color: #d0d8e0;
}
.opcion-item.seleccionada {
    background: #eef4fa;
    border-color: #c9a84c;
    box-shadow: inset 0 0 0 1px #c9a84c;
}
.opcion-item .opcion-radio {
    width: 18px; height: 18px;
    border-radius: 0;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mam-transition-smooth);
}
.opcion-item.seleccionada .opcion-radio {
    border-color: #c9a84c;
    background: #c9a84c;
}
.opcion-item.seleccionada .opcion-radio::after {
    content: "";
    width: 6px; height: 6px;
    background: white;
    border-radius: 0;
}
.opcion-item .opcion-descripcion {
    font-size: 16px;
    color: var(--mam-text-muted);
    margin-left: auto;
}

.resultado-final {
    display: none;
    flex-direction: column;
    text-align: left;
    padding: 8px 0;
}
.resultado-final.active {
    display: flex;
    animation: fadeSlide 0.4s ease;
}
.resultado-titulo {
    font-family: var(--mam-font-titulo);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--mam-text-dark);
    margin: 0 0 6px 0;
}
.resultado-descripcion {
    font-size: 18px;
    color: var(--mam-text-muted);
    line-height: 1.5;
    margin: 0 0 16px 0;
    font-family: var(--mam-font-base);
}
.resultado-destino {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--mam-bg-sec-2);
    border-radius: 0;
    text-decoration: none;
    color: var(--mam-text-dark);
    border-left: 3px solid #c9a84c;
    transition: var(--mam-transition-smooth);
    margin-bottom: 6px;
}
.resultado-destino:hover {
    background: #e6eaef;
    transform: translateX(3px);
}
.resultado-destino .destino-label {
    font-weight: 500;
    font-size: 18px;
    font-family: var(--mam-font-base);
}
.resultado-destino .destino-categoria {
    margin-left: auto;
    font-size: 16px;
    color: var(--mam-text-muted);
    text-transform: lowercase;
}
.resultado-todos-toggle {
    background: none;
    border: none;
    color: var(--mam-text-muted);
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--mam-font-base);
    padding: 6px 0;
    transition: var(--mam-transition-smooth);
}
.resultado-todos-toggle:hover { color: var(--mam-text-dark); }
.resultado-todos {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 16px 0;
}
.resultado-todos.visible { display: flex; }
.resultado-todos a {
    background: var(--mam-bg-sec-2);
    padding: 4px 12px;
    border-radius: 0;
    text-decoration: none;
    color: var(--mam-text-dark);
    font-size: 16px;
    font-family: var(--mam-font-base);
    transition: var(--mam-transition-smooth);
}
.resultado-todos a:hover { background: #e6eaef; }

.btn-resultado {
    display: inline-block;
    padding: 14px 34px;
    background: var(--azul-para-fondo-oscuro);
    color: var(--mam-text-light);
    border: none;
    border-radius: 0;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--mam-transition-smooth);
    cursor: pointer;
    text-align: center;
    font-family: var(--mam-font-base);
}
.btn-resultado:hover {
    background: var(--azul-hover-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(5,29,44,0.25);
}
.btn-resultado-secundario {
    background: transparent;
    color: var(--mam-text-dark);
    border: 1px solid #d0d8e0;
}
.btn-resultado-secundario:hover {
    background: var(--mam-bg-sec-2);
    border-color: var(--mam-text-dark);
}
.diagnostico-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px 24px 32px;
    border-top: 1px solid var(--mam-card-light-border);
}
.diagnostico-paso {
    font-size: 16px;
    color: var(--mam-text-muted);
    font-weight: 500;
    font-family: var(--mam-font-base);
}
.btn-diagnostico-siguiente {
    padding: 10px 30px;
    background: var(--azul-para-fondo-oscuro);
    color: var(--mam-text-light);
    border: none;
    border-radius: 0;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--mam-transition-smooth);
    opacity: 0.4;
    pointer-events: none;
    font-family: var(--mam-font-base);
}
.btn-diagnostico-siguiente.habilitado {
    opacity: 1;
    pointer-events: auto;
}
.btn-diagnostico-siguiente.habilitado:hover {
    background: var(--azul-hover-oscuro);
    transform: scale(1.02);
}

/* ------------------------------------------------------------
   13. MEDIA QUERIES
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .home-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .home-hero-acciones { justify-content: center; }
    .home-hero-imagen { order: -1; }
    .home-pilares-grid,
    .home-noticias-grid,
    .home-blog-grid,
    .home-cursos-grid { grid-template-columns: 1fr 1fr; }
    .home-caminos-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .home-pilares-titulo,
    .home-cursos-titulo,
    .home-noticias-titulo,
    .home-blog-titulo,
    .home-caminos-titulo { font-size: 38px; }
}

@media (max-width: 768px) {
    html {
        font-size: 20px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    body { font-size: 20px; line-height: 1.75; }

    .home-hero { padding: 60px 0 40px; }
    .home-hero-titulo { font-size: 44px; line-height: 1.2; }
    .home-hero-subtitulo { font-size: 18px; line-height: 1.6; }
    .home-hero-cierre { font-size: 20px; }

    .home-pilares,
    .home-cursos,
    .home-noticias,
    .home-blog,
    .home-caminos { padding: 70px 0; }

    .home-pilares-titulo,
    .home-cursos-titulo,
    .home-noticias-titulo,
    .home-blog-titulo,
    .home-caminos-titulo { font-size: 36px; line-height: 1.25; }

    .home-pilares-subtitulo,
    .home-cursos-subtitulo,
    .home-noticias-subtitulo,
    .home-blog-subtitulo,
    .home-caminos-subtitulo {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 32px;
    }

    .home-pilares-grid,
    .home-noticias-grid,
    .home-blog-grid,
    .home-cursos-grid { grid-template-columns: 1fr; gap: 32px; }
    .home-caminos-grid { grid-template-columns: 1fr; gap: 40px; }

    .pilar-titulo { font-size: 28px; }
    .pilar-texto { font-size: 20px; line-height: 1.75; }

    .home-curso-item,
    .home-noticia-item,
    .home-blog-item { padding: 22px; }
    .home-curso-titulo,
    .home-noticia-titulo,
    .home-blog-articulo-titulo { font-size: 28px; }
    .home-curso-descripcion,
    .home-noticia-resumen,
    .home-blog-resumen { font-size: 20px; line-height: 1.75; }
    .home-noticia-fecha,
    .home-blog-fecha { font-size: 18px; }

    .camino-titulo { font-size: 28px; }
    .camino-texto { font-size: 20px; line-height: 1.75; }

    .home-cierre { padding: 80px 0; }
    .home-cierre-titulo { font-size: 36px; }
    .home-cierre-texto { font-size: 20px; line-height: 1.7; }
    .btn-mam-grande { padding: 20px 42px; font-size: 20px; }

    .home-territorio-contenido {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .home-territorio-logo { width: 80px; }
    .home-territorio-frase,
    .home-territorio-enlace { font-size: 20px; }

    .home-aviso-grid { grid-template-columns: 1fr; gap: 30px; }
    .home-aviso-col .page-section-title { font-size: 32px; }
    .home-aviso-col .page-disclaimer-completo,
    .home-cookies-contenido { font-size: 20px; line-height: 1.75; }

    .home-aviso-barra { padding: 16px 0; }
    .home-aviso-barra p { font-size: 20px; line-height: 1.6; }

    .mam-lightbox-contenedor { max-width: 95vw; max-height: 80vh; }
    .mam-lightbox-cerrar { top: 20px; right: 20px; font-size: 32px; }

    .pregunta-texto { font-size: 28px; }
    .opcion-item { font-size: 20px; padding: 16px 18px; }
    .opcion-item .opcion-descripcion { font-size: 18px; }
    .resultado-titulo { font-size: 28px; }
    .resultado-descripcion { font-size: 20px; }
    .resultado-destino .destino-label { font-size: 20px; }
    .resultado-destino .destino-categoria { font-size: 18px; }
    .btn-resultado { font-size: 20px; padding: 16px 32px; }
    .diagnostico-paso { font-size: 18px; }
    .btn-diagnostico-siguiente { font-size: 20px; padding: 12px 28px; }
}

@media (max-width: 640px) {
    .mam-diagnostico-modal { max-width: 94%; margin: 0 10px; border-radius: 0; }
    .diagnostico-header { padding: 18px 20px 12px 20px; }
    .diagnostico-cuerpo { padding: 18px 20px 16px 20px; min-height: 220px; }
    .diagnostico-footer {
        padding: 12px 20px 20px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .btn-diagnostico-abrir { padding: 12px 18px; gap: 10px; font-size: 18px; }
    .btn-diagnostico-abrir svg { width: 22px; height: 22px; }
    .mam-diagnostico-flotante { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
    html {
        font-size: 18px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    body { font-size: 18px; line-height: 1.75; }

    .home-hero { padding: 40px 0 30px; }
    .home-hero-titulo { font-size: 38px; }
    .home-hero-subtitulo { font-size: 16px; }
    .home-hero-cierre { font-size: 18px; }

    .home-pilares,
    .home-cursos,
    .home-noticias,
    .home-blog,
    .home-caminos { padding: 50px 0; }

    .home-pilares-titulo,
    .home-cursos-titulo,
    .home-noticias-titulo,
    .home-blog-titulo,
    .home-caminos-titulo { font-size: 32px; }

    .home-pilares-subtitulo,
    .home-cursos-subtitulo,
    .home-noticias-subtitulo,
    .home-blog-subtitulo,
    .home-caminos-subtitulo { font-size: 16px; }

    .pilar-titulo { font-size: 24px; }
    .pilar-texto { font-size: 18px; }

    .home-curso-item,
    .home-noticia-item,
    .home-blog-item { padding: 18px; }
    .home-curso-titulo,
    .home-noticia-titulo,
    .home-blog-articulo-titulo { font-size: 24px; }
    .home-curso-descripcion,
    .home-noticia-resumen,
    .home-blog-resumen { font-size: 18px; }
    .home-noticia-fecha,
    .home-blog-fecha { font-size: 16px; }

    .camino-titulo { font-size: 24px; }
    .camino-texto { font-size: 18px; }

    .home-cierre { padding: 60px 0; }
    .home-cierre-titulo { font-size: 32px; }
    .home-cierre-texto { font-size: 18px; }
    .btn-mam-grande { padding: 16px 32px; font-size: 18px; }

    .home-territorio-frase,
    .home-territorio-enlace { font-size: 18px; }

    .home-aviso-col .page-section-title { font-size: 26px; }
    .home-aviso-col .page-disclaimer-completo,
    .home-cookies-contenido { font-size: 18px; }

    .home-aviso-barra p { font-size: 18px; }

    .pregunta-texto { font-size: 24px; }
    .opcion-item { font-size: 18px; }
    .opcion-item .opcion-descripcion { font-size: 16px; }
    .resultado-titulo { font-size: 24px; }
    .resultado-descripcion { font-size: 18px; }
    .resultado-destino .destino-label { font-size: 18px; }
    .resultado-destino .destino-categoria { font-size: 16px; }
    .btn-resultado { font-size: 18px; }
    .diagnostico-paso { font-size: 16px; }
    .btn-diagnostico-siguiente { font-size: 18px; }
}