/*
 * Landing de MyLatte (www.<dominio>) y aviso de privacidad. Diseño propio, sin Sneat ni Bootstrap.
 * Mundo: la cafetería dibujada en corte con la luz del día (docs/DESIGN.md). Muro encalado, corte en carbón espresso,
 * la franja de sol dorada como único color activo del dibujo y el café de la marca solo en las acciones.
 * Cinco tamaños de letra (small, body, lead, head, display), un solo radio (0) y una retícula de 12 columnas.
 */

:root {
    --bg: #f4f5f2;
    --surface: #e8e9e4;
    --surface-2: #dcded7;
    --ink: #1d1813;
    --muted: #5a524b;
    --accent: #974400;
    --accent-ink: #ffffff;
    --accent-hover: #7d3800;
    --sun: #f2b632;
    --sun-soft: #f7d27a;
    --shade: #4f6d8f;
    --night: #263241;
    --paper: #fafaf9;

    --font: 'Hanken Grotesk', system-ui, sans-serif;
    --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
    --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
    --step-lead: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
    --step-head: clamp(2.125rem, 1.25rem + 3.5vw, 4.5rem);
    --step-display: clamp(4rem, 2rem + 4.5vw, 6rem);

    --margin: clamp(16px, 3vw, 40px);
    --gutter: clamp(16px, 2vw, 28px);
    --section: clamp(96px, 11vw, 192px);

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
    scrollbar-color: var(--muted) var(--surface);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--step-body);
    line-height: 1.5;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
    background: var(--surface);
}

a {
    color: inherit;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

::selection {
    background: var(--sun);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

strong {
    font-weight: 500;
}

.tabular {
    font-variant-numeric: tabular-nums;
}

/* Los cinco tamaños */
.step-head {
    font-size: var(--step-head);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.step-lead {
    font-size: var(--step-lead);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.step-display {
    font-size: var(--step-display);
    font-weight: 500;
    line-height: 0.8;
    letter-spacing: -0.05em;
}

.skip-link {
    position: absolute;
    left: var(--margin);
    top: -60px;
    z-index: 30;
    background: var(--ink);
    color: var(--bg);
    padding: 12px 16px;
}

.skip-link:focus {
    top: 12px;
}

/* Botones: planos, esquinas rectas, una sola forma en toda la página */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: var(--step-body);
    font-weight: 500;
    text-decoration: none;
    transition: transform 160ms var(--ease-out), background-color 160ms ease;
}

.button:active {
    transform: scale(0.97);
}

.button--small {
    min-height: 44px;
    padding: 10px 18px;
    font-size: var(--step-small);
}

.button--light {
    background: var(--paper);
    color: var(--ink);
}

.text-link {
    font-weight: 500;
    text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
    .button:hover {
        background: var(--accent-hover);
    }

    .button--light:hover {
        background: var(--sun-soft);
    }

    .text-link:hover,
    .site-nav__links a:hover,
    .site-footer a:hover {
        color: var(--accent);
    }
}

/* Barra de navegación: logo, tres enlaces y una acción */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: var(--gutter);
    padding: 12px var(--margin);
    background: var(--bg);
}

.site-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    font-weight: 500;
    font-size: var(--step-lead);
    letter-spacing: -0.03em;
    text-decoration: none;
}

.site-nav__brand img {
    width: 66px;
    height: auto;
    background: none;
}

.site-nav__links {
    display: flex;
    gap: clamp(16px, 2.4vw, 36px);
    font-size: var(--step-small);
}

.site-nav__links a {
    text-decoration: none;
    font-weight: 500;
}

/* Portada */
.hero {
    padding: clamp(20px, 2.5vw, 40px) var(--margin) 0;
}

.hero__copy {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    row-gap: 20px;
    align-items: end;
}

.hero__copy h1 {
    grid-column: 1 / 9;
    grid-row: 1 / 3;
    align-self: end;
}

.hero__lead {
    grid-column: 9 / 13;
    max-width: 36ch;
}

.hero__actions {
    grid-column: 9 / 13;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
}

.day {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    margin-top: clamp(24px, 3vw, 40px);
    align-items: start;
}

.day__drawing {
    grid-column: 1 / 9;
    grid-row: 1 / 3;
}

.section-drawing {
    width: 100%;
    height: auto;
}

.sd-outside {
    fill: var(--bg);
}

.sd-interior {
    fill: var(--paper);
    transition: fill 600ms ease;
}

.sd-beam {
    fill: var(--sun);
    opacity: 0.62;
    mix-blend-mode: multiply;
}

.sd-poche,
.sd-cut {
    fill: var(--ink);
}

.sd-glow {
    fill: var(--sun-soft);
    opacity: 0;
    transition: opacity 600ms ease;
}

.sd-labels text {
    fill: #d8d2ca;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    text-anchor: middle;
}

.day[data-night] .sd-interior {
    fill: var(--night);
}

.day[data-night] .sd-glow {
    opacity: 0.55;
}

.day__control {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.day__label {
    font-size: var(--step-small);
    font-weight: 500;
}

.day__clock {
    font-size: var(--step-lead);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    min-width: 4ch;
    text-align: right;
}

/* Control de la hora: una pista de color y un tirador grande para el pulgar */
.day__range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 44px;
    background: transparent;
    cursor: grab;
}

.day__range::-webkit-slider-runnable-track {
    height: 8px;
    background: var(--surface-2);
}

.day__range::-moz-range-track {
    height: 8px;
    background: var(--surface-2);
}

.day__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    margin-top: -10px;
    border-radius: 50%;
    background: var(--sun);
    border: 4px solid var(--ink);
    transition: transform 160ms var(--ease-out);
}

.day__range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sun);
    border: 4px solid var(--ink);
}

.day__range:active::-webkit-slider-thumb {
    transform: scale(1.12);
}

.day__moments {
    grid-column: 9 / 13;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 8px;
    margin-top: 20px;
}

.sd-hours text {
    fill: var(--shade);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
}

.day__moment {
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: var(--step-small);
    cursor: pointer;
    transition: transform 160ms var(--ease-out), background-color 160ms ease;
}

.day__moment:active {
    transform: scale(0.97);
}

.day__moment[aria-pressed='true'] {
    background: var(--ink);
    color: var(--bg);
}

@media (hover: hover) and (pointer: fine) {
    .day__moment:hover {
        background: var(--surface-2);
    }

    .day__moment[aria-pressed='true']:hover {
        background: var(--ink);
    }
}

.day__panels {
    grid-column: 9 / 13;
    grid-row: 1;
    display: grid;
}

.day__disclaimer {
    margin-top: 12px;
    font-size: var(--step-small);
    color: var(--muted);
}

/* Fragmentos del sistema: dentro de data-ui rigen las convenciones de la aplicación */
.ui {
    background: #ffffff;
    border: 1px solid #d6d2cc;
    border-radius: 10px;
    padding: 16px;
    font-size: 15px;
    line-height: 1.4;
    color: #26201a;
}

.js .day__panels .ui {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
    visibility: hidden;
    transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), filter 260ms var(--ease-out), visibility 0s linear 260ms;
}

.js .day__panels .ui.is-active {
    opacity: 1;
    transform: none;
    filter: none;
    visibility: visible;
    transition-delay: 0s;
}

.js .day__panels .day__disclaimer {
    grid-area: 2 / 1;
}

html:not(.js) .day__panels {
    gap: 12px;
}

.ui__bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ebe7e1; /* taste-skill-ignore: dentro del fragmento data-ui */
    font-weight: 500;
}

.ui__status {
    padding: 2px 8px;
    border-radius: 6px;
    background: #e3efe6;
    color: #1f5a33;
    font-size: 13px;
    white-space: nowrap;
}

.ui__status--warm {
    background: #fbecd0;
    color: #7a4a00;
}

.ui__rows > div,
.ui__items li,
.ui__total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-variant-numeric: tabular-nums;
}

.ui__rows dt {
    color: #6b625a;
}

.ui__items small {
    display: block;
    color: #6b625a;
    font-size: 13px;
}

.ui__total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid #ebe7e1; /* taste-skill-ignore: dentro del fragmento data-ui */
    font-weight: 500;
}

.ui__note {
    margin-top: 10px;
    color: #6b625a;
    font-size: 13px;
}

.ui__ticket {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.ui__qr {
    width: 92px;
    height: 92px;
    flex: none;
    fill: #26201a;
    shape-rendering: crispEdges;
}

.ui__form {
    display: grid;
    gap: 10px;
}

.ui__form label {
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: #6b625a;
}

.ui__input {
    padding: 9px 10px;
    border: 1px solid #d6d2cc; /* taste-skill-ignore: dentro del fragmento data-ui */
    border-radius: 8px;
    color: #26201a;
    font-size: 15px;
}

.ui__button,
.ui__files span {
    display: block;
    padding: 10px;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    text-align: center;
    font-weight: 500;
}

.ui__files {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.ui__files span + span {
    background: #f1ede7;
    color: #26201a;
}

/* Introducción */
.intro {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    padding: var(--section) var(--margin) 0;
}

.intro__title {
    grid-column: 1 / 11;
}

.intro__lead {
    grid-column: 1 / 11;
    margin-top: 20px;
    font-size: var(--step-lead);
    line-height: 1.25;
    letter-spacing: -0.02em;
    max-width: 52ch;
}

.intro__columns {
    grid-column: 1 / 13;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gutter);
    margin-top: 72px;
}

.intro__columns p {
    font-size: var(--step-small);
    line-height: 1.5;
    color: var(--muted);
}

.intro__columns strong {
    color: var(--ink);
}

/* Funciones */
.features {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    padding: var(--section) var(--margin) 0;
    overflow: hidden;
}

.features__photo {
    grid-column: 1 / 6;
    align-self: center;
    max-width: 450px;
}

.features__photo img {
    width: 100%;
    height: min(60svh, 520px);
    object-fit: cover;
}

.features__body {
    grid-column: 7 / 13;
    align-self: center;
}

.features__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px var(--gutter);
    margin-top: 48px;
}

.features__list h3 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: var(--step-body);
    font-weight: 500;
}

.features__list p {
    margin-top: 6px;
    font-size: var(--step-small);
    color: var(--muted);
}

.list-mark {
    flex: none;
    width: 0.55em;
    height: 0.55em;
    background: var(--ink);
}

/* Facturación: la lista de comprobantes fija a la izquierda y un renglón por punto */
.invoicing {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    padding: var(--section) var(--margin) 0;
}

.invoicing__aside {
    grid-column: 1 / 6;
    align-self: start;
    position: sticky;
    top: 96px;
}

.invoicing__lead {
    margin-top: 20px;
    max-width: 30ch;
    font-size: var(--step-lead);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.invoicing__ui {
    margin-top: 40px;
    max-width: 460px;
}

.invoicing__list {
    grid-column: 7 / 13;
    display: grid;
    gap: clamp(40px, 5vw, 72px);
}

.invoicing__list p {
    margin-top: 12px;
    max-width: 46ch;
    color: var(--muted);
}

.ui__table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.ui__table caption {
    caption-side: bottom;
    text-align: left;
}

.ui__table th {
    padding: 0 6px 8px 0;
    color: #6b625a;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.ui__table td {
    padding: 8px 6px 8px 0;
    border-top: 1px solid #ebe7e1; /* taste-skill-ignore: dentro del fragmento data-ui */
    white-space: nowrap;
}

.ui__status--off {
    background: #eeeae5;
    color: #6b625a;
}

/* Historia fija: el teléfono se queda mientras las frases pasan */
.story {
    padding: var(--section) var(--margin) 0;
}

.story__stage {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    background: var(--surface);
    padding: clamp(32px, 5vw, 80px) clamp(16px, 4vw, 64px);
}

.story__frame {
    grid-column: 2 / 6;
}

.ui--phone {
    position: sticky;
    top: 120px;
    max-width: 340px;
    min-height: 360px;
}

.story__steps {
    grid-column: 7 / 12;
}

.story__step {
    min-height: 46svh;
    padding-top: 40px;
}

.story__step:first-of-type {
    min-height: 32svh;
}

.story__step h3 {
    margin-bottom: 12px;
}

.story__step p {
    max-width: 38ch;
}

.js .story__step {
    color: var(--muted);
    transition: color 300ms ease;
}

.js .story__step.is-current {
    color: var(--ink);
}

.js .story__state {
    display: none;
}

.js [data-step='1'] [data-state='1'],
.js [data-step='2'] [data-state='2'],
.js [data-step='3'] [data-state='3'] {
    display: block;
    animation: state-in 280ms var(--ease-out);
}

html:not(.js) .story__state + .story__state {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #ebe7e1; /* taste-skill-ignore: dentro del fragmento data-ui */
}

@keyframes state-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

/* Así empezamos: fotos en diagonal */
.steps {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    padding: var(--section) var(--margin) 0;
}

.steps__title {
    grid-column: 1 / 13;
    grid-row: 1;
    margin-bottom: 48px;
}

.steps__stage {
    display: grid;
    gap: var(--gutter);
    align-items: start;
}

.steps__stage img {
    width: 100%;
    object-fit: cover;
}

.steps__stage p {
    max-width: 36ch;
    color: var(--muted);
}

.steps__stage strong {
    color: var(--ink);
}

.steps__stage--one {
    grid-column: 1 / 8;
    grid-row: 2;
    grid-template-columns: 3fr 2fr;
}

.steps__stage--one img {
    aspect-ratio: 16 / 9;
}

.steps__stage--two {
    grid-column: 6 / 13;
    grid-row: 3;
    margin-top: 160px;
    grid-template-columns: 3fr 4fr;
}

.steps__stage--two img {
    aspect-ratio: 9 / 7;
}

.steps__stage--three {
    grid-column: 2 / 13;
    grid-row: 4;
    margin-top: 140px;
    grid-template-columns: 5fr 4fr;
}

.steps__stage--three img {
    aspect-ratio: 9 / 7;
    order: 2;
}

.steps__stage--three p {
    order: 1;
    justify-self: end;
}

/* El corte: total y recibo sobre fondo espresso */
.cut {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    margin-top: var(--section);
    padding: clamp(64px, 8vw, 128px) var(--margin);
    background: var(--ink);
    color: var(--bg);
}

.cut__left {
    grid-column: 1 / 7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 64px;
}

.cut__note {
    margin-top: 20px;
    max-width: 40ch;
    color: #cfc8c0;
}

.cut__total {
    display: grid;
    gap: 16px;
}

.cut__total .step-display {
    color: var(--sun);
}

.cut__caption {
    color: #cfc8c0;
}

.cut__slip {
    grid-column: 8 / 12;
    align-self: start;
    background: var(--paper);
    color: var(--ink);
    padding: 28px;
    font-size: var(--step-small);
    font-variant-numeric: tabular-nums;
}

.cut__group {
    margin-top: 18px;
    font-weight: 500;
}

.cut__group:first-child {
    margin-top: 0;
}

.cut__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
}

.cut__dots {
    flex: 1;
    border-bottom: 4px dotted var(--surface-2);
}

.cut__row--total {
    justify-content: space-between;
    margin: 18px -12px 0;
    padding: 12px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 500;
}

/* Carta */
.letter {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--section) var(--margin) 0;
    box-sizing: content-box;
}

.letter__portrait {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--paper);
    object-fit: contain;
    padding: 4px;
}

.letter h2 {
    margin: 24px 0 20px;
}

.letter p {
    line-height: 1.6;
}

.letter p + p {
    margin-top: 1.1em;
}

.letter mark {
    background: var(--sun-soft);
    color: var(--ink);
    padding: 0 0.15em;
}

.letter__sign {
    font-size: var(--step-lead);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.letter__sign span {
    display: block;
    font-size: var(--step-small);
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0;
}

/* Preguntas */
.faq {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    padding: var(--section) var(--margin) 0;
}

.faq__title {
    grid-column: 1 / 5;
    align-self: start;
    position: sticky;
    top: 96px;
}

.faq__list {
    grid-column: 5 / 13;
    display: grid;
    gap: 8px;
}

.faq__item {
    background: var(--surface);
    transition: background-color 200ms ease;
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 16px 24px;
    font-size: var(--step-body);
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item p {
    max-width: 56ch;
    padding: 0 24px 24px;
}

.faq__item[open] {
    background: var(--ink);
    color: var(--bg);
}

.faq__plus {
    position: relative;
    flex: none;
    width: 16px;
    height: 16px;
}

.faq__plus::before,
.faq__plus::after {
    content: '';
    position: absolute;
    left: 0;
    top: 6.5px;
    width: 16px;
    height: 3px;
    background: currentColor;
    transition: transform 200ms var(--ease-out);
}

.faq__plus::after {
    transform: rotate(90deg);
}

.faq__item[open] .faq__plus::after {
    transform: rotate(0deg);
}

@media (hover: hover) and (pointer: fine) {
    .faq__item:not([open]) summary:hover {
        background: var(--surface-2);
    }
}

/* Invitación final */
.cta {
    display: grid;
    grid-template-columns: 2fr 8fr 2fr;
    gap: 12px;
    margin-top: var(--section);
}

.cta__tile,
.cta__flank {
    min-height: 380px;
}

.cta__flank--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta__flank--sun {
    background: var(--sun);
}

.cta__tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: clamp(28px, 4vw, 56px);
    background: var(--accent);
    color: var(--accent-ink);
}

.cta__tile p {
    max-width: 40ch;
}

/* Contacto */
.contact {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: start;
    padding: var(--section) var(--margin) clamp(80px, 9vw, 128px);
}

.contact__sentence {
    grid-column: 1 / 6;
}

.contact__sentence p {
    margin-top: 16px;
    font-size: var(--step-lead);
    line-height: 1.25;
    letter-spacing: -0.02em;
    max-width: 26ch;
}

.contact__photo {
    grid-column: 7 / 9;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.contact__links {
    grid-column: 9 / 13;
    display: grid;
    gap: 10px;
    justify-items: start;
}

.contact__question {
    font-weight: 500;
    margin-bottom: 6px;
}

.contact__links a {
    font-weight: 500;
    overflow-wrap: anywhere;
}

.contact__place {
    margin-top: 10px;
    font-size: var(--step-small);
    color: var(--muted);
}

/* Pie en mosaicos */
.site-footer {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    padding: 0 var(--margin) var(--margin);
}

.footer-tile {
    background: var(--surface);
    padding: 24px;
    min-height: 220px;
}

.footer-tile--statement {
    grid-column: 1 / 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.footer-statement {
    font-size: var(--step-lead);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.footer-legal {
    font-size: var(--step-small);
    color: var(--muted);
}

.footer-tile--nav {
    grid-column: 5 / 8;
    display: flex;
    gap: 32px;
}

.footer-tile--nav ul {
    display: grid;
    gap: 8px;
    align-content: start;
}

.footer-tile--nav a {
    text-decoration: none;
    font-weight: 500;
}

.footer-tile--time {
    grid-column: 8 / 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: var(--step-small);
    color: var(--muted);
}

.footer-clock {
    color: var(--ink);
    font-size: var(--step-lead);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.footer-tile--email {
    grid-column: 10 / 13;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: var(--step-small);
    color: var(--muted);
}

.footer-email {
    color: var(--ink);
    font-size: var(--step-body);
    font-weight: 500;
}

.footer-tile--wordmark {
    grid-column: 1 / 9;
    display: grid;
    place-items: center;
    min-height: 240px;
    background: var(--ink);
    color: var(--bg);
    font-size: var(--step-display);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.8;
    overflow: hidden;
}

.footer-tile--cta {
    grid-column: 9 / 13;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: var(--step-lead);
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.footer-tile--cta svg {
    align-self: flex-end;
    transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .footer-tile--cta:hover svg {
        transform: translate(4px, -4px);
    }

    .site-footer .footer-tile--cta:hover {
        color: var(--accent-ink);
        background: var(--accent-hover);
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 25;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1f7a4d;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(29, 24, 19, 0.28); /* taste-skill-ignore: botón flotante sobre la página */
    transition: transform 160ms var(--ease-out);
}

.whatsapp-float:active {
    transform: scale(0.94);
}

/* Aviso de privacidad */
.legal {
    max-width: 72ch;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 96px) var(--margin) var(--section);
    box-sizing: content-box;
}

.legal h1 {
    margin-bottom: 16px;
}

.legal__updated {
    color: var(--muted);
    font-size: var(--step-small);
}

.legal h2 {
    margin: 48px 0 12px;
}

.legal p,
.legal li {
    line-height: 1.6;
}

.legal p + p,
.legal ul + p,
.legal p + ul {
    margin-top: 1em;
}

.legal ul {
    list-style: disc;
    padding-left: 1.2em;
}

.legal li + li {
    margin-top: 0.4em;
}

/* Entradas: visibles sin JavaScript y con movimiento reducido; si no, suben al entrar en pantalla */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] > * {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
        transition-delay: calc(var(--i, 0) * 70ms);
    }

    .js [data-reveal].is-in > * {
        opacity: 1;
        transform: none;
    }
}

/* Tableta */
@media (max-width: 1080px) {
    .day__drawing,
    .day__panels,
    .day__moments {
        grid-column: 1 / 13;
        grid-row: auto;
    }

    .day__panels {
        margin-top: 20px;
        max-width: 420px;
    }

    .intro__columns {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }

    .features__list {
        grid-template-columns: 1fr;
    }

    .invoicing__aside {
        grid-column: 1 / 13;
        position: static;
    }

    .invoicing__list {
        grid-column: 1 / 13;
        margin-top: 56px;
    }

    .story__frame {
        grid-column: 1 / 6;
    }

    .story__steps {
        grid-column: 7 / 13;
    }

    .cut__slip {
        grid-column: 7 / 13;
    }

    .footer-tile--statement {
        grid-column: 1 / 7;
    }

    .footer-tile--nav {
        grid-column: 7 / 13;
    }

    .footer-tile--time {
        grid-column: 1 / 7;
    }

    .footer-tile--email {
        grid-column: 7 / 13;
    }
}

/* Teléfono: una composición propia */
@media (max-width: 720px) {
    .site-nav__links {
        display: none;
    }

    .hero__copy h1,
    .hero__lead,
    .hero__actions {
        grid-column: 1 / 13;
        grid-row: auto;
    }

    .day__control {
        grid-template-columns: 1fr auto;
    }

    /* A este ancho los rótulos del dibujo no se pueden leer */
    .sd-labels,
    .sd-hours {
        display: none;
    }

    .day__label {
        grid-column: 1 / 3;
    }

    .day__moments {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .day__moment {
        width: 100%;
        text-align: left;
    }

    .intro__lead {
        grid-column: 1 / 13;
    }

    .intro__columns {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 40px;
    }

    .features__photo,
    .features__body {
        grid-column: 1 / 13;
    }

    .features__photo {
        width: 82vw;
    }

    .features__photo img {
        height: min(60svh, 520px);
    }

    .features__body {
        margin-top: 40px;
    }

    .story__stage {
        padding: 32px 16px;
    }

    .story__frame,
    .story__steps {
        grid-column: 1 / 13;
    }

    .story__frame {
        position: sticky;
        top: 72px;
        z-index: 2;
        order: 2;
    }

    .story__steps {
        order: 1;
    }

    .ui--phone {
        position: static;
        min-height: 0;
        margin: 0 auto;
    }

    .story__step,
    .story__step:first-of-type {
        min-height: 0;
        padding: 24px 0 40px;
    }

    .js .story__step {
        opacity: 1;
    }

    .steps__title,
    .steps__stage--one,
    .steps__stage--two,
    .steps__stage--three {
        grid-column: 1 / 13;
        grid-row: auto;
        grid-template-columns: 1fr;
        margin-top: 56px;
    }

    .steps__title {
        margin-top: 0;
    }

    .steps__stage--two img {
        width: 62%;
        justify-self: end;
    }

    .steps__stage--three img {
        order: 0;
        width: 78%;
    }

    .steps__stage--three p {
        order: 1;
        justify-self: start;
    }

    .cut__left,
    .cut__slip {
        grid-column: 1 / 13;
    }

    .cut__slip {
        margin-top: 48px;
    }

    .faq__title,
    .faq__list {
        grid-column: 1 / 13;
        position: static;
    }

    .faq__list {
        margin-top: 32px;
    }

    .faq__item summary {
        min-height: 64px;
        padding: 16px 20px;
    }

    .faq__item p {
        padding: 0 20px 20px;
    }

    .cta {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .cta__tile {
        grid-column: 1 / 3;
        grid-row: 1;
        min-height: 300px;
    }

    .cta__flank {
        min-height: 120px;
    }

    .contact__sentence {
        grid-column: 1 / 13;
    }

    .contact__photo {
        grid-column: 1 / 5;
        margin-top: 32px;
    }

    .contact__links {
        grid-column: 5 / 13;
        margin-top: 32px;
        padding-left: 8px;
    }

    .site-footer {
        gap: 6px;
        padding: 0 6px 6px;
    }

    .footer-tile {
        padding: 20px;
        min-height: 0;
    }

    .footer-tile--wordmark {
        grid-column: 1 / 13;
        grid-row: 1;
        min-height: 160px;
        font-size: min(22vw, 6rem);
    }

    .footer-tile--cta {
        grid-column: 1 / 13;
        grid-row: 2;
        min-height: 160px;
    }

    .footer-tile--nav,
    .footer-tile--email {
        grid-column: span 6;
    }

    .footer-tile--nav {
        flex-direction: column;
        gap: 20px;
    }

    .footer-tile--time,
    .footer-tile--statement {
        grid-column: 1 / 13;
    }

    .whatsapp-float {
        right: 10px;
        bottom: 10px;
        width: 48px;
        height: 48px;
    }

    /* Espacio al final para que el botón flotante no tape el último mosaico */
    .site-footer {
        padding-bottom: 68px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .day__panels .ui:not(.is-active) {
        display: none;
    }

    .js .day__panels .ui {
        transform: none;
        filter: none;
        transition: opacity 200ms ease;
    }

    .js [data-step] [data-state] {
        animation: none;
    }
}
