/* ==========================================================================
   pages.css: offer and legal pages in the "Dictamen" identity.
   Loaded after css/site.css by sprint.html, segunda-opinion.html,
   privacidad.html and gracias.html.
   Design source: design/landing-pro/04-dictamen-opus.html. Tokens, buttons,
   header, footer, fields and lists come from site.css and are used as is.

   LAYOUT CONCEPT: a document, not a landing page.
     cabecera (site.css)
     ------------------------------------------------------------------
       Sprint Piloto                        <- page label (existing content)
       Diagnóstico de IA para empresas...   <- h1
       lead (46ch)
       [Solicitar el Sprint]
     --- rule on tinta -------------------------------------------------
     USD 2.900, precio fijo                 <- the only large number: sans,
     notes (60ch)                              tabular figures
     --- rule on regla ------------------------------------------------
     h2 in a 17rem margin column | body in one column, <= 62ch
     --- rule ---------------------------------------------------------
     ...

   PRINCIPLES
   - One readable column. At >= 900px the headings hang in the left margin and
     the body never exceeds 62ch; nothing is boxed, sections are divided by rules.
   - Numbers are the loudest voice: prices and day labels are the only sans
     display sizes, always with tabular figures.
   - One framed element per page: the fictitious sample report in
     segunda-opinion.html reads as a reviewed sheet (white on paper). Every
     other block stays unboxed.
   - No ALL-CAPS tracking, no middle-dot meta strings, no arrows on buttons,
     no gradients, no shadows (the sample sheet included).
   ========================================================================== */

/* Page shell ------------------------------------------------------------ */
.pagina { padding: 64px 0 104px; }

.etiqueta {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--grafito);
    margin: 0 0 16px;
}

.titular {
    font-size: clamp(2.05rem, 3.4vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    max-width: 32ch;
    text-wrap: balance;
    margin-bottom: 20px;
}

.entrada {
    font-size: 1.19rem;
    line-height: 1.55;
    color: var(--grafito);
    max-width: 46ch;
    margin-bottom: 28px;
}

.acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.aviso { max-width: 42rem; }
.aviso p { max-width: 50ch; }

/* Document sections: heading in the margin, body in one column ---------- */
.bloque {
    display: grid;
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
    column-gap: 56px;
    row-gap: 12px;
    border-top: 1px solid var(--regla);
    padding: 34px 0;
}
.bloque > h2 {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.3rem;
    line-height: 1.28;
    text-wrap: balance;
}
.bloque > :not(h2) { grid-column: 2; min-width: 0; }
.bloque > :last-child { margin-bottom: 0; }
.bloque p, .bloque li { max-width: 50ch; }
.bloque ul, .bloque ol { margin-top: 0; }

/* The price: the only large number on the page -------------------------- */
.precio-bloque { border-top: 1px solid var(--tinta); padding: 30px 0 36px; }
.precio {
    font-family: var(--sans);
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 22px;
}
.precio-bloque .lista { max-width: 52ch; }

/* Lists: what is included / excluded ------------------------------------ */
.lista, .lista-no { max-width: 52ch; }

/* Deliverables: ruled rows, label and description ---------------------- */
.entregables { margin: 0; padding: 0; border-top: 1px solid var(--regla); }
.entregables li {
    list-style: none;
    padding: 18px 0;
    border-bottom: 1px solid var(--regla);
}
.entregables li:last-child { border-bottom: 0; }
.entregables h3 { font-size: 1.12rem; line-height: 1.3; margin-bottom: 4px; }
.entregables p {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.5;
    color: var(--grafito);
}

/* The two weeks: a real sequence, so the day leads each row ------------ */
.pasos { margin: 0; padding: 0; border-top: 1px solid var(--regla); }
.pasos li {
    list-style: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--regla);
    font-size: 16.5px;
    line-height: 1.5;
}
.pasos li:last-child { border-bottom: 0; }
.pasos strong {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Questions ------------------------------------------------------------ */
.preguntas { max-width: 52ch; border-top: 1px solid var(--regla); }
.preguntas details { border-bottom: 1px solid var(--regla); }
.preguntas summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary h3 { font-size: 1.1rem; line-height: 1.35; }
.preguntas summary::after {
    content: "+";
    flex: none;
    font-family: var(--sans);
    font-size: 20px;
    line-height: 1;
    color: var(--grafito);
}
.preguntas details[open] summary::after { content: "\2212"; }
.preguntas details > p { margin: 0 0 20px; color: var(--grafito); font-size: 16.5px; }

/* Closing line before the form ------------------------------------------ */
.cierre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    border-top: 1px solid var(--tinta);
    padding: 34px 0;
}
.cierre p { margin: 0; font-size: 1.22rem; line-height: 1.45; max-width: 38ch; }

/* Form ------------------------------------------------------------------ */
.formulario { max-width: 38rem; }
.formulario > p { max-width: 50ch; }
fieldset.campo { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
fieldset.campo legend {
    padding: 0;
    margin-bottom: 8px;
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 600;
}
.opciones { display: grid; gap: 10px; }
.opciones .opcion {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--sans);
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    cursor: pointer;
}
.opciones .opcion input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: none;
    accent-color: var(--azul);
    cursor: pointer;
}

/* The sample report: the one framed sheet on the site ------------------ */
.muestra { margin-top: 28px; }
.muestra > summary {
    display: inline-flex;
    align-items: center;
    list-style: none;
    cursor: pointer;
}
.muestra > summary::-webkit-details-marker { display: none; }
.ejemplo {
    background: var(--hoja);
    border: 1px solid var(--regla);
    padding: 28px 32px 32px;
    margin-top: 22px;
}
.ejemplo p, .ejemplo li { font-size: 16.5px; line-height: 1.6; max-width: 50ch; }
.ejemplo ul, .ejemplo ol { margin: 0 0 1em; padding-left: 22px; }
.ejemplo li { margin-bottom: 6px; }
.ejemplo h3 { font-size: 1.1rem; line-height: 1.3; margin: 28px 0 10px; }
.ejemplo > :first-child { margin-top: 0; }
.ejemplo-tag {
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--grafito);
    margin-bottom: 12px;
}
.tabla { margin: 16px 0 24px; border-top: 1px solid var(--regla); overflow-x: auto; }
.tabla table {
    border-collapse: collapse;
    width: 100%;
    min-width: 34rem;
    font-size: 15.5px;
    line-height: 1.5;
}
.tabla th, .tabla td {
    text-align: left;
    vertical-align: top;
    padding: 12px 16px 12px 0;
    border-bottom: 1px solid var(--regla);
}
.tabla th {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--grafito);
}
.tabla th:first-child, .tabla td:first-child { width: 2rem; font-variant-numeric: tabular-nums; }

/* Legal document -------------------------------------------------------- */
.legal-doc .titular { max-width: 26ch; }
.legal-doc .fecha {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--grafito);
    margin-bottom: 0;
}
.volver {
    border-top: 1px solid var(--regla);
    padding: 26px 0 0;
    margin: 34px 0 0;
    font-family: var(--sans);
    font-size: 15px;
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1000px) {
    .bloque { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); column-gap: 40px; }
}

@media (max-width: 900px) {
    .bloque { grid-template-columns: 1fr; row-gap: 10px; padding: 28px 0; }
    .bloque > h2, .bloque > :not(h2) { grid-column: 1; }
    .bloque > h2 { grid-row: auto; font-size: 1.25rem; max-width: 28ch; }
}

@media (max-width: 560px) {
    .pagina { padding: 40px 0 72px; }
    .titular { font-size: 1.85rem; }
    .entrada { font-size: 1.08rem; }
    .ejemplo { padding: 20px 18px 24px; border-left: 0; border-right: 0; }
    .acciones .btn { width: 100%; }
    .cierre { flex-direction: column; align-items: stretch; }
    .cierre p { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .preguntas summary { transition: none; }
}
