/* =========================================================
   Grupo MEC / Droguería MEC — hoja de estilos única del sitio
   ========================================================= */

/* ---------- Fuentes (Manual de marca) ---------- */
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Seeker";
  src: url("../fonts/Seeker-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Seeker";
  src: url("../fonts/Seeker-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Seeker";
  src: url("../fonts/Seeker-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Paleta de marca ---------- */
:root {
  --azul-noche: #05043a;
  --azul-mec: #1f284e;
  --celeste: #29aae1;
  --naranja: #f6921e;

  --texto: #1c2330;
  --texto-suave: #4d5567;
  --fondo: #ffffff;
  --fondo-alterno: #f4f6fb;
  --borde: #e2e6f0;

  --fuente-principal: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fuente-impacto: var(--fuente-principal);

  --radio: 14px;
  --radio-chico: 8px;
  --sombra: 0 12px 32px -12px rgba(5, 4, 58, 0.25);
  --ancho-maximo: 1180px;
}

/* ---------- Reset básico ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--fuente-principal);
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1, h2, h3, h4 {
  font-family: var(--fuente-impacto);
  color: var(--azul-noche);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--texto-suave); }
.contenedor {
  width: 100%;
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 64px 0;
}
.franja-alterna {
  background: var(--fondo-alterno);
}
.franja-oscura {
  background: linear-gradient(135deg, var(--azul-noche), var(--azul-mec));
  color: #fff;
}
.franja-oscura h1,
.franja-oscura h2,
.franja-oscura h3 {
  color: #fff;
}
.franja-oscura p {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Etiqueta / kicker ---------- */
.etiqueta {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--celeste);
  margin-bottom: 14px;
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fuente-principal);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.boton:hover {
  transform: translateY(-2px);
}
.boton-primario {
  background: var(--naranja);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(246, 146, 30, 0.55);
}
.boton-primario:hover {
  background: #e07f0f;
}
.boton-secundario {
  background: #fff;
  color: var(--azul-mec);
  border-color: var(--azul-mec);
}
.boton-secundario:hover {
  background: var(--azul-mec);
  color: #fff;
}
.boton-sobre-oscuro {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.boton-sobre-oscuro:hover {
  background: #fff;
  color: var(--azul-noche);
}
.boton-whatsapp {
  background: #25d366;
  color: #fff;
}
.boton-whatsapp:hover {
  background: #1eb958;
}
.boton-ancho {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--borde);
}
.header__barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}
.header__logo {
  flex-shrink: 0;
}
.header__logo img {
  height: 44px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__item {
  position: relative;
}
.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--azul-mec);
  border-radius: var(--radio-chico);
}
.nav__link:hover,
.nav__item.activo > .nav__link {
  color: var(--celeste);
}
.nav__caret {
  font-size: 0.65em;
  transition: transform 0.15s ease;
}
.nav__item:hover .nav__caret {
  transform: rotate(180deg);
}
.nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio-chico);
  box-shadow: var(--sombra);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.nav__item:hover .nav__submenu,
.nav__item:focus-within .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radio-chico);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--texto);
}
.nav__submenu a:hover {
  background: var(--fondo-alterno);
  color: var(--celeste);
}
.header__acciones {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.header__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--azul-noche);
  border-radius: 2px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 56px 0 40px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero__texto h1 {
  margin-bottom: 18px;
}
.hero__subtitulo {
  font-size: 1.1rem;
  color: var(--texto-suave);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.hero__imagen img {
  border-radius: var(--radio);
  width: 100%;
  height: auto;
  box-shadow: var(--sombra);
}
.hero__caminos {
  margin-top: 8px;
}
.hero__caminos-titulo {
  font-weight: 700;
  color: var(--azul-mec);
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.caminos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.camino {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid var(--borde);
  color: var(--azul-mec);
}
.camino:hover {
  border-color: var(--celeste);
  color: var(--celeste);
}
.camino--farmacias { border-color: rgba(41,170,225,.4); }
.camino--clinicas { border-color: rgba(246,146,30,.4); }

/* ---------- Cabecera de página secundaria ---------- */
.pagina-hero {
  padding: 52px 0;
}
.pagina-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.pagina-hero__imagen img {
  width: 100%;
  height: auto;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.migas {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.migas a:hover {
  color: #fff;
}

/* =========================================================
   Bloques genéricos
   ========================================================= */
.encabezado-seccion {
  max-width: 640px;
  margin: 0 0 40px;
}
.encabezado-seccion.centrado {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grilla-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.grilla-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grilla-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.tarjeta {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra);
}
.tarjeta__icono {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 16px;
}
.tarjeta h3 {
  margin-bottom: 8px;
}
.tarjeta p {
  margin-bottom: 0;
  font-size: 0.95rem;
}
.tarjeta__link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--celeste);
}

/* ---- Insumos (línea de productos) ---- */
.insumo-card {
  text-align: center;
}
.insumo-card img {
  margin: 0 auto 16px;
}

/* ---- Diferenciales (bullets con ícono) ---- */
.diferenciales {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.diferencial {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border-radius: var(--radio);
  border: 1px solid var(--borde);
}
.diferencial img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.diferencial h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.diferencial p {
  font-size: 0.92rem;
  margin: 0;
}

/* ---- Checklist ---- */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 10px 56px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--azul-mec);
}
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--celeste) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---- Bloque texto + imagen ---- */
.texto-imagen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.texto-imagen--invertido .texto-imagen__imagen {
  order: 2;
}
.texto-imagen__imagen img {
  width: 100%;
  height: auto;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

/* ---- Marcas / proveedores ---- */
.marcas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.marca-chip {
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--borde);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--azul-mec);
}

/* ---- CTA final ---- */
.cta-final {
  text-align: center;
  padding: 64px 0;
}
.cta-final h2 {
  margin-bottom: 12px;
}
.cta-final p {
  max-width: 50ch;
  margin: 0 auto 28px;
}
.cta-final__acciones {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Agrupaciones de productos (páginas de insumos) ---- */
.agrupaciones {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 24px 64px;
}
.agrupacion h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--azul-mec);
}
.agrupacion h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--naranja);
  flex-shrink: 0;
}
.agrupacion ul {
  display: grid;
  gap: 10px;
}
.agrupacion li {
  padding: 10px 14px;
  background: var(--fondo-alterno);
  border-radius: var(--radio-chico);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--texto);
}

/* ---- Certificaciones / sellos ---- */
.sellos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.sello {
  padding: 10px 18px;
  border-radius: var(--radio-chico);
  border: 1px dashed var(--celeste);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--azul-mec);
}

/* =========================================================
   Formulario de contacto
   ========================================================= */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.formulario {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 32px;
  box-shadow: var(--sombra);
}
.campo {
  margin-bottom: 18px;
}
.campo label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--azul-mec);
  margin-bottom: 6px;
}
.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radio-chico);
  border: 1.5px solid var(--borde);
  font-family: var(--fuente-principal);
  font-size: 0.96rem;
  color: var(--texto);
  background: #fff;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--celeste);
}
.campo textarea {
  resize: vertical;
  min-height: 120px;
}
.campo--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.info-contacto {
  display: grid;
  gap: 18px;
}
.info-contacto__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--fondo-alterno);
  border-radius: var(--radio);
}
.info-contacto__icono {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
}
.info-contacto h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.info-contacto p {
  margin: 0;
  font-size: 0.92rem;
}
.mapa {
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--borde);
}
.mapa iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

/* =========================================================
   Botón flotante de WhatsApp
   ========================================================= */
.whatsapp-flotante {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.6);
  transition: transform 0.15s ease;
}
.whatsapp-flotante:hover {
  transform: translateY(-3px);
}
.whatsapp-flotante svg {
  width: 22px;
  height: 22px;
}
.whatsapp-flotante__texto {
  font-size: 0.9rem;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--azul-noche);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__logo img {
  height: 40px;
  margin-bottom: 16px;
}
.footer__descripcion {
  font-size: 0.9rem;
  max-width: 32ch;
}
.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.footer ul > li {
  min-width: 0;
}
.footer a {
  font-size: 0.92rem;
}
.footer a:hover {
  color: var(--celeste);
}
.footer__inferior {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

/*
 * Los ítems de grid no se achican por debajo de su ancho "automático"
 * (el de su contenido) salvo que se lo indiquemos: sin esto, un campo
 * de formulario o un título largo puede forzar overflow horizontal en
 * pantallas angostas aunque el resto del layout esté bien armado.
 */
.hero__grid > *,
.pagina-hero__grid > *,
.texto-imagen > *,
.contacto-grid > *,
.grilla-2 > *,
.grilla-3 > *,
.grilla-4 > *,
.diferenciales > *,
.agrupaciones > *,
.footer__grid > * {
  min-width: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
/*
 * Punto de quiebre "tablet": el header de escritorio (logo + 5 links +
 * 2 botones) necesita ~1000px reales para no cortar el logo ni partir
 * "Por qué elegirnos" en dos líneas (verificado con Playwright en
 * 800/850/900/950/980px, todos rotos; 1000px+ ya es cómodo). Por eso
 * el menú mobile arranca en 1024px y no en el clásico 768/760px.
 */
@media (max-width: 1024px) {
  .hero__grid,
  .pagina-hero__grid,
  .texto-imagen,
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  .texto-imagen--invertido .texto-imagen__imagen {
    order: 0;
  }
  .grilla-3,
  .grilla-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .header__toggle {
    display: block;
  }
  .nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    gap: 4px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.2s ease;
  }
  .nav.abierto {
    transform: translateX(0);
  }
  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    padding: 0 0 0 14px;
  }
  .nav__item.abierto .nav__submenu {
    display: block;
  }
}

@media (max-width: 760px) {
  .grilla-2,
  .grilla-3,
  .grilla-4,
  .diferenciales,
  .agrupaciones {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .whatsapp-flotante__texto {
    display: none;
  }
  .whatsapp-flotante {
    padding: 14px;
  }
}
