/* Erik Resuelve — estilo sobrio claro (17/11/2026)
   Colores: se cambian acá arriba y cambian en toda la página. */
:root {
  --papel: #f5f2ea;
  --papel-2: #ece7db;
  --tarjeta: #fffdf8;
  --tinta: #16181a;
  --gris: #565a5e;
  --linea: #d9d3c5;
  --verde: #0f7a3d;       /* botones de WhatsApp */
  --verde-osc: #0b5e2f;
  --titulos: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  --texto: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 17px/1.6 var(--texto);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
em { font-style: italic; }

.ancho { width: min(1080px, 100% - 40px); margin-inline: auto; }
.angosto { max-width: 720px; }
.bloque { padding-block: 72px; }

h1, h2, h3 { font-family: var(--titulos); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.150rem, 6.200vw, 3.900rem); }
h1 em { color: var(--verde); }
h2 { font-size: clamp(1.650rem, 4.200vw, 2.500rem); margin-bottom: 28px; }
h3 { font-size: 1.300rem; line-height: 1.25; }
p { margin: 0 0 1em; }

.sobre {
  font-size: 0.800rem; font-weight: 700; letter-spacing: 0.140em; text-transform: uppercase;
  color: var(--gris); margin-bottom: 16px;
}

/* ---------- Barra de arriba ---------- */
.barra {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(20px, calc((100% - 1080px) / 2));
  background: color-mix(in srgb, var(--papel) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.marca { font-family: var(--titulos); font-size: 1.250rem; font-weight: 700; text-decoration: none; }
.marca em, .pie em { color: var(--verde); }

/* ---------- Botones y links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  background: var(--verde); color: #fff;
  font-weight: 700; font-size: 1.050rem; text-decoration: none;
  border: 2px solid var(--verde); border-radius: 999px;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--verde-osc); border-color: var(--verde-osc); }
.btn:active { transform: scale(.98); }
.btn.chico { min-height: 42px; padding: 8px 16px; font-size: 0.950rem; }
.btn.borde { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.btn.borde:hover { background: var(--tinta); color: var(--papel); }
.ico { width: 22px; height: 22px; flex: none; }
.btn.chico .ico { width: 18px; height: 18px; }

.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--verde); }
.link:hover { color: var(--verde); }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 6px; }

.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.acciones.centro { justify-content: center; }

/* ---------- Portada ---------- */
.portada {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  padding-block: 48px 64px; align-items: center;
}
.bajada { font-size: 1.150rem; color: var(--gris); max-width: 34em; margin-top: 22px; }
.nota { font-size: 0.900rem; color: var(--gris); margin: 14px 0 0; }

.retrato { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--papel-2); border: 1px solid var(--linea); }
.retrato img { width: 100%; height: 100%; object-fit: cover; }
/* Mientras no hay foto: una inicial chica, que no ocupe la pantalla del celu */
.retrato.sin-foto {
  order: -1; width: 76px; max-width: none; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--tinta); border: 0;
}
.retrato.sin-foto span { font-family: var(--titulos); font-size: 2.300rem; font-weight: 700; font-style: italic; color: var(--papel); line-height: 1; }

@media (min-width: 860px) {
  .portada { padding-block: 88px 104px; }
  .portada:has(.retrato:not(.sin-foto)) { grid-template-columns: 1.350fr 0.650fr; gap: 56px; }
  .portada-texto { max-width: 860px; }
}

/* ---------- Tarjetas ---------- */
.tarjetas { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 860px) { .tarjetas { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.tarjeta {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--tarjeta); border: 1px solid var(--linea); border-radius: 18px;
  padding: 26px 24px 24px;
}
.tarjeta p { margin: 0; color: var(--gris); }
.tarjeta .dolor {
  font-family: var(--titulos); font-style: italic; font-size: 1.120rem; line-height: 1.4;
  color: var(--tinta); padding-bottom: 16px; border-bottom: 1px solid var(--linea);
}
.tarjeta .link { margin-top: auto; padding-top: 6px; align-self: flex-start; }
.otro { margin: 28px 0 0; font-size: 1.050rem; }
.otro a { font-weight: 700; text-decoration-color: var(--verde); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Rubros (portada y páginas por rubro) ---------- */
.rubros { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--linea); }
.chips, .otros { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  background: var(--tarjeta); border: 1px solid var(--linea); border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--verde); color: var(--verde); }
.otros { justify-content: center; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--linea); }
.otros .sobre { width: 100%; margin-bottom: 6px; }

.miga { font-size: 0.900rem; color: var(--gris); margin-bottom: 18px; }
.miga a { color: var(--gris); text-underline-offset: 3px; }
.sin-arriba { padding-top: 0; }

.como { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .como { grid-template-columns: 1.100fr 0.900fr; gap: 64px; } }
.cura { list-style: none; padding: 0; margin: 0 0 28px; }
.cura li { position: relative; padding: 0 0 16px 32px; font-size: 1.100rem; color: #e4dfd2; }
.cura li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #5fd08f; font-weight: 700; }
.link.claro { color: #fff; text-decoration-color: #5fd08f; }
.link.claro:hover { color: #5fd08f; }

.chat {
  margin: 0; padding: 20px 16px 16px; border-radius: 22px;
  background: #e9e1d4; display: flex; flex-direction: column; gap: 8px;
  max-width: 420px; width: 100%; justify-self: center;
}
.chat figcaption {
  align-self: center; font-size: 0.750rem; font-weight: 700; letter-spacing: 0.120em; text-transform: uppercase;
  color: var(--gris); background: var(--tarjeta); padding: 4px 12px; border-radius: 999px; margin-bottom: 6px;
}
.msj {
  margin: 0; max-width: 85%; padding: 8px 12px 6px; border-radius: 12px;
  font-size: 0.980rem; line-height: 1.4; color: var(--tinta); box-shadow: 0 1px 1px rgba(0,0,0,.08);
}
.msj time { display: block; text-align: right; font-size: 0.720rem; color: var(--gris); margin-top: 2px; }
.msj.cli { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.msj.neg { align-self: flex-end; background: #d6f5d6; border-top-right-radius: 4px; }

/* ---------- Historia ---------- */
.historia { background: var(--tinta); color: var(--papel); padding-block: 80px; }
.historia .sobre { color: #b9b3a4; }
.historia p { font-size: 1.150rem; color: #e4dfd2; }
.historia .remate {
  font-family: var(--titulos); font-size: clamp(1.450rem, 3.600vw, 2rem); line-height: 1.2;
  color: #fff; margin: 32px 0 0; padding-top: 28px; border-top: 1px solid #3a3d40;
}

/* ---------- Preguntas ---------- */
details { border-top: 1px solid var(--linea); }
details:last-of-type { border-bottom: 1px solid var(--linea); }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 1.080rem; line-height: 1.35;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font-size: 1.600rem; font-weight: 400; color: var(--verde); line-height: 1;
}
details[open] summary::after { content: "–"; }
details p { color: var(--gris); padding-right: 24px; margin-bottom: 22px; }

/* ---------- Cierre y pie ---------- */
.cierre { background: var(--papel-2); border-top: 1px solid var(--linea); padding-block: 80px; text-align: center; }
.cierre .ancho { margin-inline: auto; }
.cierre h2 { margin-bottom: 12px; }
.cierre p { color: var(--gris); font-size: 1.100rem; margin: 0; }

.pie {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-block: 26px; font-size: 0.900rem; color: var(--gris);
}
.pie em { font-family: var(--titulos); }

@media (max-width: 480px) {
  .acciones .btn { width: 100%; }
  .barra .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
