/* ============================================================
   Masterplan Raíz — PIRQA · hoja de estilos de la vista pública
   Títulos: Fraunces · Texto: Inter · Fondo: marfil claro
   ============================================================ */

:root {
  --paper: #FAF9F4;
  --white: #FFFFFF;
  --ink: #23261D;
  --ink-soft: #4F5246;
  --muted: #7C7F70;
  --forest: #4C513A;
  --forest-dark: #3B3F2D;
  --sand: #BFB18B;
  --sand-soft: #E9E2CF;
  --line: rgba(76, 81, 58, 0.14);
  --line-soft: rgba(76, 81, 58, 0.08);
  --shadow: 0 1px 2px rgba(35, 38, 29, 0.04), 0 10px 30px -18px rgba(35, 38, 29, 0.16);
  --radius: 22px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

h1 {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
}
h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.ic { width: 1.1em; height: 1.1em; flex: 0 0 auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  background: var(--forest);
  color: #fff;
  border: 1px solid var(--forest);
  border-radius: 999px;
  font: 500 0.95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--forest-dark); border-color: var(--forest-dark); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.02rem; }
.btn-light { background: #fff; color: var(--forest); border-color: #fff; }
.btn-light:hover { background: var(--sand-soft); border-color: var(--sand-soft); }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 24px;
  background: rgba(250,249,244,0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.topbar .brand { display: block; }
.topbar .brand img { width: 118px; height: auto; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.cupos {
  display: flex; align-items: baseline; gap: 0.4rem;
  font-size: 0.82rem; color: var(--ink-soft);
}
.cupos strong {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 300; line-height: 1;
  color: var(--forest);
}

/* ---------- Estructura ---------- */
.layout { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.content { padding: 36px 0 96px; min-width: 0; }

/* ---------- Apertura ---------- */
.hero { padding: 8px 0 36px; }
.apertura {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0 0 2.2rem;
}
.eyebrow {
  margin: 1.1rem 0 0;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Secciones (columna continua) ---------- */
.sec {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.sec:last-of-type { padding-bottom: 24px; }
.lead { color: var(--ink-soft); margin-bottom: 1.6rem; }
.prose p { max-width: 68ch; }

/* ---------- Aviso (caja verde) ---------- */
.aviso {
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 40px;
  margin: 0 0 44px;
}
.aviso .label {
  margin: 0 0 0.8rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sand);
}
.aviso-texto {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 300;
  line-height: 1.45;
  max-width: 34em;
  margin-bottom: 1.6rem;
}
.aviso-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Listas ---------- */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.list .ic { margin-top: 0.3em; width: 1.15rem; height: 1.15rem; }
.list-si .ic { color: var(--forest); }
.list-no .ic { color: var(--sand); }
.list-grid { gap: 0.9rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.two-col .col h3 { padding-bottom: 0.6rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--line); }

/* ---------- Pasos / fases ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.35rem; }
.steps li { display: flex; gap: 1.1rem; align-items: flex-start; }
.steps .num {
  flex: 0 0 auto;
  width: 2.1rem; height: 2.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--forest);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--forest);
  margin-top: 0.05rem;
}
.steps p { color: var(--ink-soft); }
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* ---------- Precios (caja blanca) ---------- */
.pricing {
  margin: 0.3rem 0 1.6rem;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px 16px;
}
.price-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.price-table th {
  text-align: left; font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  padding: 0 14px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.price-table td { padding: 16px 14px; vertical-align: top; border-bottom: 1px solid var(--line-soft); line-height: 1.5; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:first-child { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; color: var(--forest); }
.price-table td:nth-child(4) { font-weight: 600; white-space: nowrap; }
.price-table th:first-child, .price-table td:first-child { padding-left: 0; }
.notes p { font-size: 0.93rem; color: var(--ink-soft); max-width: 72ch; }

/* ---------- Reservar ---------- */
.sec-reservar .cierre { margin-top: 1.4rem; color: var(--ink-soft); }
.cta-row { margin: 1.8rem 0 2.2rem; }
.firma { display: flex; flex-direction: column; gap: 2px; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.firma strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.firma span { font-size: 0.9rem; color: var(--muted); }

.foot {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 8px 0;
  font-size: 0.82rem; color: var(--muted);
}
.foot img { width: 84px; opacity: 0.8; }

/* ============================================================
   Celular / tablet
   ============================================================ */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .topbar { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .topbar .brand img { width: 104px; }
  .topbar-right { gap: 12px; }
  .cupos { display: none; }
  .layout { padding: 0 20px; }
  .content { padding: 24px 0 72px; }
  .hero { padding: 4px 0 28px; }
  .apertura { margin-bottom: 1.6rem; }
  .sec { padding: 32px 0; scroll-margin-top: 72px; }
  .aviso { padding: 26px 22px; border-radius: 18px; margin-bottom: 8px; }
  .two-col { grid-template-columns: 1fr; gap: 22px; }
  .steps-grid { grid-template-columns: 1fr; gap: 1.35rem; }

  /* Tabla de precios como tarjetas comparables */
  .pricing { overflow: visible; background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table thead { display: none; }
  .price-table tr {
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    padding: 18px 18px 6px;
    margin-bottom: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .price-table td { padding: 0 0 12px; border: 0; white-space: normal; }
  .price-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .price-table td:first-child::before { display: none; }
  .price-table td:first-child {
    font-size: 1.35rem; padding-bottom: 12px; margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .price-table td:nth-child(4) { font-size: 1.15rem; }
  .cta-row .btn-lg { width: 100%; }
}

@media (max-width: 340px) {
  .aviso { padding: 22px 18px; }
  .btn-sm span { display: none; }
  .btn-sm { width: 40px; padding: 0; }
}
