* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f4f7fb;
  color: #2d3436;
  
}

/* 🔹 Navbar */
.navbar {
  display: flex;
  align-items: center;      /* Centra verticalmente logo y links */
  justify-content: space-between;
  padding: 10px 40px;
  background-color: #fff;
  position: relative;       /* Permite centrar el nav fácilmente */
}

/* 🔹 Logo */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo span {
  color: #1e3799;
  margin-left: 5px;
}

/* 🔹 Navegación centrada */
.navbar nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* 🔹 Centra el nav exactamente */
  display: flex;
  gap: 25px;
}

/* 🔹 Enlaces */
.navbar nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: 0.3s;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: #1e9924;
  border-bottom: 2px solid #1e9924;
  padding-bottom: 3px;
}
.user-icon {
  font-size: 1.5rem;
}

/* 🔹 Contenedor principal */
.container {
  max-width: 4000px; /* ⬅️ Antes 1100px */
  
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 0 10px; /* más espacio lateral */
}

/* Ajuste para que el bloque principal se vea mejor con más ancho */
.intro {
  gap: 80px; /* separación entre texto e imagen */
  padding: 60px; /* más aire interno */
}

.intro .text {
  flex: 1.2; /* texto ocupa un poco más del ancho */
  
}

.image img {
  width: 300px; /* imagen un poco más grande */
}
/* 🔹 Intro */
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 25px;
  padding: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  background-image: url('pollitos/desenfoque.jpg');
  width: 100%;       
  height: 90vh;
 background-size: cover;
}

.text h1 {
  color: #1e3799;
  font-size: 5rem;
  margin-bottom: 10px;
}

.text p {
  color: #000000;
  margin-bottom: 25px;
  font-size: 2rem;
}

.btn-azul {
  background: linear-gradient(135deg, #1e90ff, #38ada9);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(56,173,169,0.3);
}

.btn-azul:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(56,173,169,0.4);
}


/* 🔹 Imagen */
.image img {
  width: 1000px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 🔹 Módulos */

/* --- CSS Actualizado --- */
.modulos {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Mantenemos 3 por fila */
  gap: 25px; /* Espacio entre tarjetas */
  padding: 25px;
  max-width: 1200px; /* Ancho máximo del grid */
  margin: 0 auto; /* Centrado en la página */
}

/* Módulo Base: Garantizamos el tamaño uniforme */
.modulo {
  background: #fff;
  border-radius: 20px;
  padding: 30px; 
  height: 120px; /* <--- Altura Fija */
  display: flex; /* Para centrar el contenido */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.modulo:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.modulo.activo {
  border: 2px solid #1e3799;
  color: #1e3799;
  /* Anulamos padding/width específicos */
}

.modulo.verde {
  border: 2px solid #38ada9;
  color: #38ada9;
  /* Anulamos padding/width específicos */
}



/* Contenedor con módulo y progreso */
.modulo-con-progreso {
  display: flex;
  align-items: center;
  gap: 15px;
}
/* Aseguramos que el modulo dentro del flex tome el 100% del espacio de la celda */
.modulo-con-progreso .modulo {
    flex-grow: 1; 
}
/* Footer */
footer {
  text-align: center;
  padding: 40px;
  color: #777;
  font-size: 0.9rem;
}


/* 🔹 Footer */
footer {
  text-align: center;
  padding: 40px;
  color: #777;
  font-size: 0.9rem;
}




/* 🔹 Círculo de progreso */
.circle {
  position: relative;
  width: 50px;
  height: 50px;
}

.circle svg {
  width: 50px;
  height: 50px;
  transform: rotate(-90deg);
}

.circle circle {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.circle .bg {
  stroke: #ddd;
}

.circle .progress {
  stroke: #007BFF;
  stroke-dasharray: 125.6;
  stroke-dashoffset: 125.6;
  transition: stroke-dashoffset 1s ease;
}

.circle span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
}

.buscador-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  width: 100%;
}

.buscador-container input {
  width: 60%;
  max-width: 500px;
  padding: 12px 18px;
  font-size: 1rem;
  border: 2px solid #b3d9ff;
  border-radius: 30px;
  outline: none;
  transition: all 0.3s ease;
  background-color: #f8fcff;
  color: #003366;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

/* Efecto al enfocar */
.buscador-container input:focus {
  border-color: #007bff;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.3);
  background-color: #ffffff;
  transform: scale(1.02);
}

/* Estilo del placeholder */
.buscador-container input::placeholder {
  color: #6c8dad;
  font-style: italic;
  letter-spacing: 0.5px;
}
.buscador-container {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.buscador-container input {
  width: 100%;
  max-width: 320px;
  padding: 10px 16px;
  border: 2px solid #b3d9ff;
  border-radius: 25px;
  background-color: #f8fcff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  color: #003366;
}

.buscador-container input:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
  outline: none;
}

/* ======== BOTONES DE USUARIO ======== */
.auth-buttons {
  display: flex;
  gap: 10px;
}

.auth-buttons button {
  font-family: 'Poppins', sans-serif;
  padding: 8px 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Botón Registrarse */
.btn-registro {
  background-color: #ffffff;
  color: #007bff;
  border: 2px solid #007bff;
}

.btn-registro:hover {
  background-color: #007bff;
  color: #ffffff;
}

/* Botón Iniciar sesión */
.btn-login {
  background-color: #007bff;
  color: #ffffff;
}

.btn-login:hover {
  background-color: #0056b3;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .auth-buttons {
    justify-content: center;
  }
}
.btn-perfil {
  background-color: #007bff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  width: 45px;
  height: 45px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-perfil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Hover efecto */
.btn-perfil:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

/* Dropdown perfil */
.perfil-dropdown {
  position: absolute;
  top: 55px;
  right: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid #007bff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 10;
  overflow: hidden;
}

.perfil-container.active .perfil-dropdown {
  display: block;
}

.perfil-header {
  background: #007bff;
  color: white;
  text-align: center;
  padding: 12px;
}

.perfil-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 5px;
}

.perfil-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.perfil-dropdown ul li {
  border-top: 1px solid #e1eaff;
}

.perfil-dropdown ul li a {
  display: block;
  padding: 10px 15px;
  color: #003366;
  text-decoration: none;
  transition: background 0.3s;
}

.perfil-dropdown ul li a:hover {
  background: #e6f3ff;
}
.buscador-container {
  display: flex;
  width: 250px;
  max-width: 100%;
}



/* Botón lupa */
.buscador-container {
  display: flex;
  width: 500px;
  max-width: 100%;
}

/* Input */
.buscador-container input {
  flex: 1;
  padding: 10px 15px;
  font-size: 0.95rem;
  border: 2px solid #b3d9ff;
  border-right: none; /* quitar borde derecho para unir con botón */
  border-radius: 25px 0 0 25px; /* redondeado a la izquierda */
  outline: none;
  transition: all 0.3s ease;
}

.buscador-container input:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

/* Botón lupa */
.btn-buscar {
  padding: 10px 15px;
  border: 2px solid #b3d9ff;
  border-left: none; /* quitar borde izquierdo para unir con input */
  border-radius: 0 25px 25px 0; /* redondeado a la derecha */
  background-color: #007bff;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-buscar:hover {
  background-color: #0056b3;
}

.btn-buscar:hover {
  background-color: #0056b3;
}
.overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      visibility: hidden;
      opacity: 0;
      transition: opacity 0.3s, visibility 0.3s;
    }

    .overlay.active {
      visibility: visible;
      opacity: 1;
    }

    .popup {
      background: #222;
      padding: 30px;
      border-radius: 15px;
      text-align: center;
      width: 350px;
      box-shadow: 0 0 20px #007bff;
      animation: aparecer 0.4s ease;
    }

    @keyframes aparecer {
      from { transform: scale(0.7); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    .popup h2 {
      color: #00aaff;
      margin-bottom: 10px;
    }

    .popup p {
      color: #ddd;
      margin-bottom: 20px;
    }

    .popup button {
      background: #007bff;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.3s;
    }

    .popup button:hover {
      background: #0056b3;
    }
  
/* --- Estilos Generales del Footer --- */
footer {
    background-color: #1a1a1a; 
    color: #f0f0f0;
    font-family: Arial, sans-serif;
    padding-top: 45px;
    margin-top: auto;
}

/* --- Contenedor Principal (para las columnas) --- */
.footer-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Estilo de cada Columna y Encabezados --- */
.footer-col {
    flex-basis: 30%;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-col h2,
.footer-col h3 {
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    font-size: 18px;
}

/* --- Línea decorativa --- */
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 50px;
    background-color: #00bcd4; /* Turquesa vibrante */
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #b0b0b0;
}

/* --- Estilo de los Enlaces Normales --- */
.footer-col ul:not(.redes) { /* Solo aplica a listas que NO son las de redes */
    list-style: none;
    padding: 0;
}

.footer-col ul:not(.redes) li {
    margin-bottom: 10px;
}

.footer-col ul:not(.redes) li a {
    text-decoration: none;
    color: #b0b0b0;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-col ul:not(.redes) li a:hover {
    color: #00bcd4;
    padding-left: 5px;
}

/* --- Estilos Específicos para las Redes Sociales --- */
.footer-col .redes {
    display: flex; /* Para que los iconos estén en línea */
    justify-content: flex-start; /* Alinea los iconos a la izquierda */
    gap: 15px; /* Espacio entre los iconos */
    list-style: none;
    padding: 0;
    margin-top: 10px; /* Un pequeño espacio arriba */
}

.footer-col .redes li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;          /* Ancho del círculo */
    height: 40px;         /* Alto del círculo */
    border-radius: 50%;   /* Para hacerlo circular */
    background-color: #333333; /* Fondo gris oscuro para el círculo */
    color: #ffffff;      /* Color del icono dentro del círculo */
    font-size: 18px;      /* Tamaño del icono */
    transition: all 0.3s ease;
    text-decoration: none; /* Asegurarse de que no haya subrayado */
}

/* --- Efecto Hover para los iconos de redes sociales --- */
.footer-col .redes li a:hover {
    background-color: #00bcd4; /* Fondo turquesa al pasar el ratón */
    transform: translateY(-3px); /* Pequeño efecto de elevación */
    color: #ffffff; /* Asegura que el icono permanezca blanco */
}

/* Colores específicos de marca para los iconos si lo deseas (opcional) */
/*
.footer-col .redes li a .fa-facebook-f:hover { background-color: #3b5998; }
.footer-col .redes li a .fa-instagram:hover { 
    background-image: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: #fff;
}
.footer-col .redes li a .fa-whatsapp:hover { background-color: #25d366; }
*/

/* --- Barra Inferior de Copyright --- */


/* --- Estilos Responsivos (para móviles) --- */
@media (max-width: 768px) {
    .footer-contenedor {
        flex-direction: column; 
        padding: 0 30px;
    }

    .footer-col {
        flex-basis: 100%;
        min-width: 0;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col .redes {
        justify-content: center; /* Centra los iconos en móviles */
    }
}
/* --- Estilos para la Columna de Redes Sociales --- */

.footer-col .redes {
    display: flex; 
    justify-content: flex-start; 
    gap: 15px; 
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.footer-col .redes li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;          /* Ancho del círculo */
    height: 40px;         /* Alto del círculo */
    border-radius: 50%;   /* Para hacerlo circular */
    color: #ffffff;      /* Color del icono (SVG) dentro del círculo */
    font-size: 18px;      
    transition: all 0.3s ease;
    text-decoration: none;
    /* * Fondo de reserva para los círculos, se sobrescribirá debajo */
    background-color: #333333; 
}

/* 🎨 Colores de marca para el fondo del círculo */
/* 1. Facebook */
.footer-col .redes li:nth-child(1) a {
    background-color: #3b5998; /* Azul de Facebook */
}

/* 2. Instagram */
.footer-col .redes li:nth-child(2) a {
    /* Gradiente de Instagram (mejor para la marca) */
    background-image: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    background-color: #405DE6; /* Color plano de respaldo */
}

/* 3. WhatsApp */
.footer-col .redes li:nth-child(3) a {
    background-color: #25d366; /* Verde de WhatsApp */
}

/* 📐 Estilo para el SVG (el logo dentro del círculo) */
.footer-col .redes li a svg {
    width: 20px; /* Tamaño del SVG */
    height: 20px;
    fill: #ffffff; /* Color del icono SVG (lo pintamos de blanco) */
    transition: transform 0.3s ease;
}

/* --- Efecto Hover (al pasar el ratón) --- */
.footer-col .redes li a:hover {
    box-shadow: 0 0 10px rgba(0, 189, 212, 0.7); /* Sombra de brillo turquesa */
    transform: translateY(-3px) scale(1.05); /* Efecto de elevación y ligera ampliación */
}

/* * Desactivamos el efecto hover de color genérico para los iconos *
   ya que estamos usando los colores de marca */
.footer-col .redes li a:hover {
    color: #000000; 
}

/* --- Responsividad (Centrado en móvil) --- */
@media (max-width: 768px) {
    /* ... (resto de estilos responsivos) ... */
    .footer-col .redes {
        justify-content: center; /* Centra los iconos en móviles */
    }
}
/* --- Estilos para el Botón de Perfil de Sesión --- */

/* Asegura que el contenedor del botón esté en la barra */


.btn-perfil {
    background-color: var(--primary-color); /* Turquesa */
    color: rgb(0, 0, 0);
    border: 2px solid rgb(0, 0, 0);
    padding: 10px 14px;
    border-radius: 50%; /* Lo hace redondo */
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-perfil:hover {
    background-color: #00a0b8; /* Turquesa más oscuro */
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 189, 212, 0.7);
}

/* Ajuste en modo responsivo para mantener el botón a la derecha */
@media (max-width: 768px) {
    .navbar {
        /* Cambiar a justificación centrada cuando es columna */
        justify-content: space-around; 
    }
    
    /* El botón perfil debe estar visible y no en el menú colapsado */
    .perfil-container {
        position: absolute; /* Posiciona absolutamente */
        top: 10px;
        right: 15px;
    }
}

