/*
 * NESAGAVIRIA — Sitio web institucional
 *
 * Información del proyecto
 * Autor: Javier Hurtado
 * Cliente: NESAGAVIRIA
 * Versión: 1.1
 * Descripción:
 *   Portal web corporativo de NESAGAVIRIA, orientado a la comunicación
 *   institucional y al servicio a clientes y público de interés, con
 *   alineación a la identidad y valores de la organización. Solución
 *   desarrollada con tecnologías web front-end estándar (HTML, CSS y
 *   JavaScript).
 *
 * ---
 *
 * Proyecto estático (HTML + CSS + JavaScript). No requiere Node ni
 * compilación: el servidor entrega los archivos y el navegador los
 * renderiza.
 */

/*
  styles.css — hoja de estilos única para todo el sitio.

  Orden: busca los comentarios con ===== para saltar de sección.
  - :root = colores y “tokens” que se repiten (cambia ahí el verde corporativo y se propaga).
  - FAB = botones fijos WhatsApp + PAGA AQUÍ.
  - Más abajo: header, menú, productos, servicios, repatriaciones, obituarios, footer, responsive, páginas internas.

  Tip: si editas mucho el CSS y no ves cambios, prueba Ctrl+F5 o sube el ?v= en el <link> del HTML.

  Fuente de verdad: solo este archivo para el sitio (ver README.md y css/README.md).
  Fuentes: archivos locales en fonts/ y css/fonts.css (site_chrome.php).
*/

/* ================= VARIABLES CSS ================= */
:root {
    /* Colores Corporativos - NESA GAVIRIA */
    --color-primary: #00a97a;        /* Teal principal corporativo */
    --color-primary-dark: #008a66;   /* Teal oscuro (variación) */
    --color-primary-light: #00c48a;  /* Teal claro (variación) */
    --color-secondary: #60bb95;      /* Verde claro secundario */
    --color-secondary-dark: #4da67f; /* Verde oscuro (variación) */
    --color-secondary-light: #7dd4b0; /* Verde muy claro (variación) */
    --color-accent: #60bb95;         /* Acento con color secundario */
    --color-accent-dark: #4da67f;    /* Acento oscuro */
    
    /* Colores neutros */
    --color-dark: #1a1a1a;
    --color-dark-gray: #2d3436;
    --color-gray: #636e72;
    --color-light-gray: #e8f5f0;     /* Gris claro con tinte verde */
    --color-white: #ffffff;
    --color-off-white: #f9fafc;

    /* Velado verde cabecera (index .header + internas .header--simple) — 50 % sobre la imagen */
    --header-overlay-top: rgba(0, 169, 122, 0.5);
    --header-overlay-bottom: rgba(0, 138, 102, 0.5);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);

    /* Obituarios - tonos sobrios */
    --obituary-green: #547a5a;
    --obituary-gray: #595959;
    --obituary-bg: #faf8f5;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--color-dark-gray);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= FAB: Pago flotante rainbow (todas las páginas) ================= */
@keyframes btn-paga-rainbow-rotate {
    0% {
        transform: rotate(70deg);
    }
    50% {
        transform: rotate(100deg);
    }
    100% {
        transform: rotate(70deg);
    }
}

@keyframes fab-whatsapp-hand-wave {
    0%,
    100% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(18deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(14deg);
    }
    80% {
        transform: rotate(-6deg);
    }
}

.fab-stack {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fab-whatsapp-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    padding: 10px 18px 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
    z-index: 3;
}

.fab-whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    margin-top: -7px;
    border-width: 7px 0 7px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
    filter: drop-shadow(2px 0 3px rgba(0, 0, 0, 0.08));
}

.fab-whatsapp-wrap:hover .fab-whatsapp-tooltip,
.fab-whatsapp-wrap:focus-within .fab-whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.fab-whatsapp-tooltip__hand {
    display: inline-block;
    margin-right: 0.12em;
    transform-origin: 72% 88%;
}

.fab-whatsapp-wrap:hover .fab-whatsapp-tooltip__hand,
.fab-whatsapp-wrap:focus-within .fab-whatsapp-tooltip__hand {
    animation: fab-whatsapp-hand-wave 1.15s ease-in-out infinite;
}

.fab-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-normal), box-shadow var(--transition-fast);
}

.fab-whatsapp__icon {
    width: 58%;
    height: 58%;
    display: block;
}

.fab-whatsapp__icon path {
    fill: #ffffff;
}

.fab-whatsapp:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55), 0 4px 14px rgba(0, 0, 0, 0.22);
}

.fab-whatsapp:active {
    transform: scale(1);
}

.fab-whatsapp:focus {
    outline: none;
}

.fab-whatsapp:focus-visible {
    outline: 3px solid #128c7e;
    outline-offset: 3px;
}

.btn-paga-aqui-wrap {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    transition: transform var(--transition-normal);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.btn-paga-aqui-wrap::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-repeat: no-repeat;
    background-position: 100% 50%;
    background-size: 50% 30%;
    background-image: linear-gradient(#00e8a6, var(--color-primary), #007f5f);
    filter: blur(2px) saturate(1.25);
    animation: btn-paga-rainbow-rotate 4s ease-in-out infinite;
}

.btn-paga-aqui-wrap:hover {
    transform: scale(1.05);
}

.btn-paga-aqui-wrap:active {
    transform: scale(1);
}

.btn-paga-aqui {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 12px 30px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
    backdrop-filter: blur(8px);
    color: var(--color-white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-paga-aqui:hover {
    color: var(--color-white);
    text-decoration: none;
}

.btn-paga-aqui:focus {
    outline: none;
}

.btn-paga-aqui:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .btn-paga-aqui-wrap::before {
        animation: none;
    }

    .fab-whatsapp:hover,
    .fab-whatsapp:active,
    .btn-paga-aqui-wrap:hover,
    .btn-paga-aqui-wrap:active {
        transform: none;
    }

    .fab-whatsapp-tooltip {
        transition: opacity 0.15s ease, visibility 0.15s ease;
    }

    .fab-whatsapp-wrap:hover .fab-whatsapp-tooltip,
    .fab-whatsapp-wrap:focus-within .fab-whatsapp-tooltip {
        transform: translateY(-50%);
    }

    .fab-whatsapp-tooltip__hand {
        animation: none;
    }
}

@media (max-width: 480px) {
    .fab-stack {
        right: 12px;
        bottom: 16px;
        gap: 10px;
    }

    .fab-whatsapp {
        width: 52px;
        height: 52px;
    }

    .fab-whatsapp-tooltip {
        font-size: 0.8125rem;
        padding: 8px 14px 8px 12px;
        right: calc(100% + 10px);
        max-width: calc(100vw - 88px);
        white-space: normal;
        text-align: center;
    }

    .btn-paga-aqui {
        padding: 11px 20px;
        font-size: 0.75rem;
    }
}

/* ================= HEADER ================= */
.header {
    background-image: linear-gradient(
        var(--header-overlay-top),
        var(--header-overlay-bottom)
    ),
    url(images/parque.jpeg);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Header compacto — mismo velado que index (variables --header-overlay-*), patrón sinbolos */
.header--simple {
    min-height: 0;
    position: relative;
    display: block;
    overflow: visible;
    background-color: var(--color-primary);
    background-image:
        linear-gradient(
            var(--header-overlay-top),
            var(--header-overlay-bottom)
        ),
        url(images/sinbolos.png?v=20260209);
    background-repeat: no-repeat, repeat;
    background-position: center center, top left;
    background-size: 100% 100%, clamp(200px, 26vw, 340px) auto;
}

.header--simple .menu {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: transparent;
}

/* Logo y menú en páginas internas */
.header--simple .logo {
    margin-left: 0;
    margin-right: 0;
}

/* Páginas internas: separación moderada logo ↔ enlaces */
@media (min-width: 992px) {
    .header--simple .menu {
        justify-content: space-between;
        align-items: center;
        gap: clamp(1rem, 2vw, 1.75rem);
        width: 100%;
        padding-left: clamp(20px, 3vw, 40px);
        padding-right: clamp(12px, 2vw, 28px);
    }

    .header--simple .logo {
        margin-left: clamp(20px, 3vw, 40px);
        margin-right: 0;
    }

    .header--simple .menu .nav {
        flex: 0 1 auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        min-width: 0;
        margin-left: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .header--simple .menu .nav > ul {
        justify-content: flex-end;
        flex-wrap: wrap;
        transform: none;
    }
}

@media (max-width: 991px) {
    /* Parque: el menú debe ocupar todo el ancho (el .header sigue en flex) */
    .header--parque {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    /* Páginas internas / parque: barra a ancho completo, logo ↔ hamburguesa en extremos */
    .header--simple .menu,
    .header--parque .menu {
        width: 100%;
        max-width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: clamp(1rem, 5vw, 2.5rem);
        padding: 12px clamp(14px, 4vw, 24px);
        flex-wrap: nowrap;
    }

    .header--simple .logo {
        margin-left: clamp(10px, 3vw, 20px);
        margin-right: 0;
        height: clamp(56px, 16vw, 80px);
        max-width: min(48vw, 200px);
        flex: 0 1 auto;
        min-width: 0;
        z-index: 1;
    }

    .header--parque .logo {
        margin-left: 0;
        margin-right: 0;
        height: clamp(56px, 16vw, 80px);
        max-width: min(48vw, 200px);
        flex: 0 1 auto;
        min-width: 0;
        z-index: 1;
    }

    .header--simple .logo img,
    .header--parque .logo img {
        max-width: 100%;
        height: 100%;
    }

    .header--simple .nav-toggle,
    .header--parque .nav-toggle {
        flex: 0 0 auto;
        margin-left: auto;
        position: relative;
        z-index: 3;
    }

    .header--simple .menu .nav,
    .header--parque .menu .nav {
        top: 100%;
        margin-top: 6px;
        z-index: 1002;
    }

    .header--simple .menu .nav > ul,
    .header--parque .menu .nav > ul {
        transform: none;
    }
}

/* ================= MENU ================= */
.menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px 25px 10px;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-normal);
}

.menu.scrolled {
    background: transparent;
    box-shadow: none;
}

.logo {
    display: inline-block;
    transition: var(--transition-normal);
    height: 120px;
    margin-left: -20px;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 500px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Hace el logo blanco */
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(140deg); /* Efecto hover con color corporativo */
}

/* NAV (solo lista principal; los submenús usan .nav-dropdown) */
.menu .nav > ul {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu .nav > ul > li > a {
    font-size: 16px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    border-radius: 5px;
    transition: var(--transition-normal);
    position: relative;
    display: inline-block;
}

.menu .nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.menu .nav > ul > li > a:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(0, 169, 122, 0.3);
    backdrop-filter: blur(5px);
}

.menu .nav > ul > li > a:hover::after {
    transform: translateX(-50%) scaleX(1);
    background: rgba(255, 255, 255, 1);
}

/* Submenú «Servicios» (referencia: panel glassmorphism + chevron) */
.nav-item--has-dropdown {
    position: relative;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-normal);
}

/* Misma línea animada que los enlaces del menú (solo visible al hover / foco / panel abierto) */
.nav-dropdown__trigger-text {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.nav-dropdown__trigger-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.nav-item--has-dropdown:hover .nav-dropdown__trigger-text::after,
.nav-item--has-dropdown:focus-within .nav-dropdown__trigger-text::after {
    transform: translateX(-50%) scaleX(1);
    background: rgba(255, 255, 255, 1);
}

.nav-item--dropdown-open .nav-dropdown__trigger-text::after {
    transform: translateX(-50%) scaleX(1);
    background: rgba(255, 255, 255, 1);
}

.nav-dropdown__trigger:hover,
.nav-dropdown__trigger:focus-visible {
    color: #fff;
    background: rgba(0, 169, 122, 0.3);
    backdrop-filter: blur(5px);
}

.nav-dropdown__trigger:focus-visible {
    outline: 2px solid var(--color-secondary, #f0b429);
    outline-offset: 3px;
}

.nav-dropdown__chevron {
    display: inline-block;
    width: 0.42em;
    height: 0.42em;
    margin-bottom: 0.12em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.22s ease, margin 0.22s ease;
}

@media (min-width: 992px) {

    .nav-item--has-dropdown:hover .nav-dropdown__chevron,
    .nav-item--has-dropdown:focus-within .nav-dropdown__chevron {
        transform: rotate(-135deg);
        margin-bottom: -0.12em;
    }
}

.nav-item--dropdown-open .nav-dropdown__chevron {
    transform: rotate(-135deg);
    margin-bottom: -0.12em;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 268px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: rgba(0, 120, 88, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
    z-index: 1100;
}

@media (min-width: 992px) {

    .nav-item--has-dropdown:hover .nav-dropdown,
    .nav-item--has-dropdown:focus-within .nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.nav-dropdown li a {
    display: block;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* Botón menú desplegable (visible solo en vista estrecha) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.85);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--color-secondary, #f0b429);
    outline-offset: 3px;
}

.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu.menu--nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu.menu--nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.menu.menu--nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* HEADER CONTENT */
.header-content {
    text-align: center;
    padding: 120px 20px 80px;
}

.header-content .header-hero__title,
.header-content h1 {
    font-family: "Brush Script MT", "Brush Script Std", cursive;
    font-size: 5.625rem; /* 90px — igual en inicio y parque */
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 25px;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    text-transform: none;
}

/* Parque: título más largo → tamaño menor para una sola línea en escritorio */
.header--parque .header-hero__title {
    font-size: clamp(1.5rem, 5.5vw, 4.125rem); /* ~66px máx. */
}

.header-content p {
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

/* BOTÓN */
.btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    text-transform: uppercase;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-white);
}

.btn:active {
    transform: translateY(-1px);
}

/* Botón inactivo (p. ej. blog futuro): mismo aspecto y hover que .btn; no es enlace */
.btn.btn--inactive {
    cursor: default;
}

/* ================= PRODUCTOS ================= */
.products {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f9f6 0%, var(--color-light-gray) 100%);
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 169, 122, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.products-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.products-content h2 {
    font-size: clamp(35px, 6vw, 55px);
    line-height: 1.2;
    color: var(--color-primary);
    text-transform: uppercase;
    max-width: 800px;
    margin: 0 auto 20px;
    font-weight: 700;
}

.txt-p {
    font-size: 17px;
    color: var(--color-gray);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.servicios-destacados {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.servicio-destacado {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.servicio-destacado:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.servicio-destacado img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 0;
    transition: var(--transition-normal);
}

.servicio-destacado:hover img {
    transform: scale(1.1);
}

.servicio-destacado h3 {
    font-size: 22px;
    color: var(--color-primary);
    margin: 25px 20px 15px;
    font-weight: 600;
}

.servicio-destacado p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-gray);
    margin: 0 20px 25px;
    text-align: left;
}

a.servicio-destacado--link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.servicio-destacado--link:hover {
    color: inherit;
}

.products-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 700px;
    height: auto;
    max-width: 55vw;
    opacity: 0.1;
    z-index: 0;
}

/* ================= SERVICES ================= */
.services {
    background-image: linear-gradient(
        rgba(0, 169, 122, 0.5),
        rgba(0, 138, 102, 0.5)
    ),
    url(images/IMG_NESA1.jpeg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    padding: 120px 0;
    position: relative;
}

.services-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.services-content h2 {
    font-size: clamp(35px, 6vw, 55px);
    line-height: 1.2;
    color: var(--color-white);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 700;
}

.services-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.services-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 60px;
}

.services-1 {
    padding: 40px 30px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
    text-align: center;
}

.services-1:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.services-1 img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    transition: var(--transition-normal);
    object-fit: contain;
}

.services-1__icon--repatriaciones {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.services-1:hover img {
    transform: scale(1.2) rotate(10deg);
}

.services-1 h3 {
    color: var(--color-white);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.services-1 p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.services-1--link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    box-sizing: border-box;
}

.services-1--link:hover {
    color: inherit;
    text-decoration: none;
}

/* Servicios al fallecido — módulo estilo referencia (página servicios-funerarios.html) */
.servicios-funerarios-page {
    position: relative;
    padding: 2.25rem 0 4rem;
    background-color: #ffffff;
    background-image: url(images/Fondo.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.sfal {
    position: relative;
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
    background: transparent;
}

.sfal__container {
    position: relative;
    z-index: 1;
}

/* Toda el área horizontal del main (sin tope 1200px) para más texto y sin scroll en panel */
.servicios-funerarios-page .sfal__container.container {
    max-width: none;
    width: 100%;
    padding-left: clamp(1.25rem, 4.5vw, 2.75rem);
    padding-right: clamp(1.25rem, 4.5vw, 2.75rem);
    box-sizing: border-box;
}

.sfal__header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.sfal__title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.sfal__title-bi {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    line-height: 1;
    color: var(--color-primary-dark);
    text-shadow: 0 1px 2px rgba(0, 105, 80, 0.16);
}

.sfal__title-bi--mirror {
    transform: scaleX(-1);
}

.sfal__title-img {
    width: clamp(1.75rem, 4vw, 2.35rem);
    height: clamp(1.75rem, 4vw, 2.35rem);
    object-fit: contain;
    display: block;
    /* Mismo tono verde que los íconos anteriores */
    filter: brightness(0) saturate(100%) invert(27%) sepia(49%) saturate(1491%) hue-rotate(131deg) brightness(93%) contrast(102%);
}

.sfal__title-img--mirror {
    transform: scaleX(-1);
}

.sfal__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sfal__title-em {
    color: var(--color-primary);
    font-style: normal;
}

.sfal__subtitle {
    max-width: 36rem;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-gray);
}

.sfal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 1.75rem);
    align-items: stretch;
}

.sfal__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-width: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(0, 169, 122, 0.1);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

@media (min-width: 901px) {
    .sfal__grid {
        /* Dos filas de la misma altura → las cuatro tarjetas quedan del mismo tamaño */
        grid-template-rows: repeat(2, minmax(0, 1fr));
        min-height: clamp(560px, 58vh, 860px);
    }

    .sfal__card {
        height: 100%;
        min-height: 0;
    }

    .sfal__card-panel {
        height: 100%;
        min-height: 0;
    }

    .sfal__card-media {
        border-radius: 4px 0 0 4px;
        min-height: 100%;
        height: 100%;
    }

    .sfal__card-media img {
        min-height: 100%;
    }
}

.sfal__card:hover {
    box-shadow: 0 10px 36px rgba(0, 105, 80, 0.1);
    transform: translateY(-2px);
}

.sfal__card-media {
    position: relative;
    min-width: 0;
    min-height: 220px;
    align-self: stretch;
    background: #e8f0ec;
}

.sfal__card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.sfal__card-panel {
    padding: clamp(0.95rem, 2.2vw, 1.25rem) clamp(0.95rem, 2.4vw, 1.35rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    background: #ffffff;
    overflow: visible;
}

.sfal__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    background: linear-gradient(150deg, #ecfdf5 0%, #d1fae5 52%, #bbf7d0 100%);
    border: 2px solid rgba(0, 169, 122, 0.42);
    color: var(--color-primary-dark);
    box-shadow:
        0 2px 10px rgba(0, 105, 80, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* Bootstrap Icons en tarjetas (CDN bootstrap-icons) */
.sfal__bi {
    font-size: 1.875rem;
    line-height: 1;
    flex-shrink: 0;
}

.sfal__icon-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    /* Aproxima el tono del ícono anterior (var(--color-primary-dark)) */
    filter: brightness(0) saturate(100%) invert(27%) sepia(49%) saturate(1491%) hue-rotate(131deg) brightness(93%) contrast(102%);
}

.sfal__icon-img--lg {
    width: 36px;
    height: 36px;
}

.sfal__card-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 0.85rem;
    line-height: 1.25;
}

.sfal__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sfal__list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.42rem;
    font-size: 0.8125rem;
    line-height: 1.48;
    color: var(--color-dark-gray);
}

.sfal__list li:last-child {
    margin-bottom: 0;
}

.sfal__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
}

@media (max-width: 900px) {
    .sfal__card {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(200px, 42vw) auto;
        height: auto;
    }

    .sfal__card-media {
        height: auto;
        border-radius: 4px 4px 0 0;
    }

    .sfal__card-media img {
        min-height: 200px;
        height: auto;
    }

    .sfal__card-panel {
        height: auto;
        min-height: 0;
        overflow-y: visible;
    }
}

@media (max-width: 640px) {
    .sfal__grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: auto;
    }
}

.servicios-funerarios-page__cta-wrap {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin: 2.25rem 0 0;
}

/* ================= REPATRIACIONES ================= */
.repatriaciones {
    padding: 5.5rem 0 5.25rem;
    background: linear-gradient(180deg, #f5fcf9 0%, var(--color-white) 42%, #eef8f3 100%);
    position: relative;
    overflow: hidden;
}

.repatriaciones::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(640px, 88%);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--color-primary-light), var(--color-secondary), transparent);
    opacity: 0.85;
}

.repatriaciones .container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
}

.repatriaciones__eyebrow {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
    margin: 0 0 0.65rem;
}

.repatriaciones__title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    margin: 0 0 1.35rem;
    line-height: 1.15;
}

.repatriaciones__intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.75rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-gray);
}

.repatriaciones__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.repatriaciones__card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 2rem 1.85rem 2.15rem;
    box-shadow: 0 14px 44px rgba(0, 105, 80, 0.07);
    border: 1px solid rgba(0, 169, 122, 0.14);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.repatriaciones__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(0, 105, 80, 0.11);
}

.repatriaciones__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
    background: linear-gradient(145deg, var(--color-primary-light) 0%, var(--color-primary) 45%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 10px 28px rgba(0, 169, 122, 0.32);
}

.repatriaciones__icon svg {
    width: 28px;
    height: 28px;
}

.repatriaciones__icon-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.repatriaciones__icon--alt {
    background: linear-gradient(145deg, var(--color-secondary) 0%, var(--color-primary) 55%, var(--color-primary-dark) 100%);
    box-shadow: 0 10px 28px rgba(96, 187, 149, 0.35);
}

.repatriaciones__card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 0.85rem;
    letter-spacing: 0.02em;
}

.repatriaciones__card-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-gray);
    margin: 0 0 1rem;
}

.repatriaciones__card-lead {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-gray);
    margin: 0 0 1.15rem;
}

.repatriaciones__card-text + .repatriaciones__card-lead {
    margin-top: 0.15rem;
}

.repatriaciones__list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    text-align: left;
}

.repatriaciones__list li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.85rem;
    color: var(--color-dark-gray);
    font-size: 0.9375rem;
    line-height: 1.58;
}

.repatriaciones__list li:last-child {
    margin-bottom: 0;
}

/* Icono de viñeta (círculo + halo, color corporativo) */
.repatriaciones__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--color-primary-light), var(--color-primary-dark));
    box-shadow: 0 0 0 3px rgba(0, 169, 122, 0.22);
}

/* Membresías / alianzas (REMANSO, RED VUELVE + logos FINSA, Redvuelve) */
.repatriaciones__alliances {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 1.85rem 1.5rem 2rem;
    text-align: center;
    background: var(--color-white);
    border-radius: 20px;
    border: 1px solid rgba(0, 105, 80, 0.12);
    box-shadow: 0 12px 36px rgba(0, 105, 80, 0.06);
}

.repatriaciones__alliances-heading {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
}

.repatriaciones__alliances-text {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--color-gray);
    text-align: left;
}

.repatriaciones__name-accent {
    color: #008a66;
    font-weight: 600;
}

.repatriaciones__alliances-text:last-of-type {
    margin-bottom: 1.5rem;
}

.repatriaciones__alliances-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 2.5rem;
    padding-top: 0.25rem;
}

.repatriaciones__alliances-logo-cell {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 16px;
    transition: background-color 0.25s ease;
}

.repatriaciones__alliances-logo-cell:hover {
    background-color: rgba(0, 169, 122, 0.07);
}

/* Mismo ancho máximo para ambos (el que tenía el logo base antes de diferenciar Redvuelve) */
.repatriaciones__alliances-logo {
    display: block;
    max-width: min(280px, 42vw);
    height: auto;
    border-radius: 6px;
    transition:
        transform var(--transition-normal),
        filter var(--transition-normal);
}

.repatriaciones__alliances-logo-cell:hover .repatriaciones__alliances-logo {
    transform: scale(1.06) translateY(-6px);
    filter: brightness(1.08) drop-shadow(0 14px 28px rgba(0, 80, 58, 0.22));
}

@media (max-width: 520px) {
    .repatriaciones__alliances-logo {
        max-width: min(240px, 78vw);
    }

    .repatriaciones__alliances-logo-cell:hover .repatriaciones__alliances-logo {
        transform: scale(1.04) translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .repatriaciones__alliances-logo-cell {
        transition: none;
    }

    .repatriaciones__alliances-logo {
        transition: none;
    }

    .repatriaciones__alliances-logo-cell:hover .repatriaciones__alliances-logo {
        transform: none;
        filter: brightness(1.05);
    }
}

.repatriaciones__actions {
    text-align: center;
}

.repatriaciones__btn {
    display: inline-block;
}

@media (max-width: 900px) {
    .repatriaciones__grid {
        grid-template-columns: 1fr;
    }

    .repatriaciones {
        padding: 4rem 0 4.25rem;
    }
}

.repatriaciones-page {
    background: var(--color-off-white);
}

/* Hero / banner visual de la página de Repatriaciones (2 columnas: imagen + texto) */
.repatriaciones-hero {
    position: relative;
    padding: 3rem 0 2rem;
    background: linear-gradient(180deg, #eef9f3 0%, #f5fcf9 60%, var(--color-off-white) 100%);
    overflow: hidden;
}

.repatriaciones-hero::before,
.repatriaciones-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.55;
    z-index: 0;
}

.repatriaciones-hero::before {
    width: 320px;
    height: 320px;
    top: -120px;
    left: -90px;
    background: radial-gradient(circle, rgba(0, 169, 122, 0.28), rgba(0, 169, 122, 0) 70%);
}

.repatriaciones-hero::after {
    width: 380px;
    height: 380px;
    bottom: -160px;
    right: -110px;
    background: radial-gradient(circle, rgba(96, 187, 149, 0.30), rgba(96, 187, 149, 0) 70%);
}

.repatriaciones-hero__container {
    position: relative;
    z-index: 1;
    max-width: 1340px;
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 3rem;
}

.repatriaciones-hero__figure {
    margin: 0;
    margin-left: clamp(-9rem, -5.5vw, 0rem);
    border-radius: 24px;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid rgba(0, 169, 122, 0.16);
    box-shadow:
        0 24px 60px rgba(0, 105, 80, 0.16),
        0 6px 18px rgba(0, 105, 80, 0.08);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.repatriaciones-hero__figure:hover {
    transform: translateY(-3px);
    box-shadow:
        0 30px 70px rgba(0, 105, 80, 0.20),
        0 10px 22px rgba(0, 105, 80, 0.10);
}

.repatriaciones-hero__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.repatriaciones-hero__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.25rem 0;
    margin-right: clamp(-4.5rem, -3vw, 0rem);
}

.repatriaciones-hero__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
}

.repatriaciones-hero__title {
    margin: 0;
    font-size: clamp(1.9rem, 4.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.repatriaciones-hero__title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    margin-top: 0.85rem;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary-dark));
}

.repatriaciones-hero__intro {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--color-gray);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.repatriaciones-hero__highlights {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.repatriaciones-hero__highlights li {
    position: relative;
    padding-left: 1.85rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-dark-gray);
    font-weight: 500;
}

.repatriaciones-hero__highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--color-primary-light), var(--color-primary-dark));
    box-shadow: 0 4px 10px rgba(0, 169, 122, 0.28);
}

.repatriaciones-hero__highlights li::after {
    content: '';
    position: absolute;
    left: 0.32rem;
    top: 0.62em;
    width: 0.45rem;
    height: 0.22rem;
    border-left: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);
    transform: rotate(-45deg);
}

@media (max-width: 960px) {
    .repatriaciones-hero {
        padding: 2.25rem 0 1.5rem;
    }

    .repatriaciones-hero__container {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .repatriaciones-hero__figure {
        margin-left: 0;
    }

    .repatriaciones-hero__content {
        text-align: center;
        align-items: center;
        margin-right: 0;
    }

    .repatriaciones-hero__intro {
        text-align: center;
        hyphens: manual;
    }

    .repatriaciones-hero__title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .repatriaciones-hero__highlights {
        text-align: left;
    }
}

@media (max-width: 720px) {
    .repatriaciones-hero__figure {
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .repatriaciones-hero__figure {
        transition: none;
    }

    .repatriaciones-hero__figure:hover {
        transform: none;
    }
}

.repatriaciones-page .repatriaciones {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-white) 35%, #eef8f3 100%);
}

.repatriaciones-page .repatriaciones::before {
    display: none;
}

.repatriaciones-back {
    text-align: center;
    margin: 0;
    padding: 0 1rem 3.5rem;
}

.repatriaciones-back .btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

/* ================= PREVISIÓN EXEQUIAL ================= */
.prevision-page {
    background: var(--color-off-white);
}

.prevision__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
    margin: 0 0 0.5rem;
}

.prevision-hero {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(180deg, #f5fcf9 0%, var(--color-white) 55%, #eef8f3 100%);
    position: relative;
    overflow: hidden;
}

.prevision-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 90%);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--color-primary-light), var(--color-secondary), transparent);
    opacity: 0.9;
}

.prevision-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    /* Izquierda: texto y tarjetas | derecha: foto y cinta */
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem 2.5rem;
    align-items: start;
    max-width: 1120px;
}

.prevision-hero__aside {
    order: 1;
}

.prevision-hero__visual {
    position: relative;
    order: 2;
}

.prevision-hero__photo-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 80, 58, 0.12);
    border: 1px solid rgba(0, 169, 122, 0.12);
}

.prevision-hero__photo {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.prevision-hero__ribbon {
    margin: -2.75rem 1.25rem 0;
    position: relative;
    z-index: 2;
    padding: 1.15rem 1.35rem 1.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 14px 36px rgba(0, 137, 102, 0.35);
}

.prevision-hero__ribbon-text {
    margin: 0;
    text-align: center;
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.45;
}

.prevision-hero__ribbon-text strong {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.prevision-hero__title {
    font-size: clamp(1.5rem, 3.5vw, 1.85rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 1.25rem;
    line-height: 1.2;
}

.prevision-eligibility {
    display: block;
}

.prevision-eligibility__block--unified {
    padding: 1.15rem 1.25rem 1.2rem;
}

.prevision-eligibility__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.prevision-eligibility__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--color-dark-gray);
}

.prevision-eligibility__list li:last-child {
    margin-bottom: 0;
}

.prevision-eligibility__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--color-primary-light), var(--color-primary-dark));
    box-shadow: 0 0 0 3px rgba(0, 169, 122, 0.2);
}

.prevision-eligibility__block {
    background: var(--color-white);
    border-radius: 16px;
    padding: 1.1rem 1.2rem 1.15rem;
    border: 1px solid rgba(0, 169, 122, 0.12);
    box-shadow: 0 8px 28px rgba(0, 105, 80, 0.06);
}

.prevision-affiliate {
    background: var(--color-dark-gray);
    color: var(--color-white);
    padding: 2rem 0 2.25rem;
}

.prevision-affiliate__title {
    margin: 0 0 1rem;
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 700;
    text-align: center;
}

.prevision-affiliate__list {
    max-width: 880px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prevision-affiliate__list li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.prevision-affiliate__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--color-primary-light);
    box-shadow: 0 0 0 2px rgba(0, 201, 138, 0.35);
}

.prevision-main {
    padding: 3rem 0 2rem;
    background: linear-gradient(180deg, var(--color-white) 0%, #faf8fb 40%, #f2faf7 100%);
    overflow-x: hidden;
}

.prevision-main__header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 2.75rem;
}

.prevision-main__title {
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 1rem;
    line-height: 1.25;
}

.prevision-main__lead {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-gray);
}

/* Tarjetas de planes a ancho de ventana (imagen | texto), con márgenes laterales seguros */
.prevision-plans-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

/* Red de socios (entre planes y nota de términos) */
.prevision-partners-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0.25rem;
    margin-bottom: 1.75rem;
    padding: 2.75rem max(1.25rem, env(safe-area-inset-left, 0px)) 2.5rem;
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    background: linear-gradient(165deg, #073d30 0%, #052a22 52%, #041a16 100%);
    border-top: 1px solid rgba(0, 201, 138, 0.35);
    border-bottom: 1px solid rgba(0, 201, 138, 0.35);
}

.prevision-partners {
    max-width: 72rem;
    margin: 0 auto;
}

.prevision-partners__title {
    margin: 0 0 2rem;
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-wrap: balance;
}

.prevision-partners__grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    margin-bottom: 1.75rem;
}

@media (min-width: 900px) {
    .prevision-partners__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.prevision-partners__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.4rem 1.35rem 1.35rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 201, 138, 0.55);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.prevision-partners__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    font-size: 1.95rem;
    line-height: 1;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(0, 201, 138, 0.35) 0%, rgba(0, 138, 102, 0.5) 100%);
    border: 2px solid rgba(0, 201, 138, 0.75);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 6px 20px rgba(0, 0, 0, 0.35),
        0 0 28px rgba(0, 201, 138, 0.25);
}

.prevision-partners__card-icon .bi {
    display: block;
    font-size: 1.95rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

@media (min-width: 900px) {
    .prevision-partners__card-icon {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 2.1rem;
    }

    .prevision-partners__card-icon .bi {
        font-size: 2.1rem;
    }
}

.prevision-partners__card-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.prevision-partners__card-kicker {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: #e8c96a;
}

.prevision-partners__list {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    flex: 1 1 auto;
}

.prevision-partners__list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.prevision-partners__list li:last-child {
    margin-bottom: 0;
}

.prevision-partners__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
}

.prevision-partners__badge {
    align-self: center;
    margin: 0;
    padding: 0.45rem 1.15rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(145deg, #c9a227 0%, #8f6b1a 50%, #6b4f12 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.prevision-partners__strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 1rem 0.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 201, 138, 0.55);
    background: rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
    .prevision-partners__strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 1.15rem 0.25rem;
    }
}

.prevision-partners__strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.35rem;
    text-align: center;
    border-right: 1px solid rgba(0, 201, 138, 0.35);
    border-bottom: 1px solid rgba(0, 201, 138, 0.35);
}

.prevision-partners__strip-item:nth-child(2n) {
    border-right: none;
}

.prevision-partners__strip-item:nth-child(n + 3) {
    border-bottom: none;
}

@media (min-width: 640px) {
    .prevision-partners__strip-item {
        border-bottom: none;
        border-right: 1px solid rgba(0, 201, 138, 0.35);
    }

    .prevision-partners__strip-item:nth-child(2n) {
        border-right: 1px solid rgba(0, 201, 138, 0.35);
    }

    .prevision-partners__strip-item:last-child {
        border-right: none;
    }
}

.prevision-partners__strip-icon {
    font-size: 1.35rem;
    color: #fff;
    line-height: 1;
}

.prevision-partners__strip-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
}

/* Banner entre planes y botones (imagen seguro3.png) */
.prevision-main-ribbon {
    margin: 1.75rem auto 2.25rem;
    max-width: min(52rem, 100%);
    position: relative;
    z-index: 1;
}

.prevision-main-ribbon--image {
    max-width: min(28rem, 88%);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 12px;
    overflow: hidden;
}

.prevision-main-ribbon__img {
    display: block;
    width: 100%;
    max-width: 448px;
    height: auto;
    margin: 0 auto;
    vertical-align: middle;
}

.prevision-plans {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 2.5rem;
}

.prevision-plans-note {
    margin: 0 auto 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.prevision-plans-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prevision-asterisk {
    color: var(--color-primary);
    font-weight: 700;
}

.prevision-plan {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 169, 122, 0.12);
    box-shadow: 0 12px 40px rgba(0, 80, 58, 0.07);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.prevision-plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 80, 58, 0.1);
}

.prevision-plan--featured {
    background: var(--color-white);
    border-color: rgba(0, 169, 122, 0.12);
    box-shadow: 0 12px 40px rgba(0, 80, 58, 0.07);
}

.prevision-plan__media {
    flex: 0 0 clamp(220px, 42vw, 480px);
    width: clamp(220px, 42vw, 480px);
    min-height: 280px;
    align-self: stretch;
    overflow: hidden;
    background: var(--color-primary-dark);
}

.prevision-plan__media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center top;
    display: block;
    opacity: 0.92;
}

.prevision-plan__body {
    padding: 1.35rem 1.5rem 1.5rem 1.75rem;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.prevision-plan__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.prevision-plan__emoji {
    font-weight: 400;
}

.prevision-plan__tagline {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-gray);
    margin: 0 0 0.85rem;
    line-height: 1.5;
}

.prevision-plan__text {
    font-size: 0.92rem;
    line-height: 1.62;
    color: var(--color-dark-gray);
    margin: 0 0 0.85rem;
}

.prevision-plan__meta {
    margin: 0 0 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.25rem;
}

.prevision-plan__meta div {
    margin: 0;
}

.prevision-plan__meta dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 0.15rem;
}

.prevision-plan__meta dd {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--color-dark-gray);
}

.prevision-plan__subhead {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0.35rem 0 0.6rem;
}

.prevision-plan__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.prevision-plan__list li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.55rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-dark-gray);
}

.prevision-plan__list li:last-child {
    margin-bottom: 0;
}

.prevision-plan__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--color-primary-light), var(--color-primary-dark));
    box-shadow: 0 0 0 2px rgba(0, 169, 122, 0.18);
}

.prevision-plan__list--compact li {
    font-size: 0.85rem;
}

.prevision-plan__note {
    margin: 0.75rem 0 0;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-gray);
    background: rgba(0, 169, 122, 0.06);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
}

.prevision-plan__gift {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0, 169, 122, 0.25);
}

.prevision-plan__gift-title {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
}

.prevision-plan__gift-text {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: var(--color-gray);
}

.prevision-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.prevision-actions__btn {
    display: inline-block;
}

.prevision-actions__btn--secondary {
    background: var(--color-white);
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 14px rgba(0, 105, 80, 0.08);
}

.prevision-actions__btn--secondary:hover {
    background: rgba(0, 169, 122, 0.1);
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

@media (max-width: 1024px) {
    .prevision-affiliate__list {
        grid-template-columns: 1fr;
    }
}

/* Planes: imagen arriba + texto abajo; sin recorte vertical en móvil/tablet */
@media (max-width: 900px) {
    .prevision-plan {
        flex-direction: column;
        align-items: stretch;
    }

    .prevision-plan__media {
        flex: none;
        width: 100%;
        min-height: 0;
        align-self: stretch;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow: hidden;
        background: linear-gradient(180deg, var(--color-primary-dark) 0%, #064a38 100%);
    }

    .prevision-plan__media img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        object-fit: contain;
        object-position: center top;
        opacity: 1;
    }

    .prevision-plan__body {
        padding: 1.25rem 1.15rem 1.5rem;
    }

    .prevision-plan__meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .prevision-plan__body {
        padding: 1rem 0.9rem 1.25rem;
    }

    .prevision-plan__list li {
        font-size: 0.8125rem;
    }
}

@media (max-width: 820px) {
    .prevision-hero__grid {
        grid-template-columns: 1fr;
    }

    .prevision-hero__ribbon {
        margin-top: -2rem;
    }
}

/* ================= SECCIÓN GENERAL ================= */
.general {
    display: flex;
    width: 100%;
    min-height: 500px;
}

.general-1 {
    width: 50%;
    padding: 100px 80px;
    background: linear-gradient(135deg, var(--color-light-gray) 0%, #f0f9f6 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.general-1 h2 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 700;
}

.general-1 p {
    font-size: 16px;
    color: var(--color-gray);
    margin-bottom: 35px;
    text-align: justify;
    line-height: 1.8;
}

.general-1 .btn {
    align-self: flex-start;
}

.general-2,
.general-3 {
    width: 50%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.general-2 {
    background-image: url(images/experiencia.jpeg);
}

.general-3 {
    background-image: url('images/parque_memorial/Parque_memorial2.JPG');
    background-size: cover;
    background-position: center center;
}

/* ================= BLOG ================= */
.blog {
    padding: 120px 0;
    text-align: center;
    background: var(--color-white);
}

.blog h2 {
    font-size: clamp(35px, 6vw, 55px);
    margin-bottom: 15px;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
}

.blog > .container > p {
    color: var(--color-gray);
    margin-bottom: 60px;
    font-size: 17px;
}

/* Más ancho que el .container general (1200px) para la rejilla de redes */
.blog > .container {
    max-width: min(1380px, 100%);
    padding: 0 clamp(20px, 4vw, 48px);
}

.blog-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.blog-1 {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.blog-1:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-1 img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 0;
    transition: var(--transition-normal);
}

.blog-1:hover img {
    transform: scale(1.1);
}

.blog-1 h3 {
    font-size: 22px;
    color: var(--color-primary);
    margin: 25px 20px 15px;
    font-weight: 600;
}

.blog-1 p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-gray);
    margin: 0 20px 25px;
    text-align: left;
}

a.blog-1--link {
    color: inherit;
    text-decoration: none;
}

a.blog-1--link:hover {
    color: inherit;
}

.blog-1--link {
    display: block;
    color: inherit;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-1--link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Rejilla redes + imagen (sección blog) */
.blog-social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    min-width: 0;
    padding-bottom: 48px;
}

.blog-social-slot {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.blog-social-slot__title {
    margin: 0;
    padding: 16px 18px 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
}

.blog-social-slot__embed {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 12px 14px;
    min-height: 200px;
}

/* Facebook: sin padding lateral; el script ajusta width del plugin al ancho real del contenedor */
.blog-social-slot__embed--facebook {
    justify-content: center;
    align-items: flex-start;
    padding: 4px 0 14px;
    overflow: hidden;
    background: #fff;
}

.blog-social-slot--facebook {
    overflow: hidden;
}

.blog-social-slot__iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 460px;
    margin: 0 auto;
    border: 0;
    border-radius: 12px;
    background: #f0f2f5;
}

/* Page Plugin: ancho en px vía JS; altura fija para cabecera + timeline */
.blog-social-slot__iframe--facebook {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 520px;
    min-height: 520px;
    margin: 0 auto;
    border-radius: 0;
    background: #fff;
}

.blog-social-slot__embed--instagram {
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    min-height: 460px;
    height: 460px;
    max-height: 460px;
}

.blog-social-slot__embed--instagram iframe {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #fff !important;
}

/* Post/reel destacado: embed oficial; scroll único en el contenedor (altura 460px) */
.blog-social-slot__embed--instagram.blog-social-slot__embed--instagram-post {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 460px;
    height: 460px;
    max-height: 460px;
}

.blog-social-slot__embed--instagram-post .instagram-media {
    margin: 0 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Tarjeta central (blog): imagen + panel superpuesto estilo editorial */
.blog-social-slot.blog-social-slot--image {
    overflow: visible;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.blog-feature-card {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 560px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.blog-feature-card__media {
    position: relative;
    z-index: 0;
    flex: 1 1 0;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 340px;
    max-height: 520px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: linear-gradient(160deg, var(--color-light-gray) 0%, #dfece6 100%);
}

.blog-feature-card__img {
    position: absolute;
    left: 14px;
    top: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    display: block;
    max-width: none;
    object-fit: contain;
    object-position: center;
}

.blog-feature-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.blog-feature-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 0;
}

.blog-feature-carousel__btn {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: var(--color-primary-dark);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-feature-carousel__btn:hover,
.blog-feature-carousel__btn:focus-visible {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    outline: none;
}

.blog-feature-carousel__btn--prev {
    left: 10px;
}

.blog-feature-carousel__btn--next {
    right: 10px;
}

.blog-feature-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 1;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: calc(100% - 80px);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
}

.blog-feature-carousel__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.blog-feature-carousel__dot:hover,
.blog-feature-carousel__dot:focus-visible {
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    transform: scale(1.15);
}

.blog-feature-carousel__dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
    .blog-feature-carousel__slide {
        transition: none;
    }

    .blog-feature-carousel__btn,
    .blog-feature-carousel__dot {
        transition: none;
    }
}

.blog-feature-card__panel {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 8px;
    z-index: 2;
    transform: translateX(-50%);
    width: min(90%, calc(100% - 36px));
    max-width: 520px;
    margin: 0;
    padding: 22px 26px 24px;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-primary-light) 100%);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 105, 78, 0.35), 0 4px 12px rgba(0, 0, 0, 0.18);
    text-align: left;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

@media (hover: hover) {
    .blog-feature-card__panel:hover {
        transform: translate(-50%, -6px);
        box-shadow:
            0 20px 44px rgba(0, 105, 78, 0.42),
            0 10px 28px rgba(0, 0, 0, 0.22),
            0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    }

    .blog-feature-card__panel:hover .blog-feature-card__accent {
        box-shadow:
            7px 0 0 0 rgba(255, 255, 255, 0.45),
            0 0 0 1px rgba(0, 0, 0, 0.06),
            0 0 14px rgba(255, 255, 255, 0.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-feature-card__panel {
        transition: none;
    }

    .blog-feature-card__panel:hover {
        transform: translateX(-50%);
        box-shadow: 0 12px 32px rgba(0, 105, 78, 0.35), 0 4px 12px rgba(0, 0, 0, 0.18);
    }

    .blog-feature-card__panel:hover .blog-feature-card__accent {
        box-shadow:
            7px 0 0 0 rgba(255, 255, 255, 0.28),
            0 0 0 1px rgba(0, 0, 0, 0.06);
    }
}

.blog-feature-card__meta {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 400;
}

.blog-feature-card__title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Marca tipográfica: doble regla vertical (sustituye la línea amarilla) */
.blog-feature-card__accent {
    position: relative;
    display: block;
    width: 3px;
    min-height: 2.75em;
    flex-shrink: 0;
    align-self: center;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        7px 0 0 0 rgba(255, 255, 255, 0.28),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition-normal);
}

@media (prefers-reduced-motion: reduce) {
    .blog-feature-card__accent {
        transition: none;
    }
}

.blog-feature-card__heading {
    margin: 0;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    text-align: left;
}

.blog-social-slot__outlink {
    margin-top: auto;
    padding: 14px 16px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border-top: 1px solid rgba(0, 138, 102, 0.12);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.blog-social-slot__outlink:hover {
    color: var(--color-primary-dark);
    background: rgba(0, 169, 122, 0.06);
}

/* ================= ALIADOS (index) ================= */
/* Verde traslúcido sobre imagen de la sección (mismo criterio que .services) */
.aliados {
    padding: 28px 0 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(
            rgba(0, 169, 122, 0.5),
            rgba(0, 138, 102, 0.5)
        ),
        url(images/aliados.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.aliados__head {
    margin: 0 auto 4px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    /* Panel de lectura: oscurece un poco el fondo y desenfoca la foto detrás del texto */
    padding: clamp(14px, 2.8vw, 22px) clamp(16px, 3vw, 28px);
    border-radius: 14px;
    background: rgba(6, 28, 22, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.aliados__head h2 {
    text-align: center;
}

.aliados h2 {
    font-size: clamp(18px, 3vw, 26px);
    margin-bottom: 6px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.85),
        0 1px 3px rgba(0, 0, 0, 0.65),
        0 3px 14px rgba(0, 0, 0, 0.45);
}

.aliados__intro {
    width: 100%;
    max-width: none;
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.78;
    letter-spacing: 0.034em;
    word-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.98);
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.75),
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 2px 10px rgba(0, 0, 0, 0.35);
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.aliados__text {
    width: 100%;
    max-width: none;
    margin: 0 0 8px;
    text-align: justify;
    text-align-last: center;
}

.aliados__text p {
    font-size: 16px;
    line-height: 1.82;
    letter-spacing: 0.03em;
    word-spacing: 0.062em;
    color: rgba(255, 255, 255, 0.97);
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.75),
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 2px 10px rgba(0, 0, 0, 0.35);
    margin: 0;
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.aliados__tagline {
    font-size: 1.125rem;
    line-height: 1.64;
    letter-spacing: 0.032em;
    word-spacing: 0.058em;
    font-weight: 600;
    color: #ffffff;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 2px 10px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
    -webkit-hyphens: auto;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .aliados__head {
        background: rgba(6, 28, 22, 0.78);
    }
}

/* Franja de logos a todo el ancho del viewport (texto sigue en .container) */
.aliados__grid-wrap {
    width: 100%;
    margin-top: 12px;
    padding-inline: clamp(10px, 2.5vw, 28px);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.aliados__grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
    gap: 8px;
    margin: 0;
}

@media (min-width: 480px) {
    .aliados__grid {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    }
}

@media (min-width: 900px) {
    .aliados__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.aliados__card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 10px 12px;
    background: var(--color-white);
    border: 1px solid #e2e8f0;
    border-radius: 0.4rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal), transform var(--transition-fast);
}

.aliados__card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.aliados__logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 44px;
    height: auto;
    object-fit: contain;
}

/* Logo muy horizontal: un poco más grande solo para Sura */
.aliados__logo--sura {
    max-height: 54px;
    max-width: min(100%, 200px);
}

@media (max-width: 767px) {
    .aliados {
        padding: 22px 0 28px;
    }

    .aliados__grid-wrap {
        margin-top: 10px;
    }
}

/* ================= OBITUARIOS ================= */
.obituarios {
    padding: 100px 0 120px;
    background: var(--color-light-gray);
}

.obituarios .container {
    max-width: min(1920px, 100%);
    width: 100%;
    padding-left: clamp(8px, 1.2vw, 16px);
    padding-right: clamp(8px, 1.2vw, 16px);
}

.obituarios h2,
.obituarios-page h1 {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.obituarios-intro,
.obituarios-page .obituarios-intro {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 17px;
    color: var(--color-gray);
    line-height: 1.7;
}

.obituarios-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 40px;
    align-items: stretch;
    max-width: none;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.obituarios-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-gray);
    max-width: 40rem;
    justify-self: center;
}

.obituarios-empty code {
    font-size: 0.85em;
}

/* Tarjeta obituario — estilo cartel impreso (mármol, foto amplia, serif / script / sans) */
.obituary-card {
    --obituary-card-divider-slot: 2.35rem;
    --obituary-card-ink: #141414;
    --obituary-card-ink-soft: #383838;
    --obituary-card-script-sm: clamp(0.68rem, 0.4rem + 0.5vw, 0.82rem);
    --obituary-card-script-title: clamp(1.28rem, 0.52rem + 2.35vw, 1.92rem);
    --obituary-card-script-signoff: clamp(1.12rem, 0.46rem + 1.95vw, 1.68rem);
    --obituary-card-script-font: 'Dancing Script', 'Segoe Script', cursive;
    width: 100%;
    min-width: 0;
    margin: 0;
    border-radius: 4px;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.14),
        0 1px 0 rgba(255, 255, 255, 0.45) inset;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background-color: #f3f1ed;
    background-image: url(images/fondo_obituario1.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.obituary-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.obituary-card__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    gap: clamp(1rem, 2vw, 1.7rem);
    padding: clamp(1rem, 2vw, 1.4rem);
    box-sizing: border-box;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

.obituary-card__left {
    min-width: 0;
}

.obituary-card__right {
    min-width: 0;
    display: flex;
}

/* Bloque de texto: crece para igualar altura de tarjetas en la misma fila del grid */
.obituary-card__body {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
    padding: 2px 0 4px 0;
    position: relative;
    min-height: 0;
}

/* El separador puede crecer visualmente sin empujar el flujo; queda debajo del texto */
.obituary-card__body > :not(.obituary-card__divider) {
    position: relative;
    z-index: 1;
}

.obituary-card__photo-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.obituary-card__photo {
    --obit-photo-shift: 18px;
    position: relative;
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 4.7;
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f1ed;
}

.obituary-card__photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    box-shadow:
        inset 0 0 92px 32px rgba(22, 22, 22, 0.32),
        inset 0 30px 40px rgba(10, 10, 10, 0.22);
}

.obituary-card__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(136% 116% at 50% 48%, rgba(255, 255, 255, 0) 44%, rgba(245, 243, 238, 0.76) 100%),
        radial-gradient(88% 66% at 50% 38%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0) 78%, rgba(248, 246, 241, 0.62) 100%),
        linear-gradient(90deg, rgba(245, 243, 238, 0.6) 0%, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 76%, rgba(245, 243, 238, 0.6) 100%);
    mix-blend-mode: normal;
    opacity: 0.9;
}

.obituary-card__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 50% !important;
    filter: grayscale(100%) contrast(1.06) brightness(0.97) blur(1.05px);
    transform: translateY(var(--obit-photo-shift)) scale(1.09) !important;
    -webkit-mask-image: radial-gradient(124% 124% at 50% 50%, #000 48%, rgba(0, 0, 0, 0.78) 70%, rgba(0, 0, 0, 0.22) 86%, transparent 100%);
    mask-image: radial-gradient(124% 124% at 50% 50%, #000 48%, rgba(0, 0, 0, 0.78) 70%, rgba(0, 0, 0, 0.22) 86%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Si la tarjeta usa imagen temporal, quitar blanco y negro */
.obituary-card--foto-temporal .obituary-card__photo img {
    filter: none;
}

.obituary-card .obituary-card__name,
.obituarios .obituary-card__name {
    font-family: var(--obituary-card-script-font);
    font-size: clamp(1.4rem, 0.58rem + 2.45vw, 2.05rem);
    font-weight: 700;
    font-style: normal;
    color: var(--obituary-card-ink);
    /* Minúsculas con inicial en mayúscula por palabra (como el ejemplo); el HTML debe ir en minúsculas */
    text-transform: capitalize;
    margin: 0 0 3px 0;
    line-height: 1.12;
    letter-spacing: 0.01em;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    padding: 0;
    text-wrap: balance;
    text-align: left;
    align-self: flex-start;
}

.obituary-card__dates {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(0.92rem, 0.7rem + 0.45vw, 1.08rem);
    font-weight: 500;
    color: var(--obituary-card-ink);
    margin: 0 0 7px 0;
    letter-spacing: 0.06em;
    align-self: flex-start;
    text-align: left;
    padding-left: 0.12rem;
}

.obituary-card__verse {
    margin: 0 0 6px 0;
    padding: 0;
    border: 0;
    max-width: 100%;
    width: 100%;
}

.obituary-card__verse p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(0.86rem, 0.64rem + 0.46vw, 1rem);
    font-weight: 400;
    font-style: normal;
    color: var(--obituary-card-ink-soft);
    line-height: 1.48;
    margin: 0 0 3px;
    text-align: left;
    max-width: none;
    width: 100%;
}

.obituary-card__verse-cite {
    font-family: var(--obituary-card-script-font);
    font-size: var(--obituary-card-script-sm);
    font-weight: 600;
    font-style: normal;
    color: var(--obituary-card-ink);
    display: block;
    margin-top: 0;
}

.obituary-card__divider {
    position: relative;
    z-index: 0;
    flex-shrink: 0;
    width: 100%;
    height: var(--obituary-card-divider-slot);
    min-height: var(--obituary-card-divider-slot);
    margin: 4px 0 6px;
    overflow: visible;
}

.obituary-card__divider-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(46rem, 188%);
    max-width: none;
    height: auto;
    max-height: clamp(2.75rem, 2.2rem + 1.05vw, 4.5rem);
    object-fit: contain;
    object-position: center;
    display: block;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.obituary-card__intro {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.76rem, 0.56rem + 0.38vw, 0.88rem);
    font-weight: 400;
    color: var(--obituary-card-ink-soft);
    line-height: 1.45;
    margin: 0 0 7px;
    max-width: none;
    width: 100%;
    text-align: left;
}

.obituary-card__details {
    width: 100%;
    max-width: none;
    margin: 0 0 8px 0;
    padding: 0;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

.obituary-card__details > div {
    display: grid;
    grid-template-columns: minmax(108px, max-content) minmax(0, 1fr);
    column-gap: 0.55rem;
    margin: 0 0 4px 0;
    max-width: 100%;
    text-align: left;
    line-height: 1.42;
    align-items: baseline;
}

.obituary-card__details > div:last-child {
    margin-bottom: 0;
}

.obituary-card__details dt {
    display: block;
    font-size: clamp(0.84rem, 0.64rem + 0.44vw, 1rem);
    font-weight: 700;
    color: var(--obituary-card-ink);
    margin: 0;
    letter-spacing: 0.02em;
}

.obituary-card__details dt::after {
    content: ':';
}

.obituary-card__details dd {
    display: block;
    margin: 0;
    padding: 0;
    font-size: clamp(0.84rem, 0.64rem + 0.44vw, 1rem);
    font-weight: 400;
    color: var(--obituary-card-ink);
    overflow-wrap: anywhere;
}

.obituary-card__thanks {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.76rem, 0.56rem + 0.38vw, 0.88rem);
    font-weight: 500;
    color: #2a2a2a;
    line-height: 1.45;
    margin: 0 0 6px;
    max-width: none;
    width: 100%;
    text-align: left;
    padding: 0.28rem 0.45rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.42);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.obituary-card__signoff {
    font-family: var(--obituary-card-script-font);
    font-size: clamp(1.2rem, 0.52rem + 2.05vw, 1.82rem);
    font-weight: 700;
    color: var(--obituary-card-ink);
    margin: 3px 0 6px 0;
    line-height: 1.08;
}

.obituary-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.7rem, 0.5rem + 0.34vw, 0.8rem);
    font-weight: 500;
    color: #2c2c2c;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: var(--transition-fast);
    flex-shrink: 0;
    margin-top: 1.45rem;
    align-self: center;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(36, 36, 36, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(1.5px);
}

.obituary-card__link:hover {
    color: #111111;
    border-color: rgba(24, 24, 24, 0.42);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.obituarios-back {
    text-align: center;
    margin-top: 50px;
}

.obituarios-back .btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

/* ================= FOOTER ================= */
.footer {
    padding: 80px 0 30px;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-gray) 100%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.link {
    flex: 1;
    min-width: 200px;
}

.link h3 {
    font-size: 20px;
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.link h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
}

.link ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
    display: inline-block;
}

.link a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.link--footer-contact {
    flex: 1.15;
    min-width: min(100%, 280px);
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact-list__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-contact-list__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-top: 2px;
    color: #ffffff;
    filter: drop-shadow(0 0 10px rgba(125, 212, 176, 0.45));
    line-height: 0;
}

.footer-contact-list__icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

.footer-contact-list__text {
    min-width: 0;
    flex: 1;
}

.footer-contact-list__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 6px;
}

.footer-contact-list__value {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.link .footer-contact-list__value a {
    display: inline;
    color: rgba(255, 255, 255, 0.88);
    transform: none;
}

.link .footer-contact-list__value a:hover {
    color: var(--color-secondary-light);
    transform: none;
    text-decoration: underline;
}

.footer-contact-list__sep {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
    .menu {
        padding: 16px 20px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .nav-toggle {
        display: flex;
    }

    .menu .nav {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        margin-top: 4px;
        padding: 0 16px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            max-height 0.35s ease,
            opacity 0.25s ease,
            visibility 0.25s ease;
        background: rgba(15, 40, 35, 0.94);
        backdrop-filter: blur(12px);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    }

    .menu.menu--nav-open .nav {
        max-height: min(85vh, 520px);
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding-bottom: 16px;
    }

    .menu .nav > ul {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        padding: 8px 0 0;
        align-items: stretch;
    }

    .menu .nav > ul > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .menu .nav > ul > li:last-child {
        border-bottom: 0;
    }

    .menu .nav > ul > li > a {
        display: block;
        padding: 14px 12px;
        font-size: 15px;
        border-radius: 6px;
    }

    .menu .nav > ul > li > a::after {
        display: none;
    }

    .nav-dropdown__trigger {
        width: 100%;
        justify-content: space-between;
        padding: 14px 12px;
        font-size: 15px;
        border-radius: 6px;
    }

    .nav-dropdown {
        position: static;
        min-width: 0;
        margin: 0 4px 6px;
        padding: 0;
        border: none;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.32s ease, padding 0.32s ease;
    }

    .nav-item--dropdown-open .nav-dropdown {
        max-height: 320px;
        padding: 6px 0 10px;
    }

    .nav-dropdown li a {
        padding: 10px 14px 10px 22px;
        font-size: 14px;
    }

    .header {
        min-height: 70vh;
    }

    .header-content {
        padding: 100px 20px 60px;
    }

    .products {
        padding: 60px 0;
    }

    .products-img {
        display: none;
    }

    .services {
        padding: 80px 0;
        background-attachment: scroll;
    }

    .aliados {
        background-attachment: scroll;
    }

    .general {
        flex-direction: column;
    }

    .general-1 {
        width: 100%;
        padding: 60px 40px;
        text-align: center;
    }

    .general-1 .btn {
        align-self: center;
    }

    .general-2,
    .general-3 {
        width: 100%;
        min-height: 300px;
    }

    .servicios-destacados {
        flex-direction: column;
        align-items: center;
    }

    .blog {
        padding: 80px 0;
    }

    .blog-content {
        flex-direction: column;
        align-items: center;
    }

    .blog-social-grid {
        flex-direction: column;
        align-items: center;
    }

    .blog-social-slot {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .obituarios {
        padding: 60px 0 80px;
    }

    .obituarios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer {
        padding: 60px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .link h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .obituary-card__inner {
        grid-template-columns: minmax(240px, 40%) minmax(0, 1fr);
        align-items: stretch;
        text-align: left;
        padding: 2.6% 4.2% 4.2%;
    }

    .obituary-card__photo {
        --obit-photo-shift: 14px;
        max-width: none;
    }

    .obituary-card__photo-wrap {
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0 auto 8px;
        align-items: center;
    }

    .obituary-card__body {
        align-items: flex-start;
    }

    .obituary-card__verse p,
    .obituary-card__intro,
    .obituary-card__details,
    .obituary-card__details > div,
    .obituary-card__thanks {
        text-align: left;
    }

    .obituary-card__details > div {
        display: grid;
        grid-template-columns: minmax(104px, max-content) minmax(0, 1fr);
        column-gap: 0.5rem;
        text-align: left;
    }

    .obituary-card__details dt,
    .obituary-card__details dd {
        display: block;
    }

    .obituary-card__details dd {
        margin-left: 0;
    }

    .obituary-card__link {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .header-content .header-hero__title,
    .header-content h1 {
        font-size: 2.5rem; /* 40px — inicio */
        line-height: 1.2;
    }

    .header--parque .header-hero__title {
        font-size: clamp(1.25rem, 6vw, 2rem); /* ~32px máx. — una línea en móvil */
    }

    .obituarios-grid {
        grid-template-columns: 1fr;
    }

    .blog-content,
    .blog-social-grid,
    .servicios-destacados,
    .services-group {
        flex-direction: column;
        align-items: center;
    }

    .blog-1,
    .blog-social-slot,
    .servicio-destacado,
    .services-1 {
        max-width: 100%;
    }

    .general-1 {
        padding: 40px 30px;
    }

    .general-1 h2 {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .obituary-card__inner {
        grid-template-columns: 1fr;
        align-items: center;
        text-align: center;
        padding: 2.6% 5.5% 4.5%;
    }

    .obituary-card__photo {
        --obit-photo-shift: 10px;
        max-width: 248px;
    }

    .obituary-card__body {
        align-items: center;
    }

    .obituary-card__verse p,
    .obituary-card__intro,
    .obituary-card__details,
    .obituary-card__details > div,
    .obituary-card__thanks {
        text-align: center;
    }
}

/* ==========================
   SECCIÓN PARQUE MEMORIAL
   ========================== */

.pm-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5fbf7 0%, #ffffff 40%, #e8f5ee 100%);
}

.pm-layout {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .pm-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
}

.pm-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-color: #dcfce7;
    color: #166534;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.pm-intro h2 {
    font-size: 2.1rem;
    margin-bottom: 1rem;
    color: #042f2e;
}

.pm-intro p {
    color: #4b5563;
    line-height: 1.7;
    max-width: 36rem;
}

.pm-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 2.4rem 2rem;
    background: radial-gradient(circle at 0% 0%, #6ee7b7 0, #0f766e 40%, #042f2e 100%);
    color: #ecfdf5;
    box-shadow: 0 22px 45px rgba(15, 118, 110, 0.4);
}

.pm-hero-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    opacity: 0.2;
    background: radial-gradient(circle at 10% 0%, #bbf7d0, transparent 55%),
                radial-gradient(circle at 90% 100%, #a5f3fc, transparent 55%);
    pointer-events: none;
}

.pm-hero-card > * {
    position: relative;
    z-index: 1;
}

.pm-hero-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.pm-hero-text {
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
    max-width: 21rem;
}

.pm-hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.pm-hero-list li::before {
    content: "●";
    display: inline-block;
    margin-right: 0.5rem;
    color: #bbf7d0;
}

.pm-grid {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.8rem;
}

.pm-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 1.9rem 1.6rem;
    border: 1px solid #e5f3ea;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
    border-color: #a7f3d0;
}

.pm-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #065f46;
}

.pm-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
    color: #4b5563;
    font-size: 0.95rem;
}

.pm-card li::before {
    content: "•";
    color: #16a34a;
    font-weight: bold;
    display: inline-block;
    width: 1.1rem;
}

.pm-acompanamiento {
    margin-top: 3rem;
}

.pm-acompanamiento-text {
    max-width: 40rem;
}

.pm-acompanamiento-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: #064e3b;
}

.pm-acompanamiento-text p {
    color: #4b5563;
    line-height: 1.7;
}

.pm-cta {
    margin-top: 3rem;
    padding: 2.2rem 2rem;
    border-radius: 20px;
    background-color: #042f2e;
    color: #ecfdf5;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    align-items: flex-start;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .pm-cta {
        flex-direction: row;
        align-items: center;
    }
}

.pm-cta-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.pm-cta-text p {
    max-width: 30rem;
    font-size: 0.98rem;
}

.pm-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn.btn-secondary {
    background-color: transparent;
    border: 2px solid #22c55e;
    color: #bbf7d0;
    font-weight: 500;
}

.btn.btn-secondary:hover {
    background-color: #22c55e;
    color: #042f2e;
}

/* ==========================
   PÁGINA PARQUE MEMORIAL
   ========================== */

.pm-page {
    background-color: var(--color-off-white);
}

/* HERO PRINCIPAL */

.pm-hero-section {
    padding: 4.5rem 0 3.5rem;
    background: linear-gradient(135deg, #f5fbf7 0%, #ffffff 40%, #e8f5ee 100%);
}

.pm-hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .pm-hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    }
}

.pm-hero-media {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.pm-hero-image-wrapper {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    position: relative;
}

.pm-hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 55%);
    pointer-events: none;
}

.pm-hero-image-wrapper img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.pm-hero-caption {
    font-size: 0.95rem;
    color: #374151;
}

.pm-hero-location {
    font-size: 0.9rem;
    color: #047857;
    font-weight: 500;
}

.pm-hero-content h2 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom: 0.9rem;
    color: #022c22;
}

.pm-hero-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.pm-hero-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem 0;
    display: grid;
    gap: 0.4rem;
    color: #374151;
    font-size: 0.95rem;
}

.pm-hero-highlights li::before {
    content: '✓';
    color: #059669;
    font-weight: 600;
    display: inline-block;
    width: 1.2rem;
}

.pm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

@media (max-width: 768px) {
    .pm-hero-section {
        padding: 3.2rem 0 2.5rem;
    }

    .pm-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* SECCIÓN VIDEO */

.pm-video-section {
    padding: 3rem 0 3.5rem;
    background-color: #ffffff;
}

.pm-video-inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .pm-video-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    }
}

.pm-video-text h3 {
    font-size: 1.6rem;
    color: #064e3b;
    margin-bottom: 0.7rem;
}

.pm-video-text p {
    color: #4b5563;
    line-height: 1.7;
}

.pm-video-frame {
    width: 100%;
}

.pm-video-aspect {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
}

.pm-video-aspect iframe,
.pm-video-aspect video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* SECCIÓN PRODUCTOS / SERVICIOS DEL PARQUE */

.pm-products-section {
    padding: 3.5rem 0 3.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.pm-section-title {
    font-size: 1.7rem;
    text-align: center;
    color: #065f46;
    margin-bottom: 0.4rem;
}

.pm-section-subtitle {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.4rem;
    color: #4b5563;
    font-size: 0.97rem;
}

.pm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.7rem;
}

.pm-product-card {
    position: relative;
    min-height: 260px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateY(0);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.pm-product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(5, 46, 22, 0.9), rgba(16, 185, 129, 0.5));
    mix-blend-mode: multiply;
}

.pm-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.3);
}

/* Línea que sigue el cursor por el contorno de la tarjeta */
.pm-card-line-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pm-product-card:hover .pm-card-line-wrapper {
    opacity: 1;
}

.pm-card-line {
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #7dd4b0, #00a97a, #008a66);
    box-shadow: 0 0 12px rgba(0, 169, 122, 0.5);
}

.pm-card-line--top,
.pm-card-line--bottom {
    height: 4px;
    width: 260px;
}

.pm-card-line--left,
.pm-card-line--right {
    width: 4px;
    height: 260px;
}

.pm-card-line--top {
    background: linear-gradient(90deg, #7dd4b0, #00a97a, #008a66);
}

.pm-card-line--bottom {
    background: linear-gradient(90deg, #7dd4b0, #00a97a, #008a66);
}

.pm-card-line--left,
.pm-card-line--right {
    background: linear-gradient(180deg, #7dd4b0, #00a97a, #008a66);
}

/* L en esquinas con curvatura redondeada (simétrica con la tarjeta) */
.pm-card-line-corner {
    position: absolute;
    display: none;
    width: 100px;
    height: 100px;
    box-shadow: 0 0 12px rgba(0, 169, 122, 0.4);
}

.pm-card-line-corner--tr {
    top: 0;
    right: 0;
    border-top: 4px solid #00a97a;
    border-right: 4px solid #008a66;
    border-top-right-radius: 20px;
}

.pm-card-line-corner--tl {
    top: 0;
    left: 0;
    border-top: 4px solid #00a97a;
    border-left: 4px solid #008a66;
    border-top-left-radius: 20px;
}

.pm-card-line-corner--br {
    bottom: 0;
    right: 0;
    border-bottom: 4px solid #008a66;
    border-right: 4px solid #00a97a;
    border-bottom-right-radius: 20px;
}

.pm-card-line-corner--bl {
    bottom: 0;
    left: 0;
    border-bottom: 4px solid #008a66;
    border-left: 4px solid #00a97a;
    border-bottom-left-radius: 20px;
}

.pm-product-overlay {
    position: relative;
    z-index: 1;
    padding: 1.8rem 1.6rem 1.6rem;
    color: #ecfdf5;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    height: 100%;
}

.pm-product-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.pm-product-overlay p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.pm-product-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.pm-product-overlay ul li::before {
    content: '•';
    display: inline-block;
    width: 1rem;
    color: #a7f3d0;
}

.pm-product-cta {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    color: #bbf7d0;
    text-decoration: none;
    background-color: rgba(6, 78, 59, 0.3);
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pm-product-cta:hover {
    background-color: #bbf7d0;
    color: #064e3b;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    transform: translateY(-2px);
}

/* Fondos específicos: ajusta a tus imágenes disponibles */
.pm-product-card--lotes {
    background-image: url('images/parque.jpeg');
}

.pm-product-card--cenizarios {
    background-image: url('images/cenizario y osarios.png');
}

.pm-product-card--cremacion {
    background-image: url('images/memoria.png');
}

.pm-product-card--servicios {
    background-image: url('images/Soluciones.jpeg');
}

/* GALERÍA LIGERA + MARQUEE INFINITO */

.pm-gallery-section {
    padding: 3rem 0 3.5rem;
    background-color: #ffffff;
}

.pm-gallery-marquee {
    position: relative;
    margin-top: 1.75rem;
    --pm-gallery-fade: 72px;
}

.pm-gallery-marquee__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--pm-gallery-fade);
    z-index: 2;
    pointer-events: none;
}

.pm-gallery-marquee__fade--left {
    left: 0;
    background: linear-gradient(90deg, #fff 0%, transparent 100%);
}

.pm-gallery-marquee__fade--right {
    right: 0;
    background: linear-gradient(270deg, #fff 0%, transparent 100%);
}

.pm-gallery-marquee__viewport {
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    /* mask opcional; los fades laterales funcionan en todos los navegadores */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}

.pm-gallery-marquee__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: -webkit-max-content;
    width: max-content;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Motor JS (Brave, Safari, etc.): sin @keyframes CSS */
.pm-gallery-marquee--js .pm-gallery-marquee__track {
    -webkit-animation: none !important;
    animation: none !important;
}

.pm-gallery-marquee__set {
    display: flex;
    flex: 0 0 auto;
    flex-shrink: 0;
    align-items: stretch;
    gap: 1rem;
    padding: 0.25rem 0;
}

.pm-gallery-card {
    position: relative;
    flex: 0 0 auto;
    width: min(340px, 78vw);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.pm-gallery-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.pm-gallery-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.85rem 1rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
}

.pm-gallery-card__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
    line-height: 1.35;
}

@-webkit-keyframes pm-gallery-marquee-x {
    from {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    to {
        -webkit-transform: translate3d(var(--pm-marquee-shift), 0, 0);
        transform: translate3d(var(--pm-marquee-shift), 0, 0);
    }
}

@keyframes pm-gallery-marquee-x {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(var(--pm-marquee-shift), 0, 0);
    }
}

/* Sin animación CSS: desplazamiento horizontal manual (respaldo) */
.pm-gallery-marquee--static .pm-gallery-marquee__viewport {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
    -webkit-mask-image: none;
}

.pm-gallery-marquee--static .pm-gallery-marquee__track {
    -webkit-animation: none;
    animation: none;
    width: max-content;
}

.pm-gallery-marquee--static .pm-gallery-card {
    scroll-snap-align: start;
}

@media (prefers-reduced-motion: reduce) {
    .pm-gallery-marquee__fade {
        display: none;
    }

    .pm-gallery-marquee__viewport {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .pm-gallery-marquee__track {
        -webkit-animation: none;
        animation: none;
        flex-wrap: nowrap;
        width: max-content;
        justify-content: flex-start;
    }

    .pm-gallery-marquee__set {
        flex-shrink: 0;
    }

    .pm-gallery-card {
        scroll-snap-align: start;
    }
}

.pm-gallery-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 1.2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.pm-gallery-strip::-webkit-scrollbar {
    height: 6px;
}

.pm-gallery-strip::-webkit-scrollbar-track {
    background: #e5e7eb;
}

.pm-gallery-strip::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 999px;
}

.pm-gallery-item {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    min-height: 200px;
}

.pm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CTA FINAL ESPECÍFICA DE LA PÁGINA */

.pm-cta--page {
    margin-top: 0;
}

.pm-cta-inner {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

@media (min-width: 768px) {
    .pm-cta-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ================= ACCESIBILIDAD: movimiento reducido ================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================= PÁGINAS: SOBRE NOSOTROS, SEDES, CONTACTO, LEGAL ================= */
.about-page {
    padding: 3rem 0 4rem;
    background: var(--color-off-white);
}

.about-page__tag,
.sedes-page__tag,
.contact-page__tag,
.terms-page__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.about-hero {
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto 2.5rem;
    box-sizing: border-box;
}

.about-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.about-page__lead {
    color: var(--color-gray);
    line-height: 1.7;
}

.about-page .about-hero {
    position: relative;
    margin-bottom: 3.25rem;
}

.about-page .about-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -1.35rem;
    width: min(88%, 920px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 169, 122, 0.22) 20%,
        var(--color-primary) 50%,
        rgba(0, 169, 122, 0.22) 80%,
        transparent 100%
    );
    box-shadow: 0 1px 14px rgba(0, 169, 122, 0.16);
}

.about-page .about-split + .about-split {
    position: relative;
    margin-top: 2.75rem;
}

.about-page .about-split + .about-split::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -1.375rem;
    width: min(88%, 920px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 169, 122, 0.22) 20%,
        var(--color-primary) 50%,
        rgba(0, 169, 122, 0.22) 80%,
        transparent 100%
    );
    box-shadow: 0 1px 12px rgba(0, 169, 122, 0.14);
}

.about-hero .about-page__lead + .about-page__lead {
    margin-top: 0.65rem;
}

/* Sobre nosotros — bloques texto + imagen */
.about-page .about-split {
    display: flex;
    width: 100%;
    min-height: min(520px, 88vh);
}

.about-page .about-split__text {
    width: 50%;
    padding: clamp(3rem, 8vw, 100px) clamp(2rem, 6vw, 80px);
    background: linear-gradient(135deg, var(--color-light-gray) 0%, #f0f9f6 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    box-sizing: border-box;
}

.about-page .about-split__text h2 {
    font-size: clamp(28px, 4.5vw, 46px);
    line-height: 1.2;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 1.35rem;
    font-weight: 700;
}

.about-page .about-split__text p {
    font-size: 16px;
    color: var(--color-gray);
    margin-bottom: 0;
    text-align: justify;
    line-height: 1.8;
}

.about-page .about-split__visual {
    width: 50%;
    --about-split-img: none;
    --about-split-fill: linear-gradient(135deg, var(--color-light-gray) 0%, #f0f9f6 100%);
    background-color: var(--color-light-gray);
    background-image: var(--about-split-img), var(--about-split-fill);
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: contain, cover;
    position: relative;
    overflow: hidden;
    min-height: min(420px, 50vh);
}

.about-page .about-split--reverse {
    flex-direction: row-reverse;
}

.about-page .about-split--historia .about-split__visual {
    --about-split-img: url('images/historia2.png');
}

.about-page .about-split--mision .about-split__visual {
    --about-split-img: url('images/mision2.png');
}

.about-page .about-split--vision .about-split__visual {
    --about-split-img: url('images/vision2.png');
}

.about-page .about-split--valores .about-split__visual {
    --about-split-img: url('images/valores2.png');
}

.about-page .about-split--compromiso .about-split__visual {
    --about-split-img: url('images/Evolucion.png');
}

.about-page .about-values__intro {
    font-size: 16px;
    color: var(--color-gray);
    line-height: 1.75;
    margin-bottom: 1rem;
    text-align: justify;
}

.about-page .about-values {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.about-page .about-values__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.35rem;
    line-height: 1.3;
    text-transform: none;
}

.about-page .about-values__desc {
    font-size: 15px;
    color: var(--color-gray);
    line-height: 1.65;
    margin: 0;
    text-align: justify;
}

@media (max-width: 991px) {
    .about-page .about-hero {
        margin-bottom: 2.75rem;
    }

    .about-page .about-hero::after {
        bottom: -1.1rem;
        width: min(92%, 480px);
    }

    .about-page .about-split + .about-split {
        margin-top: 2rem;
    }

    .about-page .about-split + .about-split::before {
        top: -1rem;
        width: min(92%, 480px);
    }

    .about-page .about-split {
        flex-direction: column;
        min-height: 0;
    }

    .about-page .about-split--reverse {
        flex-direction: column;
    }

    .about-page .about-split__text,
    .about-page .about-split__visual {
        width: 100%;
    }

    .about-page .about-split__text {
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .about-page .about-split__text p {
        text-align: justify;
    }

    .about-page .about-split__text--values {
        text-align: left;
    }

    .about-page .about-split__text--values > h2 {
        text-align: center;
    }

    .about-page .about-split__visual {
        min-height: min(380px, 70vw);
        order: -1;
    }

    .about-page .about-split--reverse .about-split__visual {
        order: -1;
    }
}

.about-cards {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.about-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 169, 122, 0.12);
}

.about-card h2 {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
}

.about-cards--modern {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.about-card--stack {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.about-card__top {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 1.35rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.about-card__icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.about-card__icon--round {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
}

.about-card__emoji {
    font-size: 2.75rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.about-card__body {
    padding: 1.35rem 1.5rem 1.65rem;
    text-align: justify;
}

.about-card__body h2 {
    text-align: center;
    margin-bottom: 0.85rem;
}

.about-card__title--script {
    font-family: "Brush Script MT", "Brush Script Std", cursive;
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-primary-dark);
}

/* Sedes — diseño moderno (cuadrícula + tarjetas verticales) */
.sedes-page {
    padding-bottom: clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(1200px 480px at 50% -8%, rgba(0, 169, 122, 0.14), transparent 55%),
        radial-gradient(800px 400px at 100% 40%, rgba(96, 187, 149, 0.08), transparent 50%),
        linear-gradient(180deg, #f4f7f6 0%, #fafbfc 35%, #ffffff 100%);
}

.sedes-hero--modern {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    text-align: center;
    overflow: hidden;
}

.sedes-hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(0, 169, 122, 0.07) 0%, transparent 45%),
        linear-gradient(-15deg, rgba(0, 138, 102, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.sedes-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.sedes-hero__title {
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.15;
    margin-top: 0.35rem;
}

.sedes-hero__title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin: 1rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.sedes-hero__intro {
    margin: 1.15rem auto 0;
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.75;
    max-width: 560px;
}

.sedes-section {
    padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}

/* Rejilla a todo el ancho del viewport (sin tope 1200px del .container) */
.sedes-section--fullwidth {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    padding-inline: clamp(1rem, 4vw, 3rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.sedes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
    margin: 0 auto;
    width: 100%;
    max-width: none;
}

/* Columnas fijas según ancho del viewport */
@media (min-width: 540px) {
    .sedes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .sedes-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sedes-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 32px rgba(15, 23, 42, 0.07);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.25s ease;
}

.sedes-card::before {
    content: '';
    display: block;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary-light));
    opacity: 0.95;
}

.sedes-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 169, 122, 0.22);
    box-shadow:
        0 4px 12px rgba(0, 169, 122, 0.1),
        0 24px 48px rgba(15, 23, 42, 0.12);
}

.sedes-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(145deg, #e8f5f0, #f1f5f9);
}

.sedes-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.55));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.sedes-card:hover .sedes-card__media::after {
    opacity: 1;
}

.sedes-card__media img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    display: block;
    /* Nitidez al reducir fotos grandes; sin zoom en hover (evita pixelado en producción) */
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.sedes-card:hover .sedes-card__media img {
    transform: none;
}

.sedes-card__content {
    padding: 1.35rem 1.4rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sedes-card__city {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(0, 169, 122, 0.15);
}

.sedes-card__line {
    font-size: 1.025rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    padding: 0.55rem 0.7rem;
    background: rgba(0, 169, 122, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 169, 122, 0.08);
}

.sedes-card__line strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
    .sedes-card,
    .sedes-card__media img,
    .sedes-card__media::after {
        transition: none;
    }

    .sedes-card:hover {
        transform: none;
    }

    .sedes-card:hover .sedes-card__media img {
        transform: none;
    }
}

/* Sedes — cobertura regional (HTML estructurado, sin imagen) */
.sedes-cobertura {
    --sedes-cobertura-fg: #ecfdf5;
    --sedes-cobertura-muted: #94b8aa;
    --sedes-cobertura-accent: #5ee9b5;
    --sedes-cobertura-panel: rgba(0, 0, 0, 0.22);
    background: linear-gradient(165deg, #03150f 0%, #052a1c 38%, #02150f 100%);
    color: var(--sedes-cobertura-fg);
    padding: clamp(2.25rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(2.75rem, 5vw, 4.5rem);
}

.sedes-cobertura__inner {
    max-width: 1400px;
    margin: 0 auto;
}

.sedes-cobertura__grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3.25rem);
    align-items: start;
}

@media (min-width: 960px) {
    .sedes-cobertura__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 2.5rem 3rem;
    }
}

.sedes-cobertura__title {
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 1.25rem;
    color: var(--color-white);
}

.sedes-cobertura__lead {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 500;
    margin: 0;
    color: var(--sedes-cobertura-fg);
}

.sedes-cobertura__lead-strong {
    color: var(--sedes-cobertura-accent);
    font-weight: 800;
}

.sedes-cobertura__lead-note {
    margin: 0.5rem 0 1.75rem;
    font-size: 0.88rem;
    color: var(--sedes-cobertura-muted);
    line-height: 1.55;
}

.sedes-cobertura__stats {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1.25rem;
    padding: 0;
}

@media (min-width: 600px) {
    .sedes-cobertura__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

.sedes-cobertura__stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1rem 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 201, 138, 0.35);
    background: var(--sedes-cobertura-panel);
}

.sedes-cobertura__stat-icon {
    display: flex;
    color: var(--sedes-cobertura-accent);
    opacity: 0.95;
}

.sedes-cobertura__stat-icon svg {
    width: 32px;
    height: 32px;
}

.sedes-cobertura__stat-text {
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.sedes-cobertura__fleet {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.2rem 1.25rem;
    margin-bottom: 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(0, 0, 0, 0.18);
}

.sedes-cobertura__fleet-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #fbbf24, #d97706);
    color: #1a1207;
}

.sedes-cobertura__fleet-title {
    margin: 0 0 0.35rem;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--color-white);
}

.sedes-cobertura__fleet-loc {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--sedes-cobertura-accent);
}

.sedes-cobertura__fleet-note {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--sedes-cobertura-muted);
}

.sedes-cobertura__contracts {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 201, 138, 0.25);
    background: rgba(0, 0, 0, 0.2);
}

.sedes-cobertura__contracts-head {
    margin: 0;
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #042218;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.sedes-cobertura__contracts-list {
    margin: 0;
    padding: 0.65rem 1rem 0.85rem;
}

.sedes-cobertura__contracts-list li {
    padding: 0.4rem 0;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sedes-cobertura__contracts-list li:last-child {
    border-bottom: 0;
}

.sedes-cobertura__map-heading {
    margin: 0 0 1rem;
    font-size: clamp(0.78rem, 1.5vw, 0.88rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    text-align: center;
}

.sedes-cobertura__map-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 201, 138, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.25rem;
}

.sedes-cobertura__map-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    image-rendering: auto;
}

.sedes-cobertura__routes {
    display: grid;
    gap: 1rem;
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .sedes-cobertura__routes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem;
    }
}

.sedes-cobertura__route-col {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: var(--sedes-cobertura-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sedes-cobertura__route-label {
    margin: 0 0 0.4rem;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sedes-cobertura-accent);
}

.sedes-cobertura__route-label--with-pin {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.sedes-cobertura__route-pin {
    flex-shrink: 0;
    display: flex;
    color: var(--sedes-cobertura-accent);
    line-height: 0;
}

.sedes-cobertura__route-pin svg {
    display: block;
    width: 1.1em;
    height: 1.1em;
}

.sedes-cobertura__route-text {
    margin: 0;
    font-size: 0.91rem;
    line-height: 1.5;
    color: var(--sedes-cobertura-muted);
}

/* Contacto */
.contact-page {
    padding: 2.5rem 0 4rem;
    background: var(--color-off-white);
}

.contact-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
        "contact-intro contact-sidebar"
        "contact-form contact-sidebar";
    gap: 4.25rem 5rem;
    align-items: stretch;
}

.contact-page__header {
    grid-area: contact-intro;
    text-align: center;
    background: var(--color-white);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 169, 122, 0.1);
}

.contact-page__header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0.35rem 0;
    color: var(--color-dark);
}

.contact-page__lead {
    color: var(--color-gray);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.contact-form-card {
    grid-area: contact-form;
    align-self: start;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background-color: #0f172a;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-height: min(480px, 72vh);
    isolation: isolate;
}

/* Capa de foto fija al tamaño de la tarjeta (no interactiva; no se “estira” con el textarea) */
.contact-form-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #0f172a;
    background-image: url('images/Soluciones.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Vela sobre la foto: contraste para títulos y campos (lobby muy clara) */
.contact-form-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            165deg,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(15, 23, 42, 0.52) 35%,
            rgba(15, 23, 42, 0.4) 68%,
            rgba(6, 78, 59, 0.28) 100%
        ),
        linear-gradient(90deg, rgba(0, 169, 122, 0.06) 0%, transparent 55%);
}

.contact-form {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: #e2e8f0;
}

.contact-form h2 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.contact-form__feedback {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.contact-form__feedback-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: rgba(236, 253, 245, 0.2);
    border: 1px solid rgba(236, 253, 245, 0.55);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.contact-form__feedback[data-state="success"] {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.55);
    color: #ecfdf5;
}

.contact-form__feedback[data-state="error"] {
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fef2f2;
}

.contact-form__hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.contact-form__full {
    grid-column: 1 / -1;
}

.contact-form label:not(.contact-form__terms) span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #f1f5f9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.contact-form input:not([type="checkbox"]):not([type="radio"]),
.contact-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
    color: #0f172a;
    font-family: inherit;
    font-size: 0.9rem;
    backdrop-filter: blur(8px) saturate(1.08);
    -webkit-backdrop-filter: blur(8px) saturate(1.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(15, 23, 42, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-primary);
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.32);
    color: #0f172a;
}

.contact-form textarea {
    resize: none;
    min-height: 6.5rem;
    overflow-y: visible;
    field-sizing: content;
}

@supports not (field-sizing: content) {
    .contact-form textarea {
        min-height: 8rem;
    }
}

.contact-form__terms {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 1.25rem 0 1rem;
    font-size: 0.85rem;
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.contact-form__terms input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
    margin: 0.15rem 0 0;
    accent-color: var(--color-primary);
}

.contact-form__terms > span {
    flex: 1;
    min-width: 0;
}

.contact-terms-trigger {
    background: none;
    border: none;
    color: var(--color-primary-light);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.contact-form__submit {
    width: 100%;
    max-width: 280px;
    margin-top: 0.25rem;
    border: none;
    cursor: pointer;
}

.contact-form__submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.contact-info {
    grid-area: contact-sidebar;
    padding: 0.5rem 0;
}

.contact-info__head h2 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 0.35rem;
}

.contact-info__intro {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.contact-info__list--flat {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-info__row {
    display: flex;
    align-items: flex-start;
    gap: 1.45rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-info__icon {
    flex-shrink: 0;
    margin-top: 0.2rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: rgba(0, 169, 122, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
}

.contact-info__label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-dark);
    display: block;
    margin-bottom: 0.35rem;
}

.contact-info__links a {
    display: block;
    color: var(--color-primary-dark);
    text-decoration: underline;
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.contact-info__link--phone,
.contact-info__link--whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.contact-info__link--phone:hover,
.contact-info__link--whatsapp:hover {
    text-decoration: underline;
}

.contact-info__link--phone i {
    width: 1.1rem;
    text-align: center;
    color: var(--color-primary-dark);
}

.contact-info__link--whatsapp i {
    width: 1.15rem;
    font-size: 1.15rem;
    color: #25d366;
}

.contact-socials--bar {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.contact-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 169, 122, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
}

.contact-social-icon:hover {
    background: var(--color-primary);
    color: #fff;
}

.contact-branches--flat {
    margin-top: 2.5rem;
    padding: 1.75rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-branches__title {
    font-size: 1.25rem;
    color: var(--color-dark);
}

.contact-branches__intro {
    color: var(--color-gray);
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.contact-branches__link {
    color: var(--color-primary-dark);
    font-weight: 600;
    text-decoration: underline;
}

/* Modal privacidad */
.privacy-modal[hidden] {
    display: none !important;
}

.privacy-modal:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.privacy-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.privacy-modal__dialog {
    position: relative;
    max-width: 780px;
    width: calc(100% - 2rem);
    margin: 2rem auto 2.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.privacy-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 16px 16px 0 0;
}

.privacy-modal__head h2 {
    font-size: 1.05rem;
    margin: 0;
}

.privacy-modal__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.privacy-modal__content {
    padding: 0.85rem 1.35rem 1rem;
    overflow: visible;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.5;
    column-count: 1;
    column-gap: 1.75rem;
}

@media (min-width: 640px) {
    .privacy-modal__content {
        column-count: 2;
    }
}

.privacy-modal__content > p:first-of-type {
    column-span: all;
    margin-bottom: 0.5rem;
}

.privacy-modal__content p + p {
    margin-top: 0.5rem;
}

.privacy-modal__full-policy {
    column-span: all;
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.86rem;
    line-height: 1.45;
}

.privacy-modal__full-policy a {
    font-weight: 600;
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-modal__full-policy a:hover {
    color: var(--color-primary);
}

.privacy-brand {
    color: var(--color-primary);
    font-weight: 700;
}

.privacy-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 0.65rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

.btn--ghost {
    background: transparent !important;
    color: var(--color-dark-gray) !important;
    border: 1px solid #cbd5e1 !important;
}

@media (max-width: 991px) {
    .contact-page__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "contact-intro"
            "contact-form"
            "contact-sidebar";
        gap: 3.75rem;
    }
}

/* Legal */
.terms-page {
    padding: 2.5rem 0 4rem;
    background: var(--color-off-white);
}

.terms-page__container {
    max-width: 800px;
}

.terms-page__header {
    text-align: center;
    margin-bottom: 2rem;
}

.terms-page__header h1 {
    font-size: clamp(1.65rem, 3.5vw, 2.1rem);
    color: var(--color-dark);
}

.terms-page__meta {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 0.5rem;
}

/* Hero visual — política de datos (referencia: landing de pago) */
.terms-page--privacy {
    padding-top: 0;
    background: linear-gradient(
        180deg,
        #e9f3ef 0%,
        var(--color-off-white) 38%,
        var(--color-off-white) 100%
    );
}

.terms-hero {
    position: relative;
    min-height: min(56vh, 440px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.25rem 3.5rem;
    overflow: hidden;
    color: #fff;
}

.terms-hero__bg {
    position: absolute;
    inset: 0;
    background: url(images/politica.PNG) 60% 44% / cover no-repeat;
}

.terms-hero__texture {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        #fff 0 1px,
        transparent 1px 6px
    );
    pointer-events: none;
}

.terms-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 2px 12px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(0, 0, 0, 0.35);
}

.terms-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: linear-gradient(
        145deg,
        var(--color-primary-light),
        var(--color-primary-dark)
    );
    border-radius: 0.35rem;
    box-shadow: 0 10px 32px rgba(0, 169, 122, 0.35);
    color: #fff;
}

.terms-hero__badge svg {
    display: block;
}

.terms-hero .terms-page__tag {
    display: inline-block;
    color: var(--color-secondary-light);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
    background: rgba(0, 0, 0, 0.22);
    text-shadow: none;
}

.terms-hero h1 {
    font-size: clamp(1.65rem, 3.8vw, 2.25rem);
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 2px 14px rgba(0, 0, 0, 0.55),
        0 0 20px rgba(0, 0, 0, 0.35);
}

.terms-hero .terms-page__meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0;
    line-height: 1.55;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 2px 10px rgba(0, 0, 0, 0.45);
}

.terms-hero .privacy-brand {
    color: #fff;
    font-weight: 700;
}

.terms-page--privacy .terms-page__container {
    max-width: min(73.5rem, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}

/* Documento legal — política de datos (bloque único, ancho del contenedor del sitio) */
.terms-page--privacy .privacy-doc__content h2#politica-privacidad-resumen {
    scroll-margin-top: 5.5rem;
}

.terms-page--privacy .privacy-doc--single {
    margin: 0;
    max-width: none;
}

.terms-page--privacy .privacy-doc__content {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.terms-page--privacy .privacy-doc__lead {
    margin: 0 0 0.5rem;
    padding-bottom: calc(0.5 * 1em * 1.75);
    font-size: 1rem;
    color: var(--color-dark-gray);
    line-height: 1.75;
}

.terms-page--privacy .privacy-doc__content h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.65rem 0 0.65rem;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-primary-dark);
    line-height: 1.3;
}

.terms-page--privacy .privacy-doc__content h2:first-of-type {
    margin-top: 0;
}

.terms-page--privacy .privacy-doc__content h2::before {
    content: '';
    flex-shrink: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 169, 122, 0.2);
}

.terms-page--privacy .privacy-doc__content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-dark-gray);
    line-height: 1.75;
    text-align: justify;
    text-align-last: left;
}

/* Mayor especificidad que .privacy-doc__content p (margin:0), que antes anulaba estos márgenes */
.terms-page--privacy .privacy-doc__content .privacy-doc__lead + p {
    margin-top: 0.65rem;
    margin-bottom: 2rem;
}

.terms-page--privacy .privacy-doc__content a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms-page--privacy .privacy-doc__content a:hover {
    color: var(--color-primary);
}

@media (max-width: 480px) {
    .terms-hero {
        min-height: min(48vh, 360px);
        padding: 2.5rem 1rem 3rem;
    }

    .terms-page--privacy .privacy-doc__lead {
        margin-bottom: 0.45rem;
        padding-bottom: calc(0.5 * 1em * 1.75);
    }

    .terms-page--privacy .privacy-doc__content h2 {
        margin-top: 1.35rem;
    }
}

.terms-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.terms-item + .terms-item {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef2f6;
}

.terms-item h2 {
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.55rem;
}

.terms-item p {
    font-size: 0.95rem;
    color: var(--color-dark-gray);
    line-height: 1.7;
}

.terms-item a {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Términos y condiciones — layout amplio (referencia: previsión exequial) */
.terms-page--conditions {
    padding-top: 0;
    background: linear-gradient(
        180deg,
        #f5fcf9 0%,
        var(--color-off-white) 42%,
        var(--color-off-white) 100%
    );
}

.terms-page--conditions .terms-page__container {
    max-width: none;
    padding-top: 2.25rem;
    padding-bottom: 3.5rem;
}

.terms-conditions-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.terms-conditions-hero__sr-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.terms-conditions-hero__media {
    position: relative;
    width: 100%;
    min-height: min(70vh, 580px);
    overflow: hidden;
}

.terms-conditions-hero__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.terms-conditions-intro {
    padding: 2rem 0 1.5rem;
    background: linear-gradient(180deg, #f6fbf8 0%, var(--color-off-white) 55%, var(--color-off-white) 100%);
    border-bottom: 1px solid rgba(0, 169, 122, 0.1);
}

.terms-conditions-intro .container {
    text-align: center;
}

.terms-conditions-intro__lead {
    margin: 0 auto 0.85rem;
    max-width: 48rem;
    font-size: clamp(0.95rem, 2.1vw, 1.08rem);
    color: var(--color-dark);
    line-height: 1.7;
    font-weight: 500;
}

.terms-conditions-intro__meta {
    margin: 0 auto;
    max-width: 48rem;
    color: var(--color-gray);
    font-size: 0.88rem;
}

.terms-conditions-doc {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.terms-conditions-section {
    position: relative;
    margin: 0;
    padding: 1.35rem 1.35rem 1.35rem 1.25rem;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 169, 122, 0.14);
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.terms-conditions-section:hover {
    box-shadow: 0 6px 22px rgba(0, 169, 122, 0.1);
    border-color: rgba(0, 169, 122, 0.22);
}

.terms-conditions-section--lead {
    border-left-width: 0;
    padding: 1.5rem 1.5rem;
    background: linear-gradient(125deg, #e8f5f0 0%, #ffffff 52%, #f9fdfb 100%);
    border: 1px solid rgba(0, 169, 122, 0.18);
    box-shadow: 0 4px 20px rgba(0, 138, 102, 0.08);
}

.terms-conditions-section--lead::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(
        180deg,
        var(--color-primary-light),
        var(--color-primary-dark)
    );
}

.terms-conditions-section h2 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin: 0 0 0.75rem;
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-primary-dark);
    line-height: 1.35;
}

.terms-conditions-section h2 .terms-conditions-section__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.35rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--color-primary-light),
        var(--color-primary-dark)
    );
    box-shadow: 0 2px 8px rgba(0, 137, 102, 0.25);
}

.terms-conditions-section p {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    color: var(--color-dark-gray);
    line-height: 1.75;
}

.terms-conditions-section p:last-child {
    margin-bottom: 0;
}

.terms-conditions-section .terms-conditions-list {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
}

.terms-conditions-section .terms-conditions-list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.35rem;
    font-size: 0.95rem;
    color: var(--color-dark-gray);
    line-height: 1.65;
}

.terms-conditions-section .terms-conditions-list li:last-child {
    padding-bottom: 0;
}

.terms-conditions-section .terms-conditions-list li::before {
    content: '';
    position: absolute;
    left: 0.15rem;
    top: 0.85rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 169, 122, 0.18);
}

.terms-conditions-legal-quote {
    margin: 0.75rem 0 0;
    padding: 1rem 1.1rem 1rem 1.15rem;
    border-radius: 12px;
    background: rgba(0, 169, 122, 0.06);
    border-left: 3px solid var(--color-primary);
    font-size: 0.92rem;
    font-style: italic;
    color: var(--color-dark-gray);
    line-height: 1.7;
}

.terms-conditions-section a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms-conditions-section a:hover {
    color: var(--color-primary);
}

.terms-conditions-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.terms-conditions-actions__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: none;
    border: 2px solid transparent;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast),
        border-color var(--transition-fast);
}

.terms-conditions-actions__btn--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 137, 102, 0.28);
}

.terms-conditions-actions__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 137, 102, 0.32);
    color: #fff;
}

.terms-conditions-actions__btn--ghost {
    background: #fff;
    color: var(--color-primary-dark);
    border-color: rgba(0, 169, 122, 0.35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.terms-conditions-actions__btn--ghost:hover {
    border-color: var(--color-primary);
    background: #f5fcf9;
    color: var(--color-primary-dark);
}

@media (max-width: 900px) {
    .terms-conditions-hero__media {
        min-height: min(64vh, 470px);
    }

    .terms-conditions-intro {
        padding: 1.65rem 0 1.35rem;
    }
}

@media (max-width: 480px) {
    .terms-conditions-hero__media {
        min-height: min(58vh, 390px);
    }

    .terms-conditions-intro {
        padding: 1.35rem 0 1.15rem;
    }

    .terms-conditions-section {
        padding: 1.15rem 1.1rem 1.15rem 1rem;
    }

    .terms-conditions-section--lead {
        padding: 1.25rem 1.15rem;
    }
}

/* Imagen asesoría — contacto */
.contact-advisor {
    margin: 1.25rem 0 1.5rem;
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(
        120deg,
        rgba(0, 169, 122, 0.18) 0%,
        rgba(96, 187, 149, 0.12) 45%,
        rgba(0, 138, 102, 0.15) 100%
    );
    border: 1px solid rgba(0, 169, 122, 0.2);
}

.contact-advisor__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: min(220px, 42vw);
    object-fit: contain;
    margin: 0 auto;
}

.contact-advisor__caption {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    color: var(--color-gray);
    text-align: center;
    line-height: 1.5;
}
