/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Georgia", serif;
    line-height: 1.6;
    color: #040404;
}



/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 150px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: bold;
    color: #1e3a8a;
}

.logo-flame {
    font-size: 1.8rem;
    color: #f97316;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin-left: -4rem;
}

.nav-link {
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #f97316;
}

.nav-btn {
    background: #ffffff;
    color: #1e3a8a;
    padding: 0.7rem 2rem;
    border: 2px solid #f7941e;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #1e3a8a;
    color: #ffffff;
    border: 2px solid #1e3a8a;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #1e3a8a;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
/* ---------------- HERO SECTION ---------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 1rem 1rem;
    background: url("../img/HERO_BANNER1.svg") center/cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 70vh;
    padding: 0 1rem;
}

/* -------- CONTENIDO -------- */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: center;
    max-width: 500px;
    margin-left: 6rem;
    z-index: 3;
}

.hero-title {
    font-size: clamp(1rem, 5vw, 3rem);
    font-weight: bold;
    color: #142157;
    line-height: 1.2;
    text-align: left;
}

.title-line {
    display: block;
}

.hero-btn {
    background: #ffffff;
    color: #1e3a8a;
    border: 2px solid #f7941e;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.hero-btn:hover {
    background: #1e3a8a;
    color: #ffffff;
    border: 2px solid #1e3a8a;
    transform: translateY(-2px);
}

/* -------- SELLO -------- */
.church-seal {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

.seal-image {
    width: clamp(60px, 10vw, 100px);
    height: auto;
    object-fit: contain;
}

.seal-content {
    text-align: center;
    color: #1e3a8a;
    font-size: clamp(0.5rem, 2vw, 0.7rem);
    font-weight: bold;
    line-height: 1.2;
}

/* -------- IMAGEN -------- */
.hero-photo {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    justify-self: center;
    transform: scale(1.05);
    z-index: 2;
}

/* -------- LOGO -------- */
.church-logo {
    position: absolute;
    top: -20px;
    right: -30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 200px;
    z-index: 3;
}

.logo-flame-large {
    font-size: 2rem;
    color: #f97316;
    margin-bottom: 0.5rem;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        margin: 0 auto;
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 3rem);
        text-align: center;
    }

    .hero-btn {
        align-self: center;
    }

    .church-seal {
        justify-content: center;
    }

    .hero-photo {
        width: 90%;
        max-width: 400px;
        margin: 2rem auto 0;
        transform: scale(1);
    }

    .church-logo {
        position: static;
        margin: 2rem auto 0;
        box-shadow: none;
        background: transparent;
        padding: 0;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 1rem 1rem;
        background-position: center;
        background-size: cover;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }

    .seal-image {
        width: 60px;
        height: 60px;
    }
}



/* CONGREGACION SECCION */

.congregacion {
    padding: 60px 10%;
    background-color: #ffffff;
    width: 100%;
    min-height: 100vh;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.congregacion-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.text-section {
    flex: 1 1 45%;
    font-size: 1.1rem;
    color: #000;
    min-width: 280px;
}

.text-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: #142157;
}

.text-section p {
    line-height: 2;
}

.button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: linear-gradient(to right, #f7941e, #e8c068);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    cursor: pointer;
}

.button:hover {
    background: linear-gradient(to right, #408dcc, #142157);
}

.image-section {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 280px;
}

.main-image {
    width: 80%;
    max-width: 500px;
    border-radius: 15px;
    object-fit: cover;
    margin-left: 0;
}

/* -------- RESPONSIVE -------- */

@media (max-width: 992px) {
    .congregacion {
        padding: 40px 5%;
    }

    .congregacion-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    .text-section,
    .image-section {
        flex: 1 1 100%;
        min-width: auto;
    }

    .text-section h2 {
        font-size: 2.8rem;
    }

    .main-image {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .congregacion {
        padding: 30px 3%;
    }

    .text-section h2 {
        font-size: 2.2rem;
    }

    .text-section {
        font-size: 1rem;
        line-height: 1.6;
    }

    .button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .main-image {
        max-width: 300px;
    }
}

/* VIDEO SECTION - SIMPLIFICADO */

.video-section {
    width: 100%;
    height: 100vh;
    margin-top: 100px;
    overflow: hidden;
    position: relative;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .video-section {
        height: 60vh;
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .video-section {
        height: 50vh;
        margin-top: 40px;
    }
}


/* SECTION ANIVERSARIO */
.aniversario {
    text-align: center;
    padding: 3rem 1rem;
    border: 8px solid #d4af37;
    border-radius: 20px;
    max-width: 1000px;
    /* más ancho en desktop */
    width: 100%;
    position: relative;
    background: #fff;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 2rem auto;
}

.aniversario:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
}

.aniversario h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #b8860b;
    animation: fadeInDown 1.5s ease-in-out;
}

.aniversario h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: normal;
    animation: fadeIn 2s ease-in-out;
}

.aniversario .numero {
    font-size: 3.8rem;
    font-weight: bold;
    color: #d4af37;
    animation: zoomIn 2s ease-in-out;
}

.contador {
    margin: 1.5rem 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: #a57c00;
}

.contador span {
    font-size: 1.6rem;
    color: #d4af37;
    margin: 0 8px;
}

/* Fechas */
.aniversario .fechas {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.aniversario .fechas .fiesta {
    background: #fffef8;
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 1.5rem;
    width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aniversario .fechas .fiesta:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.aniversario .fechas p {
    margin: 0.2rem 0;
}

.aniversario .fechas .dia {
    font-size: 2.8rem;
    font-weight: bold;
    color: #d4af37;
    animation: bounce 2s infinite;
}

.aniversario p {
    font-size: 1rem;
    max-width: 600px;
    margin: 1rem auto;
    color: #5a4200;
    line-height: 1.5;
}

/* Decoraciones de esquinas */
.corner {
    width: 40px;
    height: 40px;
    border: 5px solid #d4af37;
    position: absolute;
}

.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-radius: 0 0 50% 0;
}

.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-radius: 0 0 0 50%;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-radius: 0 50% 0 0;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 50% 0 0 0;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .aniversario {
        padding: 2rem 1rem;
    }

    .aniversario h1 {
        font-size: 2rem;
    }

    .aniversario .numero {
        font-size: 2.5rem;
    }

    .aniversario .fechas {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .aniversario .fechas .fiesta {
        width: 90%;
    }
}

/* SECTION TIMELINE */
.lineatiempo {
    width: 100%;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(9, 9, 9, 0.7)), url("../img/bgTL.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Timeline Item Container */
.container {
    padding: 20px 50px;
    position: relative;
    width: 50%;
    animation: movedown 1s linear forwards;
    opacity: 0;
}

@keyframes movedown {
    0% {
        opacity: 0%;
        transform: translateY(-30px);
    }

    100% {
        opacity: 100%;
        transform: translateY(0px);
    }
}

.container:nth-child(1) {
    animation-delay: 0s;
}

.container:nth-child(2) {
    animation-delay: 1s;
}

.container:nth-child(3) {
    animation-delay: 2s;
}

.container:nth-child(4) {
    animation-delay: 3s;
}

.container:nth-child(5) {
    animation-delay: 4s;
}

.container:nth-child(6) {
    animation-delay: 5s;
}

.left-container {
    left: 0;
}

.right-container {
    left: 50%;
}

/* Línea central */

.timeline {
    position: relative;
    z-index: 1;
    /* Para que el ::after no se tape */
}

.timeline::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background: #ffffff;
    margin-left: -3px;
    z-index: -1;
    animation: moveline 6s linear forwards;
}

@keyframes moveline {
    0% {
        height: 0;
    }

    100% {
        height: 100;
    }
}

/* Caja de texto */
.text-box {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.container .text-box h2,
.container .text-box small,
.container .text-box p {
    font-weight: 600;
    color: #1a2a6c;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
    display: inline-block;
    margin-bottom: 15px;
}

/* Iconos circulares */
.container img {
    position: absolute;
    width: 50px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    top: 32px;
    right: -25px;
    z-index: 1;
}

.right-container img {
    left: -25px;
}

.left-container-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 2;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #ffffff;
    right: -15px;
}

.right-container-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 2;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #ffffff;
    left: -15px;
}

/* Responsive (opcional, si quieres mejorar en pantallas chicas) */
@media screen and (max-width: 600px) {
    .container {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }

    .text-box {
        font-size: 13px;
    }

    .text-box small {
        margin-bottom: 10px;
    }

    .right-container {
        left: 0;
    }

    .left-container img,
    .right-container img {
        left: 10px;
    }

    .left-container-arrow,
    .right-container-arrow {
        border-right: 15px solid #fefefe;
        border-left: 0;
        left: -15px;
    }

    .timeline {
        margin: 50px auto;
    }

    .timeline::after {
        left: 30px;
    }

    .container img {
        left: 0 !important;
        right: auto;
    }
}

/* --- MINISTERIOS SECTION --- */

.ministerios {
    padding: 2rem;
    text-align: center;
    background: #f9f9f9;
}

.ministerios h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: "Georgia", sans-serif;
    color: #333;
}

.carousel-container {
    position: relative;
    max-width: 1220px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 400px;
}

.slide {
    position: absolute;
    transition: all 0.6s ease-in-out;
    opacity: 0;
    transform: scale(0.8);
    z-index: 1;
}

.slide img {
    width: 800px;
    max-width: 80vw;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Imagen activa al frente */
.slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 3;
}

/* Imagen izquierda */
.slide.left {
    opacity: 0.8;
    transform: translateX(-60%) scale(0.9);
    z-index: 2;
}

/* Imagen derecha */
.slide.right {
    opacity: 0.8;
    transform: translateX(60%) scale(0.9);
    z-index: 2;
}

/* Flechas */
.prev,
.next {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 2rem;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 5;
}

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev {
    margin-right: 10px;
}

.next {
    margin-left: 10px;
}

/* Indicadores */
.indicators {
    text-align: center;
    margin-top: 15px;
}

.indicators button {
    border: none;
    background: #ccc;
    width: 12px;
    height: 12px;
    margin: 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicators button.active {
    background: #e17f18;
}

/* Responsive */
@media (max-width: 768px) {
    .slide img {
        height: 250px;
    }

    .slide.left {
        transform: translateX(-50%) scale(0.9);
    }

    .slide.right {
        transform: translateX(50%) scale(0.9);
    }
}

@media (max-width: 480px) {
    .slide img {
        height: 200px;
    }

    .prev,
    .next {
        font-size: 1.5rem;
        padding: 5px 10px;
    }
}

/* CULTOS SECTION */

:root {
    --color-fondo-card: #f0f0f5;
    --color-texto-principal: #1a1a1a;
    --color-texto-hora: #ededed;
    --color-hover-fondo: #f57c00;
    --color-hover-hora: #112862;
    --color-hover-texto: #ffffff;
    --sombra-card: 0 4px 12px rgba(10, 10, 50, 0.5);
}

.servicios {
    width: 100%;
    min-height: 100vh;
    margin: 20px 0;
    background-image: url("../img/bgcarousel.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.servicios h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.card {
    background: var(--color-fondo-card);
    color: var(--color-texto-principal);
    padding: 20px 24px;
    border-radius: 18px;
    box-shadow: var(--sombra-card);
    transition: all 0.3s ease;
    text-align: left;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    font-size: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.card p {
    margin: 10px 0;
    font-size: 1rem;
}

.card .hora {
    font-weight: bold;
    color: var(--color-texto-principal);
    margin-top: 10px;
}

/* Hover */
.card:hover {
    background: var(--color-hover-fondo);
    color: var(--color-hover-texto);
}

.card:hover .hora {
    color: var(--color-hover-hora);
    filter: brightness(200%);
}

.card:hover .icon {
    color: var(--color-hover-texto);
    filter: brightness(200%);
}

/* ---------- RESPONSIVE QUERIES ---------- */

@media (max-width: 992px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .servicios h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .servicios h2 {
        font-size: 1.8rem;
    }

    .card {
        padding: 16px;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card p,
    .card .hora {
        font-size: 0.95rem;
    }
}

/* DOMNICAL SECTION */
.escuela-section {
    background-image: url("../img/bgcarousel.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem;
    text-align: center;
    color: #000;
    font-family: "Georgia", serif;
}

.escuela-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.escuela-content {
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.descripcion {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.horario {
    font-weight: bold;
    color: #f7941e;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Galería principal */
.escuela-imagenes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.imagen-card {
    background: linear-gradient(to bottom, #f4f4f4 0%, #f7941e 100%);
    border-radius: 12px;
    padding: 1rem;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.imagen-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.imagen-card span {
    font-weight: bold;
    color: #fff;
}

.imagen-card:hover {
    transform: translateY(-6px);
    background: #142157;
}

.imagen-card:hover span {
    color: #fff;
}

/* Collage */
.collage-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 0 auto;
}

.collage-track {
    display: flex;
    width: calc(250px * 10);
    animation: scrollRight 40s linear infinite;
}

.collage-item {
    flex: 0 0 250px;
    margin: 0 0.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.collage-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.collage-item:hover {
    transform: scale(1.05);
}

@keyframes scrollRight {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .collage-track {
        width: calc(180px * 10);
        animation-duration: 30s;
    }

    .collage-item {
        flex: 0 0 180px;
    }

    .collage-item img {
        height: 140px;
    }
}

/* CELULAS SECTION  */

@keyframes zoomFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animated {
    animation: zoomFadeIn 1s ease-in-out both;
}

.celulas_section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    text-align: center;
}

.descripcion_content {
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.descripcion_content .descripcion {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 400;
    text-align: center;
}

.imagen-card span {
    font-weight: bold;
    color: #fff;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
}

.box_cel {
    overflow: hidden;
    border-radius: 12px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.box_cel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.box_cel:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.box_cel:hover img {
    transform: scale(1.05);
}

/* Ajustes existentes */
.containercel {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 250px;
    gap: 20px;
    padding: 100px 0;
}

.box_cel:nth-child(1),
.box_cel:nth-child(4),
.box_cel:nth-child(8) {
    grid-column: span 2;
}

/* Responsive mejorado */
@media (max-width: 991px) {
    .containercel {
        grid-template-columns: repeat(1, 1fr);
        padding: 30px 0;
    }

    .box_cel:nth-child(1),
    .box_cel:nth-child(4),
    .box_cel:nth-child(8) {
        grid-column: span 1;
    }
}

/* PASTORES SECTION */

.pastores-section {
    text-align: center;
    padding: 4rem 2rem;
    background-image: url("../img/bgcarousel.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pastores-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.pastores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.1rem;
    justify-items: center;
}

.pastor-card {
    background: linear-gradient(to bottom, #f4f4f4 0%, #f7941e 100%);
    border-radius: 15px;
    padding: 3rem 1rem;
    width: 100%;
    max-width: 260px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pastor-card img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.pastor-card h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #000;
}

.pastor-card p {
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.2px;
}

.pastor-card:hover {
    background-color: #142157;
    background-image: none;
    transform: translateY(-8px);
}

.pastor-card:hover h3,
.pastor-card:hover p {
    color: #fff;
}

/* UBICATION SECTION */

.ubicacion-section {
    text-align: center;
    padding: 2rem 1rem;
    color: #333;
}

.ubicacion-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.ubicacion-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* CONTACT SECTION  */

.contact-section {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    background-color: white;
}

.contact-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    animation: fadeIn 1.5s ease-in-out;
}

.form-side {
    flex: 1;
    min-width: 300px;
}

.title {
    font-size: 2.5rem;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
    font-weight: bold;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
}

.slogan {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: black;
}

.send-btn {
    background-color: #f59e0b;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.send-btn:hover {
    background-color: #d97706;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid orange;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    color: black;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    color: #031568;
}

.image-side {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-side img {
    width: 100%;
    max-width: 1200px;
    animation: fadeInRight 1.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-buttons {
        justify-content: center;
    }

    .image-side img {
        max-width: 100%;
        margin-top: 1rem;
    }
}

/* Responsive A COMPLETAR */
@media (max-width: 992px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design NO COMPLETO. */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-btn {
        align-self: center;
    }

    .church-logo {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 1rem;
    }

    .church-seal {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero-container {
        padding: 0 1rem;
    }
}