/* ============================
   RESET Y FONDO GENERAL
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    color: white;
    font-family: 'monospace', serif;
}


/* ESTILOS DEL BOTÓN DE TRADUCCIÓN (igual que en index) */
#custom-translate-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-family: 'MedievalSharp', cursive;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#custom-translate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Ocultar el widget feo de Google */
.goog-te-banner-frame {
    display: none !important;
}

.goog-te-menu-frame {
    margin-top: 60px !important;
    z-index: 10000 !important;
}

body {
    top: 0 !important;
}

/* Botón volver */
.btn-volver {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'MedievalSharp', cursive;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-volver:hover {
    background: white;
    border-color: #8B5CF6;
    transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    #custom-translate-btn {
        top: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .btn-volver {
        top: 10px;
        left: 10px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ESTILOS EXISTENTES DE RUTAS (si no los tienes) */
.banner-procesion {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    padding: 20px 0;
    margin-top: 80px;
}

.banner-procesion-inner {
    display: flex;
    animation: scrollBanner 30s linear infinite;
    gap: 40px;
}

.banner-procesion img {
    height: 80px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.banner-procesion img:hover {
    transform: scale(1.1);
}

@keyframes scrollBanner {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.rutas-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.titulo-rutas {
    text-align: center;
    font-family: 'MedievalSharp', cursive;
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.ruta-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ruta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #8B5CF6;
}


.ruta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding-right: 60px;
}

.ruta-header h2 {
    font-family: 'MedievalSharp', cursive;
    color: #333;
    margin: 0;
    font-size: 1.8rem;
}

.ruta-toggle {
    font-size: 2rem;
    color: #8B5CF6;
    transition: transform 0.3s ease;
}

.ruta-card.active .ruta-toggle {
    transform: rotate(45deg);
}

.ruta-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.ruta-card.active .ruta-content {
    max-height: 1000px;
    padding-top: 20px;
}

.ruta-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.galeria img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.galeria img:hover {
    transform: scale(1.05);
}
/* ============================
   SECCIÓN RUTAS
============================ */
.rutas-section {
    width: 100%;
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 20px;
}

.titulo-rutas {
    text-align: center;
    font-family: 'monospace', serif;
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ============================
   CARDS
============================ */
.ruta-card {
    background: rgba(255, 255, 255, 0.08);
    min-height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    margin-bottom: 25px;
    margin-top: 10%;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ruta-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.ruta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.ruta-header h2 {
    margin: 0;
    font-family: 'monospace', serif;
    font-size: 1.8rem;
    color: #fff;
}

.ruta-toggle {
    font-size: 2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #a78bfa;
}

/* ============================
   CONTENIDO DESPLEGABLE
============================ */
.ruta-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    padding: 0 15px;
}

.ruta-card.activa .ruta-content {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
    padding: 15px 15px 0;
}

.ruta-card.activa .ruta-toggle {
    transform: rotate(45deg);
    color: #fbbf24;
}

.ruta-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #e5e5e5;
}

/* ============================
   GALERÍA
============================ */
.galeria {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.galeria img {
    width: calc(33.33% - 10px);
    border-radius: 10px;
    object-fit: cover;
    height: 200px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.galeria img:hover {
    transform: scale(1.05);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
    .rutas-section {
        margin: 100px auto 40px;
        padding: 15px;
    }
    
    .titulo-rutas {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .ruta-header h2 {
        font-size: 1.5rem;
    }
    
    .galeria img {
        width: calc(50% - 7.5px);
        height: 150px;
    }
}

@media (max-width: 480px) {
    .galeria img {
        width: 100%;
        height: 180px;
    }
    
    .ruta-card {
        padding: 15px;
    }
}

/* ============================
   LIGHTBOX FULLSCREEN
============================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.activa {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(255,255,255,0.3);
}

/* Botones de navegación */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    transition: 0.2s;
}

.lightbox-btn:hover {
    transform: translateY(-50%) scale(1.2);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Botón cerrar */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
}

/* ============================
   ICONOS ANIMADOS IZQUIERDA
============================ */
/* ============================
   ICONOS ANIMADOS IZQUIERDA (VERSIÓN CORREGIDA)
============================ */
.ruta-card {
    position: relative;
    overflow: visible; /* IMPORTANTE: permite que el icono se vea fuera */
}

.ruta-icono {
    position: absolute;
    left: -180px; /* Cambié de -20% a píxeles para mejor control */
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: auto;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: flotar 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2; /* Asegura que esté por encima */
}

/* Animación suave */
@keyframes flotar {
    0% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-55%) translateX(-5px); }
    100% { transform: translateY(-50%) translateX(0); }
}

/* Cuando la card se abre → icono desaparece */
.ruta-card.activa .ruta-icono {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
}

/* En pantallas grandes (más de 1200px) */
@media (min-width: 1201px) {
    .ruta-icono {
        left: -180px; /* Fuera de la card a la izquierda */
        display: block; /* Asegura que sea visible */
    }
    
    .rutas-section {
        margin-left: 200px; /* Da espacio para los iconos */
    }
}

/* En pantallas medianas (tablets) */
@media (max-width: 1200px) and (min-width: 769px) {
    .ruta-icono {
        left: -150px; /* Un poco más cerca */
        width: 120px;
    }
}

/* En móviles (igual que antes) */
@media (max-width: 768px) {
    .ruta-icono {
        left: auto;
        right: 20px;
        top: 20px;
        transform: none;
        width: 50px;
        height: 50px;
        animation: none;
    }
    
    .ruta-card.activa .ruta-icono {
        transform: none;
    }
}

/* Animación suave */
@keyframes flotar {
    0% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-55%) translateX(-5px); }
    100% { transform: translateY(-50%) translateX(0); }
}

/* Cuando la card se abre → icono desaparece */
.ruta-card.activa .ruta-icono {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
}

/* Para que el icono no tape nada */
.ruta-card {
    position: relative;
}

@media (max-width: 1200px) {
    .ruta-icono {
        left: 60%;
    }
}

/* ============================
   BOTÓN VOLVER
============================ */
.btn-volver {
    display: inline-block;
    margin: 20px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: 0.3s ease;
}

.btn-volver:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

/* ============================
   INFO PAGE
============================ */
.info-section {
    width: 100%;
    max-width: 900px;
    margin: 120px auto;
    padding: 20px;
    color: white;
    font-family: 'MedievalSharp', serif;
}

.info-card {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.info-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.info-card p,
.info-card li {
    font-size: 1.1rem;
    line-height: 1.6;
}

.info-card ul {
    padding-left: 20px;
}

/* ============================
   ANIMACIÓN DE PROCESIÓN
============================ */
.banner-procesion {
    width: 100%;
    overflow: hidden; /* evita que se vean los SVG fuera del área */
    position: relative;
    padding: 40px 20px;
    margin: 40px auto;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Contenedor interno que se mueve */
.banner-procesion-inner {
    display: flex;
    gap: 40px;
    align-items: center;
    animation: procesion 25s linear infinite;
}

/* Ajusta la velocidad cambiando 25s → más alto = más lento */
@keyframes procesion {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.banner-procesion img {
    height: 120px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.banner-procesion img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.6));
}

/* Responsive */
@media (max-width: 768px) {
    .banner-procesion img {
        height: 70px;
    }
}

/* ============================
   LOGIN - PERGAMINO
============================ */
.pergamino {
    background: url('../assets/pergamino-textura.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px 30px;
    border-radius: 20px;
    border: 3px solid rgba(80,60,40,0.7);
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    max-width: 500px;
    margin: 0 auto;
}

/* Si no tienes textura aún, usa este fallback */
.pergamino {
    background: linear-gradient(135deg, #d8c7a1, #b79a6b);
}

/* Contenido del formulario */
.login-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-card label {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #3b2a1a;
}

.login-card input {
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #8a6a45;
    background: rgba(255,255,255,0.6);
    font-size: 1rem;
    color: #3b2a1a;
}

.btn-login {
    margin-top: 10px;
    padding: 12px;
    background: #8a6a45;
    border: 2px solid #5c442d;
    border-radius: 12px;
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-login:hover {
    background: #a98255;
    transform: scale(1.05);
}

.enlace-registro {
    margin-top: 10px;
    font-size: 1rem;
    color: #3b2a1a;
    text-decoration: underline;
    font-family: 'MedievalSharp', serif;
}

.toggle-icon {
    padding-top: 5px;
    cursor: pointer;
    font-size: 2.2rem;
    user-select: none;
    transition: transform 0.3s ease;
}

#password {
    width: calc(90% - 40px);
}