/* =========================================================
   MAYORISTAUNILATEX.COM — estilos base
   Mobile-first. Paleta derivada del logo (azul + cian Unilatex).
   Tipografías autoalojadas: Poppins (títulos) + Inter (texto).
   ========================================================= */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Poppins-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Poppins-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/Poppins-ExtraBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/Inter-Variable.woff2') format('woff2');
}

:root {
  --navy-900: #0d2f4b;
  --navy-800: #123c5e;
  --blue-800: #0a5aa0;
  --blue-700: #0d6bbd;
  --blue-600: #1479c4;
  --blue-500: #2e9ce0;
  --cyan-500: #00aeef;
  --cyan-400: #35c2f2;
  --cyan-100: #dcf5fe;
  --sky-50:   #f2fbff;

  --gray-900: #17262f;
  --gray-700: #46606d;
  --gray-500: #6e8a97;
  --gray-300: #cadde5;
  --gray-100: #eef6fa;
  --white:    #ffffff;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 3px rgba(10, 51, 84, 0.09);
  --shadow-md: 0 10px 26px rgba(10, 51, 84, 0.14);
  --shadow-lg: 0 22px 48px rgba(10, 51, 84, 0.18);

  --container: 1180px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: 'Poppins', var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-700));
  color: var(--white);
  box-shadow: 0 10px 22px rgba(0, 174, 239, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(0, 174, 239, 0.42); }

.btn-secondary {
  background: var(--white);
  color: var(--blue-800);
  border-color: var(--cyan-100);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--cyan-400); }

.btn-ghost {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.26); }

.btn-cta-inverse {
  background: var(--white);
  color: var(--blue-700);
}
.btn-cta-inverse:hover { background: var(--cyan-100); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.site-header__logo img { height: 46px; width: auto; }

.site-nav { display: none; align-items: center; gap: 30px; }
.site-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-700);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--blue-700);
  border-bottom-color: var(--cyan-500);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--gray-100);
}
.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gray-700);
  border-bottom: none !important;
}
.lang-switch a.is-active {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: 0 1px 2px rgba(16, 26, 43, 0.12);
}

.mobile-nav .lang-switch--mobile {
  flex-direction: row;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border-radius: 0;
}
.mobile-nav .lang-switch--mobile a {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray-700);
}
.mobile-nav .lang-switch--mobile a.is-active {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { transform: translateY(-6px); }
.nav-toggle::after { transform: translateY(4px); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 14px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy-900);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav a.is-active { color: var(--blue-700); }

@media (min-width: 860px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% -10%, rgba(0, 174, 239, 0.45), transparent 55%),
    linear-gradient(135deg, var(--navy-900), var(--blue-800));
  color: var(--white);
  padding: 54px 0 76px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.32);
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.hero p.lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art { display: flex; justify-content: center; }
.hero__art img {
  max-width: 280px;
  filter: drop-shadow(0 25px 45px rgba(2, 20, 32, 0.5));
}

@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero__art img { max-width: 360px; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--sky-50);
  border-bottom: 1px solid var(--gray-100);
  margin-top: -32px;
  position: relative;
  z-index: 2;
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 28px 0;
}
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-item__icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.trust-item h3 { font-size: 0.95rem; margin-bottom: 2px; }
.trust-item p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }

@media (min-width: 720px) {
  .trust-strip__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Secciones ---------- */
.section { padding: 60px 0; }
.section--tight { padding: 40px 0; }
.section--muted { background: var(--gray-100); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section__head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.section__head p { color: var(--gray-500); }
.section__head--left { text-align: left; margin: 0 0 28px; }
.section__head--left h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }

/* ---------- Bloque de marca ---------- */
.brand-block {
  display: grid;
  gap: 30px;
  align-items: center;
}
.brand-block__media {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-block__media img { max-width: 220px; }
.brand-block h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.brand-block p { color: var(--gray-700); }

@media (min-width: 780px) {
  .brand-block { grid-template-columns: 0.8fr 1.2fr; }
}

/* ---------- Grid de productos ---------- */
.products-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-card__media {
  aspect-ratio: 1 / 1;
  background: var(--sky-50);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }

.product-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--cyan-500);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__format {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.product-card h3 { font-size: 0.98rem; margin-bottom: 8px; flex: 1; }
.product-card__cta {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* ---------- Estado vacío ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--gray-500); }
.empty-state__icon { font-size: 2.4rem; margin-bottom: 14px; }
.empty-state h3 { color: var(--navy-900); }

/* ---------- Ficha de producto ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 22px; }
.breadcrumb a { color: var(--blue-700); font-weight: 600; }

.product-detail { display: grid; gap: 32px; }
@media (min-width: 860px) {
  .product-detail { grid-template-columns: 1fr 1fr; align-items: start; }
}

.product-detail__media {
  background: var(--sky-50);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail__format {
  display: inline-block;
  background: var(--cyan-100);
  color: var(--blue-700);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.product-detail h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.product-detail__desc { color: var(--gray-700); font-size: 1.02rem; margin-bottom: 26px; }

.product-detail__panel {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 10px;
}
.product-detail__panel p { margin-bottom: 14px; font-size: 0.92rem; color: var(--gray-700); }
.product-detail__panel p:last-child { margin-bottom: 0; }

/* ---------- CTA banda ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.92); margin-bottom: 22px; }

/* ---------- Formulario de contacto ---------- */
.contact-layout { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1fr 1fr; }
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy-900);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--white);
  color: var(--gray-900);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px var(--cyan-100);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row--split { display: grid; gap: 14px; }
@media (min-width: 520px) {
  .form-row--split { grid-template-columns: 1fr 1fr; }
}

.form-hp { position: absolute; left: -9999px; top: -9999px; }

.form-alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.form-alert--ok { background: #e3f8ec; color: #1c7a45; }
.form-alert--error { background: #fdeaea; color: #c23434; }

.contact-info h2 { font-size: 1.4rem; }
.contact-info ul { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-info li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--gray-100);
  font-size: 0.92rem;
  color: var(--gray-700);
}
.contact-info li:first-child { border-top: none; }
.contact-info__icon { flex: none; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.78);
  padding: 46px 0 26px;
  margin-top: 40px;
}
.site-footer__grid { display: grid; gap: 28px; margin-bottom: 28px; }
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.site-footer__logo img {
  height: 48px;
  margin-bottom: 14px;
  background: var(--white);
  border-radius: 10px;
  padding: 6px 10px;
}
.site-footer p { font-size: 0.9rem; color: rgba(255,255,255,0.68); }
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { font-size: 0.92rem; color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--white); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
