/* static\css\style.css
==========================================================
   CSS MEDICINA DE DIOS - WEB ESTÁTICA
   Filosofía: Mobile First con Posicionamiento Absoluto
   ========================================================= */

:root {
    --color-primary-bg: #ffffffee; 
    --color-intro-bg: #000000;   
    --color-text: #000000; 
    --color-stripe: #63d3ff;     
    --color-button-base: #63d3ff; 
    --color-button-pastel: #EBC2D1; 
    --font-heading: 'Great Vibes', cursive; 
    --font-body: 'Lato', sans-serif;       
}

/* El escudo global anti-desbordes */
html, body {
    max-width: 100vw;
    overflow-x: hidden; /* Esto mata definitivamente el espacio blanco derecho */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-wrap: break-word; /* Si una palabra es gigante, la corta para que no rompa el diseño */
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    
    background-color: var(--color-intro-bg);
    animation: fadeBlackToWhite 3s forwards;
    animation-delay: 0.5s; 
}

/* ==========================================================
   Contenedor Principal
   ========================================================= */
.wrapper {
    position: relative; 
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ==========================================================
   Título (Animación de deslizamiento y fade)
   ========================================================= */
.title-container {
    position: absolute;
    top: 7%; 
    left: 10%; 
    width: 60%; 
    text-align: left;
    z-index: 10;
}

.calligraphic-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-intro-bg); 
    opacity: 0;
    /* Nueva animación: desliza desde la izquierda */
    animation: slideAndFadeInTitle 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 2s; 
}

/* ==========================================================
   Franja Magenta
   ========================================================= */
.stripe-bg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 33vh;
    background-color: var(--color-stripe);
    transform: translateY(-50%); 
    z-index: 1; 
    opacity: 0; 
    animation: fadeInElement 3s forwards;
    animation-delay: 2s; 
}

/* ==========================================================
   Imagen (Lado derecho, fondo transparente)
   ========================================================= */
.image-container {
    position: absolute;
    right: 5%; 
    bottom: 5%;
    width: 35%; 
    height: 85vh; 
    z-index: 5; 
    
    display: flex;
    align-items: flex-end; 
    justify-content: flex-end;
    
    opacity: 0; 
    animation: fadeInElement 2s forwards;
    animation-delay: 1.5s;
}

#virgin-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    
    /* 1. SUAVIZADO DE BORDES (Técnica de enmascarado) */
    /* Crea un desvanecimiento radial: 100% visible en el centro, transparente en los bordes */
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 70%, transparent 100%);
    
    /* 2. BORDES REDONDEADOS (Respaldo) */
    border-radius: 25px;

    /* (Opcional) Puedes mantener un shadow súper suave, pero si la imagen tiene fondo, 
       es mejor quitarlo para que la máscara haga todo el trabajo de fusión */
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15)); 
}

/* ==========================================================
   Botón Inicio 
   ========================================================= */
.start-button {
    position: absolute;
    top: 50%; 
    left: 10%; 
    transform: translateY(-50%);
    z-index: 10;
    
    display: inline-block;
    padding: 0.8rem 3rem;
    background-color: var(--color-button-pastel);
    color: var(--color-button-base); 
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50px; 
    border: 2px solid transparent;
    transition: all 0.3s ease;
    
    opacity: 0; 
    animation: fadeInElement 3s forwards;
    animation-delay: 2.5s; 
}

.start-button:hover {
    background-color: var(--color-primary-bg);
    border-color: var(--color-button-base);
    transform: translateY(-50%) scale(1.05); 
}
/* ==========================================================
   SUBTÍTULO DEL INDEX (La frase nueva)
   ========================================================= */
.index-subtitle {
    position: absolute;
    bottom: 12%; /* Se ubica en la franja blanca de abajo */
    left: 10%;
    width: 40%; /* Limitamos el ancho para que no toque la imagen */
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #eddedef5; /* Un gris oscuro elegante para contrastar con el fondo blanco */
    z-index: 10;
    opacity: 0;
    animation: fadeInElement 3s forwards;
    animation-delay: 3s; /* Aparece al final de toda la secuencia */
    line-height: 1.2;
}
/* ==========================================================
   Keyframes (Animaciones)
   ========================================================= */

@keyframes fadeBlackToWhite {
    0% { background-color: var(--color-intro-bg); }
    100% { background-color: var(--color-primary-bg); }
}

/* Acá está la animación que te faltaba y hacía invisible las cosas */
@keyframes fadeInElement {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Animación mejorada para el título */
@keyframes slideAndFadeInTitle {
    0% {
        opacity: 0;
        transform: translateX(-50px); /* Arranca desplazado a la izquierda */
        color: var(--color-intro-bg); 
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* Vuelve a su lugar natural */
        color: var(--color-text); 
    }
}
/* ==========================================================
   ESTILOS PARA EL HOME (Agregados al final)
   ========================================================= */

/* Reset para el body del home (desactiva las animaciones del index) */
.home-body {
    background-color: var(--color-primary-bg);
    animation: none; /* Quitamos la animación de fondo */
    overflow-y: auto; /* Permitimos scroll vertical */
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--color-stripe); /* Celeste #63d3ff */
    color: #ffffff; /* Texto blanco en el celeste */
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ==========================================================
   MARCA Y LOGO (HEADER)
   ========================================================= */
.brand-link-header {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px; /* Espaciado perfecto entre el logo y el texto */
    color: inherit; /* Hereda el dorado o blanco según corresponda */
}

.brand-logo-img {
    max-height: 45px;
    width: auto;
    object-fit: contain; /* Evita que el logo se deforme */
    border-radius: 4px; /* Suaviza los bordes si el logo es cuadrado */
}

.brand-text-name {
    /* Si necesitas que el texto se comporte diferente al logo en celulares, lo controlas desde aquí */
    display: inline-block;
}

.small-logo {
    font-size: 2rem;
    color: #ffffff;
    animation: none;
    opacity: 1;
}

/* Hamburguesa */
.hamburger {
    display: block;
    cursor: pointer;
    z-index: 101;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Menú Lateral (Mobile First) */
.nav-menu {
    position: fixed;
    top: 0;
    left: -100%; /* Oculto a la izquierda */
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--color-primary-bg);
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: left 0.4s ease;
    overflow-y: auto;
    z-index: 100;
    padding-top: 5rem;
}

.nav-menu.active {
    left: 0; /* Aparece en pantalla */
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-list li {
    border-bottom: 1px solid #eee;
}

.nav-list a {
    display: block;
    padding: 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
}

.nav-list a:hover {
    background-color: var(--color-button-pastel);
    color: var(--color-stripe);
}
/* Submenús Mejorados con Contraste y Corrección de Posición */
.has-submenu {
    position: relative; /* CLAVE para que el submenú absoluto se alinee aquí */
}
/* ==========================================================
   SUBMENÚS - INDICADOR VISUAL (FLECHA)
   ========================================================= */
/* Inyecta una flecha automáticamente en los enlaces que son padres */
.has-submenu > a::after {
    content: ' \25BE'; /* FIX: Usamos el escape Hexadecimal de CSS para evitar que Cloudflare corrompa el símbolo */
    font-size: 0.9em;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.3s ease; /* Transición suave para la rotación */
    vertical-align: middle;
}

/* Efecto de UX Avanzado en PC (Hover) */
@media screen and (min-width: 1024px) {
    /* Rota la flecha hacia arriba cuando el menú se despliega */
    .has-submenu:hover > a::after {
        transform: rotate(180deg);
    }
}

/* Submenús Mejorados con Contraste */
.submenu {
    display: none; /* Oculto por defecto */
    list-style: none;
    background-color: #00476b; /* Azul marino profundo para contrastar con el celeste */
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.submenu.active {
    display: block; /* Se muestra con JS en mobile */
}

.submenu a {
    padding-left: 2rem;
    font-weight: 400;
    font-size: 0.9rem;
    color: #ffffff; /* Texto blanco para legibilidad */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.submenu a:hover {
    background-color: #003652; /* Un azul aún más oscuro al pasar el mouse */
    color: var(--color-stripe); /* El texto se vuelve celeste al hacer hover */
}

/* --- Contenedor Principal y Formulario --- */
.home-container {
    padding: 2rem 5%;
    min-height: 80vh;
}

.section-title {
    color: var(--color-stripe);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}
.section-title-2 {
    color: var(--color-stripe);
}

.form-container {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
}

.submit-button {
    background-color: var(--color-button-base);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
}
.submit-button:hover { background-color: #197490; }


/* ==========================================================
   DESKTOP (Pantallas grandes)
   ========================================================= */
@media screen and (min-width: 1024px) {
    /* Aplicamos el margen del 16.5% a los costados */
    .home-container {
        padding: 2rem 16.5%; 
    }

    /* Ocultamos la hamburguesa */
    .hamburger { display: none; }

    /* Adaptamos el menú para desktop (Horizontal) */
    .nav-menu {
        position: relative;
        left: 0;
        width: 100%;
        max-width: none;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding-top: 0;
        display: flex;
        justify-content: flex-end;
        overflow: visible; /* Importante para que los dropdowns se vean */
    }

    .nav-list {
        display: flex;
        flex-wrap: wrap; 
        justify-content: flex-end;
    }

    .nav-list li { 
        border-bottom: none; 
        position: relative; /* Asegurar posicionamiento relativo para hijos absolutos */
    }
    
    .nav-list a { 
        padding: 0.5rem 1rem; 
        color: #ffffff; /* Texto blanco sobre la barra celeste */
    }
    .nav-list a:hover { 
        background-color: transparent; 
        color: var(--color-button-pastel); 
    }

    /* Submenú en Desktop (Dropdown - Corrección Final) */
    .submenu {
        position: absolute;
        top: 100%; /* Empieza EXACTAMENTE debajo del enlace padre */
        right: 0; /* <--- LA MAGIA ESTÁ ACÁ: Anclamos el menú a la derecha */
        left: auto; /* <--- Limpiamos cualquier anclaje izquierdo previo */
        width: 350px; /* Ancho suficiente para el texto solicitado */
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        background-color: #00476b; /* Mantener azul marino profundo */
        border-radius: 0 0 8px 8px; /* Redondear esquinas inferiores */
        z-index: 200; /* Asegurar que flote sobre TODO */
    }
    
    .has-submenu:hover .submenu { 
        display: block; /* Muestra al pasar el mouse en PC */
    }
    
    .submenu a { 
        color: #ffffff; /* Texto blanco en el submenú */
        padding: 0.75rem 1.5rem;
    }
    
    .submenu a:hover {
        color: var(--color-stripe); /* Celeste al hover */
    }
}
/* ==========================================================
   ESTILOS PARA LOGIN Y DASHBOARD ADMIN (Agregados al final)
   ========================================================= */

.admin-body {
    background-color: #f4f4f9; /* Fondo un poco más gris para diferenciar de la web pública */
    animation: none;
    overflow-y: auto;
}

/* --- Pantalla de Login --- */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.admin-title {
    color: var(--color-stripe);
    margin-bottom: 2rem;
    font-size: 3.5rem;
    animation: none;
    opacity: 1;
}

.login-box {
    width: 100%;
    max-width: 400px; /* En PC no se hace gigante */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.back-link {
    color: var(--color-stripe);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Alertas para errores/éxitos */
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}
.alert-error { background-color: #f8d7da; color: #721c24; }
.alert-success { background-color: #d4edda; color: #155724; }

/* --- Dashboard --- */
.dashboard-container {
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logout-button {
    background-color: var(--color-primary-bg);
    color: var(--color-stripe);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}
.logout-button:hover { background-color: #f0f0f0; }

.security-notice {
    font-size: 0.9rem;
    color: #686565;
    margin-bottom: 2rem;
    border-left: 4px solid #28a745;
    padding-left: 10px;
}

/* Tarjetas de Mensajes (Mobile First) */
.messages-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 columna en celulares */
    gap: 1.5rem;
}

.message-card {
    background: var(--color-primary-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    border-top: 4px solid var(--color-stripe);
}

.card-header {
    background-color: #fafafa;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.msg-date {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.msg-subject {
    font-size: 1.2rem;
    color: var(--color-text);
    margin: 0;
}

.card-body {
    padding: 1rem;
}

.msg-contact {
    font-size: 0.95rem;
    color: var(--color-stripe);
    margin-bottom: 1rem;
}

.card-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

.msg-text {
    font-size: 0.95rem;
    white-space: pre-wrap; /* Respeta los saltos de línea del usuario */
    color: #444;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    color: #888;
}

/* Dashboard en Desktop */
@media screen and (min-width: 768px) {
    .messages-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Crea columnas automáticamente según el ancho */
    }
}
/* ==========================================================
   Media Queries (Responsive) - Ajustes para Celulares
   ========================================================= */
@media screen and (max-width: 768px) {
    
    /* 1. TÍTULO SUPERIOR (h1) */
    .title-container { 
        width: 90%; 
        top: 8%; /* Subimos un poco el título para dar aire */
        left: 5%; 
        z-index: 20; 
        text-align: center;
    }
    .index-gold-title, .index-gold-title-2 { 
        font-size: 3.2rem; 
        line-height: 1.1; 
    }

    /* 2. FRANJA CELESTE (Fondo) */
    .stripe-bg {
        top: 30%; /* La subimos para que no corte el rostro de la imagen */
        height: 25vh;
    }

    /* 3. BOTÓN INICIO (Movido al tercio inferior) */
    .start-button { 
        left: 50%; 
        top: auto;
        bottom: 22%; /* Lo anclamos en la parte baja, debajo del rostro */
        transform: translateX(-50%); /* Solo centramos en el eje X */
        padding: 1rem 2.5rem; 
        font-size: 1.3rem; 
        z-index: 30; 
        width: max-content;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6); /* Sombra más fuerte para contraste */
    }

    /* 4. SUBTÍTULO INFERIOR (h2) */
    .index-subtitle {
        left: 5%;
        bottom: 6%; /* Lo bajamos un poco más para separarlo del botón */
        width: 90%;
        font-size: 1.4rem;
        z-index: 20;
        line-height: 1.3;
        text-align: center;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Sombra obligatoria para legibilidad */
    }

    /* 5. IMAGEN DINÁMICA (COMPORTAMIENTO MOBILE) */
    .image-container { 
        width: 100%; 
        right: 0; 
        top: auto;
        bottom: 0;      
        height: 65vh; /* Reducimos la altura del 75vh al 65vh para que el rostro baje en la pantalla */
        display: flex;
        align-items: flex-end; 
        justify-content: center; 
        z-index: 5; 
        opacity: 0.85; /* Subimos la opacidad para que luzca viva, la máscara hará el resto */
    }

    #virgin-image {
        width: 100%;
        height: 100%; 
        object-fit: cover; 
        object-position: center bottom;
        
        /* FIX CRÍTICO: Máscara lineal doble. 
           Desvanece la imagen en la parte superior (para el título) 
           y en la parte inferior (para que el botón y subtítulo se lean perfecto sobre fondo oscuro) */
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 75%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 75%, transparent 100%);
        
        border-radius: 0; 
        filter: none; 
    }
}
/* ==========================================================
   ESTILOS DEL CARRUSEL DE MEDIOS
   ========================================================= */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Tamaño máximo en PC */
    margin: 0 auto 4rem auto;
    background-color: #000; /* Fondo negro para los bordes del video/fotos */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Estado de Pantalla Completa (Lightbox) */
.carousel-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.95);
    margin: 0;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 680px; /* Altura ideal para Reels de IG */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none; /* Evita clicks en slides ocultos */
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-slide iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    border: none;
}

/* Flechas y Botones */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s;
}

.carousel-nav:hover { background: var(--color-stripe); }
.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

/* Botones de Expandir y Cerrar */
.carousel-expand-btn, .carousel-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-expand-btn:hover, .carousel-close-btn:hover { background: var(--color-stripe); }
.carousel-close-btn { display: none; } /* Oculto por defecto */

/* Mostrar botón de cerrar solo en fullscreen */
.fullscreen .carousel-expand-btn { display: none; }
.fullscreen .carousel-close-btn { display: flex; }

/* Puntitos indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active { background: var(--color-stripe); }

/* Ajustes para móviles */
@media screen and (max-width: 768px) {
    .carousel-track { height: 500px; }
    .carousel-nav { padding: 10px 15px; font-size: 18px; }
}

/* ==========================================================
   EFECTO DORADO FANTASÍA
   =========================================================*/
.gold-title {
    font-family: var(--font-heading);
    /* Degradado metálico brillante  */
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.3));/*Profundidad de la tinta */
    font-weight: bold;
}

.gold-title-2 {
    /* Degradado metálico brillante  */
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.3));/*Profundidad de la tinta */
    font-weight: bold;
}
/* ==========================================================
   TÍTULO DORADO PARA INDEX (Preparado para Fondo Blanco)
   ========================================================= */
.index-gold-title {
    font-family: var(--font-heading);
    font-size: 5rem; /* Letra gigante e imponente para la portada */
    font-weight: bold;
    
    /* El mismo degradado metálico brillante */
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    
    /* EL TRUCO PARA EL FONDO BLANCO: Borde fino marrón oscuro y sombra profunda */
    -webkit-text-stroke: 1.5px rgba(90, 60, 0, 0.8); 
    filter: drop-shadow(3px 5px 6px rgba(0,0,0,0.4));
    
    /* Animaciones originales de entrada del index */
    opacity: 0;
    animation: slideAndFadeInTitle 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 2s; 
}

/* Ajuste de tamaño para celulares (Mobile) */
@media screen and (max-width: 768px) {
    .index-gold-title { font-size: 3.5rem; }
}

/* ==========================================================
   FOOTER MAESTRO (Mobile First)
   ========================================================= */
.main-footer {
    background-color: var(--color-intro-bg); /* Negro */
    color: white;
    padding: 3rem 5% 1rem 5%;
    margin-top: 5rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo p { color: #ccc; font-size: 0.9rem; }
.footer-links h4, .footer-social h4 { color: var(--color-stripe); margin-bottom: 1rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #fff; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--color-stripe); }

.social-icons { 
    display: flex; 
    flex-direction: row; /* Uno al lado del otro */
    flex-wrap: wrap; /* Si no entran todos en la pantalla, bajan a la línea de abajo ordenados */
    gap: 1rem; 
}

/* Botones de redes (Ahora son tipo píldora adaptable) */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.6rem 1.2rem;
    width: fit-content;
    background-color: transparent;
    color: var(--color-stripe);
    border: 1px solid var(--color-stripe);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    gap: 10px;
    transition: all 0.3s;
}

.social-icon:hover { 
    background-color: var(--color-stripe); 
    color: var(--color-intro-bg); 
    transform: translateY(-5px); /* Salta un poquito hacia arriba al pasar el mouse */
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: #888;
}

/* Footer en Desktop */
@media screen and (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}
/* ==========================================================
   PLANTILLAS DINÁMICAS (LAYOUTS DEL CMS)
   ========================================================= */
/* 1. Plantilla Estándar (ya existe como .home-container) */

/* 2. Plantilla Ancho Completo (Multimedia) */
.layout-fullwidth {
    padding: 0;
    width: 100%;
    min-height: 80vh;
}

/* 3. Plantilla Modo Oración / Lectura (Centrado y cálido) */
.layout-reading {
    padding: 3rem 5%;
    max-width: 800px;
    margin: 2rem auto;
    min-height: 80vh;
    background-color: #fffdf8; /* Tono papel muy sutil */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0e6d2;
}

/* ==========================================================================
   FORMULARIOS PÚBLICOS (Arquitectura Segura sin Inline CSS)
   ========================================================================== */
.public-form-wrapper {
    max-width: 600px;
    margin: 3rem auto;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--color-stripe);
}

.public-form-title {
    color: var(--color-stripe);
    margin-bottom: 1.5rem;
    text-align: center;
}

.honeypot-trap {
    position: absolute;
    left: -5000px;
}

.form-group {
    margin-bottom: 1rem;
}

.public-form-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.public-form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.textarea-resize {
    resize: vertical;
}

.public-form-submit {
    width: 100%;
    background: var(--color-stripe);
    color: white;
    border: none;
    padding: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.public-form-submit:hover {
    filter: brightness(0.9);
}

.public-form-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}