/* ==========================================================================
   1. ESTILOS GENERALES Y RESETS
   ========================================================================== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.centrar {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   Componentes comunes e imágenes
   ========================================================================== */
.logo { padding: 20px; }

.logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================================================
   Header y Menú
   ========================================================================== */
header {
    background: #003f78;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 1000; /* Asegura que quede por encima de todo */
}  

header nav {
    padding-right: 50px;
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    text-align: center;
    padding: 5px;
}

.inicio {
    background: white;
    width: 80px;
    height: 40px;
    border-radius: 20px;
    color: black;
}

.inicio:hover {
    background: black;
    color: white;
    transition: 0.5s;
}

/* ==========================================================================
   Sección Hero (Banner)
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)), url('../img/panoramica.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    color: white;
    font-size: 3rem;
    text-align: center;
    padding: 0 20px;
}

/* ==========================================================================
   Sección Perfil / Misión y Visión
   ========================================================================== */
#perfil {
    background-color: #0a192f;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 140px 10% 60px 10%; /* Ajustado padding superior por el header fixed */
}

.contenido-perfil { padding: 0 20px; }

#perfil h2, #perfil p { color: white; }

#perfil h2 {
    font-family: 'Cinzel', serif;
    padding-bottom: 40px;
}

#perfil p {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    line-height: 1.5;
}

.foto-antigua {
    padding: 0 40px; 
    align-self: center; 
}

.foto-antigua img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.7s, box-shadow 0.7s; 
    border: 2px solid white;
}

.foto-antigua img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(241, 235, 217, 0.2);
}

/* ==========================================================================
   Artículo de Versículo
   ========================================================================== */
#versiculo-biblico {
    background: white;
    height: 60vh;
    padding: 50px;
}    

#versiculo-biblico p {
    color: black;
    padding: 40px 70px 20px 70px;
    font-size: 3rem;
    text-align: center;
}

cite {
    display: flex;
    justify-content: center;
    font-size: 40px;
    font-weight: 600;
}

/* ==========================================================================
   Sección Quiénes Somos
   ========================================================================== */
#Quiénes-Somos {
    min-height: 100vh;
    background: #0a192f;
    padding-bottom: 60px;
}

.contenido-somos h2 {
    color: white;
    text-align: center;
    padding: 40px;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    text-decoration: underline;
}

.contenido-somos p {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 24px;
    text-align: center;
    padding: 0 100px 50px 100px;
    font-weight: 300;
    letter-spacing: 1.9px;
    line-height: 1.6;
}

.fotossomos {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-bottom: 50px;
    flex-wrap: wrap;
}

.fotossomos img {
    width: 350px;          
    height: 350px;          
    border-radius: 50%;      
    object-fit: cover;       
    border: 2px solid white; 
    transition: transform 0.7s, box-shadow 0.7s;
}

.fotossomos img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(241, 235, 217, 0.2);
}

/* ==========================================================================
   Sección Horarios
   ========================================================================== */
#horarios {
    min-height: 100vh;
    background: white;
    padding: 100px 20px 60px 20px; 
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contenedor-tarjetas {
    width: 100%;
    max-width: 650px;
    margin-bottom: 40px;
}

.iglesia-central h2 {
    color: #003f78; 
    padding: 20px;
    font-size: 2rem;
    text-align: center;
}

.jueves, .Domingos {
    background: #f5f5f5; 
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 20px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
}

#horarios h3 {
    color: #222;
    margin-bottom: 12px;
    font-size: 30px;
}

#horarios p {
    color: #555;
    margin: 6px 0;
    font-size: 24px;
    line-height: 1.5;
}

/* ==========================================================================
   Páginas de Video / Sección TikTok Integrada
   ========================================================================== */
.video {
    background: #0a192f; 
    min-height: 100vh;      
    padding-top: 140px;     
    padding-bottom: 80px;   
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video h1 {
    font-family: 'Cinzel', serif;
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.video p {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 0.8px;
    max-width: 750px;
    margin: 0 auto 50px auto; 
    text-align: center;
    font-weight: 300;
    padding: 0 20px;
}

.tiktok-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(325px, 1fr)); 
    gap: 40px;               
    width: 100%;
    max-width: 1150px;       
    padding: 0 20px;         
    justify-items: center;   
    align-items: start;
}

.tiktok-embed {
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    background: #112240; 
    overflow: hidden;
    min-height: 575px;  
    width: 100%;
}

.tiktok-embed section a {
    color: #cbd5e1 !important; 
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.tiktok-embed section p {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: #000000; 
    width: 100%;
}

.pie {
    min-height: 20vh;       
    display: flex;
    justify-content: center; 
    align-items: center;   
    padding: 20px 0;    
}

.pie p {
    color: #ffffff;     
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    text-align: center;
}