/* ============================================
   ESTILOS COMPLETOS - MISIONERA DE PODER
   ============================================ */

/* -------------------------
   VARIABLES Y RESET
------------------------- */
:root {
    --gold: #d4af37;
    --gold-light: #ffd700;
    --gold-dark: #b8941f;
    --black: #000;
    --dark: #111;
    --gray: #333;
    --light: #f5f5f5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--light);
    font-family: 'Playfair Display', serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* -------------------------
   PANTALLA DE INTRODUCCIÓN
------------------------- */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.logo-container {
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.church-logo {
    width: 300px;
    height: 300px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    animation: boingAppear 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.church-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

@keyframes boingAppear {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        transform: scale(1.1) translateY(10px);
    }
    70% {
        transform: scale(0.95) translateY(0);
    }
    85% {
        transform: scale(1.05) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tap-instruction {
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 2px;
    animation: pulse 2s infinite;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.6; transform: scale(1); }
}

/* -------------------------
   ANIMACIONES DE REVELADO
------------------------- */
.reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
}

.reveal-mask {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--black);
    transform: translate(-50%, -50%);
    z-index: 3;
}

.reveal-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.95) 0%,
        rgba(255, 215, 0, 0.85) 25%,
        rgba(255, 223, 0, 0.7) 50%,
        rgba(255, 231, 0, 0.6) 75%,
        rgba(255, 239, 0, 0.4) 100%
    );
    z-index: 2;
    opacity: 0;
    filter: blur(0);
}

@keyframes revealMask {
    0% {
        width: 300px;
        height: 300px;
        opacity: 1;
    }
    100% {
        width: 200vh;
        height: 200vh;
        opacity: 1;
    }
}

@keyframes revealGradient {
    0% {
        opacity: 0;
        filter: blur(20px);
    }
    20% {
        opacity: 0.3;
        filter: blur(15px);
    }
    50% {
        opacity: 0.7;
        filter: blur(10px);
    }
    80% {
        opacity: 0.9;
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes fadeOutReveal {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.reveal-overlay.active {
    opacity: 1;
}

.reveal-mask.revealing {
    animation: revealMask 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.reveal-gradient.revealing {
    animation: revealGradient 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

.reveal-overlay.fade-out {
    animation: fadeOutReveal 0.4s ease forwards;
}

/* Animación de ondas concéntricas */
@keyframes concentricPulse {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(0.95);
    }
    30% {
        transform: scale(1.1);
    }
    45% {
        transform: scale(0.98);
    }
    60% {
        transform: scale(1.05);
    }
    75% {
        transform: scale(0.99);
    }
    90% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.church-logo.concentric-pulse {
    animation: concentricPulse 0.8s cubic-bezier(0.68, -0.55, 0.265, 2) forwards;
}

@keyframes logoDisappear {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

.logo-container.disappearing {
    animation: logoDisappear 0.5s ease forwards;
}

/* -------------------------
   CONTENIDO PRINCIPAL
------------------------- */
.main-content {
    display: none;
    opacity: 0;
}

.main-content.visible {
    display: block;
    opacity: 1;
    animation: fadeInContent 0.5s ease 0.3s forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* -------------------------
   HEADER Y NAVEGACIÓN
------------------------- */
header {
    background: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.85));
    padding: 15px 0; /* Reducir un poco si es necesario */
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--gold);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    font-family: 'Cinzel', serif;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--gold-light);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* -------------------------
   HERO SECTION
------------------------- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1518837695005-2083093ee35b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    overflow: visible;
}

/* ANIMACIÓN FADE + SLIDE DESDE ARRIBA */
@keyframes fadeSlideDown {
    0% {
        transform: translateY(-80px);
        opacity: 0;
        filter: blur(4px);
    }
    70% {
        transform: translateY(5px);
        opacity: 0.9;
        filter: blur(0);
    }
    85% {
        transform: translateY(-2px);
        opacity: 0.95;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes fadeSlideDownSubtitle {
    0% {
        transform: translateY(-60px);
        opacity: 0;
        filter: blur(4px);
        color: transparent;
        text-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
    40% {
        opacity: 0;
    }
    70% {
        transform: translateY(4px);
        opacity: 0.8;
        filter: blur(0);
        color: rgba(255, 215, 0, 0.8);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    }
    85% {
        transform: translateY(-1px);
        opacity: 0.95;
        color: rgba(255, 215, 0, 0.95);
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
        color: var(--gold-light);
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    }
}

.church-title {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    opacity: 0;
    transform: translateY(-80px);
}

.church-subtitle {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--gold-light);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    opacity: 0;
    transform: translateY(-60px);
}

.church-title.slide-fade {
    animation: fadeSlideDown 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.church-subtitle.slide-fade {
    animation: fadeSlideDownSubtitle 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
}

.hero-text {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #ddd;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease 1.6s both;
}

/* ANIMACIÓN FADE IN UP */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    text-transform: uppercase;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.secondary {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-light);
    color: var(--gold-light);
}

/* -------------------------
   SECCIÓN TÍTULOS
------------------------- */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.section-subtitle {
    text-align: center;
    color: #aaa;
    font-size: 1.2rem;
    margin-bottom: 60px;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------
   SECCIÓN NOSOTROS
------------------------- */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #ccc;
    font-size: 1.1rem;
}

.beliefs {
    margin-top: 40px;
    padding: 30px;
    background: rgba(30, 30, 30, 0.7);
    border-left: 4px solid var(--gold);
    border-radius: 5px;
}

.beliefs h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
}

.beliefs ul {
    list-style: none;
}

.beliefs li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #ccc;
}

.beliefs li::before {
    content: '✝';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* Estilos para la imagen de la iglesia */
.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.02);
}

.image-placeholder {
    height: 500px;
    background: url('https://images.unsplash.com/photo-1481277542470-605612bd2d61?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.image-placeholder {
    height: 500px;
    background: url('https://images.unsplash.com/photo-1481277542470-605612bd2d61?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* -------------------------
   SECCIÓN MINISTERIOS
------------------------- */
.ministries-section {
    background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.8));
    position: relative;
    overflow: hidden;
}

.ministries-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.ministry-card {
    background: rgba(25, 25, 25, 0.8);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
}

.ministry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: height 0.3s ease;
}

.ministry-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.ministry-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 15px 30px rgba(212, 175, 55, 0.2),
        0 0 0 1px rgba(212, 175, 55, 0.1) inset;
}

.ministry-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 3.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

/* Estilos para logos de ministerios */
.ministry-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.ministry-card:hover .ministry-logo-img,
.ministry-card:hover .ministry-icon {
    transform: scale(1.1);
}

.ministry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gold);
    position: relative;
    z-index: 2;
}

.ministry-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.ministry-description {
    color: #aaa;
    font-style: italic;
    margin: 10px 0;
    font-size: 0.95rem;
    flex-grow: 1;
}

.ministry-link {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: var(--gold-light);
    border: 2px solid var(--gold);
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    margin-top: 15px;
}

.ministry-link:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Efecto de brillo al pasar el mouse */
.ministry-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    border-radius: 50%;
}

.ministry-card:hover::after {
    width: 300px;
    height: 300px;
}

/* Animación de aparición para las tarjetas */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ministry-card {
    animation: cardAppear 0.6s ease forwards;
    opacity: 0;
}

/* Retrasos escalonados para las animaciones */
.ministry-card:nth-child(1) { animation-delay: 0.1s; }
.ministry-card:nth-child(2) { animation-delay: 0.2s; }
.ministry-card:nth-child(3) { animation-delay: 0.3s; }
.ministry-card:nth-child(4) { animation-delay: 0.4s; }
.ministry-card:nth-child(5) { animation-delay: 0.5s; }
.ministry-card:nth-child(6) { animation-delay: 0.6s; }
.ministry-card:nth-child(7) { animation-delay: 0.7s; }
.ministry-card:nth-child(8) { animation-delay: 0.8s; }
.ministry-card:nth-child(9) { animation-delay: 0.9s; }
.ministry-card:nth-child(10) { animation-delay: 1.0s; }
.ministry-card:nth-child(11) { animation-delay: 1.1s; }

/*Asegurar que todos los iconos de ministerio tengan la misma altura */
.ministry-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 3.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

/* Estilos para imágenes de logos de ministerios */
.ministry-card .ministry-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.ministry-card:hover .ministry-logo-img,
.ministry-card:hover .ministry-icon {
    transform: scale(1.1);
}

/* -------------------------
   SECCIÓN EVENTOS
------------------------- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    background: rgba(30, 30, 30, 0.7);
    padding: 30px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
}

.event-date {
    background: var(--gold);
    color: var(--black);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
    font-family: 'Cinzel', serif;
}

.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.event-date .month {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.event-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.event-time {
    color: var(--gold-light);
    margin-bottom: 10px;
    font-weight: 500;
}

.event-info p {
    color: #ccc;
}

/* Estilos para el placeholder de eventos */
.events-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.coming-soon {
    text-align: center;
    padding: 50px;
    background: rgba(30, 30, 30, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    max-width: 600px;
    width: 100%;
}

.coming-soon h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.coming-soon p {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* -------------------------
   FOOTER
------------------------- */
footer {
    background: var(--dark);
    padding: 70px 0 25px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: var(--gold);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-column p, .footer-column a {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 12px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--gold);
}

.footer-column strong {
    color: var(--gold);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #777;
    font-size: 0.9rem;
}

/* -------------------------
   RESPONSIVE DESIGN
------------------------- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .church-title {
        font-size: 2.8rem;
    }
    
    .church-subtitle {
        font-size: 1.8rem;
    }
    
    .church-logo {
        width: 200px;
        height: 200px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .nav-container {
        flex-direction: column;
    }
    
    .nav-logo {
        margin-bottom: 15px;
    }
    
    .ministries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ministry-card {
        padding: 25px 20px;
    }
    
    .ministry-icon {
        height: 80px;
    }
    
    .ministry-logo-img {
        width: 70px;
        height: 70px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Animaciones para scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ---------- TABLETS (768px - 1024px) ---------- */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        padding: 0 40px;
    }
    
    .church-title {
        font-size: 3.2rem;
    }
    
    .church-subtitle {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .ministries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-img {
        height: 400px;
        margin-top: 20px;
    }
}

/* ---------- MÓVILES GRANDES (576px - 768px) ---------- */
@media (max-width: 768px) {
    /* HEADER RESPONSIVE */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 102; /* Aumentado para estar por encima */
        position: relative;
    }
    
    .menu-toggle span {
        width: 100%;
        height: 3px;
        background: var(--gold);
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        padding: 100px 30px 30px;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 100;
        border-left: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        /* Asegurar que el contenido no se superponga con el botón */
        box-sizing: border-box;
    }
    
    nav.active {
        right: 0;
    }
    
    /* Ajustar el padding superior para que el primer elemento no quede detrás del botón */
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 20px; /* Espacio adicional superior */
        padding-top: 10px; /* Más espacio */
        width: 100%;
    }
    
    nav ul li {
        margin: 0 0 25px 0;
        width: 100%;
    }
    
    nav ul li a {
        font-size: 1.2rem;
        padding: 12px 0; /* Aumentar padding para mejor tactilidad */
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    nav ul li a::after {
        display: none;
    }
    
    /* Posicionar el botón de menú correctamente en el header */
    .nav-container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }
    
    /* Asegurar que el logo no se superponga */
    .nav-logo {
        z-index: 101;
    }
    
    /* Ajuste para pantallas muy pequeñas */
    @media (max-width: 480px) {
        nav {
            width: 250px;
            padding: 90px 25px 25px;
        }
        
        nav ul {
            margin-top: 15px;
        }
        
        nav ul li {
            margin-bottom: 20px;
        }
        
        nav ul li a {
            font-size: 1.1rem;
            padding: 10px 0;
        }
    }
}

/* ---------- MÓVILES PEQUEÑOS (hasta 576px) ---------- */
@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .church-title {
        font-size: 2rem;
    }
    
    .church-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .ministry-card {
        padding: 20px 15px;
    }
    
    .ministry-card h3 {
        font-size: 1.2rem;
    }
    
    .ministry-description {
        font-size: 0.9rem;
    }
    
    .ministry-link {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* Asegurar que las animaciones funcionen */
    .reveal-mask.revealing {
        animation: revealMask 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    .church-logo.concentric-pulse {
        animation: concentricPulse 0.6s cubic-bezier(0.68, -0.55, 0.265, 2) forwards;
    }
}

/* ---------- ORIENTACIÓN HORIZONTAL ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .church-logo {
        width: 150px;
        height: 150px;
    }
    
    nav {
        width: 250px;
    }
}

/* ---------- DISPOSITIVOS DE ALTA RESOLUCIÓN ---------- */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
}

/* ============================================
   ARREGLOS ESPECÍFICOS PARA ANIMACIONES EN MÓVIL
   ============================================ */

/* Asegurar que las animaciones de revelado funcionen bien */
@media (max-width: 768px) {
    .reveal-mask {
        width: 0;
        height: 0;
    }
    
    @keyframes revealMask {
        0% {
            width: 220px;
            height: 220px;
            opacity: 1;
        }
        100% {
            width: 150vh;
            height: 150vh;
            opacity: 1;
        }
    }
}

/* Prevenir problemas de scroll durante animaciones */
@media (max-width: 768px) {
    body.animating {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* Ajustar el chatbot para móviles */
@media (max-width: 768px) {
    #chatbot-container {
        width: calc(100% - 40px) !important;
        right: 20px !important;
        left: 20px !important;
        bottom: 80px !important;
        height: 60vh !important;
    }
    
    #chatbot-toggle {
        padding: 12px 15px !important;
        font-size: 0.9rem;
    }
    
    #chatbot-toggle span:last-child {
        display: inline !important;
    }
}

/* Asegurar que los textos no se salgan */
@media (max-width: 768px) {
    p, li, a, span {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Mantener proporciones de imágenes */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 480px) {
    #chatbot-messages {
        padding: 10px !important;
        font-size: 0.9rem;
    }
    
    .quick-btn {
        font-size: 0.8rem !important;
        padding: 5px 10px !important;
    }
    
    #user-input {
        font-size: 0.9rem;
        padding: 8px 12px !important;
    }
}

/* ================== CASAS DE ORACIÓN ================== */

.casas-oracion {
  padding: 80px 20px;
  background: #f7f7f7;
}

.casas-oracion .section-title,
.casas-oracion .section-subtitle {
  text-align: center;
}

.casas-oracion .section-subtitle {
  margin-bottom: 30px;
  color: #666;
}

.buscador-barrio {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.buscador-barrio input {
  width: 260px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.buscador-barrio button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #2c3e50;
  color: #fff;
  cursor: pointer;
}

/* 🔑 CLAVE PARA LEAFLET */
#mapa-casas {
  width: 100%;
  height: 480px;
  min-height: 480px;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

@media (max-width: 768px) {
  #mapa-casas {
    height: 360px;
    min-height: 360px;
  }
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}


.casas-oracion {
  background: #0e0e0e;
  color: #eaeaea;
  padding: 90px 20px;
}

/* Animación de entrada */
.casas-oracion {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.casas-oracion.visible {
  opacity: 1;
  transform: translateY(0);
}

.casas-oracion .section-title {
  color: #ffffff;
}

.casas-oracion .section-subtitle {
  color: #bbbbbb;
}

/* Buscador */
.buscador-barrio input {
  background: #1c1c1c;
  color: #fff;
  border: 1px solid #333;
}

.buscador-barrio input::placeholder {
  color: #888;
}

.buscador-barrio button {
  background: #ffffff;
  color: #000;
  font-weight: 600;
}

/* MAPA */
#mapa-casas {
  margin-bottom: 40px;
  border-radius: 18px;
  border: 1px solid #222;
}

/* LISTA */
.lista-casas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.casa-card {
  background: #161616;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid #262626;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
}

.casa-card:hover {
  transform: translateY(-4px);
  border-color: #ffffff;
}

.casa-card h4 {
  margin-bottom: 8px;
  color: #ffffff;
}

.casa-card p {
  font-size: 14px;
  color: #cccccc;
  margin: 4px 0;
}

.casa-card em {
  color: #ffb347;
  font-style: normal;
}

/* ================== LEMA DEL AÑO ================== */

.lema-anual {
  position: relative;
  min-height: 80vh;
  background: radial-gradient(
    circle at top,
    #1a1a1a,
    #000000
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.lema-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.9)
  );
  z-index: 1;
}

.lema-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;

  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.lema-anual.visible .lema-content {
  opacity: 1;
  transform: translateY(0);
}

.lema-badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.lema-frase {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

.lema-versiculo {
  font-size: 1.2rem;
  letter-spacing: 3px;
  opacity: 0.8;
  margin-bottom: 25px;
}

.lema-subfrase {
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffcc70;
}

.lema-texto {
  max-width: 720px;
  margin: 35px auto 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  font-style: italic;
}

/* Mobile */
@media (max-width: 768px) {
  .lema-anual {
    min-height: 70vh;
  }
}

/* ================== MEJORAS PARA CASAS DE ORACIÓN ================== */

/* Ayuda de búsqueda */
.ayuda-busqueda {
  background: rgba(30, 30, 30, 0.8);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin-top: 20px;
}

.ayuda-busqueda h4 {
  color: var(--gold);
  margin-bottom: 15px;
}

.ayuda-busqueda ul {
  list-style: none;
  padding-left: 0;
}

.ayuda-busqueda li {
  margin-bottom: 8px;
  color: #ccc;
  padding-left: 25px;
  position: relative;
}

.ayuda-busqueda li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.ejemplos {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.ejemplo-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ejemplo-btn {
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #ffd700;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.ejemplo-btn:hover {
  background: rgba(212, 175, 55, 0.2);
}

/* Sin resultados */
.sin-resultados {
  text-align: center;
  padding: 40px 20px;
}

.sin-resultados h4 {
  color: var(--gold);
  margin-bottom: 15px;
}

.sugerencias {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.sugerencia-btn {
  padding: 10px 20px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #ffd700;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sugerencia-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.ayuda-texto {
  color: #aaa;
  font-style: italic;
  margin-top: 15px;
}

/* Tarjetas de casas cercanas */
.casa-cercana {
  border-left: 4px solid #4CAF50;
  opacity: 0.9;
}

.casa-cercana:hover {
  opacity: 1;
}

.casa-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.badge-cercana {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.nota-casa {
  color: #ff9800;
  font-style: italic;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 152, 0, 0.3);
}

/* Mejoras para el input */
.buscador-barrio input {
  width: 100%;
  max-width: 400px;
  padding: 12px 20px;
  font-size: 1rem;
}

.buscador-barrio button {
  padding: 12px 30px;
  background: var(--gold);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buscador-barrio button:hover {
  background: var(--gold-light);
}

/* ================== ESTILOS PARA BAUTISMOS ================== */

/* Opción 1: Tarjeta especial en eventos */
.especial-bautismo {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9), rgba(0, 150, 255, 0.8));
    border-color: rgba(100, 200, 255, 0.3);
}

.especial-bautismo .event-date {
    background: rgba(255, 255, 255, 0.9);
    color: #1e3c72;
}

.especial-bautismo h3 {
    color: white;
}

.especial-bautismo .event-time {
    color: #b3e0ff;
}

.cta-button.small {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 15px;
    display: inline-block;
}

/* Opción 2: Sección independiente */
.bautismos-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
                url('https://images.unsplash.com/photo-1533135107853-9f6a6a8d4b3b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    position: relative;
}

.bautismo-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.bautismo-text {
    flex: 1;
    min-width: 300px;
}

.bautismo-text h3 {
    color: #4da6ff;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.bautismo-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 3px solid #4da6ff;
}

.bautismo-info h4 {
    color: #4da6ff;
    margin-bottom: 15px;
}

.bautismo-info p {
    color: #ddd;
    margin-bottom: 10px;
}

.bautismo-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bautismo-simbolo {
    text-align: center;
    padding: 40px;
    background: rgba(77, 166, 255, 0.1);
    border-radius: 50%;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed rgba(77, 166, 255, 0.3);
}

.bautismo-simbolo span {
    font-size: 4rem;
    margin-bottom: 15px;
}

.bautismo-simbolo p {
    color: #4da6ff;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Opción 3: Banner en Hero */
.bautismo-banner {
    background: rgba(30, 60, 114, 0.85);
    padding: 15px 25px;
    border-radius: 10px;
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(100, 200, 255, 0.3);
    animation: pulseAgua 3s infinite;
}

@keyframes pulseAgua {
    0%, 100% { box-shadow: 0 0 10px rgba(77, 166, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(77, 166, 255, 0.5); }
}

.bautismo-banner p {
    margin: 0;
    color: white;
    font-size: 1rem;
}

.bautismo-link {
    color: #b3e0ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.bautismo-link:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .bautismo-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .bautismo-info {
        padding: 20px;
    }
    
    .bautismo-simbolo {
        width: 200px;
        height: 200px;
    }
    
    .bautismo-simbolo span {
        font-size: 3rem;
    }
    
    .bautismo-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Mejoras para eventos flotantes */
.fecha-evento {
    color: var(--gold);
    font-weight: 600;
    margin: 5px 0;
}

.desc-evento {
    color: #ddd;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Indicador de rotación */
.evento-flotante::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    animation: progressBar 20s linear forwards;
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* ================== SISTEMA DE ANUNCIOS DE EVENTOS ================== */

/* Banner superior */
.evento-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1002;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-badge {
    background: #000;
    color: var(--gold-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.banner-content p {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.banner-btn {
    background: #000;
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: #111;
    transform: translateY(-2px);
}

.close-banner {
    background: transparent;
    border: none;
    color: #000;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
}

/* Notificación flotante */
.evento-flotante {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 320px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--gold);
    border-radius: 15px;
    z-index: 1002;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    animation: slideInRight 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flotante-header {
    background: var(--gold);
    color: #000;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.close-flotante {
    background: transparent;
    border: none;
    color: #000;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flotante-content {
    padding: 20px;
}

.flotante-content h4 {
    color: var(--gold-light);
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.fecha-evento {
    color: var(--gold);
    font-weight: 600;
    margin: 5px 0;
    font-size: 0.9rem;
}

.desc-evento {
    color: #ddd;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.btn-flotante {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-flotante:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .evento-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .evento-flotante {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 20px;
    }
}

/* Asegurar que no se superponga con el chatbot */
@media (max-width: 480px) {
    .evento-flotante {
        bottom: 80px;
    }
}

/* ================== MEJORAS PARA CASAS DE ORACIÓN ================== */

.marcador-usuario {
    font-size: 24px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.casa-cercana {
    border-left: 4px solid #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.badge-cercana {
    background: #4CAF50;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.distancia-info {
    color: #4CAF50;
    font-weight: 600;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(76, 175, 80, 0.3);
}

.ver-todas-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

.ver-todas-btn {
    background: var(--gold);
    color: black;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ver-todas-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.sin-resultados {
    text-align: center;
    padding: 30px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 15px;
    margin: 20px 0;
}

.cargando {
    text-align: center;
    padding: 30px;
    color: var(--gold);
}

/* Responsive */
@media (max-width: 768px) {
    .sugerencias {
        flex-direction: column;
    }
    
    .sugerencia-btn {
        width: 100%;
    }
}
/* ================== CHATBOT MEJORADO ================== */

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #d4af37;
    color: black;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1000;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.chatbot-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: #ffd700;
}

.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 600px;
    background: rgba(20, 20, 20, 0.98);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 1001;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.chatbot-container.active {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: #d4af37;
    color: black;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: black;
}

.close-chatbot {
    background: none;
    border: none;
    color: black;
    font-size: 1.8rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-chatbot:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
}

.bot-message {
    align-self: flex-start;
    background: rgba(40, 40, 40, 0.9);
    padding: 15px 18px;
    border-radius: 18px 18px 18px 5px;
    max-width: 85%;
    color: #f0f0f0;
    line-height: 1.5;
    font-size: 0.95rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    white-space: pre-line;
}

.user-message {
    align-self: flex-end;
    background: rgba(212, 175, 55, 0.15);
    padding: 12px 18px;
    border-radius: 18px 18px 5px 18px;
    max-width: 85%;
    color: #fff;
    line-height: 1.5;
    font-size: 0.95rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    white-space: pre-line;
}

/* Indicador de escritura */
.escribiendo {
    padding: 10px 20px;
    display: flex;
    gap: 5px;
    align-items: center;
    background: rgba(40, 40, 40, 0.5);
    margin: 0 20px 10px 20px;
    border-radius: 20px;
    width: fit-content;
}

.dot {
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* Botones rápidos */
.quick-questions {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 120px;
    overflow-y: auto;
}

.quick-btn {
    padding: 8px 15px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #ffd700;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* Input area */
.chatbot-input {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

#user-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(50, 50, 50, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    color: #f0f0f0;
    font-family: inherit;
    font-size: 0.95rem;
}

#user-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

#send-btn {
    padding: 0 25px;
    background: #d4af37;
    color: black;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

#send-btn:hover {
    background: #ffd700;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100% - 40px);
        height: 550px;
        right: 20px;
        left: 20px;
        bottom: 80px;
    }
    
    .quick-questions {
        max-height: 100px;
    }
    
    .quick-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .chatbot-toggle span:last-child {
        display: none;
    }
    
    .chatbot-toggle {
        padding: 15px;
        border-radius: 50%;
    }
    
    .chatbot-toggle span:first-child {
        font-size: 1.5rem;
        margin: 0;
    }
}

/* ================== CASAS DE ORACIÓN - ESTILOS CON MOVIMIENTO ================== */

.casas-oracion {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Fondo con partículas decorativas */
.casas-oracion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 90% 70%, rgba(212, 175, 55, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 30% 80%, rgba(255, 215, 0, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.casas-oracion .container {
    position: relative;
    z-index: 1;
}

/* Títulos con efecto brillante */
.casas-oracion .section-title {
    color: var(--gold);
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
    50% { text-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
}

.casas-oracion .section-subtitle {
    text-align: center;
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 50px;
    font-style: italic;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.casas-oracion .section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: lineWidth 3s ease-in-out infinite;
}

@keyframes lineWidth {
    0%, 100% { width: 50%; left: 25%; }
    50% { width: 100%; left: 0; }
}

/* Grid de casas */
.lista-casas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Tarjetas con hover effects */
.casa-card {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Efecto de borde luminoso */
.casa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.1),
        transparent
    );
    transition: left 0.8s ease;
    z-index: 1;
    pointer-events: none;
}

.casa-card:hover::before {
    left: 100%;
}

/* Efecto de borde superior */
.casa-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.4s ease;
    z-index: 2;
}

.casa-card:hover::after {
    width: 100%;
}

.casa-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 175, 55, 0.2);
    background: rgba(40, 40, 40, 0.8);
}

/* Títulos de las tarjetas */
.casa-card h4 {
    color: var(--gold);
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
    position: relative;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.casa-card:hover h4 {
    letter-spacing: 1px;
    color: var(--gold-light);
}

/* Icono decorativo antes del título */
.casa-card h4::before {
    content: '🏠';
    position: absolute;
    left: -30px;
    opacity: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.casa-card:hover h4::before {
    left: -5px;
    opacity: 1;
}

/* Texto de las tarjetas */
.casa-card p {
    margin: 10px 0;
    color: #ddd;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.casa-card strong {
    color: var(--gold);
    font-weight: 600;
    transition: color 0.3s ease;
}

.casa-card:hover strong {
    color: var(--gold-light);
}

/* Animación de aparición al hacer scroll */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.casa-card {
    animation: cardAppear 0.8s ease forwards;
    opacity: 0;
}

/* Retrasos escalonados para cada tarjeta */
.casa-card:nth-child(1) { animation-delay: 0.1s; }
.casa-card:nth-child(2) { animation-delay: 0.2s; }
.casa-card:nth-child(3) { animation-delay: 0.3s; }
.casa-card:nth-child(4) { animation-delay: 0.4s; }
.casa-card:nth-child(5) { animation-delay: 0.5s; }
.casa-card:nth-child(6) { animation-delay: 0.6s; }
.casa-card:nth-child(7) { animation-delay: 0.7s; }
.casa-card:nth-child(8) { animation-delay: 0.8s; }

/* Decoración flotante (JS va a agregar más) */
.casa-decoracion {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
    animation: floatDecoration 15s linear infinite;
}

@keyframes floatDecoration {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .casas-oracion {
        padding: 60px 0;
    }
    
    .casas-oracion .section-title {
        font-size: 2rem;
    }
    
    .casas-oracion .section-subtitle {
        font-size: 1rem;
        white-space: normal;
        padding: 0 20px;
    }
    
    .lista-casas {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .casa-card {
        padding: 25px;
    }
    
    .casa-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .casa-card h4::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .casa-card {
        padding: 20px;
    }
    
    .casa-card h4 {
        font-size: 1.1rem;
    }
    
    .casa-card p {
        font-size: 0.9rem;
    }
}

    /* ================== CRÉDITO DEL DESARROLLADOR ================== */
    .developer-credit {
        text-align: center;
        padding: 15px 0 10px;
        background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.8));
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        position: relative;
        z-index: 10;
    }

    .developer-credit p {
        margin: 0;
        color: #888;
        font-family: 'Playfair Display', serif;
        transition: color 0.3s ease;
    }

    .developer-credit a {
        color: #aaa;
        text-decoration: none;
        font-weight: 500;
        position: relative;
        transition: all 0.3s ease;
        padding: 2px 4px;
    }

    .developer-credit a::before {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background: linear-gradient(90deg, var(--gold), var(--gold-light));
        transition: width 0.3s ease;
    }

    .developer-credit a:hover {
        color: var(--gold-light);
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
    }

    .developer-credit a:hover::before {
        width: 100%;
    }

    /* Animación sutil al cargar */
    @keyframes creditFadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .developer-credit {
        animation: creditFadeIn 0.8s ease 0.5s both;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .developer-credit {
            padding: 12px 0 8px;
            font-size: 0.75rem;
        }
    }