/* --- TÍTULO Y DESTELLO (Ajuste solicitado) --- */
.explorador-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-wrapper {
    position: relative;
    display: inline-block;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #D4C9B0;
    margin: 0;
    line-height: 1;
}

.italic-style {
    font-style: italic;
    color: #828E65;
}

/* Verde oliva de referencia */

.title-underline {
    width: 80px;
    height: 3px;
    background: radial-gradient(circle, #828E65 0%, transparent 85%);
    margin: 2px auto 0;
    /* Pegado a las letras */
    box-shadow: 0 0 10px rgba(130, 142, 101, 0.6);
}

/* --- RESTAURACIÓN DEL SLIDER (Para que no se amontonen) --- */
.explorador-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #2A4033 0%, #A6401B 100%);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.explorador-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
}

.explorador-viewport {
    overflow: hidden;
}

.explorador-track {
    display: flex;
    /* IMPORTANTE: Mantiene tarjetas en línea */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-slide {
    flex: 0 0 100%;
    /* IMPORTANTE: Una tarjeta a la vez */
    display: flex;
    justify-content: center;
}

/* --- DISEÑO DE TARJETA --- */
.card-glass {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
    background: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 201, 176, 0.1);
    padding: 40px; 
    border-radius: 25px; 
    width: 100%;
    
    /* FORZAMOS ALTO FIJO: La caja nunca crecerá más de esto */
    height: 520px; 
    box-sizing: border-box;
    align-items: stretch; 
    overflow: hidden; /* Asegura que nada se salga de la tarjeta */
}

.card-image {
  width: 100%;
    height: 100%;       
    border-radius: 15px; 
    overflow: hidden;
}

.card-image img {
  width: 100%; 
    height: 100%; 
    object-fit: cover; /* La imagen se recorta y se adapta perfectamente a la caja */
    display: block;
}

.card-h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #D4C9B0;
    margin: 10px 0;
}

.card-text-centered {
 display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    overflow-y: auto; /* Si el texto llega a superar el alto, crea un scroll interno limpio */
    padding-right: 5px; /* Pequeño espacio para que el scroll no pegue al texto */
}
/* --- TEXTO DESCRIPTIVO ULTRA ELEGANTE Y JUSTIFICADO --- */
.card-text-centered p {
    /* Combinación Serif de alta gama (puedes usar 'Inter' si prefieres letras sin remates) */
    font-family: 'Cormorant Garamond', 'Playfair Display', serif; 
    
    font-size: 1.15rem;          /* Al ser Serif, un tamaño ligeramente mayor mejora la lectura */
    font-weight: 400;            /* Estilo regular, estilizado y limpio */
    line-height: 1.7;            /* Espaciado vertical armónico */
    letter-spacing: 0.3px;       /* Un toque sutil de separación */
    color: #D4C9B0;              /* El tono crema suave de tu paleta */
    opacity: 0.9;                /* Buena presencia visual en fondo oscuro */
    
    text-align: justify;         /* Justificación perfecta de bloque de revista */
    
    width: 100%;
    max-width: 95%;              /* Deja un pequeño margen de seguridad a los lados */
    margin: 20px auto;           /* Centrado horizontal y separación equilibrada arriba/abajo */
}
/* LA CLAVE 2: Reducción minimalista y centrado del Logo */
.card-footer-logo {
    margin-top: auto;
    /* Empuja el logo automáticamente al fondo de la tarjeta */
    margin-bottom: 10px;
    /* Separa el logo del borde inferior para que respire */
    text-align: center;
    /* Centra el contenedor horizontalmente */
    width: 100%;
}

.card-footer-logo img {
    height: 60px;
    /* Tamaño controlado, elegante y minimalista */
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Contenedor de los puntos */
.explorador-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

/* Estilo base de cada punto */
.dot {
    width: 10px;
    height: 10px;
    background: rgba(212, 201, 176, 0.3);
    /* Color crema suave apagado */
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Animación suave */
}

/* Estilo del punto ACTIVO (La guía del usuario) */
.dot.active {
    width: 30px;
    /* Se expande horizontalmente */
    border-radius: 5px;
    /* Pasa de círculo a cápsula */
    background: #D4C9B0;
    /* Color crema sólido brillante */
    box-shadow: 0 0 10px rgba(212, 201, 176, 0.5);
    /* Pequeño resplandor */
}

/* --- AJUSTE MÓVIL (Centrado y visible) --- */
@media (max-width: 768px) {
    .card-glass {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        height: auto;
        /* En móviles permitimos que crezca de forma natural hacia abajo */
        min-height: 550px;
        padding: 25px 20px;
    }

    .card-image {
        height: 200px;
        width: 100%;
        flex-shrink: 0;
        /* Evita que la foto colapse */
    }

    .card-text-centered {
        flex-grow: 1;
    }

    .card-footer-logo {
        margin-top: 25px;
        /* Margen superior controlado en móvil */
        margin-bottom: 5px;
    }

    .card-footer-logo img {
        height: 45px;
        /* Un poco más pequeño en pantallas móviles */
    }

    .main-title {
        font-size: 2.2rem;
    }

    .nav-btn {
        display: none;
    }
}

/* Flechas y Dots */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #D4C9B0;
    border: 1px solid rgba(212, 201, 176, 0.2);
    z-index: 10;
    cursor: pointer;
}

.prev {
    left: -25px;
}

.next {
    right: -25px;
}

.explorador-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    width: 25px;
    border-radius: 4px;
    background: #D4C9B0;
}

/* --- AJUSTE EXCLUSIVO PARA MÓVILES (Tarjetas compactas y perfectas) --- */
@media (max-width: 768px) {
    .explorador-container { 
        padding: 0 15px; /* Reducimos el colchón lateral para aprovechar el ancho */
    }

    /* --- AJUSTE DE LA TARJETA EN MÓVIL --- */
    .card-glass {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        
        /* Aumentamos un poco el alto de la tarjeta total para dar espacio a la nueva foto */
        height: 80vh;       
        min-height: 580px;  
        
        padding: 20px; 
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    /* --- LA CLAVE: IMAGEN MÁS CUADRADA --- */
    .card-image { 
        /* Cambiamos de 180px a un alto mayor para que sea más cuadrada */
        height: 260px;      
        width: 100%;
        flex-shrink: 0;     /* Evita que se colapse */
        margin-bottom: 15px;
    }

    /* El texto sigue manteniendo su scroll interno perfecto */
    .card-text-centered {
        flex-grow: 1;
        overflow-y: auto;   
        padding-right: 5px;
        display: flex;
        flex-direction: column;
    }

    .card-text-centered p {
        font-size: 1rem;    /* Un punto más sutil en móviles */
        line-height: 1.6;
        margin: 15px 0;
        text-align: justify;
    }

    .card-h2 { 
        font-size: 1.8rem; 
        margin: 10px 0;
        text-align: center;
    }

    .card-footer-logo {
        margin-top: auto;   /* Se mantiene abajo del todo de la zona de texto */
        padding-top: 10px;
        text-align: center;
        width: 100%;
    }

    .card-footer-logo img { 
        height: 40px; 
        margin: 0 auto; 
    }

    .main-title { 
        font-size: 2.2rem; 
    }
}