/* ====== RESET SENCILLO ====== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body, h1, h2, h3, h4, h5, h6, p, a, li, span, div, input, button, textarea, label {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}
body {
  background-color: #e5fae8;
}
/* ----- HEADER ----- */
header {
  background-color: white;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  /* --- BORDE DEGRADADO AMARILLO + VERDE --- */
  border: 0;
  border-bottom: 6px solid transparent;
  border-image: linear-gradient(to right, #FFD600, #10B65C) 1;
}



/* Navbar principal */
.header {
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;      /* evita que se bajen los elementos */
  max-width: 1400px;      /* limitar ancho máximo */
  margin: 0 auto;         /* centrar el navbar */
  padding: 0 24px;        /* respiración en pantallas pequeñas */
  width: 100%;            /* ocupar todo el ancho disponible hasta max-width */
}

/* Contenedores izquierdo y derecho */
.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;      /* no permitir que se rompan elementos */
  min-width: 0;           /* evita estiramiento en flex */
}

/* Logo */
.logo img {
  height: 55px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  min-width: 30px;
  display: block;
}

/* Menú de navegación */
.nav-menu {
  display: flex;
  align-items: center;
  margin-left: 80px;
  gap: 40px;
  flex-wrap: nowrap;      /* mantener todos los links en una sola fila */
  max-height: none;
  overflow: visible;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
  display: inline-block;
  padding: 8px 5px;
  transition: background 0.3s ease, color 0.3s ease;

  opacity: 0.01;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}
.nav-link:hover {
  color: #10B65C;
}

/* ======= MENÚ HAMBURGUESA MEJORADO ======= */
.hamburger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: linear-gradient(135deg, #FFD600, #10B65C);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 10px rgba(16, 182, 92, 0.25);
}

.hamburger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 28px; }

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0.01;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Imágenes del lado derecho */
.navbar-right img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}
.navbar-right img:hover {
  transform: scale(1.06);
}

/* ================================
   CORRECCIÓN PRECISA
   ================================ */
.nav-menu .nav-link,
.nav-menu .nav-link:focus,
.nav-menu .nav-link:active,
.nav-menu .nav-link.active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.nav-menu .nav-link {
  color: #333 !important;
  background: transparent !important;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav-menu .nav-link:hover {
  color: #10B65C !important;
  background: transparent !important;
}
.nav-menu .nav-link::before,
.nav-menu .nav-link::after {
  content: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* ------ RESPONSIVE ------ */

/* Tablets */
@media (max-width: 990px) {
  .navbar-right img { height: 36px; }
  .logo img { height: 50px; } /* aumenta un poco el logo */
  .nav-menu { gap: 20px; margin-left: 30px; }
  .nav-link { font-size: 1rem; }
}

/* Móviles */
@media (max-width: 768px) {
  .navbar { align-items: flex-start; }
  .navbar-left { width: 100%; justify-content: space-between; gap: 12px; }
  .hamburger { display: block; }
  .logo img { height: 40px; }
  .nav-menu {
    width: 100%;
    display: block;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
    border-top: 1px dashed #e9e9e9;
    background: #fff;
    opacity: 0.01;
    margin-left: 0;
  }
  .nav-menu.active {
    max-height: 700px;
    padding: 12px 12px;
    opacity: 1;
  }
  .nav-menu .nav-link {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent;
    color: #333;
    text-align: left;
    font-size: 16px;
  }
  .nav-menu .nav-link:hover {
    background: rgba(13, 196, 68, 0.06);
    color: #000000;
  }
  .navbar-right {
    width: 100%;
    overflow-x: auto;
    padding: 8px 12px;
    gap: 12px;
    border-top: 1px dashed #eee;
  }
  .navbar-right::-webkit-scrollbar {
    height: 6px;
  }
  .navbar-right::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
  }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
  header { padding: 12px 14px; }
  .logo img { height: 56px; max-width: 100%; }
  .navbar-right img { height: 32px; }
}


/* ======== CORRECCIÓN: NAVBAR EN PANTALLAS GRANDES ======== */
@media (min-width: 1200px) {
  .navbar {
    flex-wrap: nowrap !important; /* evita que se bajen los elementos */
  }

  .navbar-left {
    flex-wrap: nowrap !important;
  }

  .navbar-right {
    flex-wrap: nowrap !important;
  }

  /* opcional: limitar el ancho del contenido para que no se estire demasiado */
  .navbar {
    max-width: 1400px;
    margin: 0 auto;
  }

  /* ajuste visual para mantener todo alineado */
  .nav-menu {
    flex-wrap: nowrap !important;
  }
}



/* ===== ENLACE ACTIVO DEL MENÚ ===== */
.nav-link.active {
  color: #10B65C !important;
  font-weight: 700;
  position: relative;
}

/* Línea debajo del apartado activo */
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #FFD600, #10B65C);
  border-radius: 3px;
}

/* ===== DROPDOWN ===== */
.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

.dropdown-link {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
}

.dropdown-link:hover {
  background: rgba(16, 182, 92, 0.08);
  color: #10B65C;
}

/* Mostrar dropdown al pasar el mouse */
.nav-item:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}


/* ====== BOTONES FLOTANTES ====== */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s;
  background-color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.floating-button img { width: 26px; height: 26px; display: block; }
.floating-button:hover { transform: scale(1.08); }

@media (max-width: 768px) {
  .floating-buttons { right: 12px; bottom: 12px; gap: 10px; }
  .floating-button { width: 44px; height: 44px; }
  .floating-button img { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  .floating-button { width: 40px; height: 40px; }
  .floating-button img { width: 20px; height: 20px; }
}

/* ====== ACCESIBILIDAD (ESTILO UNIFICADO CON LOS OTROS BOTONES) ====== */
.accessibility-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Botón flotante con misma estética */
.accessibility-fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
}

.accessibility-fab img {
  width: 34px;   /* más grande que antes */
  height: 34px;
  display: block;
  object-fit: contain; /* mantiene proporción sin recortar */
  transition: transform 0.3s ease;
}

.accessibility-fab:hover img {
  transform: scale(1.08); /* sutil efecto al pasar el cursor */
}

.accessibility-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 10px rgba(0,0,0,0.25);
}

/* Panel de opciones (se muestra sobre todo) */
.accessibility-panel {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 240px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: slideIn 0.3s ease forwards;
  z-index: 10000;
}

.accessibility-panel h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  text-align: center;
  color: #10B65C;
  font-weight: 600;
}

.accessibility-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accessibility-option button {
  flex-shrink: 0;
  border: none;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  font-size: 14px;
}

.accessibility-option button:hover {
  background: #e2f8eb;
  transform: scale(1.1);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsivo */
@media (max-width: 768px) {
  .accessibility-container { left: 12px; bottom: 12px; gap: 10px; }
  .accessibility-fab { width: 44px; height: 44px; }
  .accessibility-fab img { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  .accessibility-fab { width: 40px; height: 40px; }
  .accessibility-fab img { width: 20px; height: 20px; }
  .accessibility-panel { width: 200px; padding: 12px; }
}




/* ====== FOOTER ====== */
footer {
  background-color: #b1d6c2; /* tu color claro */
  color: #000; /* texto oscuro */
  font-family: 'Poppins', sans-serif;
  padding: 50px 30px;

  /* Borde degradado arriba */
  border-top: 6px solid transparent;
  border-image: linear-gradient(to right, #10B65C, #FFD600) 1;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-logo {
  flex: 1 1 250px;
}

.footer-logo img {
  max-width: 180px;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-hashtag {
  color: #10B65C; /* verde vivo */
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-socials a {
  display: inline-block;
  margin-right: 10px;
  font-size: 20px;
  color: #10B65C;
  text-decoration: none;
}

.footer-socials a:hover {
  color: #FFD600;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid #383838;
  padding-bottom: 5px;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #000;
  text-decoration: none;
  font-size: 14px;
}

.footer-section ul li a:hover {
  color: #10B65C;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #000;
  margin-top: 30px;
  font-size: 13px;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-logo,
  .footer-section {
    flex: 1 1 100%;
  }
}

/* ======================================================
   PLATAFORMAS ALIADAS FLOTANTES - SOLO EN MÓVIL/TABLET
   ====================================================== */

/* Ocultar las flotantes por defecto */
.plataformas-flotantes {
  display: none;
}

/* ===== Vista móvil y tablet ===== */
@media (max-width: 1100px) {
  /* Ocultar botones flotantes de redes sociales */
  .floating-buttons {
    display: none !important;
  }

  /* Ocultar las plataformas aliadas del nav */
  nav .navbar-right {
    display: none !important;
  }

  /* Mostrar las plataformas como botones flotantes (MISMA POSICIÓN QUE LAS REDES) */
  .plataformas-flotantes {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 20px;     /* misma distancia inferior */
    right: 20px;      /* misma distancia lateral */
    z-index: 900;
    gap: 12px;
  }

  /* Mismo estilo que los botones flotantes */
  .plataformas-flotantes a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .plataformas-flotantes a:hover {
    transform: scale(1.08);
  }

  .plataformas-flotantes img {
    width: 26px;
    height: 26px;
    display: block;
    object-fit: contain;
  }

  /* Ajuste responsivo (igual que redes) */
  @media (max-width: 768px) {
    .plataformas-flotantes { right: 12px; bottom: 12px; gap: 10px; }
    .plataformas-flotantes a { width: 44px; height: 44px; }
    .plataformas-flotantes img { width: 22px; height: 22px; }
  }

  @media (max-width: 480px) {
    .plataformas-flotantes a { width: 40px; height: 40px; }
    .plataformas-flotantes img { width: 20px; height: 20px; }
  }
}

/* ===== Escritorio ===== */
@media (min-width: 1101px) {
  .plataformas-flotantes {
    display: none !important;
  }
}
