/* ==========================================================================
   EBG Laundry Delivery — Landing
   Mobile-first. Sin librerías externas. Sin fuentes remotas.

   Identidad tomada de "Brand Book EBG identidad corporativa":
     #24495C  azul petróleo   — color primario, botones, títulos
     #B7995A  dorado          — acento de oferta
     #58AC94  verde agua      — acento principal, íconos
     #E4E5DF  gris cálido     — fondos suaves
     #9CAD7A  verde oliva     — acento secundario, bajada del logo
   Tipografía de marca: Helvetica Bold (principal) / Helvetica Light (secundaria)
   ========================================================================== */

:root {
  /* --- Paleta de marca (valores exactos del brandbook) --- */
  --navy:        #24495C;
  --gold:        #B7995A;
  --teal:        #58AC94;
  --sand:        #E4E5DF;
  --olive:       #9CAD7A;

  /* --- Derivados (para contraste y profundidad) --- */
  --navy-800:    #1B3746;
  --navy-900:    #16303D;
  --teal-700:    #2F7A64;   /* verde legible sobre blanco (5.1:1) */
  --olive-200:   #B5C49A;   /* oliva legible sobre azul petróleo */
  --sand-100:    #F4F5F1;
  --sand-200:    #D5D7CE;
  --ink-200:     #C3CFD4;   /* texto secundario sobre azul petróleo */
  --gray-400:    #8A9AA3;
  --gray-600:    #566B76;
  --white:       #FFFFFF;
  --red:         #B4342A;
  --wa:          #25D366;

  --radius:      12px;
  --radius-lg:   18px;
  --shadow-sm:   0 1px 2px rgba(36, 73, 92, .07), 0 1px 3px rgba(36, 73, 92, .09);
  --shadow-md:   0 6px 16px rgba(36, 73, 92, .10), 0 2px 6px rgba(36, 73, 92, .06);
  --shadow-lg:   0 18px 40px rgba(36, 73, 92, .14);

  --wrap:        1120px;
  --pad:         20px;

  /* Helvetica es la tipografía de marca y vive en el sistema: cero descarga. */
  --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", "Nimbus Sans", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.16; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 6.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4.6vw, 2.2rem); }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--navy); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--teal-700);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap-narrow { max-width: 760px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Logotipo ---------- */
.brand { display: inline-flex; align-items: center; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-lockup { display: grid; justify-items: start; line-height: 1; }
.brand-mark { width: 30px; height: 5.6px; margin-bottom: 3px; overflow: visible; }
.brand-name {
  font-weight: 700; font-size: 1.42rem; letter-spacing: -.012em; color: var(--navy);
}
.brand-tag {
  font-weight: 300; font-size: .5rem; letter-spacing: .17em;
  color: var(--olive); margin-top: 2px; white-space: nowrap;
}
/* Sobre fondo oscuro */
.on-dark .brand-name { color: #fff; }
.on-dark .brand-tag  { color: var(--olive-200); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 700; letter-spacing: -.005em;
  padding: 14px 22px; border: 0; border-radius: 999px;
  cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  box-shadow: 0 4px 14px rgba(36, 73, 92, .22);
  min-height: 48px;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(36, 73, 92, .28); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--navy); }
.btn-primary:hover { background: var(--navy-800); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy); box-shadow: 0 6px 20px rgba(0,0,0,.20); }
.btn-light:hover { background: var(--sand); }
.btn-sm { padding: 10px 16px; font-size: .88rem; min-height: 42px; box-shadow: none; }
.btn-lg { padding: 16px 28px; font-size: 1.04rem; min-height: 54px; }
.btn-block { display: flex; width: 100%; }
.btn-whatsapp { --btn-bg: var(--wa); --btn-fg: #05320f; box-shadow: 0 4px 14px rgba(37, 211, 102, .28); }
.btn-whatsapp:hover { background: #1eb857; color: #05320f; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--sand);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.header-cta { flex: 0 0 auto; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(980px 460px at 88% -8%, #DCE3DC 0%, rgba(220,227,220,0) 62%),
    linear-gradient(180deg, var(--sand-100) 0%, #fff 100%);
  padding: 34px 0 44px;
  border-bottom: 1px solid var(--sand);
}
.hero-grid { display: grid; gap: 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--sand-200);
  color: var(--gray-600); font-size: .8rem; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; margin: 0 0 16px;
  box-shadow: var(--shadow-sm);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }
.hero h1 { margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--teal-700); }
.hero-sub { font-size: 1.03rem; color: var(--gray-600); max-width: 46ch; margin-bottom: 22px; font-weight: 300; }

.offer-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 14px 16px;
  margin: 0 0 22px; box-shadow: var(--shadow-md);
}
.offer-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center;
}
.offer-card strong { display: block; font-size: 1rem; }
.offer-card span { display: block; font-size: .87rem; color: var(--ink-200); font-weight: 300; }

.hero-actions .btn { width: 100%; }
.hero-note { font-size: .84rem; color: var(--gray-600); margin: 10px 0 0; text-align: center; }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--sand-200);
}
.hero-badges li { flex: 1 1 145px; font-size: .81rem; color: var(--gray-600); line-height: 1.35; font-weight: 300; }
.hero-badges strong { display: block; color: var(--navy); font-size: .94rem; font-weight: 700; }

/* En móvil la ilustración va DESPUÉS del copy: la primera pantalla
   tiene que vender la recogida, no la ilustración. */
.hero-art svg { width: 100%; height: auto; max-width: 300px; margin: 4px auto 0; filter: drop-shadow(0 16px 30px rgba(36,73,92,.12)); }

/* ---------- Secciones ---------- */
.section { padding: 54px 0; }
section[id], #top { scroll-margin-top: 76px; }
.kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
  font-weight: 700; color: var(--teal-700); margin: 0 0 10px;
}
.kicker.light { color: var(--olive-200); }
.section-sub { color: var(--gray-600); max-width: 52ch; margin-bottom: 30px; font-weight: 300; }

/* ---------- Pasos ---------- */
.steps { background: #fff; }
.step-list { display: grid; gap: 16px; margin-bottom: 30px; }
.step {
  position: relative;
  background: var(--sand-100);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute; top: 16px; right: 18px;
  font-size: 2.4rem; font-weight: 700; line-height: 1;
  color: var(--sand-200); letter-spacing: -.05em;
}
.step-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--teal); color: var(--navy);
  margin-bottom: 14px;
}
.step p { color: var(--gray-600); font-size: .93rem; margin: 0; font-weight: 300; }
.steps .center .btn { width: 100%; }

/* ---------- Confianza ---------- */
.trust { background: var(--navy); color: #fff; }
.trust h2 { color: #fff; }
.trust-grid { display: grid; gap: 14px; margin-top: 26px; }
.trust-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}
.trust-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--teal); color: var(--navy); margin-bottom: 14px;
}
.trust-card h3 { color: #fff; margin-bottom: 6px; }
.trust-card p { color: var(--ink-200); font-size: .91rem; margin: 0; font-weight: 300; }

/* ---------- Formulario ---------- */
.form-section { background: var(--sand-100); }
.form-wrap { display: grid; gap: 26px; }
.form-perks { display: grid; gap: 9px; margin-top: 4px; }
.form-perks li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--navy); font-weight: 700; }
.form-perks span { color: var(--teal-700); font-weight: 700; }

.form-card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: .87rem; font-weight: 700;
  color: var(--navy); margin-bottom: 6px;
}
.req { color: var(--teal-700); }
.opt { font-weight: 300; color: var(--gray-400); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px evita zoom en iOS */
  color: var(--navy); background: #fff;
  border: 1.5px solid var(--sand-200); border-radius: 10px;
  padding: 13px 14px; min-height: 50px;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23566B76' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 12px;
  padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-700);
  box-shadow: 0 0 0 4px rgba(88, 172, 148, .22);
}
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: var(--red); box-shadow: 0 0 0 4px rgba(180, 52, 42, .10);
}
.hint  { font-size: .78rem; color: var(--gray-400); margin: 6px 0 0; }
.error { font-size: .79rem;  color: var(--red);     margin: 6px 0 0; font-weight: 700; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#submit-btn { margin-top: 6px; position: relative; }
#submit-btn[disabled] { opacity: .72; cursor: not-allowed; transform: none; }
.spinner {
  display: none; width: 17px; height: 17px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
#submit-btn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-legal { font-size: .75rem; color: var(--gray-400); text-align: center; margin: 12px 0 0; line-height: 1.45; font-weight: 300; }

.form-status { margin-top: 16px; }
.form-status:empty { margin-top: 0; }
.msg { border-radius: 10px; padding: 14px 16px; font-size: .92rem; font-weight: 700; margin: 0; }
.msg-ok    { background: #E9F2ED; color: #1F5C48; border: 1px solid #B9D8CB; }
.msg-error { background: #F9EDEC; color: #8E2A22; border: 1px solid #E8C4C0; }

.fallback { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--sand); text-align: center; }
.fallback p { font-size: .87rem; color: var(--gray-600); margin: 0 0 10px; }
.fallback .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq-list { display: grid; gap: 10px; margin-top: 24px; }
.faq details {
  background: var(--sand-100);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq details[open] { background: #fff; border-color: var(--sand-200); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 17px 46px 17px 18px; position: relative;
  font-weight: 700; font-size: .98rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2.2px solid var(--teal-700); border-bottom: 2.2px solid var(--teal-700);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-body { padding: 0 18px 18px; }
.faq-body p { color: var(--gray-600); font-size: .93rem; margin: 0; font-weight: 300; }
.faq-body strong { font-weight: 700; color: var(--navy); }

/* ---------- CTA final ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 60%, #2C6B62 145%);
  color: #fff; padding: 54px 0;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: var(--ink-200); margin-bottom: 24px; font-weight: 300; }
.final-cta .btn { width: 100%; max-width: 420px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9FB1B8; padding: 34px 0 96px; font-size: .87rem; }
.footer-inner { display: grid; gap: 18px; }
.footer-note { margin: 10px 0 0; font-weight: 300; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--ink-200); }
.footer-links a:hover { color: #fff; }
.footer-copy { margin: 0; font-size: .79rem; color: #7C9099; font-weight: 300; }

/* ---------- CTA fija (móvil) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--sand-200);
  box-shadow: 0 -6px 20px rgba(36, 73, 92, .10);
  transform: translateY(105%);
  transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (min-width: 640px) {
  :root { --pad: 28px; }
  .hero { padding: 46px 0 56px; }
  .hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .hero-note { text-align: left; margin: 0; max-width: 22ch; }
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 28px 26px; }
  .steps .center .btn, .final-cta .btn, .fallback .btn { width: auto; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-copy { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.09); }
  .site-footer { padding-bottom: 34px; }
}

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 960px) {
  .section { padding: 78px 0; }
  .hero { padding: 66px 0 78px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
  .hero-art { order: 1; }
  .hero-copy { order: 0; }
  .hero-art svg { max-width: 100%; margin: 0; }
  .hero-badges { gap: 22px; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .form-wrap { grid-template-columns: .85fr 1.15fr; align-items: start; gap: 48px; }
  .form-intro { position: sticky; top: 92px; }
  .sticky-cta { display: none; }
  .steps .center { margin-top: 8px; }
}
