/* ==========================================================================
   SEDIGRAF — Landing page
   Paleta clara: fondo blanco, tinta azul profunda, un único acento azul.
   Todo el texto se lee sobre fondo claro; no hay bloques oscuros.
   ========================================================================== */

:root {
  --ink:        #16202B;  /* texto principal — 16.5:1 sobre blanco */
  --ink-soft:   #48566A;  /* texto secundario — 7.4:1 */
  --muted:      #626F80;  /* metadatos — 5.1:1 */
  --line:       #E5E9EE;  /* bordes y separadores */
  --bg:         #FFFFFF;
  --bg-alt:     #F7F9FB;  /* secciones alternas */
  --bg-tint:    #EFF4F8;  /* fondo del panel destacado */
  --accent:     #1D5F91;  /* único acento — 6.9:1 sobre blanco */
  --accent-dk:  #164A72;
  --accent-tint:#E8F0F6;

  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 2px rgba(22, 32, 43, .05);
  --shadow-md:  0 10px 30px rgba(22, 32, 43, .06);
  --shadow-lg:  0 20px 50px rgba(22, 32, 43, .09);

  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;

  --container: 1140px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

/* La identidad es deliberadamente clara: fijamos el esquema para que el modo
   oscuro del sistema no invierta los controles del formulario. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 100%; height: 100%; }

h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 .4em;
  color: var(--ink);
}

h1 { font-size: clamp(2.05rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.06rem; }

h1 em { font-style: italic; color: var(--accent); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .8rem;
}

.muted { color: var(--muted); font-size: .9rem; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: .96rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #CBD4DC;
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  padding: 7px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.brand-text small { font-size: .68rem; color: var(--muted); letter-spacing: .03em; }

.nav { display: flex; gap: 26px; }
.nav a {
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav a {
  text-decoration: none;
  padding: 11px 0;
  font-weight: 500;
  color: var(--ink-soft);
}
.mobile-nav .btn { margin-top: 10px; color: #fff; }

/* ------------------------------------------------------------ Hero ---- */

.hero {
  padding: clamp(56px, 8vw, 92px) 0 clamp(52px, 7vw, 80px);
  background: var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.hero-copy .lead {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 1.9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin: 2.3rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted);
}
.hero-trust strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.2;
}

/* Foto del hero. El dato de 24 h va montado sobre la imagen porque es el
   argumento que decide la compra y así viaja pegado a lo que se mira. */
.hero-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
}
.hero-figure figcaption strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.hero-figure figcaption span {
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* ----------------------------------------------------------- Franja ---- */

.strip {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.strip-inner { padding: 26px 24px; }
.strip p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 64em;
  text-align: center;
  margin-inline: auto;
}
.strip strong { color: var(--ink); }

/* -------------------------------------------------------- Secciones ---- */

.section { padding: clamp(64px, 8vw, 100px) 0; }
.section-alt { background: var(--bg-alt); }

/* Encabezados centrados: dan un eje único a toda la página y es lo que
   hace que las secciones se lean simétricas y no como bloques sueltos. */
.section-head {
  max-width: 44em;
  margin: 0 auto clamp(34px, 4vw, 52px);
  text-align: center;
}
.section-sub { color: var(--ink-soft); font-size: 1.02rem; }

.note {
  margin-top: 32px;
  font-size: .95rem;
  color: var(--muted);
  text-align: center;
}
.note a { color: var(--accent); font-weight: 600; }

/* Líneas que sí se venden pero no justifican una tarjeta con foto propia.
   Van como lista compacta: suman términos de búsqueda sin robarle peso a los
   seis productos principales. */
.more-lines {
  margin-top: clamp(40px, 5vw, 58px);
  padding-top: clamp(30px, 4vw, 40px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.more-lines h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 22px;
}
.more-lines .tags li { background: var(--bg-alt); }
.more-lines .note { margin-top: 24px; }

/* ----------------------------------------------------------- Grids ---- */

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: #C6D2DC; box-shadow: var(--shadow-md); }
.card p { color: var(--ink-soft); font-size: .95rem; }

/* La foto va al borde de la tarjeta: los márgenes negativos compensan el
   padding para que la imagen sangre a los lados y arriba. */
.card-media {
  margin: -28px -26px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.card:hover .card-media img { transform: scale(1.03); }

/* margin-top:auto empuja la ficha técnica al fondo, así todas las tarjetas
   alinean su base aunque los textos midan distinto. */
.card-specs {
  list-style: none;
  margin: 16px 0 0;
  margin-top: auto;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--muted);
}
.card-specs li { position: relative; padding-left: 16px; margin-bottom: 4px; }
.card-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.card-cta {
  margin-top: 18px;
  align-self: flex-start;
  font-size: .92rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.card-cta::after { content: " →"; }
.card-cta:hover { border-bottom-color: var(--accent); }

/* -------------------------------------------------------- Entregas ---- */

.times {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: hidden;
}
.time-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 26px 30px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.time-row:last-child { border-bottom: 0; }
.time-key strong {
  display: block;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.05;
  color: var(--accent);
}
.time-key span { font-size: .8rem; color: var(--muted); }
.time-val p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ----------------------------------------------------------- Split ---- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.split-copy p { color: var(--ink-soft); }
.split-copy .btn { margin-top: 12px; }

.split-list { list-style: none; margin: 0; padding: 0; }
.split-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.split-list li:first-child { padding-top: 0; }
.split-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.split-list p { color: var(--ink-soft); font-size: .93rem; margin: 0; }

/* ----------------------------------------------------------- Marcas ---- */

/* Ser distribuidor registrado de estas marcas es el aval más fuerte que tiene
   la empresa frente a un comprador industrial; por eso va en su propio bloque
   y no escondido en un párrafo. */
.brands {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(30px, 4vw, 40px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.brands-title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.brands-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px clamp(34px, 6vw, 70px);
  margin: 0;
  padding: 0;
}
.brands-list img {
  height: 42px;
  width: auto;
  object-fit: contain;
  opacity: .85;
  transition: opacity .2s ease;
}
.brands-list li:hover img { opacity: 1; }

/* ------------------------------------------------------------ Banda ---- */

.band { position: relative; }
.band img {
  width: 100%;
  height: clamp(220px, 32vw, 340px);
  object-fit: cover;
  object-position: center 42%;
}
.band-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  /* El degradado oscuro solo cubre la foto, nunca texto de la página, y es
     lo que garantiza que la frase se lea sobre cualquier zona de la imagen. */
  background: linear-gradient(90deg, rgba(22, 32, 43, .72), rgba(22, 32, 43, .45));
}
.band-overlay p {
  margin: 0;
  max-width: 16em;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
}
.band-overlay em { font-style: italic; color: #A9CDE8; }

/* ------------------------------------------------------------ Tags ---- */

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.tags li {
  padding: 11px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .93rem;
  color: var(--ink-soft);
}

/* ----------------------------------------------------------- Panel ---- */

.panel {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(30px, 5vw, 56px);
  padding: clamp(34px, 5vw, 54px);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: center;
}
.panel p { color: var(--ink-soft); font-size: 1rem; }
.panel .btn-ghost { margin-top: 10px; }

.panel-side { display: grid; gap: 20px; }
.panel-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.panel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink-soft);
}
.panel-list li:last-child { border-bottom: 0; }
.panel-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.42em;
  width: 10px;
  height: 5px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------- FAQ ---- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 20px 40px 20px 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: calc(50% - 6px);
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: calc(50% - 2px); }
.faq details p {
  margin: 0;
  padding: 0 40px 22px 0;
  color: var(--ink-soft);
  font-size: .96rem;
}

/* -------------------------------------------------------- Formulario ---- */

.cta-section { background: var(--bg); }

.form {
  padding: clamp(26px, 4vw, 36px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label {
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .opt { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: .97rem;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid #D6DDE4;
  border-radius: 10px;
  transition: border-color .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #97A2AD; }

.field.has-error input,
.field.has-error select { border-color: #B3261E; }
.error {
  font-size: .8rem;
  color: #B3261E;
  margin-top: 5px;
  min-height: 1em;
}

.form-note, .form-status {
  font-size: .84rem;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}
.form-status:empty { margin: 0; }

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

.contact-card {
  padding: 26px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.contact-card p { margin: 0 0 4px; font-size: .96rem; }
.contact-card a { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

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

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 48px 0 30px;
}
.footer-inner { display: grid; gap: 24px; }
.footer-brand strong {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ink);
  display: block;
}
.footer-brand small { font-size: .74rem; letter-spacing: .04em; color: var(--muted); }
.footer-brand p { margin: 10px 0 0; font-size: .95rem; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footer-nav a {
  text-decoration: none;
  font-size: .92rem;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--accent); }

.footer-legal {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .83rem;
  color: var(--muted);
}

/* ------------------------------------------------------ WhatsApp float ---- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 54px;
  height: 54px;
  padding: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform .2s ease, background-color .2s ease;
}
.wa-float:hover { background: var(--accent-dk); transform: translateY(-2px); }

/* --------------------------------------------------------- Animación ---- */

/* La animación es una mejora, no un requisito: si el JS no corre, el contenido
   debe verse igual. Por eso el estado oculto solo se aplica con la clase .js. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav[data-open="true"] { display: flex; }

  /* El panel no es decorativo: son los plazos de entrega, así que en móvil
     baja debajo del texto en vez de desaparecer. */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { margin-top: 8px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }

  .grid-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .time-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 22px; align-items: start; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 14px 24px; }

  .wa-float { right: 16px; bottom: 16px; }
}
