/* Advertorial SEORA — CSS unico, sin build.

   Todo el color vive en las variables de :root. Cambiar la marca es cambiar
   esas cinco lineas.

   Las fuentes son las del sistema a proposito: en hosting compartido sin CDN
   una webfont externa suma medio segundo antes del primer texto visible, y
   este tipo de pagina se lee en el celular con datos moviles. */

:root {
  --tinta: #17171a;
  --tinta-suave: #55555c;
  --linea: #e4e1dd;
  --fondo: #ffffff;
  --crema: #faf7f4;
  --acento: #b8624f;          /* terracota — combina con los tonos piel */
  --acento-osc: #9c4f3f;
  --urgente: #c2392b;
  --ancho: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--fondo);
  color: var(--tinta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.68;
}

/* El ancla del boton superior cae debajo de la barra fija si no se compensa. */
[id] { scroll-margin-top: 62px; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--acento); }

.env {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- barra --- */
.barra {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--tinta);
  color: #fff;
}

.barra__int {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.barra__txt {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.barra__txt strong { font-weight: 700; }

.barra__sep { opacity: 0.4; margin: 0 4px; }

.barra__btn {
  flex: none;
  background: var(--acento);
  color: #fff;
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 3px;
  white-space: nowrap;
}

.barra__btn:hover { background: var(--acento-osc); }

.reloj {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #ffb3a7;
}

/* -------------------------------------------------------------- cabecera --- */
.cab {
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--linea);
  margin-bottom: 26px;
}

.cab__marca {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--acento);
  margin-bottom: 16px;
}

.cab__marca span { color: var(--tinta-suave); font-weight: 400; letter-spacing: 0.1em; }

h1 {
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 20px;
}

.autora { display: flex; align-items: center; gap: 12px; }

.autora img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.autora__n,
.autora__f {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
}

.autora__n { font-size: 14px; font-weight: 600; }
.autora__f { font-size: 12.5px; color: var(--tinta-suave); }

/* --------------------------------------------------------------- cuerpo --- */
main p { margin-bottom: 20px; }

.entrada {
  font-size: 21px;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- figura --- */
.fig { margin: 26px 0 28px; }

.fig img { border-radius: 4px; width: 100%; }

/* Anula el padding lateral de .env para que la imagen llegue al borde de la
   pantalla en movil. En escritorio el max-width del contenedor la contiene
   igual, asi que el margen negativo no la desborda. */
.fig--ancha { margin-left: -20px; margin-right: -20px; }
.fig--ancha img { border-radius: 0; }

.fig--sello img {
  max-width: 260px;
  margin: 0 auto;
  border-radius: 0;
}

figcaption {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tinta-suave);
  margin-top: 9px;
  text-align: center;
}

/* ---------------------------------------------------------------- razon --- */
.razon { margin-bottom: 6px; }

.razon h2 {
  font-size: 25px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 34px 0 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.num {
  flex: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--acento);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* baseline en un flex hace saltar el circulo: lo bajamos a mano */
  align-self: flex-start;
  margin-top: 2px;
}

/* ------------------------------------------------------------------ cta --- */
.cta {
  background: var(--crema);
  border: 1px solid var(--linea);
  border-radius: 6px;
  text-align: center;
  padding: 30px 22px 26px;
  margin: 40px 0;
}

.cta__ojo {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--acento);
  margin-bottom: 10px !important;
}

.cta__t {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 20px !important;
}

.cta__btn {
  display: block;
  width: 100%;
  background: var(--acento);
  color: #fff;
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 17px 18px;
  border-radius: 4px;
  box-shadow: 0 2px 0 var(--acento-osc);
  transition: transform 0.12s ease, background 0.12s ease;
}

.cta__btn:hover { background: var(--acento-osc); }
.cta__btn:active { transform: translateY(2px); box-shadow: none; }

.cta__btn--grande { font-size: 17px; padding: 19px 18px; margin: 26px 0 14px; }

.cta__min {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--tinta-suave);
  margin: 10px 0 0 !important;
}

.estrellas {
  color: #e0a533;
  font-size: 17px;
  letter-spacing: 0.14em;
  margin-top: 14px;
}

/* ----------------------------------------------------------- testimonios --- */
.testi {
  border-top: 1px solid var(--linea);
  margin-top: 44px;
  padding-top: 34px;
}

.testi__t {
  font-size: 27px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
}

.testi__s {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: var(--tinta-suave);
  text-align: center;
  margin-bottom: 28px !important;
}

.op {
  border: 1px solid var(--linea);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 22px;
}

.op img { width: 100%; }

.op blockquote { padding: 20px 20px 22px; }

.op blockquote p {
  font-size: 18px;
  line-height: 1.58;
  margin-bottom: 12px !important;
}

.op cite {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--tinta-suave);
}

/* ---------------------------------------------------------------- cierre --- */
.cierre {
  border-top: 1px solid var(--linea);
  margin-top: 40px;
  padding-top: 30px;
  text-align: center;
}

.cierre__t {
  font-size: 25px;
  line-height: 1.34;
  font-weight: 700;
  margin: 24px 0 14px !important;
}

.cierre__p { font-size: 18px; color: var(--tinta-suave); }

/* ------------------------------------------------------------------- pie --- */
.pie {
  background: var(--crema);
  border-top: 1px solid var(--linea);
  margin-top: 48px;
  /* El colchon de abajo es el alto del boton fijo: si lo pusieramos en <body>
     quedaria una franja blanca bajo el pie crema. */
  padding: 30px 0 110px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.pie__marca {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 12px;
}

.pie__aviso,
.pie__links,
.pie__c {
  font-size: 12px;
  line-height: 1.65;
  color: var(--tinta-suave);
}

.pie__links { margin: 12px 0 8px; }
.pie__links a { color: var(--tinta-suave); }

/* ------------------------------------------------------------ boton fijo --- */
.fijo {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--acento);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 17px 16px;
  /* iPhone con barra de gestos */
  padding-bottom: calc(17px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.13);
  /* aparece recien cuando el lector bajo un poco — lo activa script.js */
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.fijo.visible { transform: translateY(0); }

/* --------------------------------------------------------------- moviles --- */
@media (max-width: 600px) {
  body { font-size: 18px; }
  h1 { font-size: 27px; }
  .entrada { font-size: 19px; }
  .razon h2 { font-size: 22px; gap: 10px; }
  .num { width: 29px; height: 29px; font-size: 14px; }
  .cta__t { font-size: 20px; }
  .testi__t { font-size: 23px; }
  .cierre__t { font-size: 21px; }
  .barra__txt { font-size: 11px; }
  .barra__btn { font-size: 11px; padding: 8px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
