/* ===== VARIABLES GLOBALES ===== */
:root {
    --color-primary: #0056b3; /* Azul */
    --color-secondary: #575757; /* Gris oscuro */
    --color-dark: #333; /* Negro */
    --color-light: #f5f5f5; /* Fondo claro */
    --color-accent: #ffcc00; /* Amarillo */
    --font-family: 'Arial', sans-serif;
    --font-size-base: 16px;
    --padding-base: 10px;
}

/* ===== RESETEO Y ESTILOS GLOBALES ===== */
*, *::before, *::after {
    box-sizing: border-box;
}


body {
    color: var(--color-dark);
    font-weight: bold; /* Letras más gruesas */
    font-family: var(--font-family); /* Fuente definida para mayor claridad */
    font-size: var(--font-size-base);
    margin: 0;
    padding: 20px;
    background-color: var(--color-light);
    line-height: 1.6;
    padding-top: 60px 20px 20px 20px; /* Ajusta para la barra de navegación fija */
}

header {
    background-color: var(--color-primary);
    color: white;
    padding: 20px;
    text-align: center;
}

h1, h2, h3 {
    margin-bottom: var(--padding-base);
    font-weight: bold;
}

p {
    margin-bottom: var(--padding-base);
}

/* ===== BARRA DE NAVEGACIÓN ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}

.navbar .logo {
    font-size: 20px;
    color: white;
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 var(--padding-base);
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: var(--padding-base);
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: var(--color-secondary);
}

/* ===== SECCIÓN HERO ===== */
.hero {
    background-image: url('/imagenes/pantalla.webp'); /* Ruta corregida */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: var(--padding-base);
    z-index: 1;
}

.hero h3 {
    font-size: 1.5rem;
    max-width: 800px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.4); /* Mejora la legibilidad */
    padding: var(--padding-base);
    border-radius: 5px;
    z-index: 1;

.hero::before {
}

/* ===== SECCIÓN DE TARJETAS ===== */
.cards-section {
    padding: 40px 20px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

/* ===== GALERÍA DE IMÁGENES ===== */
.gallery-section {
    padding: 20px;
    background-color: #fff; /* Fondo claro para destacar */
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px; /* Espaciado entre imágenes */
    justify-content: center;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    background-color: white;
    text-align: center;
}

.gallery-item img {
    width: 100%; /* La imagen se ajusta al contenedor */
    height: 150px; /* Altura fija */
    object-fit: cover; /* Recorta la imagen para ajustarla */
    border-radius: 5px; /* Bordes redondeados */
    transition: transform 0.3s ease-in-out; /* Animación suave */
}

.gallery-item img:hover {
    transform: scale(1.1); /* Aumenta ligeramente al pasar el cursor */
}

.gallery-item p {
    margin-top: 10px;
    font-size: 14px;
    color: #555; /* Texto en gris */
}

    
/* ===== PIE DE PÁGINA ===== */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

.footer a {
    color: var(--color-accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVIDAD DE LA GALERÍA ===== */
@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr); /* Tres columnas en pantallas medianas */
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h3 {
        font-size: 1.2rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas en pantallas pequeñas */
    }
}

.reflexion-final {
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('fondo-reflexion.jpg') center/cover no-repeat;
  padding: 80px 20px;
  text-align: center;
  color: white;
}

.reflexion-final h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  animation: fadeIn 2s ease-in-out;
}

.reflexion-final p {
  font-size: 1.3em;
  max-width: 700px;
  margin: 0 auto 30px;
  animation: fadeIn 3s ease-in-out;
}

.reflexion-final .reflexion-pregunta {
  font-size: 1.1em;
  font-style: italic;
  animation: fadeIn 4s ease-in-out;
}

/* Animación */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.boton-yeshua {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 30px;
  font-size: 1.1em;
  color: white;
  background-color: #2c89e2;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.boton-yeshua:hover {
  background-color: #1d5fb8;
  transform: scale(1.05);
}
.section-title {
  font-size: 1.8em;
  color: #2c3e50;
  margin-top: 30px;
  border-bottom: 2px solid #ecf0f1;
  padding-bottom: 5px;
}

p {
  font-size: 1.05em;
  color: #34495e;
  line-height: 1.6;
  margin-bottom: 15px;
}

.quote {
  font-style: italic;
  color: #7f8c8d;
}

ul {
  margin-left: 20px;
  color: #34495e;
}

ul li {
  margin-bottom: 10px;
}
