/* ==========================================================================
   CSS PRINCIPAL - FUNERARIA DEL ZULIA (SERENITY & LEGACY)
   ========================================================================== */

/* Fuentes premium: enlazadas en el <head> (partials/site_header.php e index.php),
   no con @import aquí -- @import bloquea el renderizado hasta resolver una
   cadena en serie (styles.css -> hoja de Google Fonts -> archivos de fuente).
   Ver docs/specs/2026-09-09-auditoria-seo-funerzul.md. */

/* Variables de Diseño */
:root {
    /* Paleta de Colores Principal — Azul royal/celestial del logo oficial */
    --color-primary: #1F4E79;          /* Azul royal del logo (aro/texto) */
    --color-primary-dark: #163A5F;     /* Azul profundo (hero/footer) */
    --color-primary-light: #2F6DB3;    /* Azul royal claro (hover/ala) */
    --color-celeste: #8FB8DD;          /* Azul celestial (acento secundario) */
    --color-celeste-light: #C3DAEE;    /* Celeste claro (reflejos) */
    --color-secondary: #b8860b;        /* Oro viejo — acento sutil */
    --color-secondary-hover: #9c7108;  /* Oro viejo oscuro */
    --color-secondary-light: #f7bd48;  /* Oro viejo brillante */

    /* Neutros (tono frío sutil para armonizar con el azul) */
    --color-bg: #f5f8fc;               /* Blanco azulado suave */
    --color-surface: #ffffff;          /* Blanco Puro */
    --color-surface-dim: #d6dde6;      /* Gris azulado medio */
    --color-surface-low: #eef4fb;      /* Celeste muy claro (secciones) */
    --color-surface-high: #e2e9f2;     /* Gris azulado alto */
    
    /* Tipografía y Acompañamiento */
    --color-text: #191c1d;             /* Texto Oscuro */
    --color-text-muted: #44474d;       /* Texto Secundario */
    --color-outline: #c5c6ce;          /* Bordes */
    
    /* Alertas y Utilidades */
    --color-error: #ba1a1a;            /* Rojo de Emergencia */
    --color-error-hover: #93000a;
    --color-success: #25d366;          /* Verde WhatsApp */
    
    /* Fuentes */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(31, 78, 121, 0.04);
    --shadow-md: 0 4px 20px rgba(31, 78, 121, 0.06);
    --shadow-lg: 0 10px 30px rgba(31, 78, 121, 0.1);
    
    /* Bordes Redondeados */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Estilos Globales */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

p {
    font-family: var(--font-sans);
    color: var(--color-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Estructura Base */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}
/* .container.section (páginas interiores): el shorthand de arriba anulaba el
   margen lateral de .container y en móvil el texto tocaba el borde. */
.container.section {
    padding-left: 24px;
    padding-right: 24px;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-surface);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    border-color: var(--color-secondary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-surface);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--color-primary);
    padding: 6px 12px;
}

.btn-text:hover {
    color: var(--color-secondary);
}

.btn-danger {
    background-color: var(--color-error);
    color: var(--color-surface);
    border-color: var(--color-error);
}

.btn-danger:hover {
    background-color: var(--color-error-hover);
    border-color: var(--color-error-hover);
}

/* Barra de Emergencia Fija */
.emergency-bar {
    background-color: var(--color-primary-dark);
    color: var(--color-surface);
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(143, 184, 221, 0.18);
}

/* Hide any emergency icon if present */
.emergency-bar .emergency-icon {
    display: none;
}

.emergency-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.emergency-bar .info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.emergency-bar .phone-link {
    background-color: var(--color-secondary);
    color: var(--color-primary-dark);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.emergency-bar .phone-link:hover {
    background-color: var(--color-secondary-light);
}

/* Cabecera / Header */
.header {
    background-color: var(--color-primary);
    color: var(--color-surface);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 99;
}

.header .container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-surface);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}
.nav-links a { white-space: nowrap; }

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.85;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary-light);
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--color-secondary-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-surface);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0;
    background-color: var(--color-primary-dark);
    color: var(--color-surface);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('img/hero-bg.webp'); /* antes: hotlink temporal a lh3.googleusercontent.com, ver auditoría SEO */
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 78, 121, 0.78) 0%, rgba(22, 58, 95, 0.96) 100%);
    z-index: 2;
}

/* Marca de agua del ángel del logo (img/angel-original-vector.svg), centrada
   detrás del contenido del hero. Se usa como máscara CSS (no <img>) para poder
   recolorearla en celeste claro a baja opacidad sin tocar el SVG original;
   "auto <alto>%" en mask-size preserva el aspect ratio del vector — nunca se
   distorsiona, solo cambia de tamaño según el alto disponible. */
.hero-angel-watermark {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-color: rgba(195, 218, 238, 0.12); /* --color-celeste-light a baja opacidad */
    -webkit-mask-image: url('img/angel-original-vector.svg');
    mask-image: url('img/angel-original-vector.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: auto 88%;
    mask-size: auto 88%;
}

.hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    color: var(--color-surface);
    margin-bottom: 24px;
}

.hero-title span {
    display: block;
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary-light);
    margin-top: 12px;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Grid de Servicios */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-high);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.service-card:hover::before {
    background-color: var(--color-secondary);
}

.service-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-bg);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background-color: var(--color-secondary);
    color: var(--color-surface);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.service-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    line-height: 1.6;
}

/* Modulo de Obituarios */
.obituaries-section {
    background-color: var(--color-surface-low);
    border-top: 1px solid var(--color-outline);
    border-bottom: 1px solid var(--color-outline);
}

.obituaries-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.obituaries-header-container .section-header {
    text-align: left;
    margin-bottom: 0;
}

/* Controles de Búsqueda y Filtros */
.obituaries-controls {
    background-color: var(--color-surface);
    border: 1px solid var(--color-outline);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-outline);
    font-family: var(--font-sans);
    font-size: 16px;
    outline: none;
    transition: var(--transition-fast);
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.filters-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.filter-btn {
    background-color: var(--color-surface);
    border: 1px solid var(--color-outline);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-primary);
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
}

.select-filter {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-outline);
    background-color: var(--color-surface);
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

/* Grid de Obituarios */
.obituaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.obituary-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-high);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.obituary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 134, 11, 0.3); /* Gold border soft hover */
}

.obituary-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-surface-high);
}

.obituary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-slow);
}

.obituary-card:hover .obituary-img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.obituary-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: rgba(22, 58, 95, 0.9);
    color: var(--color-surface);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.obituary-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.obituary-dates {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.obituary-name {
    font-size: 22px;
    margin-bottom: 16px;
}

.obituary-details-list {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.obituary-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
}

.obituary-detail-item svg {
    width: 18px;
    height: 18px;
    fill: var(--color-secondary);
    margin-top: 2px;
    flex-shrink: 0;
}

.obituary-detail-item div {
    display: flex;
    flex-direction: column;
}

.obituary-detail-label {
    font-weight: 600;
    color: var(--color-text);
}

.obituary-detail-val {
    color: var(--color-text-muted);
}

.obituary-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--color-surface-high);
}

.obituary-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
}

/* Acordeón FAQs colapsable */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-high);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    outline: none;
}

/* Remover flecha por defecto de summary */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .arrow-icon {
    transition: var(--transition-normal);
    fill: var(--color-secondary);
    width: 24px;
    height: 24px;
}

.faq-item[open] summary .arrow-icon {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 24px 24px 24px;
    font-size: 15px;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(197, 198, 206, 0.2);
    padding-top: 16px;
}

/* Grief Resources - Acompañamiento */
.grief-section {
    background-color: var(--color-surface-high);
}

.grief-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.grief-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-high);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

.grief-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(184, 134, 11, 0.1);
    color: var(--color-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.grief-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.grief-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.grief-content p {
    font-size: 14px;
    margin-bottom: 16px;
}

.grief-content a {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.grief-content a:hover {
    color: var(--color-secondary-hover);
    text-decoration: underline;
}

/* Footer & Mapa */
.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid var(--color-primary-light);
    padding-top: 80px;
}

.footer h4 {
    color: var(--color-surface);
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    grid-column: span 1;
}

@media (min-width: 992px) {
    .footer-brand {
        grid-column: span 2;
    }
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    max-width: 320px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links-list a:hover {
    color: var(--color-secondary-light);
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--color-secondary-light);
}

/* Mapa Simulado */
.simulated-map {
    height: 200px;
    background-color: var(--color-primary-light);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.simulated-map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: rgba(31, 78, 121, 0.6);
    color: var(--color-surface);
}

.simulated-map-overlay svg {
    width: 36px;
    height: 36px;
    fill: var(--color-secondary-light);
}

.footer-bottom p { color: inherit; } /* mismo motivo que .map-container p arriba */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
}
/* Acceso del personal (2026-11-02): discreto, en el pie y no en el menú. */
.footer-admin-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.55); font-size: 13px; text-decoration: none; }
.footer-admin-link:hover { color: #fff; text-decoration: underline; }
.footer-admin-link svg { width: 14px; height: 14px; fill: currentColor; }

.logo-icon {
    height: 24px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
}
/* Ensure favicon appears */
link[rel="icon"] {
    /* No additional styles needed */
}

/* Floating WhatsApp Button */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background-color: var(--color-success);
    color: var(--color-surface);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    z-index: 98;
    transition: var(--transition-fast);
}

.whatsapp-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background-color: var(--color-primary);
    color: var(--color-surface);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    border: 1px solid var(--color-primary-light);
}

.whatsapp-fab:hover .whatsapp-tooltip {
    opacity: 1;
}

/* Ventanas Modales */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(22, 58, 95, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--color-surface-high);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--color-surface);
    z-index: 1;
}

.modal-header h3 {
    font-size: 20px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
}

.modal-close-btn:hover {
    color: var(--color-primary);
}

.modal-body {
    padding: 24px;
}

/* Formularios en Modales */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-outline);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.08);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Lista de Mensajes de Condolencias */
.condolence-list {
    margin-top: 24px;
    border-top: 1px solid var(--color-surface-high);
    padding-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.condolence-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.condolence-item {
    background-color: var(--color-surface-low);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    font-size: 13px;
    border-left: 3px solid var(--color-secondary);
}

.condolence-item .author {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
}

.condolence-item .date {
    font-size: 10px;
    font-weight: 400;
    color: var(--color-text-muted);
}

.condolence-empty {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
    padding: 16px 0;
}

/* Modulo Enviar Flores */
.flower-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.flower-option-card {
    border: 1px solid var(--color-outline);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.flower-option-card:hover {
    border-color: var(--color-primary);
    background-color: var(--color-surface-low);
}

.flower-option-card.selected {
    border-color: var(--color-secondary);
    background-color: rgba(184, 134, 11, 0.05);
    box-shadow: 0 0 0 2px var(--color-secondary);
}

.flower-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.flower-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.flower-price {
    font-size: 13px;
    color: var(--color-secondary);
    font-weight: 700;
}

/* PANEL ADMINISTRATIVO - ESTILOS ADICIONALES */
.admin-main {
    padding: 40px 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-high);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 8px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .admin-grid {
        grid-template-columns: 1.2fr 1.8fr;
    }
}

.admin-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-high);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.admin-card-title {
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-surface-high);
    color: var(--color-primary);
}

/* Tabla de Obituarios */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-surface-high);
}

.admin-table th {
    background-color: var(--color-surface-low);
    font-weight: 600;
    color: var(--color-primary);
}

.admin-table tr:hover td {
    background-color: var(--color-surface-low);
}

.obituary-row-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.obituary-row-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* Selector rápido de fotos de muestra en Formulario */
.sample-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.sample-photo-option {
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1;
    transition: var(--transition-fast);
}

.sample-photo-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sample-photo-option:hover {
    transform: scale(1.05);
}

.sample-photo-option.selected {
    border-color: var(--color-secondary);
}

/* Notificación Flotante */
.toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background-color: var(--color-primary);
    color: var(--color-surface);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-normal);
    font-size: 14px;
    font-weight: 500;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Media Queries Responsivas */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 28px;
    }

    /* Hero apila más contenido en móvil (queda más alto) — se achica el
       ángel para que no domine visualmente sobre el texto. */
    .hero-angel-watermark {
        -webkit-mask-size: auto 60%;
        mask-size: auto 60%;
    }

    .hero-title {
        font-size: 32px;
    }
    
    .header-actions .btn-outline {
        display: none;
    }
    
    .obituaries-header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filters-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .select-filter {
        width: 100%;
    }
    
    .flower-options-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   REDISEÑO ESTRATÉGICO 2026 — Identidad Mind Branding (Oro sobre Azul)
   ========================================================================== */

/* Acento dorado degradado reutilizable (PANTONE 7729 C family) */
:root {
    --gradient-gold: linear-gradient(135deg, #f7bd48 0%, #b8860b 55%, #9c7108 100%);
}

/* Logo: imagotipo en blanco con leve celeste (familia del logo) */
.logo-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-celeste-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-surface); /* fallback */
    letter-spacing: 0.01em;
}

.nav-admin-link {
    background-color: var(--color-primary-light);
    color: var(--color-secondary-light);
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
}
.nav-admin-link::after { display: none; }

/* Micro-interacción: el botón se reduce 2% al presionar */
.btn:active { transform: scale(0.98); }

/* Barra de emergencia: punto pulsante sutil */
.emergency-pulse {
    width: 9px;
    height: 9px;
    border-radius: var(--radius-full);
    background-color: var(--color-surface);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    animation: emergency-pulse 2.2s infinite;
    flex-shrink: 0;
}
@keyframes emergency-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Hero refinado */
.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-celeste);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(143, 184, 221, 0.35);
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-celeste-light) 0%, var(--color-celeste) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-celeste); /* fallback */
}

.hero-vision {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 24px;
    color: var(--color-surface);
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-hero {
    padding: 16px 28px;
    font-size: 15px;
}

.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 40px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-trust li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.hero-trust strong {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--color-celeste);
    font-weight: 700;
}

/* Sección de Previsión Familiar / Planes */
.prevision-section {
    background-color: var(--color-surface-low);
    border-top: 1px solid var(--color-outline);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-high);
    border-top: 3px solid var(--color-outline);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition-normal);
}
.plan-card:hover {
    transform: translateY(-4px);
    border-top-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.plan-featured {
    border-top-color: var(--color-secondary);
    box-shadow: 0 12px 36px rgba(31, 78, 121, 0.12);
}
.plan-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--color-secondary);
    pointer-events: none;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 28px;
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: var(--radius-full);
}

.plan-name {
    font-size: 22px;
    margin-bottom: 8px;
}
/* Qué cubre el plan, entre paréntesis bajo el nombre -- p. ej. "(Funeral +
   cremación)" -- y la edad máxima de ingreso (pedidos del cliente 2026-10-27). */
.plan-subtitle { font-size: 14px; font-weight: 600; color: var(--color-primary); margin: -4px 0 10px; }
.plan-subtitle-inline { display: block; font-size: 0.55em; font-weight: 600; color: var(--color-primary-light); margin-top: 6px; }
.plan-age { font-size: 13px; font-weight: 600; color: var(--color-text-muted); margin: 0 0 16px; }
.plan-target {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    min-height: 40px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    flex-grow: 1;
}
.plan-features li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.4;
}
.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    background-color: rgba(184, 134, 11, 0.12);
    border-radius: var(--radius-full);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8860b'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

.plan-cta { width: 100%; margin-top: auto; }

.prevision-note {
    text-align: center;
    margin-top: 36px;
    font-size: 14px;
    color: var(--color-text-muted);
}
.prevision-note a { color: var(--color-secondary-hover); font-weight: 600; }

/* Footer: enlaces telefónicos y mapa (reemplazo de estilos inline) */
.footer-tel { color: var(--color-secondary-light); }
.footer-tel:hover { text-decoration: underline; }
.footer-contact-item span strong { color: var(--color-surface); font-weight: 600; }
.map-iframe { border: 0; border-radius: var(--radius-md); }
/* Sin esto, el <p> global (color: var(--color-text-muted), pensado para fondo
   claro) le gana por especificidad al color heredado de .footer -- texto gris
   oscuro casi invisible sobre el azul marino del footer. */
.map-container p { color: rgba(255, 255, 255, 0.7); }
.map-address { margin-top: 8px; font-weight: 600; }
.footer-address { font-size: 13px; }
/* 60px (antes 44px): el cliente reportó el logo pequeño (2026-10-27). */
.header-logo-img {
    height: 60px;
    width: auto;
    display: block;
}
@media (max-width: 480px) {
    .header-logo-img { height: 46px; }
}
.footer-logo {
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
}
.footer-logo .logo-text { font-size: 22px; }
.footer-logo-icon {
    height: 84px;
    width: 84px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 0;
}
@media (max-width: 768px) {
    .footer-logo-icon { height: 68px; width: 68px; }
}

/* Accesibilidad: respetar usuarios que reducen el movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .obituary-card:hover, .service-card:hover, .plan-card:hover { transform: none; }
}

/* Responsivo del rediseño */
@media (max-width: 768px) {
    .hero-vision { font-size: 20px; }
    .hero-actions .btn-hero { width: 100%; }
    .hero-trust { gap: 16px 28px; }
    .plan-target { min-height: 0; }
}

/* ==========================================================================
   PANEL DE ADMINISTRACIÓN (Sistema de Obituarios)
   ========================================================================== */
.admin-body { background-color: var(--color-surface-low); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* El atributo [hidden] debe prevalecer sobre display:flex/grid de contenedores
   (login, app, modal, paneles de pestañas). Sin esto, el modal vacío se muestra. */
[hidden] { display: none !important; }

/* ---- Login ---- */
.login-view {
    min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
}
.login-card {
    background: var(--color-surface);
    width: 100%; max-width: 400px;
    padding: 40px 32px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); text-align: center;
}
.login-logo { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 12px; display: block; }
.login-title { font-size: 22px; margin-bottom: 4px; }
.login-sub { font-size: 13px; color: var(--color-text-muted); margin-bottom: 24px; }
.login-card .form-group { text-align: left; }
.login-btn { width: 100%; margin-top: 8px; }
.login-hint { font-size: 13px; color: var(--color-text-muted); margin-top: 12px; }
.login-back { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--color-text-muted); }
.login-back:hover { color: var(--color-primary); }
.login-error {
    background: rgba(186, 26, 26, 0.08); color: var(--color-error);
    border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; margin-bottom: 12px; text-align: left;
}

/* ---- Topbar ---- */
.admin-topbar { background: var(--color-primary-dark); position: sticky; top: 0; z-index: 50; }
.admin-topbar-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-brand-logo { height: 30px; width: auto; }
.admin-brand-tag {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--color-celeste); border: 1px solid rgba(143,184,221,0.4);
    padding: 2px 8px; border-radius: var(--radius-full);
}
.admin-tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.admin-tab-btn {
    background: transparent; border: none; color: rgba(255,255,255,0.75);
    font-family: var(--font-sans); font-size: 14px; font-weight: 500;
    padding: 8px 14px; border-radius: var(--radius-md); cursor: pointer;
    transition: var(--transition-fast); display: inline-flex; align-items: center; gap: 6px;
}
.admin-tab-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.admin-tab-btn.active { color: var(--color-primary-dark); background: var(--color-celeste-light); }

/* ---- Menús desplegables del topbar ---- */
.admin-menu { position: relative; display: inline-flex; }
.admin-menu-btn {
    background: transparent; border: none; color: rgba(255,255,255,0.75);
    font-family: var(--font-sans); font-size: 14px; font-weight: 500;
    padding: 8px 14px; border-radius: var(--radius-md); cursor: pointer;
    transition: var(--transition-fast); display: inline-flex; align-items: center; gap: 6px;
}
.admin-menu-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.admin-menu-btn.active { color: var(--color-primary-dark); background: var(--color-celeste-light); }
.admin-menu-btn.open { color: #fff; background: rgba(255,255,255,0.14); }
.admin-menu-caret { font-size: 10px; opacity: 0.8; }
.admin-menu-panel {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.18));
    padding: 6px; min-width: 210px; display: flex; flex-direction: column; gap: 2px;
}
.admin-menu-panel .admin-tab-btn {
    color: var(--color-text); justify-content: flex-start; width: 100%; text-align: left;
}
.admin-menu-panel .admin-tab-btn:hover { background: var(--color-celeste-light); color: var(--color-primary-dark); }
.admin-menu-panel .admin-tab-btn.active { background: var(--color-celeste-light); color: var(--color-primary-dark); }
.tab-badge {
    background: var(--color-secondary); color: var(--color-primary-dark);
    font-size: 11px; font-weight: 700; border-radius: var(--radius-full);
    min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.admin-user { display: flex; align-items: center; gap: 12px; }
.admin-user-name { color: rgba(255,255,255,0.85); font-size: 13px; }
.admin-topbar .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.admin-topbar .btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---- Main / toolbar ---- */
.admin-main { padding: 32px 24px 64px; }
.admin-tab-panel { animation: fadeUp 0.25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }
.admin-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px; margin: 28px 0 20px;
}
.admin-toolbar h2 { font-size: 24px; }
.admin-toolbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-toolbar-actions .form-control { width: 240px; }

/* ---- Badges de estado ---- */
.status-badge {
    display: inline-block; font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: var(--radius-full); white-space: nowrap;
}
.badge-green { background: rgba(37,211,102,0.15); color: #1a7a43; }
.badge-amber { background: rgba(184,134,11,0.15); color: var(--color-secondary-hover); }
.badge-gray  { background: var(--color-surface-high); color: var(--color-text-muted); }
.badge-blue  { background: rgba(31,78,121,0.1); color: var(--color-primary); }
.row-name { font-weight: 600; color: var(--color-primary); }
.row-sub { font-size: 11px; color: var(--color-text-muted); }
.pin-dot { color: var(--color-secondary); }
.empty-row { text-align: center; color: var(--color-text-muted); padding: 32px; }

/* ---- Formularios en modal ---- */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
.code-area { font-family: ui-monospace, "Courier New", monospace; font-size: 12px; min-height: 120px; }
.photo-uploader { display: flex; gap: 16px; align-items: flex-start; }
.photo-preview {
    width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius-md);
    border: 1px solid var(--color-outline); background: var(--color-surface-low);
}
.photo-uploader-controls { flex: 1; }

/* ---- Modal admin ---- */
.admin-modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(22,58,95,0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.admin-modal {
    background: var(--color-surface); width: 100%; max-width: 680px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
/* Vistas densas (detalle/edición de contrato, cliente, siniestro): más ancho
   para que las tablas y los formularios de dos columnas no queden apretados. */
.admin-modal--wide { max-width: 960px; }
.admin-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid var(--color-surface-high); position: sticky; top: 0; background: var(--color-surface);
}
.admin-modal-header h3 { font-size: 20px; }
.admin-modal-body { padding: 24px; }

/* ---- Condolencias ---- */
.cond-list { display: flex; flex-direction: column; gap: 16px; }
.cond-card {
    background: var(--color-surface); border: 1px solid var(--color-surface-high);
    border-left: 3px solid var(--color-secondary); border-radius: var(--radius-md); padding: 18px 20px;
}
.cond-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.cond-meta { font-size: 12px; color: var(--color-text-muted); margin-left: 6px; }
.cond-msg { font-size: 14px; color: var(--color-text); margin-bottom: 14px; }

/* ---- Plantillas ---- */
.tpl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tpl-card { background: var(--color-surface); border: 1px solid var(--color-surface-high); border-radius: var(--radius-md); padding: 20px; }
.tpl-card-head { margin-bottom: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---- Configuración ---- */
.settings-card { max-width: 720px; padding: 8px 28px; }
.setting-row {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 20px 0; border-bottom: 1px solid var(--color-surface-high);
}
.setting-row:last-of-type { border-bottom: none; }
.setting-help { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; max-width: 420px; }
.setting-input { width: 110px; }
.setting-input-url { width: 100%; max-width: 420px; }
.setting-actions { padding: 20px 0; }
.settings-subheading {
    font-size: 15px; font-weight: 700; color: var(--color-primary);
    margin: 12px 0 2px; padding-top: 16px; border-top: 1px solid var(--color-surface-high);
}

/* Switch (toggle) */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; inset: 0; cursor: pointer; background: var(--color-surface-dim);
    border-radius: var(--radius-full); transition: var(--transition-fast);
}
.slider::before {
    content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: var(--transition-fast);
}
.switch input:checked + .slider { background: var(--color-primary); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch-inline { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

@media (max-width: 768px) {
    .admin-tabs { order: 3; width: 100%; }
    .admin-topbar-inner { height: auto; padding: 12px 0; flex-wrap: wrap; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .admin-toolbar-actions .form-control { width: 100%; }
    .setting-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ==========================================================================
   PÁGINAS PÚBLICAS DE OBITUARIOS (home, listado periódico, detalle)
   ========================================================================== */
.obituaries-cta { text-align: center; margin-top: 40px; }
.obituary-name a { color: inherit; }
.obituary-name a:hover { color: var(--color-primary-light); }

/* Skeletons de carga */
.skel { position: relative; overflow: hidden; background: var(--color-surface-high); border-radius: var(--radius-sm); }
.skel::after {
    content: ''; position: absolute; inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 1.3s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton-card .obituary-img-container.skel { aspect-ratio: 4/3; }
.skel-line { height: 14px; margin: 10px 0; }

/* Migas de pan */
.breadcrumb { font-size: 13px; color: var(--color-text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--color-primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* Detalle de obituario */
.obit-detail-main { max-width: 820px; }
.obit-detail {
    background: var(--color-surface); border: 1px solid var(--color-surface-high);
    border-top: 4px solid var(--color-secondary); border-radius: var(--radius-lg);
    padding: 48px; text-align: center; box-shadow: var(--shadow-sm);
}
.obit-detail h1 { font-size: 34px; margin-bottom: 8px; }
.obit-detail-dates, .obit-dates { color: var(--color-text-muted); font-size: 15px; margin-bottom: 6px; }
/* "En memoria de" sobre el nombre en la plantilla predeterminada (migración 15). */
.obit-kicker { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--color-primary-light); margin-bottom: 4px; }
.obit-qepd { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--color-secondary-hover); margin-bottom: 20px; letter-spacing: 0.1em; }
.obit-detail-photo, .obit-photo img {
    width: 220px; height: 220px; object-fit: cover; border-radius: var(--radius-md);
    margin: 0 auto 24px; display: block; border: 3px solid var(--color-surface-low);
}
.obit-detail .obit-bio, .obit-detail p { font-size: 16px; line-height: 1.8; max-width: 620px; margin: 0 auto 16px; color: var(--color-text); }
.obit-detail-meta { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 24px; font-size: 14px; color: var(--color-text-muted); }
.obit-detail-event { margin-top: 16px; font-size: 14px; color: var(--color-text-muted); }
.obit-detail-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* Condolencias en el detalle */
.obit-condolences { max-width: 720px; margin: 56px auto 0; }
.obit-condolences > h2 { font-size: 26px; margin-bottom: 24px; text-align: center; }
.obit-condolences .condolence-item { margin-bottom: 14px; }
.obit-cond-form {
    margin-top: 32px; background: var(--color-surface-low);
    border: 1px solid var(--color-surface-high); border-radius: var(--radius-lg); padding: 28px;
}
.obit-cond-form h3 { font-size: 20px; margin-bottom: 16px; }

/* Listado estilo periódico */
.obit-paper-masthead { text-align: center; border-bottom: 3px double var(--color-primary); padding-bottom: 20px; margin-bottom: 28px; }
.obit-paper-masthead h1 { font-size: 44px; letter-spacing: 0.02em; }
.obit-paper-masthead p { max-width: 560px; margin: 8px auto 0; }
.obit-paper-search { display: flex; gap: 10px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.obit-paper-search .form-control { max-width: 360px; }
.obit-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 44px; }
.obit-pagination-info { font-size: 14px; color: var(--color-text-muted); }

/* Estilos base de las plantillas de obituario (server-rendered) */
.obit-tpl h1 { font-size: 32px; }
.obit-periodico { font-family: Georgia, 'Times New Roman', serif; }
.obit-periodico hr { border: none; border-top: 1px solid var(--color-outline); margin: 12px auto; max-width: 200px; }
.obit-service { margin-top: 18px; font-size: 14px; color: var(--color-text-muted); }
.obit-cross { font-size: 28px; color: var(--color-secondary); margin-bottom: 8px; }
.obit-celestial .obit-wing {
    width: 60px; height: 60px; margin: 0 auto 12px;
    background: url('logo-horizontal-white.png') center/contain no-repeat;
    filter: brightness(0) saturate(100%) invert(23%) sepia(40%) saturate(900%) hue-rotate(178deg);
}

/* Plantilla "Cinta Conmemorativa" — usa el diseño real de la funeraria como
   imagen de fondo (img/obit-cinta-header.png, recortado de su tarjeta de
   referencia: logo, cinta y cruz — ver
   docs/specs/2026-09-08-tarjetas-obituario.md) en vez de intentar recrear la
   cinta con CSS. Rompe el padding de .obit-detail con márgenes negativos
   para llenar la tarjeta blanca de borde a borde en vez de quedar como una
   caja dentro de otra caja. */
.obit-cinta {
    position: relative;
    margin: -48px -48px 0;
    background-color: #041D31; /* navy exacto de la tarjeta de referencia */
    color: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    text-align: center;
}
.obit-cinta-header {
    width: 100%;
    aspect-ratio: 900 / 745;
    /* Degradado al navy del cuerpo en el borde inferior: sin él se notaba el
       corte entre la imagen y el fondo, y la tarjeta parecía hecha de dos
       imágenes (reportado por el cliente 2026-10-27). */
    background:
        linear-gradient(to bottom, rgba(4, 29, 49, 0) 72%, #041D31 100%),
        url('img/obit-cinta-header.png') center top / cover no-repeat;
}
.obit-cinta-body { position: relative; padding: 20px 40px 44px; }
.obit-cinta .obit-cinta-kicker { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--color-celeste-light); margin-bottom: 2px; position: relative; z-index: 1; }
.obit-cinta h1 { color: #fff; font-size: 30px; margin-bottom: 8px; position: relative; z-index: 1; }
.obit-cinta .obit-qepd { color: #fff; font-size: 28px; position: relative; z-index: 1; }
.obit-cinta .obit-dates { color: rgba(255,255,255,0.78); position: relative; z-index: 1; }
.obit-cinta .obit-photo { position: relative; z-index: 1; }
.obit-cinta .obit-photo img { border-color: rgba(255,255,255,0.35); }

/* Marca de agua del ángel detrás del nombre/fechas, mismo recurso y técnica
   que el hero (mask-image) — la tarjeta de referencia también tiene esta
   marca de agua debajo del texto. */
.obit-cinta-wing {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-color: rgba(255,255,255,0.07);
    -webkit-mask-image: url('img/angel-original-vector.svg');
    mask-image: url('img/angel-original-vector.svg');
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center 85%; mask-position: center 85%;
    -webkit-mask-size: auto 60%; mask-size: auto 60%;
}

/* Plantilla "Cruz de Luz (Católica)" (database/20_plantilla_catolica.sql,
   2026-11-02) — variante de la Cinta: hereda .obit-cinta (navy, textos, sello
   de agua) y cambia solo la cabecera: en vez de la cinta genérica, una cruz
   latina dorada (SVG en la plantilla) sobre un halo y rayos de luz dibujados
   con CSS. Ver docs/specs/2026-11-02-plantillas-obituario-por-credo.md. */
.obit-catolica-header {
    position: relative;
    aspect-ratio: 900 / 640;
    overflow: hidden;
    background:
        radial-gradient(ellipse 46% 52% at 50% 50%, rgba(247, 223, 160, 0.30) 0%, rgba(232, 196, 108, 0.12) 38%, rgba(4, 29, 49, 0) 72%),
        linear-gradient(to bottom, #062843 0%, #041D31 100%);
}
.obit-catolica-rays {
    position: absolute; inset: -20%;
    background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(247, 223, 160, 0.13) 0deg 3deg, rgba(247, 223, 160, 0) 3deg 15deg);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,0.55) 30%, transparent 62%);
    mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,0.55) 30%, transparent 62%);
}
.obit-catolica-header::after { /* fundido al navy del cuerpo, sin costura */
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
    background: linear-gradient(to bottom, rgba(4, 29, 49, 0), #041D31);
}
.obit-catolica-logo {
    position: absolute; top: 6%; left: 6%; width: 28%; aspect-ratio: 929 / 377;
    background: url('logo-horizontal-white.png') left center / contain no-repeat;
    opacity: 0.9; z-index: 1;
}
.obit-catolica-cross {
    position: absolute; left: 50%; top: 52%; z-index: 1;
    height: 62%; width: auto; transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 18px rgba(247, 223, 160, 0.55)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}
.obit-catolica .obit-qepd { font-family: var(--font-display); font-style: italic; }
.obit-catolica .obit-catolica-verse {
    position: relative; z-index: 1;
    max-width: 440px; margin: 22px auto 0; padding-top: 18px;
    border-top: 1px solid rgba(242, 197, 114, 0.45);
    font-family: var(--font-display); font-style: italic; font-size: 17px; line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}
.obit-catolica-verse span { display: block; margin-top: 6px; font-family: var(--font-sans); font-style: normal; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #F2C572; }

/* Plantilla "Esquela Familiar" — adaptación del formato tradicional blanco
   con cruz e invitación al velatorio; tipografía sans-serif en negrita para
   el nombre, igual que la tarjeta de referencia (no serif). */
.obit-esquela { font-family: var(--font-sans); }
.obit-esquela-cross { font-size: 30px; color: #0B2A54; margin-bottom: 10px; }
.obit-esquela h1 { font-family: var(--font-sans); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 16px; }
.obit-esquela-lead { font-size: 15px; color: var(--color-text-muted); max-width: 480px; margin: 0 auto 4px; }
.obit-esquela .obit-photo { margin: 20px auto; }
.obit-esquela-invite { font-size: 14px; line-height: 1.9; margin-top: 12px; color: var(--color-text-muted); }
.obit-esquela-invite strong { color: #0B2A54; font-weight: 700; font-size: 17px; }

@media (max-width: 768px) {
    .obit-detail { padding: 28px 20px; }
    .obit-detail h1 { font-size: 26px; }
    .obit-paper-masthead h1 { font-size: 32px; }
    .obit-cinta { margin: -28px -20px 0; }
    .obit-cinta-body { padding: 16px 24px 32px; }
    .obit-cinta-wing { -webkit-mask-size: auto 50%; mask-size: auto 50%; }
}

/* ==========================================================================
   DIRECTORIO MÉDICO
   ========================================================================== */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.doctor-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-high);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}
.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 134, 11, 0.3);
}
.doctor-img-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-surface-high);
    display: block;
}
.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.doctor-card:hover .doctor-img { transform: scale(1.03); }
.doctor-content { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.doctor-specialty {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--color-primary-light); margin-bottom: 6px;
}
.doctor-name { font-size: 20px; margin-bottom: 10px; }
.doctor-details-list { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; color: var(--color-text-muted); flex-grow: 1; }
.doctor-actions { margin-top: auto; }

/* Detalle del médico */
.doctor-detail { text-align: left; }
.doctor-detail-head { display: flex; gap: 24px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.doctor-detail-photo {
    width: 140px; height: 140px; object-fit: cover; border-radius: var(--radius-lg);
    background-color: var(--color-surface-high); flex-shrink: 0;
}
.doctor-detail-head h1 { font-size: 30px; margin: 8px 0 4px; }
.doctor-detail-loc { color: var(--color-text-muted); font-size: 15px; }
.doctor-detail-bio { font-size: 16px; line-height: 1.8; color: var(--color-text); margin-bottom: 20px; }
.doctor-detail-contact { list-style: none; padding: 0; margin: 0 0 8px; font-size: 15px; }
.doctor-detail-contact li { padding: 6px 0; border-bottom: 1px solid var(--color-surface-high); }

/* ==========================================================================
   RECURSOS DE LECTURA
   ========================================================================== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}
.resource-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-high);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}
.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 134, 11, 0.3);
}
.resource-img-container { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background-color: var(--color-surface-high); display: block; }
.resource-img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.resource-card:hover .resource-img { transform: scale(1.03); }
.resource-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.resource-category {
    display: inline-block; align-self: flex-start;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--color-primary-light); background: var(--color-celeste-light);
    padding: 3px 10px; border-radius: var(--radius-full); margin-bottom: 10px;
}
.resource-title { font-size: 21px; margin-bottom: 8px; }
.resource-date { font-size: 12px; color: var(--color-text-muted); margin-bottom: 10px; }
.resource-excerpt { font-size: 15px; line-height: 1.7; color: var(--color-text-muted); margin-bottom: 16px; flex-grow: 1; }
.resource-actions { margin-top: auto; }

/* Detalle del recurso */
.resource-detail { text-align: left; }
.resource-detail-body p { max-width: none; margin: 0 0 18px; text-align: left; font-size: 17px; line-height: 1.85; }
.resource-detail .resource-category { margin-bottom: 14px; }
.resource-detail-title { font-size: 34px; margin-bottom: 8px; }
.resource-detail-date { color: var(--color-text-muted); font-size: 14px; margin-bottom: 20px; }
.resource-detail-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 24px; }
.resource-detail-body { font-size: 17px; line-height: 1.85; color: var(--color-text); }
.resource-detail-body p { margin-bottom: 18px; }
.resource-detail-body h2 { font-size: 24px; margin: 28px 0 12px; }
.resource-detail-body h3 { font-size: 20px; margin: 22px 0 10px; }
.resource-detail-body ul, .resource-detail-body ol { margin: 0 0 18px 24px; }
.resource-detail-body li { margin-bottom: 6px; }
.resource-detail-body a { color: var(--color-primary-light); text-decoration: underline; }
.resource-detail-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); }

@media (max-width: 768px) {
    .doctor-detail-head { flex-direction: column; text-align: center; }
    .resource-detail-title { font-size: 26px; }
}

/* ==========================================================================
   PÁGINAS DE SERVICIOS Y PLANES (detalle + hubs)
   ========================================================================== */
/* Tarjetas de servicio de la portada como enlaces */
.service-card { text-decoration: none; color: inherit; }
.service-card-more { display: inline-block; margin-top: 14px; color: var(--color-primary-light); font-weight: 600; font-size: 14px; }
.section-cta { text-align: center; margin-top: 36px; }

/* Detalle de servicio / plan */
.service-detail-body { max-width: 860px; margin: 0 auto; }
.service-hero-img { width: 100%; height: auto; border-radius: var(--radius-lg); margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.service-detail h1 { font-size: 34px; margin-bottom: 16px; }
.service-detail h2 { font-size: 23px; margin: 32px 0 12px; }
.service-lead { font-size: 18px; line-height: 1.8; color: var(--color-text); margin-bottom: 8px; }
.service-detail p { font-size: 16px; line-height: 1.8; color: var(--color-text); margin-bottom: 14px; }
.service-list { margin: 0 0 16px 4px; padding: 0; list-style: none; }
.service-list li { position: relative; padding: 6px 0 6px 30px; font-size: 16px; border-bottom: 1px solid var(--color-surface-high); }
.service-list li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--color-secondary); font-weight: 700; }
.inline-badge { display: inline-block; vertical-align: middle; background: var(--color-secondary); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-full); margin-left: 8px; }

/* Precio en vivo desde Prevision-Funeraria (Fase A de la migración, ver
   docs/specs/2026-08-28-migracion-a-prevision-funeraria.md). Ausente por
   completo si la integración no está habilitada o el plan no tiene precio. */
.plan-price-badge {
    display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
    background: var(--color-surface); border: 1px solid var(--color-surface-high);
    border-radius: var(--radius-lg); padding: 14px 20px; margin: 4px 0 20px;
}
.plan-price-amount { font-size: 28px; font-weight: 700; color: var(--color-primary-dark); }
.plan-price-label { font-size: 14px; color: var(--color-text-muted); }
.plan-price-note { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--color-text-muted); }
.plan-price-source { font-style: italic; }

.service-related { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--color-surface-high); }
.service-related h3 { font-size: 18px; margin-bottom: 10px; }
.service-related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.service-related a { color: var(--color-primary-light); font-weight: 600; }

/* Banda CTA (llamar + WhatsApp) */
.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff; border-radius: var(--radius-lg); padding: 32px 36px; margin: 40px 0;
}
.cta-band-text h2 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.cta-band-text p { color: var(--color-celeste-light); margin: 0; font-size: 15px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* Fase C de la migración a Prevision-Funeraria: servicio marcado es_emergencia
   (ver partials/cta_pago_electronico.php). */
.cta-band-emergencia { background: linear-gradient(135deg, var(--color-error), var(--color-error-hover)); }
.btn-lg { padding: 14px 22px; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.btn-whatsapp { background: #25D366; color: #fff; border: none; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }

/* Hub de servicios */
.services-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.service-link-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: var(--color-surface); border: 1px solid var(--color-surface-high);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-normal);
}
.service-link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(184,134,11,0.3); }
.service-link-card img { width: 100%; height: auto; display: block; }
.service-link-card-body { padding: 22px; }
.service-link-card-body h2 { font-size: 20px; margin-bottom: 8px; }
.service-link-card-body p { font-size: 15px; color: var(--color-text-muted); margin-bottom: 12px; }
.service-link-more { color: var(--color-primary-light); font-weight: 600; font-size: 14px; }

/* Hub de planes */
.plans-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.plan-detail-card {
    position: relative; background: var(--color-surface); border: 1px solid var(--color-surface-high);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.plan-detail-card.plan-featured { border-color: var(--color-secondary); box-shadow: 0 8px 28px rgba(184,134,11,0.18); }
.plan-detail-card img { width: 100%; height: auto; display: block; }
.plan-detail-card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.plan-detail-card .plan-cta { margin-top: auto; }

@media (max-width: 768px) {
    .service-detail h1 { font-size: 26px; }
    .cta-band { padding: 24px; text-align: center; justify-content: center; }
    .cta-band-actions { justify-content: center; width: 100%; }
}

/* ==========================================================================
   MÓDULO DE PREVISIÓN (panel de administración)
   ========================================================================== */
.badge-red { background: rgba(200, 45, 45, 0.12); color: #a03030; }

.stat-sub { display: block; font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }
.stat-card-action .btn { margin-top: 8px; }

.prev-subnav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 18px 0 10px;
    padding-bottom: 14px; border-bottom: 1px solid var(--color-border); }
.prev-subnav-group { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.prev-subnav-label { flex-basis: 100%; font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--color-text-muted); padding-left: 2px; margin-bottom: 2px; }
.prev-subpanel { margin-top: 10px; }
.prev-select { max-width: 220px; }
.prev-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--color-text-muted); white-space: nowrap; }

.prev-pager { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-top: 12px; }
.prev-pager-info { font-size: 13px; color: var(--color-text-muted); }

.prev-inline { display: flex; gap: 8px; }
.prev-inline select { max-width: 90px; }

.prev-details { margin: 10px 0; border: 1px solid var(--color-border, #e3e3e3); border-radius: 8px; padding: 8px 12px; }
.prev-details summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.prev-details[open] summary { margin-bottom: 10px; }

.prev-detail .prev-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; margin-bottom: 12px; }
.prev-detail .prev-kv > div { font-size: 14px; }
.prev-detail .prev-kv span { display: block; font-size: 12px; color: var(--color-text-muted); }

.prev-h3 { margin: 24px 0 10px; }
.prev-h4 { margin: 18px 0 8px; font-size: 15px; }

.admin-table-compact th, .admin-table-compact td { padding: 8px 10px; font-size: 13px; }
.prev-scroll { max-height: 280px; overflow-y: auto; }
.prev-row-vencida td { background: rgba(200, 45, 45, 0.05); }

.prev-actions { margin: 4px 0 14px; flex-wrap: wrap; }
.prev-actions .btn { flex: 0 0 auto; }

.prev-import-result { margin-top: 16px; padding: 16px 20px; }
.prev-error-text { color: #a03030; font-weight: 600; }
.prev-error-list { margin: 10px 0 0 18px; font-size: 13px; color: #a03030; max-height: 220px; overflow-y: auto; }

/* ==========================================================================
   PREVISIÓN — Consola rediseñada (layout limpio tipo autogestión)
   Todo scopeado bajo .prev-console para NO afectar otras pestañas del panel
   (obituarios, config, usuarios comparten .stat-card, .admin-table, .filter-btn).
   No cambia la lógica JS: se conservan #pvSubNav, .filter-btn[data-sub] y
   los .prev-subpanel con sus ids #pvSub-*.
   ========================================================================== */
/* KPIs como cabecera compacta con jerarquía + acento semántico */
.prev-console .dashboard-stats { grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 14px; margin-bottom: 24px; }
.prev-console .stat-card { position: relative; padding: 16px 18px; border: 1px solid var(--color-surface-high); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); gap: 2px; overflow: hidden; }
.prev-console .stat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--color-celeste); }
.prev-console .stat-ico { position: absolute; top: 14px; right: 14px; color: var(--color-celeste); opacity: 0.9; }
.prev-console .stat-ico svg { width: 20px; height: 20px; display: block; }
.prev-console .stat-label { font-size: 11px; letter-spacing: 0.05em; }
.prev-console .stat-value { font-size: 28px; line-height: 1.05; margin-top: 6px; }
.prev-console .stat-sub { margin-top: 2px; }
.prev-console .stat-card.is-danger::before { background: var(--color-error); }
.prev-console .stat-card.is-danger .stat-value,
.prev-console .stat-card.is-danger .stat-ico { color: var(--color-error); }
.prev-console .stat-card.is-success::before { background: #1a7a43; }
.prev-console .stat-card.is-success .stat-value,
.prev-console .stat-card.is-success .stat-ico { color: #1a7a43; }
.prev-console .stat-card-action { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.prev-console .stat-card-action > div { display: flex; flex-direction: column; }
.prev-console .stat-card-action .btn { margin: 0; flex: 0 0 auto; }

/* Layout de dos columnas: barra lateral + contenido */
.prev-console-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; align-items: start; }

/* Barra lateral de navegación (reusa #pvSubNav / .filter-btn) */
.prev-console-nav { position: sticky; top: 84px; background: var(--color-surface); border: 1px solid var(--color-surface-high); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 10px; }
.prev-console-nav #pvSubNav { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; border: none; }
.prev-console-nav .prev-subnav-group { flex-direction: column; gap: 2px; padding: 6px 0; }
.prev-console-nav .prev-subnav-group + .prev-subnav-group { border-top: 1px solid var(--color-surface-high); margin-top: 4px; }
.prev-console-nav .prev-subnav-label { flex-basis: auto; padding: 4px 10px 2px; margin-bottom: 2px; }
.prev-console-nav #pvSubNav .filter-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; justify-content: flex-start; padding: 9px 11px; border: none; border-radius: var(--radius-md); background: transparent; color: var(--color-text-muted); font-size: 13.5px; font-weight: 500; position: relative; }
.prev-console-nav #pvSubNav .filter-btn svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: 0.75; }
.prev-console-nav #pvSubNav .filter-btn:hover { background: var(--color-surface-low); color: var(--color-primary); }
.prev-console-nav #pvSubNav .filter-btn.active { background: var(--color-celeste-light); color: var(--color-primary-dark); font-weight: 600; }
.prev-console-nav #pvSubNav .filter-btn.active svg { opacity: 1; }
.prev-console-nav #pvSubNav .filter-btn.active::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--color-primary); }

/* Columna de contenido: cabecera de sección + tablas más limpias */
.prev-console-content { min-width: 0; }
.prev-console-content .admin-toolbar { margin-top: 4px; }
.prev-console-content .admin-toolbar h2 { font-size: 20px; color: var(--color-primary); }
.prev-console .table-responsive { border: 1px solid var(--color-surface-high); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.prev-console .admin-table th { background: var(--color-surface-low); text-transform: none; border-bottom: 1px solid var(--color-surface-high); }
.prev-console .admin-table th, .prev-console .admin-table td { padding: 13px 16px; }
.prev-console .admin-table tbody tr:last-child td { border-bottom: none; }
.prev-console .prev-pager { margin-top: 14px; }
.prev-console .filter-group { margin-bottom: 16px; }

/* Responsive: la barra lateral se convierte en una tira de píldoras arriba */
@media (max-width: 900px) {
    .prev-console-body { grid-template-columns: 1fr; }
    .prev-console-nav { position: static; padding: 8px; }
    .prev-console-nav #pvSubNav { flex-direction: row; flex-wrap: wrap; }
    .prev-console-nav .prev-subnav-group { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 4px 0; }
    .prev-console-nav .prev-subnav-group + .prev-subnav-group { border-top: none; margin-top: 0; }
    .prev-console-nav .prev-subnav-label { flex-basis: 100%; }
    .prev-console-nav #pvSubNav .filter-btn { width: auto; }
    .prev-console-nav #pvSubNav .filter-btn.active::before { display: none; }
}

/* Previsión v2: siniestros y cobranza */
.prev-checks { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13px; }
.prev-checks li { padding: 3px 0; }
.prev-checks-mini { margin: 0 0 14px 28px; font-size: 12px; }
.prev-check-ok  { color: #1a7a43; }
.prev-check-bad { color: #a03030; }
.prev-radio-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--color-border, #e3e3e3); border-radius: 8px; margin-bottom: 6px; cursor: pointer; }
.prev-radio-row:hover { background: var(--color-surface-high, #f5f5f5); }
.prev-radio-row span { flex: 1; font-size: 14px; }

/* ==========================================================================
   TABLA COMPARATIVA DE PLANES (planes/index.php#comparar, 2026-10-27)
   ========================================================================== */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.plans-compare { margin: 56px 0 8px; scroll-margin-top: 96px; }
.plans-compare h2 { text-align: center; margin-bottom: 24px; }
/* En móvil la tabla se desplaza dentro de su caja, nunca la página entera. */
.plans-compare-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-surface-high); border-radius: var(--radius-lg);
    background: var(--color-surface); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}
.plans-compare-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; }
.plans-compare-table th,
.plans-compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--color-surface-high); text-align: center; vertical-align: middle; }
.plans-compare-table thead th {
    font-family: var(--font-display); font-size: 17px; color: var(--color-primary);
    background: var(--color-surface-low); vertical-align: bottom;
}
.plans-compare-sub { display: block; font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--color-text-muted); margin-top: 4px; }
.plans-compare-table tbody th { text-align: left; font-weight: 600; color: var(--color-text); width: 24%; }
.plans-compare-table tbody tr:nth-child(even) th,
.plans-compare-table tbody tr:nth-child(even) td { background: rgba(238, 244, 251, 0.45); }
.plans-compare-table .is-featured { background: rgba(184, 134, 11, 0.07) !important; }
.plans-compare-table thead th.is-featured { box-shadow: inset 0 3px 0 var(--color-secondary); }
.plans-compare-table tfoot td { border-bottom: none; padding-top: 18px; padding-bottom: 18px; }
.cmp-yes { color: var(--color-primary); font-size: 18px; font-weight: 700; }
.cmp-no { color: var(--color-outline); font-size: 18px; }
.cmp-text { font-size: 13px; color: var(--color-text-muted); }
.plans-compare-note { text-align: center; font-size: 13px; color: var(--color-text-muted); margin-top: 12px; }

/* ==========================================================================
   SECCIÓN CONTACTO DE LA PORTADA (index.php#contacto, 2026-10-27)
   Sin formulario: solo llamada directa o WhatsApp.
   ========================================================================== */
.contact-section { background: var(--color-surface-low); scroll-margin-top: 80px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.contact-card {
    background: var(--color-surface); border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--color-primary);
}
.contact-card-urgent { border-top-color: var(--color-error); }
.contact-card h3 { font-size: 22px; margin-bottom: 6px; }
.contact-card > p { color: var(--color-text-muted); margin-bottom: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions .btn { flex: 1 1 200px; justify-content: center; }
.contact-alt { font-size: 14px; color: var(--color-text-muted); margin-top: 14px; }
.contact-alt a, .contact-info a { color: var(--color-primary); font-weight: 600; }
.contact-info {
    list-style: none; max-width: 960px; margin: 28px auto 0; padding: 0;
    display: grid; gap: 8px; font-size: 15px; color: var(--color-text-muted); text-align: center;
}

/* ==========================================================================
   PANEL: ENLACES PARA REDES DE UN OBITUARIO (admin.js openSocialLinks)
   ========================================================================== */
.social-link-row { padding: 12px 0; border-bottom: 1px solid var(--color-surface-high); }
.social-link-copy { display: flex; gap: 8px; margin-top: 6px; }
.social-link-copy .form-control { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.social-warning {
    background: #fff4e5; border-left: 4px solid var(--color-secondary);
    padding: 10px 14px; border-radius: var(--radius-md, 8px); margin-bottom: 8px; font-size: 14px;
}
.social-og-preview { display: block; width: 100%; max-width: 600px; height: auto; border-radius: var(--radius-md, 8px); box-shadow: var(--shadow-sm); margin-top: 8px; }
.social-stats-table { margin-top: 8px; }
.social-stats-total td { font-weight: 700; }

/* ==========================================================================
   PANEL: MANUAL DE USUARIO (admin-manual.js, pestaña "Manual")
   ========================================================================== */
.admin-topbar .admin-manual-btn.active { background: rgba(255,255,255,0.18); }
.manual-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.manual-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.manual-toc { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 170px); overflow-y: auto; }
.manual-toc a {
    display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 8px;
    color: var(--color-text); font-size: 14px; text-decoration: none; line-height: 1.35;
}
.manual-toc a:hover { background: var(--color-surface-low); }
.manual-toc a.active { background: var(--color-primary); color: #fff; }
.manual-toc a[hidden] { display: none; }
.manual-toc-n { font-weight: 700; min-width: 18px; color: inherit; opacity: 0.7; }
.manual-toc-admin { color: var(--color-secondary); font-size: 12px; }
.manual-toc a.active .manual-toc-admin { color: #f7bd48; }
.manual-head h2 { margin-bottom: 4px; }
.manual-head p { color: var(--color-text-muted); margin-bottom: 8px; }
.manual-empty { padding: 24px; background: var(--color-surface); border-radius: var(--radius-lg); text-align: center; color: var(--color-text-muted); }
.manual-ch {
    background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    padding: 28px 32px; margin-top: 24px; scroll-margin-top: 90px;
}
.manual-ch[hidden] { display: none; }
.manual-ch h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 22px; margin-bottom: 8px; }
.manual-ch-n {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 15px; font-family: var(--font-sans);
}
.manual-badge { font-family: var(--font-sans); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.manual-badge-admin { background: rgba(184,134,11,0.14); color: var(--color-secondary-hover); }
.manual-intro { color: var(--color-text-muted); margin-bottom: 16px; }
.manual-steps { counter-reset: paso; list-style: none; padding: 0; margin: 0; }
.manual-step { counter-increment: paso; position: relative; padding: 0 0 22px 44px; }
.manual-step[hidden] { display: none; }
.manual-step::before {
    content: counter(paso); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--color-primary); color: var(--color-primary); font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}
.manual-step::after { content: ''; position: absolute; left: 13px; top: 32px; bottom: 6px; width: 2px; background: var(--color-surface-high); }
.manual-step:last-child::after { display: none; }
.manual-step p { margin: 3px 0 10px; color: var(--color-text); line-height: 1.6; }
.manual-step code, .manual-tips code { background: var(--color-surface-low); padding: 1px 6px; border-radius: 4px; font-size: 0.88em; }
.manual-step figure { margin: 4px 0 0; }
.manual-zoom {
    display: block; padding: 0; border: 1px solid var(--color-surface-high); border-radius: 10px; background: #fff;
    cursor: zoom-in; overflow: hidden; max-width: 100%; box-shadow: var(--shadow-sm);
}
.manual-zoom:hover, .manual-zoom:focus-visible { border-color: var(--color-primary-light); outline: none; box-shadow: 0 0 0 3px rgba(47,109,179,0.2); }
.manual-zoom img { display: block; max-width: 100%; max-height: 460px; width: auto; height: auto; }
.manual-step figcaption { font-size: 12px; color: var(--color-text-muted); margin-top: 6px; }
.manual-tips {
    margin-top: 6px; padding: 14px 18px; background: var(--color-surface-low);
    border-left: 4px solid var(--color-primary-light); border-radius: 8px; font-size: 14px;
}
.manual-tips ul { margin: 6px 0 0; padding-left: 18px; }
.manual-tips li { margin: 4px 0; color: var(--color-text-muted); }
.manual-lightbox {
    position: fixed; inset: 0; z-index: 3000; background: rgba(10,20,35,0.88);
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; cursor: zoom-out;
}
.manual-lightbox[hidden] { display: none; }
.manual-lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); cursor: default; }
.manual-lightbox-cap { color: #fff; margin-top: 12px; font-size: 14px; }
.manual-lightbox-close {
    position: absolute; top: 14px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.manual-lightbox-close:hover { background: rgba(255,255,255,0.28); }
@media (max-width: 900px) {
    .manual-layout { grid-template-columns: 1fr; gap: 16px; }
    .manual-side { position: static; }
    .manual-toc { max-height: none; flex-direction: row; flex-wrap: wrap; }
    .manual-toc a { background: var(--color-surface); }
    .manual-ch { padding: 20px 16px; }
    .manual-step { padding-left: 38px; }
}

/* ==========================================================================
   NOSOTROS (línea de tiempo) Y TESTIMONIOS (partials/testimonios.php)
   ========================================================================== */
.about-timeline { list-style: none; padding: 0; margin: 8px 0 32px; position: relative; }
.about-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--color-celeste-light); }
.about-timeline li { position: relative; padding: 0 0 24px 36px; }
.about-timeline li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-surface); border: 3px solid var(--color-secondary); }
.about-timeline-year { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--color-secondary); margin-bottom: 2px; }
.about-timeline h3 { font-size: 18px; margin: 0 0 6px; color: var(--color-primary); }
.about-timeline p { margin: 0; line-height: 1.75; }

.testimonials-section { background-color: var(--color-surface-low); }
/* Carrusel (2026-11-02): una sola fila con scroll-snap; 3 tarjetas visibles en
   escritorio, 2 en tableta, 1 en celular. Sin JS se desliza con el dedo o la
   barra; app.js agrega flechas, puntos y avance automático. */
.testimonials-carousel { position: relative; }
.testimonials-track {
    display: flex; gap: 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 6px 4px 18px; margin: 0 -4px;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonials-track:focus-visible { outline: 2px solid var(--color-celeste); outline-offset: 4px; border-radius: var(--radius-lg); }
.testimonials-track .testimonial-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.testimonial-card blockquote p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.carousel-btn {
    position: absolute; top: calc(50% - 30px); z-index: 2;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-surface-high);
    background: var(--color-surface); color: var(--color-primary); box-shadow: var(--shadow-md);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    transition: var(--transition-normal);
}
.carousel-btn:hover { background: var(--color-primary); color: #fff; }
.carousel-btn:disabled { opacity: 0.35; cursor: default; background: var(--color-surface); color: var(--color-primary); }
.carousel-btn[hidden], .carousel-dots[hidden] { display: none; }
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.carousel-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: none; background: var(--color-outline); opacity: 0.5; cursor: pointer; transition: var(--transition-normal); }
.carousel-dot[aria-current="true"] { background: var(--color-secondary); opacity: 1; width: 26px; border-radius: 5px; }
@media (max-width: 1024px) { .testimonials-track .testimonial-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 680px) {
    .testimonials-track .testimonial-card { flex-basis: 88%; }
    .carousel-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { .testimonials-track { scroll-behavior: auto; } }
.testimonial-card { margin: 0; background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 28px 26px 22px; display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--color-secondary); }
.testimonial-mark { width: 32px; height: 24px; fill: var(--color-celeste); }
.testimonial-card blockquote { margin: 0; flex: 1; }
.testimonial-card blockquote p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 17px; line-height: 1.65; color: var(--color-text); }
.testimonial-card figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.testimonial-card figcaption strong { color: var(--color-primary); }
.testimonial-card figcaption span { color: var(--color-text-muted); }

/* ==========================================================================
   MENÚ DESPLEGABLE (app.js, botón .mobile-menu-btn). La cantidad de enlaces
   depende de las secciones encendidas (hasta 10), así que app.js mide si caben
   en una línea y, si no, pone .nav-compact y se recogen en un panel bajo la
   cabecera. En celulares se recoge siempre (también sin JS medido).
   ========================================================================== */
.header.nav-compact .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.header.nav-compact nav { position: absolute; top: 100%; left: 0; right: 0; }
.header.nav-compact .nav-links {
    display: none;
    flex-direction: column; gap: 0;
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-lg);
    padding: 8px max(24px, calc((100vw - 1200px) / 2 + 24px)) 16px;
    max-height: calc(100vh - 80px); overflow-y: auto;
}
.header.nav-compact.nav-open .nav-links { display: flex; }
.header.nav-compact .nav-links a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.header.nav-compact .nav-links a::after { display: none; }
@media (max-width: 768px) {
    .header .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
    .header nav { position: absolute; top: 100%; left: 0; right: 0; }
    .header .nav-links {
        display: none;
        flex-direction: column; gap: 0;
        background: var(--color-primary-dark);
        box-shadow: var(--shadow-lg);
        padding: 8px max(24px, calc((100vw - 1200px) / 2 + 24px)) 16px;
        max-height: calc(100vh - 80px); overflow-y: auto;
    }
    .header.nav-open .nav-links { display: flex; }
    .header .nav-links a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .header .nav-links a::after { display: none; }
}
