/* ==========================================================================
   Panizza Preferred — site.css
   Paleta: pino profundo + papel frío + escala de prioridad del reporte.
   Tipografía: Archivo (títulos/UI) + Newsreader (texto de lectura).
   ========================================================================== */

:root {
  --ink:        #16211f;
  --ink-soft:   #4a5a55;
  --paper:      #f1f2ee;
  --white:      #ffffff;
  --pine:       #1f423c;
  --pine-deep:  #122a26;
  --sage:       #c7d2c8;
  --line:       #d7dbd5;
  --line-soft:  #e6e9e3;

  /* Escala de condición del reporte */
  --good:    #3f7d5a;
  --maintain:#5b7c8d;
  --soon:    #b5822b;
  --costly:  #a93b2b;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: 24px;
  --max: 1180px;
  --radius: 4px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--pine); color: var(--white);
  padding: 12px 18px; z-index: 200; font-family: var(--sans);
}
.skip:focus { left: 8px; top: 8px; }

/* --- Estructura ----------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.band { padding: 84px 0; }
.band--tight { padding: 56px 0; }
.band--pine { background: var(--pine); color: #e8ece7; }
.band--white { background: var(--white); }

.lede {
  font-size: 20px;
  line-height: 1.6;
  max-width: 62ch;
  color: var(--ink-soft);
}
.band--pine .lede { color: #c3cfc8; }

.h-sec {
  font-size: clamp(28px, 4vw, 40px);
  max-width: 22ch;
  margin-bottom: 20px;
}
.h-sub {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pine);
  margin-bottom: 12px;
}
.band--pine .h-sub { color: var(--sage); }

/* --- Botones -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--pine); color: var(--white); }
.btn--primary:hover { background: var(--pine-deep); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--pine); }
.btn--light { background: var(--white); color: var(--pine-deep); }
.btn--light:hover { background: var(--sage); }
.btn--outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }
.btn--block { width: 100%; }

/* --- Header --------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241,242,238,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 68px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand b {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
}
.brand span {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-family: var(--sans);
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--pine); }
.nav .btn { color: var(--white); }
.nav-toggle { display: none; }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding: 72px 0 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  margin-bottom: 22px;
}
.hero .lede { font-size: 21px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-note {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  max-width: 46ch;
}

/* --- Tarjeta de reporte (elemento firma) ---------------------------------- */
.report {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 40px -28px rgba(22,33,31,.5);
  overflow: hidden;
}
.report-head {
  background: var(--pine-deep);
  color: #fff;
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.report-head h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.report-head p {
  font-family: var(--sans);
  font-size: 12px;
  color: #9db3ab;
  margin: 4px 0 0;
}
.report-tag {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 2px;
  padding: 3px 7px;
  white-space: nowrap;
}
.report-rows { list-style: none; margin: 0; padding: 0; }
.report-rows li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15.5px;
}
.report-rows li:last-child { border-bottom: 0; }
.report-item { display: flex; align-items: center; gap: 12px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex: 0 0 auto;
  background: var(--line);
  transition: background-color .5s ease;
}
.report-verdict {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .5s ease;
}
.is-lit .dot.s-good { background: var(--good); }
.is-lit .dot.s-maintain { background: var(--maintain); }
.is-lit .dot.s-soon { background: var(--soon); }
.is-lit .dot.s-costly { background: var(--costly); }
.is-lit .report-verdict { opacity: 1; }
.v-good { color: var(--good); }
.v-maintain { color: var(--maintain); }
.v-soon { color: var(--soon); }
.v-costly { color: var(--costly); }
.report-foot {
  background: #f7f8f5;
  border-top: 1px solid var(--line);
  padding: 13px 20px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* --- Pasos (secuencia real → numeración justificada) ---------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.step { border-top: 2px solid var(--pine); padding-top: 18px; }
.step-n {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--pine);
  display: block;
  margin-bottom: 8px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 16px; }

/* --- Checklist de inspección ---------------------------------------------- */
.check-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 44px; }
.check-col h3 {
  font-size: 15px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.check-col ul { list-style: none; margin: 0; padding: 0; }
.check-col li {
  font-size: 16px;
  padding: 7px 0 7px 24px;
  position: relative;
  color: #cdd8d1;
}
.check-col li::before {
  content: "";
  position: absolute; left: 0; top: 15px;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--sage);
  border-bottom: 1.5px solid var(--sage);
  transform: rotate(-45deg);
}

/* --- Escala de veredictos -------------------------------------------------- */
.verdicts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; }
.verdict { padding: 26px 26px 30px; border-left: 3px solid; background: var(--white); }
.verdict:not(:last-child) { border-right: 1px solid var(--line-soft); }
.verdict h3 { font-size: 17px; margin-bottom: 8px; }
.verdict p { font-size: 15.5px; color: var(--ink-soft); }
.verdict.v1 { border-left-color: var(--good); }
.verdict.v2 { border-left-color: var(--maintain); }
.verdict.v3 { border-left-color: var(--soon); }
.verdict.v4 { border-left-color: var(--costly); }

/* --- Planes ---------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: start; }
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 28px 32px;
  display: flex; flex-direction: column; height: 100%;
}
.plan--featured {
  border-color: var(--pine);
  border-width: 2px;
  box-shadow: 0 20px 44px -30px rgba(22,33,31,.55);
}
.plan-flag {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  color: var(--pine);
  margin-bottom: 10px;
}
.plan h3 { font-size: 26px; margin-bottom: 6px; }
.plan-summary { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 20px; min-height: 3em; }
.plan-price { font-family: var(--sans); margin-bottom: 22px; }
.plan-price b { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.plan-price span { font-size: 14px; color: var(--ink-soft); }
.plan-price em {
  font-style: normal; font-size: 17px; font-weight: 600; color: var(--pine);
}
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.plan li {
  font-size: 15.5px;
  padding: 9px 0 9px 22px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.plan li:last-child { border-bottom: 0; }
.plan li::before {
  content: "";
  position: absolute; left: 0; top: 17px;
  width: 10px; height: 5px;
  border-left: 1.5px solid var(--pine);
  border-bottom: 1.5px solid var(--pine);
  transform: rotate(-45deg);
}
.plans-note { font-size: 15px; color: var(--ink-soft); margin-top: 26px; max-width: 60ch; }

/* --- Expediente / dos columnas -------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.file-list { list-style: none; margin: 26px 0 0; padding: 0; }
.file-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  display: flex; gap: 14px; align-items: baseline;
}
.file-list li:first-child { border-top: 1px solid var(--line); }
.file-list b { font-family: var(--sans); font-size: 14px; font-weight: 600; min-width: 108px; }
.file-list span { color: var(--ink-soft); }

.app-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
}
.app-card h3 { font-size: 19px; margin-bottom: 6px; }
.app-status {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  color: var(--soon);
  margin-bottom: 16px;
}
.app-card ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 26px; }
.app-card li { font-size: 15px; padding: 6px 0; color: var(--ink-soft); break-inside: avoid; }

/* --- Para quién es --------------------------------------------------------- */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 44px; border: 1px solid var(--line); }
.who div { background: var(--paper); padding: 26px 24px; }
.who h3 { font-size: 17px; margin-bottom: 7px; }
.who p { font-size: 15.5px; color: var(--ink-soft); }

/* --- FAQ ------------------------------------------------------------------- */
.faq { max-width: 760px; margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--sans);
  font-size: 17.5px;
  font-weight: 600;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 6px; top: 28px;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--pine);
  border-bottom: 1.5px solid var(--pine);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq .faq-body { padding: 0 0 22px; color: var(--ink-soft); max-width: 68ch; }

/* --- Formulario ------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--pine);
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-fine { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }

.note {
  border-left: 3px solid var(--pine);
  background: rgba(31,66,60,.06);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 22px;
  font-size: 15.5px;
}
.note--bad { border-left-color: var(--costly); background: rgba(169,59,43,.07); }
.note--good { border-left-color: var(--good); background: rgba(63,125,90,.08); }

.contact-lines { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-lines li { padding: 12px 0; border-top: 1px solid var(--line); }
.contact-lines b { font-family: var(--sans); font-size: 13px; display: block; color: var(--ink-soft); margin-bottom: 2px; }
.contact-lines a { font-family: var(--sans); font-size: 19px; font-weight: 600; text-decoration: none; }
.contact-lines a:hover { color: var(--pine); }

/* --- Footer ---------------------------------------------------------------- */
.site-foot { background: var(--pine-deep); color: #a9bcb4; padding: 52px 0 40px; font-size: 15px; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-foot b { font-family: var(--sans); color: #fff; font-size: 18px; letter-spacing: .06em; }
.site-foot a { color: #cfdad4; }
.foot-legal { font-size: 13px; color: #7f938b; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .check-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .verdicts { grid-template-columns: repeat(2, 1fr); }
  .verdict { border-right: 0 !important; border-bottom: 1px solid var(--line-soft); }
  .plans { grid-template-columns: 1fr; }
  .plan-summary { min-height: 0; }
  .split, .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .who { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .band { padding: 60px 0; }
  .hero { padding: 48px 0 64px; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav.is-open a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .nav.is-open .btn { margin-top: 14px; border-bottom: 0; justify-content: center; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 9px 14px;
    font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer;
  }
  .site-head { position: relative; }
  .check-grid, .who, .verdicts { grid-template-columns: 1fr; }
  .who div { padding: 22px 20px; }
  .app-card ul { columns: 1; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .report-rows li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .form-card { padding: 24px 20px; }
}

/* ==========================================================================
   Imágenes: marcador cuando el archivo aún no existe, galería y miniaturas
   ========================================================================== */

.photo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(-45deg, transparent 0 9px, rgba(31,66,60,.05) 9px 18px),
    var(--line-soft);
  border: 1px dashed var(--pine);
  border-radius: var(--radius);
  color: var(--pine);
  text-align: center;
  padding: 8px;
}
.photo-slot b {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  word-break: break-all;
}
.photo-slot i {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  color: var(--ink-soft);
}

/* --- Galería de trabajos --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--line-soft);
}
.gallery figcaption {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

/* --- Miniaturas dentro del reporte --- */
.report-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--line-soft);
}
.report-thumbs .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  background: var(--line-soft);
}
.report-thumbs .photo-slot { aspect-ratio: 4 / 3; }
.report-thumbs .photo-slot b { font-size: 10.5px; }
.report-thumbs .photo-slot i { display: none; }

@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; gap: 26px; }
}
