/* ========================================
   STYLES.CSS - Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a2a5e 0%, #294197 50%, #3d5bb8 100%);
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #1e3a8a 0%, #294197 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.logo {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.menu-toggle {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #294197 100%);
    color: #ffffff;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
}

/* Utilidades */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}


/* ========================================
   TEMPLOS.CSS - Main Styles
   ======================================== */

.templos-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2a5e 0%, #294197 50%, #3d5bb8 100%);
    background-attachment: fixed;
    padding-bottom: 2rem;
    position: relative;
}

.templos-main::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: shine 15s linear infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-templos {
    background: linear-gradient(135deg, #1e3a8a 0%, #294197 100%);
    padding: 3rem 1rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.hero-templos h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-templos p {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Filtros */
.filtros {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.search-container {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #294197;
}

.search-container input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid rgba(41, 65, 151, 0.3);
    border-radius: 25px;
    font-size: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    color: #1a2a5e;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #294197;
    box-shadow: 0 0 0 3px rgba(41, 65, 151, 0.1);
}

.search-container input::placeholder {
    color: #7a8fc7;
}

/* Botón Admin Secreto */
.btn-admin-secreto {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #294197 0%, #3b5bc7 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(41, 65, 151, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-admin-secreto::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-admin-secreto:hover::before {
    left: 100%;
}

.btn-admin-secreto:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 91, 199, 0.6);
    background: linear-gradient(135deg, #3b5bc7 0%, #4d6dd8 100%);
}

/* Contenedor de templos */
.templos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Card de templo */
.templo-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #294197 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.templo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b5bc7, #4d6dd8, #6084e8);
}

.templo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(59, 91, 199, 0.5);
    background: linear-gradient(135deg, #294197 0%, #3b5bc7 100%);
}

.templo-imagen {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #3b5bc7 0%, #4d6dd8 100%);
}

.templo-info {
    padding: 1.5rem;
}

.templo-nombre {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.templo-direccion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #a0c4ff;
}

.templo-descripcion {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
}

.templo-horarios {
    background: linear-gradient(135deg, rgba(59, 91, 199, 0.3) 0%, rgba(77, 109, 216, 0.3) 100%);
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.templo-horarios h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.horario-item {
    font-size: 0.85rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.horario-item:last-child {
    border-bottom: none;
}

.btn-ver-mas {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #3b5bc7 0%, #4d6dd8 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(59, 91, 199, 0.3);
}

.btn-ver-mas:hover {
    background: linear-gradient(135deg, #4d6dd8 0%, #6084e8 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(77, 109, 216, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 42, 94, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #1e3a8a 0%, #294197 100%);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
    color: #ffffff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.close {
    color: #ffffff;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #a0c4ff;
    transform: scale(1.2);
}

.modal-imagen {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Carrusel de imágenes en modal */
.modal-imagenes-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.modal-imagenes-carousel .modal-imagen {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #294197 0%, #3b5bc7 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #3b5bc7 0%, #4d6dd8 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 91, 199, 0.5);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: linear-gradient(135deg, #3b5bc7, #4d6dd8);
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(59, 91, 199, 0.5);
}

.indicator:hover {
    background-color: rgba(160, 196, 255, 0.7);
}

.modal-horarios {
    background: linear-gradient(135deg, rgba(59, 91, 199, 0.3) 0%, rgba(77, 109, 216, 0.3) 100%);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-avisos {
    background: linear-gradient(135deg, rgba(59, 91, 199, 0.3) 0%, rgba(77, 109, 216, 0.3) 100%);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.aviso-item {
    padding: 0.8rem;
    background: rgba(59, 91, 199, 0.2);
    border-left: 4px solid #3b5bc7;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

.btn-ubicacion {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #3b5bc7 0%, #4d6dd8 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(59, 91, 199, 0.3);
}

.btn-ubicacion:hover {
    background: linear-gradient(135deg, #4d6dd8 0%, #6084e8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 109, 216, 0.5);
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: #ffffff;
    font-size: 1.2rem;
}

.loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #a0c4ff;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aparecerSuave {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes brilloDestacado {
    0% { box-shadow: 0 0 0 0 rgba(59, 91, 199, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(59, 91, 199, 0); }
    100% { box-shadow: 0 4px 15px rgba(41, 65, 151, 0.4); }
}

.btn-admin-secreto.mostrar {
    display: flex;
    animation: aparecerSuave 0.5s ease, brilloDestacado 1s ease;
}

/* Scrollbar personalizada para modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(41, 65, 151, 0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #294197, #3b5bc7);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3b5bc7, #4d6dd8);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-templos h1 {
        font-size: 2rem;
    }
    
    .filtros {
        flex-direction: column;
    }
    
    .search-container {
        width: 100%;
    }
    
    .templos-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .btn-admin-secreto {
        width: 100%;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        padding: 0.7rem;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    .modal-imagenes-carousel .modal-imagen {
        max-height: 250px;
    }
}