/* =========================================================
   DUREX144CONDOMS.COM — estilos base
   Concepto: "manifiesto de mercancía al por mayor". Deliberadamente
   distinto, en ESTRUCTURA (no solo color), de las otras webs del
   grupo: nada de nav+hero-slider+grid-de-tarjetas. Aquí:
     - barra superior mínima (logo + idioma + un único enlace)
     - hero puramente tipográfico: el número 144 es el protagonista,
       sin imagen/gradiente decorativo ni stats en cajas
     - el listado de productos es una tabla/manifiesto (filas
       numeradas), no un grid de tarjetas con imagen cuadrada
   Paleta monocroma tomada del logo real de Durex (azul marino
   #001689 + blanco), sin segundo color de acento. Un único gris
   tinta para texto secundario. Todos los pares texto/fondo están
   verificados a mano para evitar el bug de contraste anterior
   (texto blanco sobre control <select> nativo blanco).
   Tipografías autoalojadas: Poppins (titulares) + Inter (texto).
   Sin CDN externos.
   ========================================================= */

@import url('fonts.css');

:root {
  --navy: #001689;
  --navy-ink: #000c4d;
  --white: #ffffff;
  --paper: #faf9f6;

  --ink: #14172f;
  --ink-muted: #565a76;
  --ink-faint: #8b8fa8;

  --line: rgba(0, 12, 77, 0.13);
  --line-strong: rgba(0, 12, 77, 0.26);

  --on-navy: #ffffff;
  --on-navy-muted: rgba(255, 255, 255, 0.68);
  --on-navy-line: rgba(255, 255, 255, 0.24);

  --radius-sm: 6px;
  --radius-md: 12px;

  --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(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- Identidad superior (mínima, sin nav tradicional) ---------- */

.id-bar {
  background: var(--navy);
}

.id-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.id-bar .brand img {
  height: 20px;
  width: auto;
}

.id-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* selector de idioma con apariencia 100% propia: nunca depende del
   control nativo del navegador, así el texto blanco nunca puede caer
   sobre un fondo blanco heredado del sistema */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--on-navy);
  background-color: var(--navy-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  border: 1px solid var(--on-navy-line);
  border-radius: 999px;
  padding: 6px 28px 6px 12px;
  cursor: pointer;
}

.lang-select option { color: #000; background: #fff; }

.lang-select:focus { outline: none; border-color: var(--on-navy); }

.id-bar-right > a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--on-navy);
  border-bottom: 1px solid var(--on-navy-line);
  padding-bottom: 2px;
}
.id-bar-right > a:hover { border-color: var(--on-navy); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

/* fondo navy, texto blanco: SIEMPRE sobre superficies claras (paper/white) */
.btn-solid {
  background: var(--navy);
  color: var(--white);
}
.btn-solid:hover { background: var(--navy-ink); }

/* fondo blanco, texto navy: SIEMPRE sobre superficies navy (id-bar/hero) */
.btn-invert {
  background: var(--white);
  color: var(--navy);
}
.btn-invert:hover { transform: translateY(-1px); background: #eef0ff; }

/* borde navy, texto navy: sobre superficies claras; se invierte al hover */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 0.88rem; }

/* ---------- Hero tipográfico ---------- */

.hero {
  background: var(--navy);
  color: var(--on-navy);
  padding: 64px 0 56px;
}

.hero .container { max-width: 980px; }

.hero-kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--on-navy);
  border: 1px solid var(--on-navy-line);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 32px;
}

.hero-lead {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  color: var(--on-navy-muted);
  max-width: 720px;
  margin: 0 0 8px;
}

.hero-number {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(6.5rem, 22vw, 12.5rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 4px 0 20px;
}

.hero-facts {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--on-navy-muted);
  border-top: 1px solid var(--on-navy-line);
  padding-top: 20px;
  margin: 36px 0 36px;
}

.hero-actions { display: flex; }

/* ---------- Manifiesto de producto (listado, no grid de tarjetas) ---------- */

.section { padding: 72px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 10px;
}

.section-sub {
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0;
}

.manifest-head {
  display: none;
  align-items: center;
  gap: 24px;
  padding: 0 20px 12px;
  border-bottom: 2px solid var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.manifest-list {
  border-top: 1px solid var(--line-strong);
}

.manifest-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.manifest-row:hover { background: var(--white); }

.manifest-index {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--line-strong);
  width: 44px;
  flex: none;
}

.manifest-thumb {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.manifest-thumb img { max-width: 100%; max-height: 100%; }

.manifest-thumb .no-image {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
}

.manifest-main { flex: 1; min-width: 0; }

.manifest-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 4px;
}

.manifest-desc {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.manifest-format {
  flex: none;
  width: 108px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy);
  display: none;
}

.manifest-cta { flex: none; }

.manifest-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-muted);
}

/* ---------- Contacto ---------- */

.contact-section { background: var(--white); border-top: 1px solid var(--line); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-alert {
  padding: 15px 18px;
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  border: 1px solid transparent;
}

.form-alert-success { background: #eafaf1; border-color: #b9ecce; color: #1c8a4f; }
.form-alert-error { background: #fdecef; border-color: #f5bfca; color: #c81c3f; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-faint); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 22, 137, 0.14);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-actions { margin-top: 4px; }

/* honeypot: oculto para personas, muchos bots lo rellenan igualmente */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-side {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius-md);
  padding: 28px 26px;
}

.contact-side-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.contact-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.contact-side li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--on-navy-muted);
  padding-left: 18px;
  position: relative;
}

.contact-side li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

/* ---------- Footer ---------- */

/* fondo navy (como id-bar): el logo solo existe en blanco/transparente,
   pensado para fondo oscuro, así que el pie mantiene ese mismo bloque
   en vez de intentar "recolorearlo" con filtros CSS poco fiables */
.site-footer { background: var(--navy); padding: 30px 0; }

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 16px; }

.footer-tagline { font-size: 0.82rem; color: var(--on-navy-muted); max-width: 340px; }
.footer-meta { font-size: 0.78rem; color: var(--on-navy-muted); }

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .manifest-format { display: block; }
  .manifest-head { display: flex; }
  .manifest-head .mh-index { width: 44px; flex: none; }
  .manifest-head .mh-thumb { width: 64px; flex: none; }
  .manifest-head .mh-main { flex: 1; }
  .manifest-head .mh-format { width: 108px; flex: none; }
  .manifest-head .mh-cta { width: 150px; flex: none; }
}

@media (max-width: 720px) {
  .hero { padding: 48px 0 40px; }
  .hero-facts { margin: 28px 0; }
  .manifest-row { flex-wrap: wrap; gap: 14px; padding: 18px 4px; }
  .manifest-main { order: 1; flex-basis: calc(100% - 44px - 64px - 24px); }
  .manifest-cta { order: 2; margin-left: auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}
