/* camino.css (Premium Redesign) */

.bg-premium-desert {
    background-color: var(--pearl);
    /* Sutil patrón de arena fina */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Serie Hero */
.serie-hero {
    position: relative;
    min-height: 60vh; /* Permite crecer si el texto es inmenso */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 50px;
}

.serie-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 0.5s ease-out;
}

.serie-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(26,32,44,0.3) 0%, var(--pearl) 100%);
    z-index: 2;
}

.serie-hero-content {
    position: relative;
    z-index: 4;
    padding: 120px 20px 180px; /* Padding-top para Header, Padding-bottom extremo (180px) para no chocar con la botonera fija de abajo */
    max-width: 800px;
}

.subtitle-gold {
    font-family: 'Montserrat', sans-serif;
    color: var(--gold-leaf);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.serie-hero h1 {
    font-size: 3.5rem;
    color: var(--white); /* Cambiado a blanco puro para contraste con el fondo fotográfico */
    margin-bottom: 20px;
    text-shadow: 0 5px 25px rgba(0,0,0,0.7); /* Sombra pesada para asegurar legibilidad */
}

.serie-hero p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* El Camino Wrapper */
.camino-wrapper {
    position: relative;
    padding: 60px 0 100px;
    z-index: 10;
    /* Textura Pergamino Antiguo (Tierra de Canaán) */
    background-color: #f3efe6;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    box-shadow: inset 0 0 100px rgba(200, 159, 83, 0.1);
}

/* Imagen aérea del desierto de fondo */
.camino-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Vista aérea desierto / oasis */
    background-image: url('https://images.unsplash.com/photo-1542401886-65d6c61de152?auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax inmersivo */
    opacity: 0.35; /* Subida de opacidad para que se note más */
    mix-blend-mode: multiply; /* Se funde con el color del pergamino */
    z-index: 0; /* Colocado en 0 para que no se oculte detrás del fondo del wrapper */
}

.camino-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Para asegurar que el contenido esté sobre la imagen */
}

.empty-msg {
    text-align: center;
    color: var(--text-soft);
    font-size: 1.1rem;
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.camino {
    position: relative;
}

/* Camino Serpenteante (Línea del Mapa) */
.camino-linea {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100px;
    margin-left: -50px;
    background: url("data:image/svg+xml,%3Csvg width='100' height='200' viewBox='0 0 100 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50,0 Q100,50 50,100 T50,200' fill='none' stroke='%23C89F53' stroke-width='4' stroke-dasharray='10,15' stroke-linecap='round' opacity='0.7'/%3E%3C/svg%3E") repeat-y;
    animation: snake-path 4s linear infinite;
    z-index: 1;
}

@keyframes snake-path {
    0% { background-position: 0 0; }
    100% { background-position: 0 200px; }
}

.paso {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 50%;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.paso.left {
    padding-right: 60px;
    left: 0;
    justify-content: flex-end;
}

.paso.right {
    padding-left: 60px;
    left: 50%;
    justify-content: flex-start;
}

/* Nodos */
.nodo {
    width: 90px;
    height: 90px;
    position: absolute;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.paso.left .nodo { right: -45px; }
.paso.right .nodo { left: -45px; }

/* El Sello de Parada (Moneda) */
.nodo-inner {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e6c875 0%, #c89f53 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(200, 159, 83, 0.4), inset 0 2px 5px rgba(255,255,255,0.6);
    position: relative;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nodo-numero {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.nodo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
    transform: scale(1.5);
}

/* Estado Activo */
.nodo-activo .nodo-inner {
    border-color: #fff;
    color: #fff;
}

.nodo-activo .nodo:hover .nodo-inner {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 25px rgba(200, 159, 83, 0.6), inset 0 2px 5px rgba(255,255,255,0.9);
    color: #1a202c; /* Contraste oscuro para el icono */
}

.nodo-activo .nodo:hover .nodo-glow {
    opacity: 1;
    animation: ripple 2s infinite;
}

/* Estado Bloqueado */
.nodo-bloqueado .nodo {
    cursor: not-allowed;
}

/* Sello Bloqueado (Plata/Piedra) */
.nodo-bloqueado .nodo-inner {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #f8fafc;
    color: #64748b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05), inset 0 2px 5px rgba(255,255,255,0.8);
}

/* Tarjeta de Información */
.nodo-info {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05), inset 0 0 10px rgba(255,255,255,0.1);
    width: 100%;
    max-width: 350px;
    position: relative;
    overflow: hidden; /* For sweep shine */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, border-color 0.4s;
}

/* Sweep Shine Element */
.nodo-info::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 1;
}

.nodo-activo:hover .nodo-info {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.2), inset 0 0 15px rgba(255,255,255,0.3);
    border-color: var(--gold-leaf);
}

.nodo-activo:hover .nodo-info::before {
    animation: sweep-shine 1.2s forwards;
}

@keyframes sweep-shine {
    0% { left: -150%; }
    100% { left: 200%; }
}

/* Flecha apuntando al nodo (esmerilada) */
.nodo-info::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-width: 12px;
    border-style: solid;
    transition: border-color 0.4s;
    z-index: 3;
}

.paso.left .nodo-info::after {
    right: -24px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.3);
}

.paso.right .nodo-info::after {
    left: -24px;
    border-color: transparent rgba(255, 255, 255, 0.3) transparent transparent;
}

.paso.left.nodo-activo:hover .nodo-info::after {
    border-color: transparent transparent transparent var(--gold-leaf);
}

.paso.right.nodo-activo:hover .nodo-info::after {
    border-color: transparent var(--gold-leaf) transparent transparent;
}

.nodo-info h3 {
    font-size: 1.2rem;
    color: var(--desert-night);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s;
}

.nodo-meta, .read-more, .bloqueado-msg {
    position: relative;
    z-index: 2;
}

.nodo-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 15px;
}

.dia-badge {
    color: var(--gold-leaf);
    font-weight: 700;
    margin-right: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(200, 159, 83, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

.read-more {
    display: inline-block;
    color: var(--gold-leaf);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s;
}

.nodo-activo:hover .read-more {
    transform: translateX(5px);
}

.bloqueado-msg {
    margin-top: 15px;
    font-size: 0.95rem;
    color: rgba(64, 76, 92, 0.55);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Animated Premium Lock */
.animated-lock {
    display: inline-block;
    color: var(--gold-leaf);
    font-size: 1.15rem;
    animation: premium-lock-pulse 2.5s ease-in-out infinite;
}

@keyframes premium-lock-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
        filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.4));
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.9));
    }
}

/* Responsive: Timeline Estilo App iOS */
@media (max-width: 768px) {
    .serie-hero { 
        height: 100dvh; 
        margin-bottom: 0;
    }
    
    .serie-hero h1 { 
        font-size: 3rem; 
        line-height: 1.1;
    }
    
    .camino-wrapper {
        padding: 40px 10px 120px; /* Espacio para Bottom Dock */
        background: var(--white);
        border-radius: 30px 30px 0 0;
    }

    /* Transformar el camino serpenteante en un Timeline al borde izquierdo */
    .camino-linea { 
        left: 40px; /* Pegado a la izquierda */
        width: 3px; 
    }
    
    .paso {
        width: 100%;
        left: 0 !important;
        justify-content: flex-start !important;
        padding-left: 90px !important;
        padding-right: 0 !important;
        margin-bottom: 50px;
    }
    
    .nodo {
        left: -5px !important;
        right: auto !important;
    }
    
    .nodo-inner {
        width: 60px;
        height: 60px;
    }
    
    .nodo-numero { font-size: 1.5rem; }
    
    .nodo-info { 
        max-width: 100%;
        padding: 25px 20px;
        border-radius: 24px;
        background: var(--sand-cream);
        box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    }
    
    /* Reposicionar flecha */
    .paso.left .nodo-info::after, .paso.right .nodo-info::after {
        left: -18px;
        right: auto;
        border-width: 10px;
        border-color: transparent var(--sand-cream) transparent transparent;
    }
    
    .nodo-info h3 { font-size: 1.25rem; }
}
