/* Variables de color */
:root {
    --primary: #1a4a7a;
    --secondary: #2ecc71;
    --dark: #333;
    --light: #f4f4f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--primary);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--secondary);
}

.btn-donar {
    background: var(--secondary);
    border-radius: 5px;
    font-weight: bold;
}

/* Hero */
.hero {
    height: 60vh;
    background: #cccccc url("../img/20220116_144835.jpg") center/cover no-repeat fixed;
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.btn-main {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: var(--secondary);
    color: black;
    text-decoration: none;
    border: 2px solid var(--white);
    border-radius: 5px;
}

/* Secciones */
.section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.bg-light { background: var(--light); }

.card-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    text-align: justify;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.img-box {
    background: #ddd;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

/* Footer */
footer {
    background: black;
    color: var(--white);
    text-align: center;
    padding-top: 15px;
}

.socials a {
    color: var(--secondary);
    margin: 0 10px;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Aquí podrías agregar un menú hamburguesa con JS */
    }
    
    .hero h1 { font-size: 1.8rem; }
}

/* Estilos del Formulario */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, .contact-form textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Estilos de la Ventana Modal */
.modal {
    display: none; /* Se mantiene oculto hasta que se activa */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
}

.info-donacion {
    background: #eef9f1;
    padding: 1rem;
    margin: 1.5rem 0;
    border-left: 5px solid var(--secondary);
    text-align: left;
}

.socials {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacio entre iconos */
}

.socials a {
    color: var(--secondary); /* Color verde que definimos antes */
    font-size: 1.8rem; /* Tamaño del icono */
    transition: transform 0.3s, color 0.3s;
    text-decoration: none;
}

.socials a:hover {
    color: var(--white);
    transform: translateY(-5px); /* Efecto de salto al pasar el mouse */
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-secondary {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: blue;
    color: var(--white);
    border: 2px solid var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #eac102;
    color: var(--primary);
}

/* Añadir esto a .hero-content en style.css */
.hero-content h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Hace el texto más legible */
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px; /* Altura base de las filas */
    grid-auto-flow: dense; /* Rellena huecos automáticamente */
    gap: 15px;
    margin-top: 30px;
}

.mosaic-item {
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    color: white;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
    font-weight: bold;
    transition: transform 0.4s ease;
}

/* Efecto al pasar el mouse */
.mosaic-item:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Clases para variar el tamaño del mosaico */
.mosaic-item.tall {
    grid-row: span 2; /* Ocupa 2 filas de alto */
}

.mosaic-item.wide {
    grid-column: span 2; /* Ocupa 2 columnas de ancho */
}

/* Ajustes para móviles (Pantallas de menos de 768px) */
@media (max-width: 768px) {
    .img-logo {
        width: 50px;           /* Logo más pequeño en móviles */
        height: 50px;
        border-width: 2px;     /* Borde más fino */
    }

    .logo-flotante {
        top: 8px;              /* Lo pegamos más al borde superior */
        left: 10px;
        /* Reducimos el giro en móviles para que no distraiga tanto */
        transition: transform 0.4s ease; 
    }

    /* Ajuste del espacio superior del contenido para que el logo no lo tape */
    .hero-content {
        padding-top: 60px;     /* Empuja el texto hacia abajo */
    }

    .hero h1 {
        font-size: 1.8rem;     /* Texto más pequeño para que quepa bien */
        padding: 0 10px;
    }

    /* Opcional: Hacer que el logo sea menos opaco al hacer scroll 
       para ver el texto de fondo (requeriría un toque de JS) */
}

/* Estilo actualizado para el Logo Flotante con Giro */
.logo-flotante {
    position: fixed;
    top: 15px;
    left: 20px;
    z-index: 2500;
    /* La transición controla la suavidad del movimiento */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}

.img-logo {
    width: 80px;
    height: 80px; /* Definir alto y ancho igual ayuda al giro */
    object-fit: cover; /* Asegura que la imagen no se estire */
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 3px solid var(--white);
    background: var(--white);
    display: block;
}

/* Efecto de Giro Suave al pasar el mouse */
.logo-flotante:hover {
    /* Escala un poco y gira 360 grados */
    transform: scale(1.1) rotate(360deg);
}

/* Ajuste opcional: que el logo gire al revés si se prefiere, 
   cambiando 360deg por -360deg */



.footer-elegant {
  background-color: #1a1a1a; /* Fondo oscuro elegante */
  text-align: center;
}

.social-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 20px;
}

.social-icon {
  color: #fff; /* Color base blanco */
  font-size: 1.8rem;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  display: inline-block;
}

.social-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.social-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #333; /* Fondo base neutro */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.4s ease;
}

/* Efectos al pasar el mouse (Fondo oficial) */

.facebook:hover { background-color: #1877F2; }

/* El degradado de Instagram requiere un ajuste en el fondo */
.instagram:hover { 
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); 
}

.x-twitter:hover { background-color: #000000; }

.linkedin:hover { background-color: #0A66C2; }

.whatsapp:hover { background-color: #25D366; }

/* Animación de rebote */
.social-circle:hover {
  transform: translateY(-5px);
  box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
}

.social-circle i {
  font-family: "Font Awesome 6 Brands" !important; /* Fuerza la carga de la fuente de iconos */
  display: block; 
}

.social-circle svg {
  width: 20px; /* Tamaño del icono dentro del círculo */
  height: 20px;
  fill: white; /* Color del icono */
  transition: all 0.3s ease;
}

/* Para Instagram específicamente (el truco del degradado con SVG) */
.instagram:hover svg {
  fill: white; /* En círculos es mejor mantener el icono blanco */
}

/* Estilos del Botón Profesional 19ABR2026*/
.boton-leer-mas {
    display: inline-block;
    padding: 5px 5px;
    margin-top: 10PX;
    background-color: var(--secondary); /* Color azul profesional */
    color: #000000;
    text-decoration: none; /* Quita el subrayado del enlace */
    border-radius: 30px; /* Bordes redondeados modernos */
    font-weight: bold;
    font-size: 11px;
    transition: all 0.3s ease; /* Transición suave para el hover */
    border: 2px solid transparent;
    font-family: calibri;
}

/* Efecto Hover (al pasar el ratón) */
.boton-leer-mas:hover {
    background-color: #ffffff;
    color: #007bff;
    border: 2px solid #007bff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); /* Sombra suave */
    transform: translateY(-2px); /* Pequeño salto hacia arriba */
}

/* Animación de la flecha al pasar el ratón */
.boton-leer-mas .arrow {
    transition: margin-left 0.3s ease;
}

.boton-leer-mas:hover .arrow {
    margin-left: 8px; /* Mueve la flecha a la derecha */
}