/*
Theme Name: Tema Salesiano Moderno
Version: 2.0
*/

/* RESET */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #F9FAFB;
    color: #111827;
}

/* ❤️ CONTENEDOR */
.top-heart {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* separación entre imagen y corazón */
    height: 160px;
    background: white;
    overflow: hidden;
    z-index: 999;
}

/* ❤️ CORAZÓN */
.corazon {
    width: 80px;
    height: 80px;
    position: relative;
    animation: latido 1.2s infinite ease-in-out;
}

/* FORMA */
.corazon:before,
.corazon:after {
    content: "";
    position: absolute;
    width: 40px;
    height: 60px;
    background: red;
    border-radius: 40px 40px 0 0;
}

.corazon:before {
    left: 40px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.corazon:after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

/* 💓 PULSO SINCRONIZADO */
.corazon .pulso {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.2);
    animation: pulso 1.2s infinite ease-in-out;
}

/* 🔴 LATIDO */
@keyframes latido {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.25); }
    40%  { transform: scale(0.95); }
    60%  { transform: scale(1.15); }
    80%  { transform: scale(1); }
    100% { transform: scale(1); }
}

/* 💥 PULSO */
@keyframes pulso {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.5;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
    40% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.3;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.5;
    }
}

/* IMAGEN ANIMADA DEL CORAZÓN */
.banner-corazon {
    position: relative;
    width: 420px;
    max-width: 60%;
    animation: entradaBanner 2.5s ease-out forwards;
}

/* ANIMACIÓN */
@keyframes entradaBanner {
    0% {
        transform: translateX(-300px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* HEADER MODERNO */
.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-area a {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    
}




.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

.site-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.08);
}

.main-nav .menu-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.main-nav .menu-list li a {
    display: inline-block;
    padding: 10px 16px;
    color: #111827;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.main-nav .menu-list li a:hover {
    background: #E0F2FE;
    color: #df3b3b;
}

.main-nav .menu-list .current-menu-item a,
.main-nav .menu-list .current_page_item a {
    background: #df3b3b;
    color: white;
}

/* HERO */
/* HERO SLIDER */
.hero-slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.35);
    color: white;
    border: none;
    font-size: 35px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #df3b3b;
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 28px;
    z-index: 6;
    display: flex;
    gap: 10px;
}

.dot {
    width: 13px;
    height: 13px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #df3b3b;
    transform: scale(1.25);
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    text-align: center;
}

.hero-slider h1 {
    font-size: 50px;
}

.hero-slider p {
    font-size: 20px;
}
.btn {
    background: #df3b3b;
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
}

/* SERVICIOS */
.services {
    padding: 120px 20px; /* más espacio arriba y abajo */
    min-height: 400px;   /* altura mínima para mostrar la imagen */
    text-align: center;
}

.cards {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.card {
    flex: 1;
    padding: 30px;
    background: white;
    border-radius: 15px;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.card-persona {
    display: flex;
    align-items: center;
    gap: 28px;
    text-align: left;
}

.foto-persona {
    width: 180px;
    height: 240px;
    object-fit: contain;
    background: white;
    border-radius: 22px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.info-persona h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.info-persona p {
    margin: 0;
    font-size: 18px;
}


.card:hover {
    transform: translateY(-10px);
    background: #E0F2FE;
    color: #df3b3b;
}

.card:hover h3,
.card:hover p {
    color: #df3b3b;
}

/* DESTACADO */
.highlight {
    background: linear-gradient(135deg, #bfbcbc, #bfbcbc);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

/* GALERÍA Y VIDEO */


.galeria-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #111827;
}

.galeria-box p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #374151;
}

.video-box iframe {
    width: 100%;
    height: 320px;
    border-radius: 15px;
}


/* ANUARIOS Y PUBLICACIONES */
.anuarios {
    padding: 90px 40px;
    background: #F9FAFB;
    text-align: center;
}

.anuarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 45px;
}

.anuario-card {
    background: white;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.anuario-card:hover {
    transform: translateY(-10px);
    background: #E0F2FE;
}

.anuario-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 22px;
}

.anuario-card h3 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 12px;
}

.anuario-card p {
    font-size: 16px;
    color: #374151;
    margin-bottom: 25px;
}

/* FOOTER */
.footer {
    background: #111827;
    color: white;
    padding: 35px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 25px;
}

.footer-politica {
    text-align: left;
}

.footer-politica a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.footer-politica a:hover {
    color: #df3b3b;
}

.footer-copy {
    text-align: center;
    font-weight: 600;
}

.footer-redes {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.social-btn {
    width: 42px;
    height: 42px;
    background: white;
    color: #111827;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #df3b3b;
    color: white;
    transform: translateY(-5px);
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .header-container {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    .main-nav .menu-list {
        flex-direction: column;
        gap: 10px;
    }

    .cards {
        flex-direction: column;
    }

    .gallery {
        flex-direction: column;
    }

    .gallery img {
        width: 100%;
    }

    .hero-slider h1 {
    font-size: 32px;
    }
    .galeria-video {
    grid-template-columns: 1fr;
    padding: 60px 20px;
    }

    .video-box iframe {
    height: 220px;
    }

    .anuarios-grid {
    grid-template-columns: 1fr;
    }

    .anuario-card img {
    height: 300px;
    }

    .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    }

    .footer-politica,
    .footer-copy,
    .footer-redes {
    text-align: center;
    justify-content: center;
    }

    .card-persona {
    flex-direction: column;
    text-align: center;
}

.foto-persona {
    width: 120px;
    height: 120px;
}
}

    /* FONDO SECCIÓN FACHADA */

/* CAPA BLANCA PARA EFECTO SUAVE */
.seccion-fachada {
    position: relative;
    background-image: url('img/fachada.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px; /* más altura para lucir la imagen */
}

/* CONTENIDO ENCIMA */
.seccion-fachada * {
    position: relative;
    z-index: 2;
}

/* TITULO CON FONDO BLANCO */
.titulo-seccion {
    display: inline-block;
    background: white;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.footer-contacto {
    margin: 5px 0 0;
    font-size: 14px;
    font-weight: 400;
    color: #D1D5DB;
}

/* ANIMACIONES AL HACER SCROLL */
.animar-card {
    opacity: 0;
    transition: all 0.9s ease;
}

.efecto-izquierda {
    transform: translateX(-120px);
}

.efecto-arriba {
    transform: translateY(120px);
}

.efecto-derecha {
    transform: translateX(120px);
}

.animar-card.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* EFECTOS DIFERENTES ANUARIOS */
.efecto-zoom {
    transform: scale(0.5);
}

.efecto-rotar {
    transform: rotate(-10deg) scale(0.7);
}

.efecto-abajo {
    transform: translateY(150px);
}

/* =========================================
   GALERÍA MULTIMEDIA
========================================= */

.galeria-multimedia {
    padding: 100px 40px;
    background: #f3f4f6;
}

.media-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.4s;
}

.media-card:hover {
    transform: translateY(-10px);
}

.media-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.media-card iframe {
    width: 100%;
    height: 260px;
}

.media-info {
    padding: 25px;
}

.media-info h4 {
    font-size: 24px;
    margin-bottom: 18px;
    color: #111827;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .multimedia-grid {
        grid-template-columns: 1fr;
    }

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

/* =========================================
   GALERÍA SIMPLE
========================================= */

.galeria-multimedia {
    padding: 100px 40px;
    background: #f3f4f6;
}

.galeria-multimedia .titulo-seccion {
    display: table;
    margin: 0 auto 60px auto;
    text-align: center;
}

.multimedia-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.media-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    transition: 0.4s;
}

.media-card:hover {
    transform: translateY(-12px);
}

.media-card img,
.media-card iframe {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.media-info {
    padding: 30px;
    text-align: center;
}

.media-info h3 {
    font-size: 34px;
    margin-bottom: 18px;
    color: #111827;
}

.media-info p {
    font-size: 18px;
    line-height: 1.6;
    color: #4B5563;
    margin-bottom: 25px;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .multimedia-simple {
        grid-template-columns: 1fr;
    }

    .media-card img,
    .media-card iframe {
        height: 240px;
    }

    .media-info h3 {
        font-size: 26px;
    }
}