/* =========================================================
   MAYORISTADUREX.COM — estilos base
   Mobile-first. Paleta derivada del logo (azul Durex + coral).
   ========================================================= */

:root {
  --blue-900: #001a5c;
  --blue-800: #002b90;
  --blue-700: #003fa3;
  --blue-600: #0064c9;
  --blue-500: #0189e4;
  --blue-400: #00c2fa;
  --blue-100: #dff6fe;
  --blue-50:  #f2fbff;

  --coral-600: #d92a4a;
  --coral-500: #ef3f5c;
  --coral-100: #fde8ec;

  --gray-900: #16232c;
  --gray-700: #45565f;
  --gray-500: #708592;
  --gray-300: #cfdce2;
  --gray-100: #eef4f7;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(6, 40, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(6, 40, 61, 0.12);
  --shadow-lg: 0 20px 45px rgba(6, 40, 61, 0.16);

  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; letter-spacing: -0.01em; }
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: 13px 26px;
  border-radius: 999px;
  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-primary {
  background: var(--coral-500);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(239, 63, 92, 0.28);
}
.btn-primary:hover { background: var(--coral-600); }

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

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.28); }

.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: 44px;
  width: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  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(--coral-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: var(--radius-sm);
  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(--gray-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-weight: 600;
  color: var(--gray-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 {
  background:
    radial-gradient(circle at 85% -10%, rgba(63, 180, 230, 0.35), transparent 55%),
    linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 52px 0 60px;
}

.hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 14px;
}

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

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

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

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

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--blue-50);
  border-bottom: 1px solid var(--gray-100);
}
.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: 40px; height: 40px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.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: 56px 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.05rem); }
.section__head p { color: var(--gray-500); }

.section__head--left { text-align: left; margin: 0 0 28px; }

/* ---------- Tarjetas de formato ---------- */
.formats-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .formats-grid { grid-template-columns: repeat(3, 1fr); }
}

.format-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: linear-gradient(160deg, var(--blue-50), var(--white));
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.format-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.format-card__media {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}
.format-card__media img {
  max-width: 72%;
  max-height: 72%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.format-card h3 { font-size: 1.15rem; }
.format-card p { color: var(--gray-500); font-size: 0.92rem; }
.format-card .format-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--blue-700); margin-top: 10px; font-size: 0.92rem;
}

/* ---------- 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(-3px); box-shadow: var(--shadow-md); }

.product-card__media {
  aspect-ratio: 1 / 1;
  background: var(--blue-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(--coral-500);
  color: var(--white);
  font-size: 0.68rem;
  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-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-weight: 700;
  font-size: 0.88rem;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* ---------- Filtro de formato (catálogo) ---------- */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter-tabs a {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
}
.filter-tabs a.is-active {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

/* ---------- 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(--gray-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(--blue-50);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail__format {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  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); }

/* ---------- CTA banda ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--coral-600), var(--coral-500));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.9); 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: 26px;
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--gray-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);
  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(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-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: #e6f7ec; color: #1c7a3c; }
.form-alert--error { background: var(--coral-100); color: var(--coral-600); }

.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;
  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; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.78);
  padding: 44px 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; }
.site-footer p { font-size: 0.9rem; color: rgba(255,255,255,0.68); }
.site-footer h4 {
  color: var(--white);
  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;
}
