/* Bricolage Grotesque, self-hosted: one variable file (weight 200 to 800 and optical size), latin only
   (Spanish and English, with ñ, tildes, ¿ and ¡). License: public/fonts/OFL.txt. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Base styles: reset, type scale (docs/marca-y-sitio.md, section 2), layout and buttons. */
*, *::before, *::after { box-sizing: border-box; }
/* The sticky header: its bar (4rem) and its border. Anchors stop right under it. */
:root { --header-height: calc(4rem + 1px); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font: 400 17px/1.6 var(--font-marca);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--arcilla-texto); }
h1, h2, h3, p { margin: 0; }

.container { width: min(100% - 2 * var(--space-4), var(--ancho-pagina)); margin-inline: auto; }
/* An anchor stops with the section's title (not its empty padding) a little under the sticky header. */
.section { --section-padding: var(--space-16); padding-block: var(--section-padding); scroll-margin-top: calc(var(--space-8) - var(--section-padding)); }
@media (min-width: 900px) { .section { --section-padding: var(--space-24); } }
/* The legal pages: a plain column of text. */
.legal { max-width: 70ch; }
.legal__date { margin-top: var(--space-2); color: var(--tinta-suave); }
.legal h2 { margin-top: var(--space-8); font-size: 22px; line-height: 1.2; font-weight: 700; }
.legal p, .legal ul { margin-top: var(--space-3); }
.legal ul { padding-left: 1.25em; }
.legal li + li { margin-top: var(--space-2); }

/* Cover: the text and the demo store in a browser and a phone frame. */
.hero { display: grid; gap: var(--space-16); align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hero__text .lead { margin-top: var(--space-6); }
.hero__text .lead + p { margin-top: var(--space-8); }
.hero__text .small { margin-top: var(--space-4); }
.mockup { position: relative; padding-bottom: var(--space-8); }
.mockup__browser { border: 1px solid var(--linea); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--sombra-mockup); background: var(--crema-alta); }
.mockup__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--linea); }
.mockup__bar span { width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--linea); }
.mockup__phone { position: absolute; right: -8px; bottom: 0; width: 26%; border: 5px solid var(--tinta); border-radius: 22px; overflow: hidden; box-shadow: var(--sombra-mockup); background: var(--tinta); }
.mockup__img { display: block; width: 100%; height: auto; }
.mockup__img--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mockup__img--light { display: none; }
  :root:not([data-theme="light"]) .mockup__img--dark { display: block; }
}
:root[data-theme="dark"] .mockup__img--light { display: none; }
:root[data-theme="dark"] .mockup__img--dark { display: block; }
/* The cover fills the screen under the header. */
#portada, #cover { min-height: calc(100vh - var(--header-height)); min-height: calc(100svh - var(--header-height)); display: flex; align-items: center; }
.compare__title { margin-bottom: var(--space-4); }
.compare + .compare__title { margin-top: var(--space-16); }
.contact { scroll-margin-top: var(--space-8); margin-top: var(--space-16); display: grid; gap: var(--space-8); }
@media (min-width: 800px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); align-items: start; } }
.contact p { margin-top: var(--space-2); }
.contact__info .button { margin-top: var(--space-4); }
.contact__list { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.contact__list a, .contact__list span { display: inline-flex; align-items: center; gap: var(--space-2); }
.contact__list a { color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }

/* The contact form. */
.field { margin-bottom: var(--space-4); }
.field label { display: block; margin-bottom: var(--space-1); font-weight: 600; }
.field input, .field select { display: block; width: 100%; padding: var(--space-3) var(--space-4); font: inherit; color: var(--tinta); background: var(--crema-alta); border: 1px solid var(--tinta-suave); border-radius: var(--radius-md); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--arcilla-texto); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--arcilla-texto); border-width: 2px; }
.field__error { margin-top: var(--space-1); color: var(--arcilla-texto); font-weight: 600; font-size: 14px; }
.contact__form .small { margin-bottom: var(--space-4); color: var(--tinta-suave); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: var(--space-4) var(--space-6); border-radius: var(--radius-md); margin-bottom: var(--space-4); border-left: 6px solid var(--monte); background: var(--crema-alta); scroll-margin-top: calc(var(--header-height) + var(--space-8)); }
.form-status--error { border-left-color: var(--arcilla-texto); }
.form-status:target, .form-status.is-visible { display: block; }
.form-status:focus-visible { outline: 3px solid var(--arcilla-texto); outline-offset: 2px; }
.form-status__title { margin: 0; font-weight: 800; }
.form-status.is-visible ~ form, .form-status:target ~ form { display: none; }
.form-status--error.is-visible ~ form, .form-status--error:target ~ form { display: block; }
.form-status--ok.is-visible ~ .form-status--error, .form-status--ok:target ~ .form-status--error { display: none; }
.section--arena { background: var(--arena); }
.section--monte { background: var(--monte); color: var(--sobre-monte); border-top-left-radius: var(--radius-lg); }
/* The rounded corner of this band is part of its look: land with it in view, a gap under the header. */
.section--monte { scroll-margin-top: var(--space-16); }

.display { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
@media (min-width: 900px) { .display { font-size: 64px; } }
.h1 { font-size: 44px; line-height: 1.05; font-weight: 800; letter-spacing: -0.015em; }
.h2 { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 22px; line-height: 1.2; font-weight: 700; }
.lead { font-size: 20px; line-height: 1.5; }
.small { font-size: 14px; line-height: 1.45; }
.eyebrow { font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--arcilla-texto); }
.price { font-variant-numeric: tabular-nums; }

/* One primary button (arcilla) per screen; the secondary is an outline. */
.button {
  display: inline-block; padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm); font: 600 15px/1.3 var(--font-marca);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.button--primary { background: var(--arcilla); color: var(--sobre-arcilla); }
.button--primary:hover { background: var(--arcilla-hover); }
.button--secondary { border-color: var(--tinta); color: var(--tinta); }
.button--secondary:hover { background: var(--arena); }
.button:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--arcilla-texto); outline-offset: 2px; }

/* Section title and footnote. */
.section__title { margin-bottom: var(--space-8); }
.section__note { margin-top: var(--space-8); color: var(--tinta-suave); }
.section--monte .section__note { color: inherit; }

/* Benefit card: an outline icon in monte, a title and a short text, on a raised surface. */
.cards { display: grid; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--crema-alta); border: 1px solid var(--linea); border-radius: var(--radius-md); padding: var(--space-6); }
.card__icon { display: block; margin-bottom: var(--space-4); color: var(--monte); }
.card__icon .icon { width: 32px; height: 32px; }
.card .h3 { margin-bottom: var(--space-2); }
.card p { color: var(--tinta-suave); }

/* Step of Cómo funciona: a big number, a title and a text, on the monte band. */
.steps { display: grid; gap: var(--space-8) var(--space-6); list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; border-top: 2px solid color-mix(in srgb, currentColor 40%, transparent); padding-top: var(--space-4); }
.step::before { content: counter(step); display: block; margin-bottom: var(--space-2); font: 800 44px/1 var(--font-marca); letter-spacing: -0.015em; }
.step .h3 { margin-bottom: var(--space-2); }

/* Comparison table (¿Te suena?, Por qué Litoral): two columns on a raised surface; the second one, the answer, marked in monte.
   On phones every row becomes a block with the labels of its columns. */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--crema-alta); border: 1px solid var(--linea); border-radius: var(--radius-md); overflow: hidden; }
.compare thead { display: none; }
.compare tr { display: block; padding: var(--space-4) var(--space-4) var(--space-4); border-top: 1px solid var(--linea); }
.compare tbody tr:first-child { border-top: 0; }
.compare td { display: block; }
.compare td::before { content: attr(data-label); display: block; margin-bottom: var(--space-1); font: 600 13px/1.3 var(--font-marca); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinta-suave); }
.compare td:first-child { color: var(--tinta-suave); }
.compare td:last-child { margin-top: var(--space-3); padding-inline-start: var(--space-3); border-inline-start: 3px solid var(--monte); font-weight: 600; }
.compare td:last-child::before { color: var(--monte); }
@media (min-width: 720px) {
  .compare thead { display: table-header-group; }
  .compare th { padding: var(--space-4) var(--space-6); text-align: start; font: 600 13px/1.3 var(--font-marca); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinta-suave); background: var(--arena); }
  .compare th:last-child { color: var(--monte); }
  .compare tr { display: table-row; padding: 0; }
  .compare td { display: table-cell; width: 50%; padding: var(--space-4) var(--space-6); vertical-align: top; border-top: 1px solid var(--linea); }
  .compare tbody tr:first-child td { border-top: 0; }
  .compare td::before { display: none; }
  .compare td:last-child { margin-top: 0; padding-inline-start: var(--space-6); border-inline-start: 3px solid var(--monte); }
}
.section--arena .compare th { background: var(--crema); }

/* Frequently asked questions: native <details>, no JavaScript. */
.faq { max-width: 760px; border-bottom: 1px solid var(--linea); }
.faq__item { border-top: 1px solid var(--linea); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex-shrink: 0; width: 20px; height: 20px; background: var(--monte); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.15s; }
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__q { font: 600 18px/1.3 var(--font-marca); }
.faq__item p { padding-bottom: var(--space-4); color: var(--tinta-suave); max-width: 65ch; }
@media (prefers-reduced-motion: reduce) { .faq__item summary::after { transition: none; } }

/* Icons: line icons from img/icons.svg, drawn with the current color. */
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -4rem; z-index: 30; padding: var(--space-2) var(--space-4); background: var(--tinta); color: var(--crema); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--space-2); }

/* Header: logo, menu, language, look and the primary button. Below 900px the
   menu is a panel under the bar (<details>, works without JavaScript). */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--crema); border-bottom: 1px solid var(--linea); }
.site-header .container { display: flex; align-items: center; gap: var(--space-2); min-height: 4rem; }
.logo { display: flex; align-items: center; gap: var(--space-3); color: var(--tinta); text-decoration: none; }
.logo__icon { width: 36px; height: 36px; }
.logo__name { display: block; }
/* The logotype as curves: letters in the current color, the dot in arcilla. */
.logotipo { display: block; width: auto; height: 16px; stroke: none; }
.logo__tag { display: block; margin-top: 3px; font: 400 12px/1.2 var(--font-marca); letter-spacing: 0; color: var(--tinta-suave); }
/* The header sits on crema: the dark icon on the light theme, the light one when the theme turns dark (the opposite of the footer, which sits on tinta). */
.logo__icon--dark-theme { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo__icon--light-theme { display: none; }
  :root:not([data-theme="light"]) .logo__icon--dark-theme { display: block; }
}
:root[data-theme="dark"] .logo__icon--light-theme { display: none; }
:root[data-theme="dark"] .logo__icon--dark-theme { display: block; }
.site-nav { display: none; gap: var(--space-6); margin-inline: auto var(--space-4); }
.site-nav a { font: 600 15px/1.3 var(--font-marca); color: var(--tinta); text-decoration: none; }
.site-nav a { display: inline-flex; align-items: center; gap: var(--space-1); padding-block: 6px; }
.site-nav a:hover { color: var(--arcilla-texto); }
.header-tools { display: flex; align-items: center; gap: var(--space-1); margin-inline-start: auto; }
.header-cta { display: none; padding-block: var(--space-2); margin-inline-start: var(--space-2); }

.menu { position: relative; }
.menu > summary { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2); border-radius: var(--radius-sm); cursor: pointer; list-style: none; color: var(--tinta); font: 600 15px/1.3 var(--font-marca); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--arena); }
.menu__panel { position: absolute; right: 0; top: 100%; margin-top: var(--space-2); width: 14rem; padding: var(--space-2); background: var(--crema-alta); border: 1px solid var(--linea); border-radius: var(--radius-md); }
.menu__panel a:not(.button), .menu__panel [aria-current] { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--tinta); font: 600 15px/1.3 var(--font-marca); text-decoration: none; }
.menu__panel a:not(.button):hover { background: var(--arena); }
.menu__list { list-style: none; margin: 0; }
.menu__label { padding: var(--space-1) var(--space-3) var(--space-2); font: 600 13px/1.3 var(--font-marca); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinta-suave); }
.theme-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-1); }
.theme-choices button { display: flex; justify-content: center; padding: var(--space-2); border: 0; border-radius: var(--radius-sm); background: none; color: var(--tinta-suave); cursor: pointer; }
.theme-choices button:hover { background: var(--arena); }
.theme-choices button[aria-pressed="true"] { background: var(--arena); color: var(--arcilla-texto); }

/* The menu of a phone or tablet: a panel across the width, under the bar. */
.menu--nav .menu__panel { position: fixed; left: 0; right: 0; top: var(--header-height); width: auto; margin: 0; max-height: calc(100vh - var(--header-height)); overflow-y: auto; padding: var(--space-4); border-width: 1px 0; border-radius: 0; }
/* On phones the language and look panels fit the screen (at 320 px the language one went 8 px off its left edge). */
@media (max-width: 479px) {
  .menu:not(.menu--nav) .menu__panel { position: fixed; left: var(--space-4); right: var(--space-4); top: var(--header-height); width: auto; margin: var(--space-2) 0 0; }
}
.menu--nav .menu__panel a:not(.button) { padding: var(--space-3) var(--space-2); }
.menu--nav .menu__panel .button { justify-content: center; margin-top: var(--space-3); }

@media (min-width: 540px) { .header-cta { display: inline-block; } .menu--nav .menu__panel .button { display: none; } }
@media (min-width: 900px) {
  .site-nav { display: flex; align-items: center; }
  .menu--nav { display: none; }
  .header-tools { margin-inline-start: 0; }
}

/* Floating WhatsApp button, on every screen. */
.whatsapp-button { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 20; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--exito); color: var(--sobre-arcilla); transition: transform 0.15s; }
.whatsapp-button .icon { width: 28px; height: 28px; }
.whatsapp-button:hover { transform: scale(1.05); }
@media (min-width: 600px) { .whatsapp-button { right: var(--space-6); bottom: var(--space-6); } }

/* Footer: tinta band, as in the brand manual. In dark mode tinta is the light
   color, so the dark icon replaces the light one. */
.site-footer { background: var(--tinta); color: var(--crema); }
.site-footer a { color: var(--crema); }
.site-footer a:hover { text-decoration: none; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-6); padding-block: var(--space-8); }
.footer-brand { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.footer-brand__logo { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.footer-brand__logo img { width: 40px; height: 40px; }
.footer-brand__name { display: block; }
.footer-brand__name .logotipo { height: 18px; }
.footer-brand__tag { display: block; font: 400 14px/1.3 var(--font-marca); letter-spacing: 0; opacity: 0.8; }
.footer-social { display: flex; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-full); border: 1px solid currentColor; }
.footer-social a:hover { background: var(--crema); color: var(--tinta); }
.footer-col h2 { font: 600 13px/1.3 var(--font-marca); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; margin: 0 0 var(--space-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-col a { display: inline-flex; align-items: flex-start; gap: var(--space-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; }
.footer-col a:hover { text-decoration-color: currentColor; }
.footer-col .icon { margin-top: 2px; }
.footer-place { display: inline-flex; gap: var(--space-2); }
.footer-col--wide { grid-column: 1 / -1; }
.footer-bottom-wrap { border-top: 1px solid color-mix(in srgb, var(--crema) 25%, transparent); }
.footer-bottom { padding-block: var(--space-4) var(--space-16); display: flex; flex-direction: column; gap: var(--space-4); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-aside { display: flex; align-items: center; gap: var(--space-4); }
.footer-aside a:first-child { padding-block: 4px; }
.footer-aside a:last-child { flex-shrink: 0; }
.footer-aside img { height: 56px; width: auto; border-radius: var(--radius-sm); }
@media (min-width: 720px) {
  .footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-8) var(--space-16); }
  .footer-brand { display: block; flex-basis: 100%; }
  .footer-social { margin-top: var(--space-4); }
  .footer-col--wide { grid-column: auto; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; padding-bottom: var(--space-4); }
}
@media (min-width: 900px) { .footer-brand { flex-basis: auto; } }

/* The logo on the footer follows the theme: the light icon on the light
   theme's tinta, the dark one when tinta turns light. */
.footer-brand__icon--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-brand__icon--light { display: none; }
  :root:not([data-theme="light"]) .footer-brand__icon--dark { display: block; }
}
:root[data-theme="dark"] .footer-brand__icon--light { display: none; }
:root[data-theme="dark"] .footer-brand__icon--dark { display: block; }

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