/* ============================================================
   FERRO studio · Páginas de contenido (zonas y blog)
   Misma paleta y tipografía que la landing. Liviana a propósito:
   estas páginas tienen que cargar rápido en el celular.
   ============================================================ */
:root {
  --charcoal: #2b2a29; --charcoal-deep: #1c1b1a; --charcoal-soft: #34322f; --charcoal-line: #45423e;
  --orange: #d76020; --orange-bright: #ea7331; --amber: #f0a35c;
  --cream: #f4eee4; --cream-pure: #fbf7f0; --card: #ffffff;
  --ink: #2b2a29; --ink-soft: #6a645c; --paper: #ece6db; --paper-soft: #a8a199;
  --line: #e4dccf;
  --wrap: 1120px; --texto: 720px; --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Rajdhani", "Segoe UI", Helvetica, Arial, sans-serif; background: var(--cream-pure);
  color: var(--ink); font-size: 1.12rem; line-height: 1.6; font-weight: 500; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-bright); }
:focus-visible { outline: 2.5px solid var(--orange-bright); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.texto { width: min(var(--texto), 100% - 2rem); margin-inline: auto; }

/* ---------- barra ---------- */
.barra { background: var(--charcoal-deep); color: var(--paper); position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--charcoal-line); }
.barra__in { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.marca { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700;
  letter-spacing: .18em; font-size: 1.05rem; }
.marca img { width: 40px; height: 40px; border-radius: 50%; }
.marca span span { color: var(--orange-bright); margin-left: .3em; letter-spacing: .12em; font-weight: 600; }
.menu { margin-left: auto; display: flex; gap: 1.2rem; align-items: center; }
.menu a { color: var(--paper); text-decoration: none; font-weight: 600; font-size: 1rem; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--orange-bright); }
.boton { display: inline-flex; align-items: center; gap: .45rem; background: var(--orange); color: #fff !important;
  text-decoration: none; font-weight: 700; padding: .7rem 1.2rem; border-radius: 999px; line-height: 1.1;
  transition: background .2s var(--ease), transform .2s var(--ease); }
.boton:hover { background: var(--orange-bright); transform: translateY(-1px); }
.boton--linea { background: transparent; border: 1.5px solid currentColor; color: inherit !important; }
.boton--linea:hover { background: rgba(255,255,255,.08); }
@media (max-width: 860px) {
  .menu { gap: .8rem; }
  .menu .opc { display: none; }
}
@media (max-width: 520px) {
  .menu a:not(.boton) { display: none; }
  .boton { padding: .65rem 1rem; }
}

/* ---------- cabecera de página ---------- */
.cabeza { background: linear-gradient(160deg, #211f1d 0%, var(--charcoal-deep) 55%, #161514 100%);
  color: var(--paper); padding: clamp(2.8rem, 7vw, 5rem) 0 clamp(2.4rem, 6vw, 4rem); position: relative; overflow: hidden; }
.cabeza::after { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(234,115,49,.35), rgba(234,115,49,0) 70%); pointer-events: none; }
.migas { font-size: .9rem; color: var(--paper-soft); margin-bottom: 1rem; }
.migas a { color: var(--paper-soft); }
.antetitulo { display: inline-block; color: var(--amber); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  font-size: .82rem; margin-bottom: .7rem; }
.cabeza h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; color: #fff; font-weight: 700; letter-spacing: -.01em; max-width: 22ch; }
.cabeza h1 em { font-style: normal; color: var(--orange-bright); }
.cabeza p.bajada { margin-top: 1rem; font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--paper); max-width: 60ch; }
.cabeza .acciones { margin-top: 1.6rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.dato-post { margin-top: 1rem; color: var(--paper-soft); font-size: .95rem; }

/* ---------- cuerpo ---------- */
.seccion { padding: clamp(2.6rem, 6vw, 4.2rem) 0; }
.seccion--crema { background: var(--cream); }
.seccion h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.12; margin-bottom: .8rem; letter-spacing: -.01em; }
.seccion h3 { font-size: 1.3rem; line-height: 1.2; margin: 1.6rem 0 .5rem; }
.seccion p + p, .seccion p + ul, .seccion ul + p, .seccion p + ol, .seccion ol + p { margin-top: .9rem; }
.seccion ul, .seccion ol { padding-left: 1.3rem; }
.seccion li + li { margin-top: .35rem; }
.nota { color: var(--ink-soft); font-size: 1rem; }
.lead { font-size: 1.22rem; color: var(--ink); }

.grilla { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 1.4rem; }
.tarjeta { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; }
.tarjeta img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.tarjeta__t { padding: .9rem 1rem 1.1rem; }
.tarjeta__t b { display: block; font-size: 1.12rem; line-height: 1.2; }
.tarjeta__t .pot { color: var(--orange); font-weight: 700; margin-top: .25rem; display: block; }
.tarjeta__t span { color: var(--ink-soft); font-size: .98rem; }
a.tarjeta { color: inherit; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
a.tarjeta:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(43,42,41,.35); color: inherit; }
.tarjeta__t p { margin-top: .4rem; color: var(--ink-soft); font-size: 1rem; }

.pasos { counter-reset: paso; list-style: none; padding: 0 !important; margin-top: 1.2rem; }
.pasos li { counter-increment: paso; position: relative; padding: .2rem 0 .9rem 3.1rem; }
.pasos li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 700; display: grid; place-items: center; }
.pasos li b { display: block; }

.caja { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px;
  padding: 1rem 1.2rem; margin: 1.3rem 0; }
.caja b:first-child { color: var(--orange); }

.tabla { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 1.02rem; background: var(--card);
  border-radius: 10px; overflow: hidden; }
.tabla th, .tabla td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla th { background: var(--charcoal); color: #fff; font-weight: 700; }
.tabla-scroll { overflow-x: auto; }

.preguntas details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-top: .7rem; }
.preguntas summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; font-size: 1.1rem; list-style: none; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; float: right; color: var(--orange); font-size: 1.3rem; line-height: 1; }
.preguntas details[open] summary::after { content: "–"; }
.preguntas details > div { padding: 0 1.1rem 1rem; }

.fuentes { font-size: .95rem; color: var(--ink-soft); border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; }
.fuentes li { margin-top: .3rem; }

/* ---------- llamado final ---------- */
.llamado { background: var(--orange); color: #fff; padding: clamp(2.4rem, 6vw, 3.6rem) 0; }
.llamado h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.1; max-width: 24ch; }
.llamado p { margin-top: .6rem; max-width: 58ch; }
.llamado .acciones { margin-top: 1.3rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.llamado .boton { background: #fff; color: var(--orange) !important; }
.llamado .boton:hover { background: var(--cream); }
.llamado .boton--linea { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.8); }

/* ---------- pie ---------- */
.pie { background: var(--charcoal-deep); color: var(--paper-soft); padding: 2.6rem 0 2rem; font-size: 1rem; }
.pie__cols { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.pie h3 { color: #fff; font-size: 1.05rem; margin-bottom: .6rem; letter-spacing: .04em; }
.pie a { color: var(--paper); text-decoration: none; }
.pie a:hover { color: var(--orange-bright); }
.pie ul { list-style: none; }
.pie li + li { margin-top: .35rem; }
.pie__fin { border-top: 1px solid var(--charcoal-line); margin-top: 2rem; padding-top: 1.2rem; font-size: .92rem; }

/* ---------- nota del blog ---------- */
.portada-nota { width: 100%; height: auto; aspect-ratio: 1140 / 750; object-fit: cover; border-radius: var(--radius);
  margin-bottom: 1.8rem; background: var(--paper); }
article.seccion h2 { margin-top: 2.2rem; }
article.seccion .lead + h2 { margin-top: 2rem; }
.tarjeta__t > span:last-child { display: block; margin-top: .5rem; }
h2, h3, [id] { scroll-margin-top: 84px; }
.cabeza .wrap { position: relative; z-index: 1; }
@media (max-width: 560px) {
  .tabla { font-size: .95rem; }
  .tabla th, .tabla td { padding: .55rem .6rem; }
}
