/* --------- RESETEO BÁSICO --------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0A2540;
  background-color: #FFFFFF;
  line-height: 1.6;
}

/* Contenedor principal */
.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* --------- BOTONES --------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #1A73E8;
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(26, 115, 232, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(26, 115, 232, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: #fefffd;
  border-color: #1ae870;
}

.btn-outline:hover {
  background-color: #1A73E8;
  color: #FFFFFF;
}

/* Botón WhatsApp en menú móvil */
.nav a.btn-whatsapp {
  background-color: #25D366 !important;
  color: #ffffff !important;
  border: none !important;
  text-align: center;
  font-weight: 600;
  width: 100%;
  margin-top: 0.5rem;
}


.nav a.btn-whatsapp:hover {
  background-color: #8cbb9d !important;
}


/* --------- HEADER / TOPBAR --------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E3E8F0;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1A73E8;
}

/* NAV DESKTOP */
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: #0A2540;
  font-weight: 500;
  position: relative;
}

.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background-color: #1A73E8;
  transition: width 0.2s ease;
}

.nav a:not(.btn):hover::after {
  width: 100%;
}

/* Botón menú (móvil) */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.video-whatsapp {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

/* Video cubriendo solo el fondo verde */
.video-whatsapp .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
  /* Ajusta visibilidad del video */
}

/* Capa oscura para contraste (opcional) */
.video-whatsapp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  /* sube a 0.4 si el video es muy brillante */
  z-index: 0;
}

/* Contenido encima */
.whatsapp-content {
  position: relative;
  z-index: 1;
  color: #353434;
}

/* Título y texto */
.whatsapp-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.whatsapp-content p {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #242525;
}

/* Botón */
.btn-whatsapp {
  display: inline-block;
  background-color: #7795e9;
  color: #f0f7f5;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 999px;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp:hover {
  background-color: #79c076;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* === Ajuste responsive para móviles (el video se mantiene) === */
@media (max-width: 768px) {
  .video-whatsapp {
    padding: 60px 15px;
    border-radius: 0;
  }

  .whatsapp-content h2 {
    font-size: 1.4rem;
  }

  .whatsapp-content p {
    font-size: 0.95rem;
  }

  .btn-whatsapp {
    font-size: 0.95rem;
    padding: 10px 28px;
  }
}


/* --------- SECCIONES GENERALES --------- */
.section {
  padding-block: 3.5rem;
}

.section-alt {
  background-color: #F4F6F7;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: #5B6577;
  margin-bottom: 2rem;
}

/* --------- CARDS GENERALES --------- */
.card {
  background-color: #FFFFFF;
  border-radius: 1rem;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* --------- CATEGORÍAS --------- */
.grid-categorias {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.categoria-card {
  border: 1px solid #E3E8F0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.categoria-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.categoria-card p {
  font-size: 0.9rem;
  color: #5B6577;
}

.categoria-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(26, 115, 232, 0.18);
  border-color: #1A73E8;
  background: linear-gradient(135deg, #FFFFFF, #E8F0FE);
}

/* --------- PROMOCIONES --------- */
.grid-promos {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promo-card {
  border-left: 4px solid #1A73E8;
}

.promo-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background-color: #E8F5E9;
  color: #1B5E20;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.promo-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.promo-card p {
  font-size: 0.9rem;
  color: #5B6577;
}

/* --------- NOSOTROS --------- */
.grid-nosotros {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  align-items: flex-start;
}

.nosotros-text p {
  margin-bottom: 0.75rem;
  color: #4B5565;
}

.lista-check {
  margin-top: 0.5rem;
  list-style: none;
}

.lista-check li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.93rem;
}

.lista-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #2ECC71;
  font-weight: 700;
}

/* --------- CONTACTO --------- */
.grid-contacto {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: flex-start;
}

.contact-info p {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.contact-info a {
  color: #1A73E8;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-buttons {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mapa-card {
  padding: 20px;
}

.mapa-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #e76915;
}

.map-container {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* --------- FOOTER --------- */
.footer {
  border-top: 1px solid #E3E8F0;
  padding-block: 1.4rem;
  background-color: #FFFFFF;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6B7280;
}

.footer-tagline {
  font-weight: 500;
  color: #1A73E8;
}

/* --------- RESPONSIVE --------- */

/* Tablets */
@media (max-width: 992px) {
  .grid-categorias {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-promos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-nosotros,
  .grid-contacto {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Móviles */
@media (max-width: 768px) {
  .topbar .container {
    padding-block: 0.6rem;
  }

  .nav-toggle {
    display: block;
  }

/* MENÚ MÓVIL TIPO BURBUJA A LA DERECHA */
  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);   /* un poquito abajo de la barra */
    right: 1rem;                /* pegado al botón hamburguesa */
    left: auto;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.4rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    border: 1px solid #E3E8F0;
    display: none;              /* oculto por defecto */
    min-width: 180px;
    z-index: 60;
  }

  .nav.nav-open {
    display: flex;
  }

  /* Links del menú en columna, como la segunda imagen */
  .nav a {
    width: 100%;
    display: block;
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
  }

  /* Link ACTIVO en verde tipo botón */
  .nav a.active {
    background-color: #25D366;
    color: #FFFFFF;
    font-weight: 600;
  }

  /* Botón de WhatsApp dentro del menú, ancho completo */
  .nav a.btn-whatsapp {
    margin-top: 0.3rem;
    text-align: center;
    align-self: stretch;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-content {
    padding-block: 3rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .grid-categorias {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-promos {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .grid-categorias {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* === RAYITA AZUL UNIVERSAL PARA LINK ACTIVO === */
.nav a.active {
  position: relative;
  font-weight: 600;
  color: #0A2540;
}

/* Rayita azul debajo del link activo */
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: #1A73E8;
  border-radius: 10px;
}

/*IMAGEN DE PROMO 10% */
.img-center {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.foto {
  width: 400px;
  height: auto;
}

/*IMAGEN  */
.img-ejem {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.foto {
  width: 400px;
  height: auto;
}


/*WhatsApp Flotante */
.whatsapp-pill {
  position: fixed;
  bottom: 22px;
  right: 22px;
  padding: 0.55rem 1.25rem;
  background-color: #48c53c;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  z-index: 999;
}

.whatsapp-pill-img img {
  width: 40px;
  height: 40px;
  display: block;
}



/* Ajuste en móvil: un poco más pequeña y pegada al borde */
@media (max-width: 480px) {
  .whatsapp-pill {
    bottom: 16px;
    right: 16px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
  }

  .whatsapp-pill-icon svg {
    width: 18px;
    height: 18px;
  }
}

/*Responsivo */
 @media (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}
