/* AMVL website styles: the list of building blocks, in the order they are joined.
   tools/build.mjs replaces each @import line with that file's contents and publishes one /css/site.css.
   Every file in src/css/ must be listed here (the build stops otherwise). */

/* ===== tokens.css ===== */
/* ==========================================================================
   Tokens: fonts and colours. Change the brand here.
   ========================================================================== */

/* IBM Plex, self-hosted (no Google requests) */
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Condensed"; src: url("/fonts/IBMPlexSansCondensed-Medium-Latin1.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Condensed"; src: url("/fonts/IBMPlexSansCondensed-SemiBold-Latin1.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Condensed"; src: url("/fonts/IBMPlexSansCondensed-Bold-Latin1.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-SemiBold-Latin1.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Graphite palette, flat and square (names kept from the first blue version) */
  --navy: #1f2125;
  --blue: #2e3238;
  --blue-deep: #16181b;
  --sky: #eeeff1;
  --sky-light: #f7f7f8;
  --steel: #555a62;
  --hairline: #cfd2d6;
  --hairline-soft: #e6e8ea;
  --white: #ffffff;
  --ink: #1b1d21;
  --ink-muted: #3d4148;
  --desk: #9da2a9;          /* outer background */
  --frame-line: #1f2125;
  --shadow: rgba(0, 0, 0, .30);
  --on-dark-muted: #b7bcc3; /* tagline on the masthead */
  --mark: #c0262d;          /* red accent (same as the stripe's last band) */
  --band-1: #e3e5e8;        /* stripe, light to dark */
  --band-2: #b9bdc3;
  --band-3: #7b8189;
  --band-4: #c0262d;

  --serif: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;  /* headings */
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", Menlo, Consolas, monospace;
}
/* ===== base.css ===== */
/* ==========================================================================
   Base: page basics shared by everything: body text, links, focus outline,
   the page heading (h1), section headings (h2), paragraphs, section spacing.
   Breakpoints: phone/tablet ≤ 1111px · laptop ≥ 1112px · PC ≥ 1312px.
   Rules stay in cascade order: when two rules set the same thing, the later one wins.
   ========================================================================== */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk); /* outer desk: clearly darker than the page */
  color: var(--ink);
  font: 15px/1.6 var(--sans);
}
a { color: var(--blue); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

section + section { margin-top: 44px; }

h1 {
  margin: 0 0 12px;
  font: 400 34px/1.15 var(--serif);
  color: var(--navy);
  letter-spacing: -.2px;
}

h2 {
  margin: 0 0 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--navy);
  font: 600 12px var(--sans);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy);
}

/* Phone/tablet */
@media (max-width: 1111px) {
  body { font-size: 16px; }
  section + section { margin-top: 36px; }
  h1 { font-size: 27px; }
}
/* Tablet (≥ 780px) */
@media (min-width: 780px) and (max-width: 1111px) {
  h1 { font-size: 31px; }
}

p { margin: 0 0 12px; }

/* Laptop and PC */
@media (min-width: 1112px) {
  body { font-size: 15px; line-height: 1.65; }
  section + section { margin-top: 38px; }
  h1 { font-size: 29px; }
  h2 { font-size: 12px; }
}
/* PC */
@media (min-width: 1312px) {
  section + section { margin-top: 44px; }
}
/* Phone/tablet: forced line breaks in headings only apply on wide screens */
@media (max-width: 1111px) {
  h1 br { display: none; }
}

/* Headings in IBM Plex Sans Condensed need more weight than the old serif */
h1 { font-weight: 600; letter-spacing: -.1px; }
h2 { font-family: var(--serif); font-weight: 600; letter-spacing: 1.6px; }
/* ===== shell.css ===== */
/* ==========================================================================
   Shell: the frame around everything, the two-column layout and the content area.
   Phone/tablet ≤ 1111px: full width, page scrolls normally.
   Laptop 1112–1311px: 1080px framed page. PC ≥ 1312px: 1280px framed page.
   On laptop/PC the frame fits the window height and only <main> scrolls.
   Rules stay in cascade order: when two rules set the same thing, the later one wins.
   ========================================================================== */

.frame {
  width: calc(100% - 48px); max-width: 1080px;   /* laptop: up to 1080px */
  margin: 24px auto 40px;  /* top margin = side margin at the breakpoint */
  background: var(--white);
  /* One strong line and a hard shadow */
  border: 1px solid var(--frame-line);
  box-shadow: 8px 8px 0 var(--shadow);
}

.layout { display: flex; }

main { flex: 1; min-width: 0; padding: 32px 36px 40px; }

/* Phone/tablet */
@media (max-width: 1111px) {
  .frame { margin: 0; border: 0; width: auto; max-width: none; box-shadow: none; }
  .layout { display: block; }
  main { padding: 24px 16px 32px; }
}
/* Wider phones and tablets (≥ 560px) */
@media (min-width: 560px) and (max-width: 1111px) {
  main { padding: 28px 28px 36px; }
}
/* Tablet (≥ 780px) */
@media (min-width: 780px) and (max-width: 1111px) {
  main { padding: 32px 40px 40px; }
}

/* Laptop and PC: the framed page fits the window height; only the content area scrolls */
@media (min-width: 1112px) {
  main { padding: 28px 32px 36px; }
  html, body { height: 100%; }
  html, body { overflow: hidden; }
  body { display: flow-root; }  /* stop the frame's top margin collapsing out of body, which made the window scroll 16px */
  .frame { width: calc(100% - 32px); height: calc(100vh - 40px); margin: 16px auto 24px; display: flex; flex-direction: column; }  /* 24 = 16 + 8px shadow, so the visible gap matches the top */
  .layout { flex: 1; min-height: 0; }
  main { overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
}

/* PC (≥ 1312px): 16 + 1280 + 16 */
@media (min-width: 1312px) {
  .frame { max-width: 1280px; }
  main { padding: 32px 64px 42px; }  /* text column ≈ 885px */
}

/* Tablet: the text column stops growing at the PC width (≈883px with a 17px scrollbar); extra width becomes white side space */
@media (min-width: 780px) and (max-width: 1111px) {
  main { padding-left: max(40px, calc((100vw - 900px) / 2)); padding-right: max(40px, calc((100vw - 900px) / 2)); }
}

/* Phone/tablet: the page always reaches the bottom of the window (no grey band under the footer when zoomed out) */
@media (max-width: 1111px) {
  .frame { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
  .layout { flex: 1 0 auto; }
}
/* ===== header.css ===== */
/* ==========================================================================
   Header: dark masthead (logo + name, linked to Inicio), four-band stripe,
   and the light grey bar with the tagline and, on laptop/PC, the A A A button.
   Rules stay in cascade order: when two rules set the same thing, the later one wins.
   ========================================================================== */

.header { position: relative; overflow: hidden; }
.masthead {
  background: var(--navy);
  color: var(--white);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center;
  background: var(--band-2);   /* palette grey #b9bdc3 */
  color: var(--navy);
  font: 800 14px var(--sans);
  letter-spacing: 1.5px;
}
.brand { position: relative; z-index: 1; font: 400 22px/1.15 var(--sans); color: var(--white); letter-spacing: -.2px; }
.brand strong { font-weight: 800; letter-spacing: .5px; }
.brand small {
  display: block;
  margin-top: 3px;
  font: 400 13px var(--sans);
  letter-spacing: .2px;
  color: var(--on-dark-muted);
}

/* Four-band stripe under the masthead */
.stripe {
  height: 13px;
  border-bottom: 1px solid var(--navy);
  background:
    linear-gradient(var(--band-1) 0 25%, var(--band-2) 25% 50%, var(--band-3) 50% 75%, var(--band-4) 75% 100%);
}

/* Grey bar ("utility bar") */
.utility {
  background: var(--sky);
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-muted);
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
}

/* Phone/tablet */
@media (max-width: 1111px) {
  .masthead { padding: 14px 16px; }
  .brand { font-size: 19px; }
  .utility { padding: 6px 16px; }
}
/* Wider phones and tablets (≥ 560px) */
@media (min-width: 560px) and (max-width: 1111px) {
  .masthead, .utility { padding-left: 28px; padding-right: 28px; }
}
/* Tablet (≥ 780px) */
@media (min-width: 780px) and (max-width: 1111px) {
  .masthead, .utility { padding-left: 40px; padding-right: 40px; }
}

/* Laptop and PC */
@media (min-width: 1112px) {
  .brand { font-size: 20px; }
  .masthead { padding: 12px 24px; gap: 14px; }
  .stripe { height: 10px; }
  .brand small { font-size: 12px; }
  .logo { width: 40px; height: 40px; font-size: 11px; }
  .utility { font-size: 12.5px; }
  .header, .utility { flex: none; }  /* keep their height inside the window-height frame */
}

/* PC */
@media (min-width: 1312px) {
  .masthead { padding: 14px 28px; }
  .brand { font-size: 22px; }
  .brand small { font-size: 13.5px; }
  .logo { width: 46px; height: 46px; font-size: 12.5px; }
  .utility { font-size: 13px; padding-left: 28px; padding-right: 28px; }
}

.utility { align-items: center; }
/* Laptop/PC: the grey bar is 5px above and below the framed A A A button */
@media (min-width: 1112px) {
  .utility { padding-top: 5px; padding-bottom: 5px; }
}

/* Phone/tablet: fixed line heights so the header doesn't shift with fonts */
@media (max-width: 1111px) {
  .brand { line-height: 24px; }
  .brand small { line-height: 18px; }
  .utility { line-height: 20px; }
}

/* Logo and name link to Inicio */
.masthead a.home { display: flex; align-items: center; gap: inherit; color: inherit; text-decoration: none; }
.masthead a.home:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

/* Phone/tablet */
@media (max-width: 1111px) {
  .brand { font-size: 17px; }
  .brand small { font-size: 12px; }
  .logo { width: 46px; height: 46px; font-size: 12px; }
}

/* Name and logo in IBM Plex Sans Condensed */
.brand { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
.brand strong { font-weight: 700; letter-spacing: .5px; }
.logo { font-family: var(--serif); font-weight: 700; }
/* ===== buttons.css ===== */
/* ==========================================================================
   Buttons: flat, square, precise.
   <a class="btn btn-primary"> dark · btn-secondary white · btn-wa WhatsApp green
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  font: 600 14px var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: var(--white); background: var(--blue); border-color: var(--blue-deep); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-secondary { color: var(--navy); background: var(--white); border-color: var(--hairline); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-wa { color: var(--white); background: #128049; border-color: #0d6638; }
.btn-wa:hover { background: #0d6638; }
.btn svg, .btn img { width: 18px; height: 18px; flex: none; }

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

/* Laptop and PC */
@media (min-width: 1112px) {
  .btn { min-height: 36px; font-size: 13px; padding: 0 16px; }
}
/* PC */
@media (min-width: 1312px) {
  .btn { min-height: 42px; font-size: 15px; padding: 0 20px; }
}
/* ===== sidebar.css ===== */
/* ==========================================================================
   Sidebar: the menu (<details id="menu">), the booking/WhatsApp buttons and
   the "Trabajamos con" box.
   Laptop/PC: a fixed left column; the box goes compact, then hidden, when height runs short (site.js).
   Phone/tablet: a sticky dark "MENÚ" ribbon; the open menu floats over the page.
   Rules stay in cascade order: when two rules set the same thing, the later one wins.
   ========================================================================== */

.sidebar {
  width: 195px;
  flex: none;
  background: var(--sky-light);
  border-right: 1px solid var(--hairline);
  padding: 20px 0 24px;
}
.sidebar-inner { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.sidebar summary {
  list-style: none;
  cursor: pointer;
  margin: 0 12px 8px;
  padding: 7px 10px;
  background: var(--navy);
  color: var(--white);
  font: 600 11px var(--sans);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}
.sidebar summary::-webkit-details-marker { display: none; }
@media (min-width: 1112px) {
  .sidebar summary { cursor: default; pointer-events: none; }
}
@media (max-width: 1111px) {
  .sidebar summary::after { content: "–"; }
  .sidebar details:not([open]) summary::after { content: "+"; }
}
.sidebar nav a {
  display: block;
  margin: 0 12px;
  padding: 6px 10px;
  border-left: 3px solid transparent;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.sidebar nav a:hover { background: var(--white); border-left-color: var(--hairline); }
.sidebar nav a.active { background: var(--white); border-left-color: var(--blue); color: var(--ink); }
.sidebar .box {
  margin: 22px 12px 0;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.7;
}
.sidebar .box b {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel);
}

/* Phone/tablet: the sidebar becomes the sticky MENÚ ribbon */
@media (max-width: 1111px) {
  .sidebar {
    width: auto; border-right: 0; border-bottom: 1px solid var(--hairline); padding: 8px 0;
    position: sticky; top: 0; z-index: 20;
  }
  .sidebar-inner { position: static; }
  .sidebar summary { margin-bottom: 0; }
  .sidebar details[open] nav { padding-top: 6px; max-height: 70vh; overflow: auto; }
  .sidebar .box { display: none; }
}

/* Laptop and PC */
@media (min-width: 1112px) {
  .sidebar nav a { font-size: 14px; line-height: 1.5; padding: 4px 10px; }
  .sidebar .box { font-size: 12.5px; }
  .sidebar .box b, .sidebar summary { font-size: 11.5px; }
  .sidebar { overflow-y: auto; }
  .sidebar-inner { position: static; max-height: none; overflow: visible; }
}

/* PC */
@media (min-width: 1312px) {
  .sidebar { width: 250px; padding: 22px 0 26px; }
  .sidebar summary { margin: 0 14px 8px; padding: 8px 12px; }
  .sidebar nav a { font-size: 16px; line-height: 1.5; padding: 4px 12px; margin: 0 14px; }
  .sidebar .box { font-size: 14px; margin-left: 14px; margin-right: 14px; padding: 12px 14px; }
  .sidebar .box b, .sidebar summary { font-size: 12px; }
}

/* Phone/tablet: MENÚ ribbon leaves room for the A A A button; the open menu floats over the page */
@media (max-width: 1111px) {
  .sidebar-inner { position: relative; top: 0; overflow: visible; max-height: none; }  /* relative, not offset: the base sticky rule had top: 16px */
  .sidebar summary { margin-left: 12px; margin-right: 70px; }
  /* Open menu floats over the page instead of pushing it down */
  .sidebar details[open] nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 9px);
    background: var(--sky-light); border-bottom: 1px solid var(--hairline);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
    padding: 6px 0 10px; max-height: 70vh; overflow: auto;
  }
}

/* Booking and WhatsApp buttons under the menu (laptop/PC only) */
.sidebar .box + .box { margin-top: 10px; }
.side-cta { display: flex; flex-direction: column; gap: 8px; margin: 18px 12px 0; }
.side-cta .btn { justify-content: center; width: 100%; }
.side-cta .btn { white-space: nowrap; }
@media (min-width: 1112px) and (max-width: 1311px) { .sidebar { width: 215px; } }
.side-cta + .box { margin-top: 18px; }
@media (max-width: 1111px) { .side-cta { display: none; } }

/* "Trabajamos con" box: when height runs short it goes compact, then it is hidden;
   the column scrolls only if the menu and buttons no longer fit (classes set by site.js) */
.box.tech span { display: block; }
.sidebar.box-compact .box.tech { line-height: 1.5; font-size: 11px; }
.sidebar.box-compact .box.tech span { display: inline; }
.sidebar.box-compact .box.tech span + span::before { content: " · "; }
.sidebar.box-hidden .box.tech { display: none; }
.sidebar .box a { font-weight: 600; text-decoration: none; }
.sidebar .box a:hover { text-decoration: underline; }

/* Labels in IBM Plex Sans Condensed */
.sidebar summary, .sidebar .box b { font-family: var(--serif); font-weight: 600; letter-spacing: 1.6px; }
/* ===== blocks.css ===== */
/* ==========================================================================
   Content blocks: the ready-made pieces used inside pages (src/pages/*.html).
   Page intro (.eyebrow, .lead, .motto, .assurances, .hero-actions) · cards (.services/.card)
   tables (.compare) · steps (.steps) · contact box (.cta) · text (.prose) · bullet grid (.problems)
   tiles (.group/.areas/.area) · note (.note) · statement (.statement) · values (.values/.value)
   numbered list (.next). The README lists the markup for each.
   Rules stay in cascade order: when two rules set the same thing, the later one wins.
   ========================================================================== */

.lead { margin: 0; font-size: 17px; color: var(--ink-muted); }
.hero-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.assurances {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 13px;
  color: var(--ink-muted);
}
.assurances li { display: flex; align-items: center; gap: 8px; }
.assurances li::before { content: ""; width: 7px; height: 7px; background: var(--blue); flex: none; }

/* Cards */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--blue);
  padding: 16px 18px;
}
.card .num { font: 600 12px var(--mono); color: var(--blue); }
.card h3 { margin: 6px 0 6px; font: 400 19px/1.25 var(--serif); color: var(--navy); }
.card p { margin: 0; font-size: 14px; color: var(--ink-muted); }

/* Comparison tables */
.compare { width: 100%; border-collapse: collapse; border: 1px solid var(--hairline); font-size: 14px; }
.compare th {
  text-align: left;
  padding: 9px 14px;
  font: 600 11px var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--sky);
  color: var(--navy);
  border-bottom: 1px solid var(--hairline);
}
.compare td { padding: 10px 14px; border-top: 1px solid var(--hairline-soft); vertical-align: top; }
.compare td:first-child { color: var(--steel); width: 50%; border-right: 1px solid var(--hairline-soft); }
.compare td:last-child { color: var(--ink); font-weight: 600; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.steps li {
  background: var(--sky);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--navy);
  color: var(--ink);
  padding: 12px 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.steps b { display: block; margin-bottom: 4px; font: 600 11px var(--mono); letter-spacing: 1px; color: var(--blue); }

/* Contact box (the phone bottom bar hides while #contacto-final is on screen) */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 22px 24px;
  background: var(--sky-light);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--blue);
}
.cta h3 { margin: 0 0 4px; font: 400 23px/1.2 var(--serif); color: var(--navy); }
.cta p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.cta .buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* Phone/tablet */
@media (max-width: 1111px) {
  .lead { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .compare td:first-child { width: auto; }
  .cta { padding: 18px; }
  .cta .buttons, .hero-actions { width: 100%; }
  .cta .btn, .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}
/* Wider phones and tablets (≥ 560px) */
@media (min-width: 560px) and (max-width: 1111px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta .buttons { width: auto; }
  .cta .btn { flex: 0 0 auto; }
}
/* Tablet (≥ 780px) */
@media (min-width: 780px) and (max-width: 1111px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
}

/* Page intro */
.eyebrow { margin: 0 0 8px; font: 600 11px var(--sans); letter-spacing: 2.5px; text-transform: uppercase; color: var(--blue); }
.motto { margin: 18px 0 0; font: 400 18px var(--serif); color: var(--navy); }
.motto span { color: var(--steel); }

/* Running text */
.prose { max-width: none; }
.prose p:last-child { margin-bottom: 0; }

/* Bullet grid */
.problems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.problems li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink); }
.problems li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--blue); }

.card .more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* Grouped tiles */
.group + .group { margin-top: 26px; }
.group h3 { margin: 0 0 10px; font: 600 13px var(--sans); color: var(--navy); }
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.area { background: var(--white); border: 1px solid var(--hairline); padding: 14px 16px; }
.area h4 { margin: 0 0 4px; font: 400 17px/1.25 var(--serif); color: var(--navy); }
.area p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.area p + p { margin-top: 6px; }       /* tiles with several paragraphs (e.g. Privacidad) */
.areas + .prose { margin-top: 16px; }  /* text that follows a set of tiles */

/* Highlighted note */
.note { background: var(--sky-light); border: 1px solid var(--hairline); border-left: 4px solid var(--navy); padding: 14px 18px; font-size: 14px; color: var(--ink); }
.note b { color: var(--navy); }
.note p:last-child { margin-bottom: 0; }  /* no gap under the last paragraph inside the box */

.steps.eight { grid-template-columns: repeat(4, 1fr); }

/* Laptop and PC */
@media (min-width: 1112px) {
  .eyebrow { font-size: 11.5px; }
  .lead { font-size: 16.5px; }
  .motto { font-size: 16px; }
  .assurances { font-size: 13.5px; }
  .problems li, .compare, .area p, .value p, .next li, .card p, .cta p { font-size: 14.5px; line-height: 1.6; }
  .card h3, .area h4 { font-size: 18px; }
  .steps li { font-size: 13.5px; }
  .cta h3 { font-size: 20px; }
}

/* Table variants: three columns, principles */
.compare.three td { width: auto; font-weight: 400; color: var(--ink-muted); border-right: 1px solid var(--hairline-soft); }
.compare.three td:first-child { font-weight: 600; color: var(--navy); width: 22%; }
.compare.three td:last-child { font-weight: 600; color: var(--ink); border-right: 0; }
.compare.principles td:first-child { width: 38%; font-weight: 600; color: var(--navy); }
.compare.principles td:last-child { font-weight: 400; color: var(--ink-muted); }

/* Statement and values (these come after the laptop sizes above, so their 14px wins on laptop too) */
.statement { margin: 0; font: 400 21px/1.45 var(--serif); color: var(--navy); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.value { background: var(--white); border: 1px solid var(--hairline); border-top: 3px solid var(--navy); padding: 14px 16px; }
.value h4 { margin: 0 0 4px; font: 600 14px var(--sans); color: var(--navy); }
.value p { margin: 0; font-size: 14px; color: var(--ink-muted); }

/* Numbered next steps */
.next { counter-reset: n; list-style: none; margin: 0; padding: 0; }
.next li { counter-increment: n; position: relative; padding: 10px 0 10px 40px; border-top: 1px solid var(--hairline-soft); font-size: 14px; }
.next li:first-child { border-top: 0; }
.next li::before { content: counter(n); position: absolute; left: 0; top: 9px; width: 26px; height: 26px; display: grid; place-items: center; background: var(--navy); color: var(--white); font: 600 12px var(--mono); }
.next b { color: var(--navy); }

/* Phone/tablet */
@media (max-width: 1111px) {
  .problems, .areas, .values, .steps.eight { grid-template-columns: 1fr; }
  .compare.three td:first-child, .compare.principles td:first-child { width: auto; }
}
/* Wider phones and tablets (≥ 560px) */
@media (min-width: 560px) and (max-width: 1111px) {
  .areas, .values, .steps.eight { grid-template-columns: repeat(2, 1fr); }
}
/* Tablet (≥ 780px) */
@media (min-width: 780px) and (max-width: 1111px) {
  .problems { grid-template-columns: 1fr 1fr; }
  .steps.eight { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
}

/* Three-column table on phone/tablet: each row becomes a card, so nothing scrolls sideways.
   The row title sits on top; each cell shows its column name from its data-label attribute.
   Phone: cells stacked. From 560px: the three cells side by side. Laptop/PC keep the table. */
@media (max-width: 1111px) {
  .compare.three, .compare.three tbody, .compare.three td { display: block; }
  .compare.three { border: 0; }
  .compare.three thead { display: none; }
  .compare.three tr { display: grid; grid-template-columns: 1fr; border: 1px solid var(--hairline); border-top: 3px solid var(--navy); background: var(--white); }
  .compare.three tr + tr { margin-top: 12px; }
  .compare.three td { width: auto; padding: 10px 14px; border-right: 0; }
  .compare.three td:first-child { border-top: 0; background: var(--sky); }
  .compare.three td:last-child { background: var(--sky-light); border-left: 4px solid var(--blue); padding-left: 10px; }
  .compare.three td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font: 600 10.5px var(--serif);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--steel);
  }
  .compare.three td:last-child::before { color: var(--blue); }
}
@media (min-width: 560px) and (max-width: 1111px) {
  .compare.three tr { grid-template-columns: repeat(3, 1fr); }
  .compare.three td:first-child { grid-column: 1 / -1; }
  .compare.three td:nth-child(3) { border-left: 1px solid var(--hairline-soft); }
}

/* Headings and labels in IBM Plex Sans Condensed need more weight than the old serif */
.card h3, .area h4, .cta h3 { font-weight: 600; letter-spacing: -.1px; }
.statement { font-weight: 500; }
.motto { font-family: var(--serif); font-weight: 500; }
.eyebrow, .compare th { font-family: var(--serif); font-weight: 600; letter-spacing: 1.6px; }
/* ===== textsize.css ===== */
/* ==========================================================================
   Text size: the A A A button (cycles normal → large → extra large, saved per browser
   by site.js) and the scaling of the reading area. Only page content inside <main>
   grows or shrinks; header, menu and footer keep their size.
   The button sits in the grey bar on laptop/PC (.util-right) and next to the
   MENÚ ribbon on phone/tablet (.ts-mobile).
   ========================================================================== */

.textsize {
  display: inline-flex; align-items: baseline; gap: 3px; height: 24px; padding: 0 6px;
  font: inherit; font-weight: 700; line-height: 1; color: #a3a7ad;
  background: transparent; border: 1px solid transparent; cursor: pointer;
}
.textsize span[data-ts="s"] { font-size: 11px; }
.textsize span[data-ts="m"] { font-size: 13.5px; }
.textsize span[data-ts="l"] { font-size: 16px; }
.textsize span.on { color: var(--ink); }
.textsize:hover { border-color: var(--hairline); }
.textsize:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.util-right { display: inline-flex; align-items: center; }

/* Laptop/PC: framed A A A in the grey bar */
@media (min-width: 1112px) {
  .util-right .textsize { width: 50px; height: 26px; padding: 0 0 6px; gap: 3px; justify-content: center; align-items: flex-end;
    background: var(--white); border: 1px solid var(--hairline); }
  .util-right .textsize:hover { border-color: var(--ink-muted); }
  .util-right .textsize span { line-height: 0.75; }
  .util-right .textsize span[data-ts="s"] { font-size: 12px; }
  .util-right .textsize span[data-ts="m"] { font-size: 15px; }
  .util-right .textsize span[data-ts="l"] { font-size: 18px; }
}
.ts-mobile { display: none; }

/* Page text scale: only the reading area grows or shrinks; header, menu and footer keep their size */
html { --ts: 1; }
html.ts-m { --ts: 1.15; }
html.ts-l { --ts: 1.3; }
main > * { zoom: var(--ts); }

/* Phone/tablet: A A A sits in the light menu band, to the right of the dark MENÚ ribbon:
   8px from the ribbon, the right edge, top and bottom */
@media (max-width: 1111px) {
  .util-right .textsize { display: none; }
  .ts-mobile { display: block; position: absolute; top: 0; right: 12px; width: 50px; height: 28px; }
  .ts-mobile .textsize { width: 100%; height: 28px; padding: 0 0 7px; gap: 3px; justify-content: center; align-items: flex-end;
    background: var(--white); border: 1px solid var(--hairline); }
  .ts-mobile .textsize:hover { border-color: var(--ink-muted); }
  .ts-mobile .textsize span { line-height: 0.75; }
  .ts-mobile .textsize span[data-ts="s"] { font-size: 12px; }
  .ts-mobile .textsize span[data-ts="m"] { font-size: 15px; }
  .ts-mobile .textsize span[data-ts="l"] { font-size: 18px; }
}
/* ===== footer.css ===== */
/* ==========================================================================
   Footer: the slim ribbon with © and the legal links, and the phone/tablet
   bottom bar (.quickbar) with "Reservar llamada" + WhatsApp, which hides
   while the final contact box is on screen (site.js).
   Rules stay in cascade order: when two rules set the same thing, the later one wins.
   ========================================================================== */

footer {
  background: var(--sky);
  border-top: 1px solid var(--hairline);
  padding: 10px 24px;
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
}
footer a { color: var(--navy); }

.quickbar { display: none; }

/* Phone/tablet: bottom bar, always within thumb reach */
@media (max-width: 1111px) {
  .quickbar {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--hairline);
    z-index: 10;
  }
  .quickbar .btn { flex: 1; justify-content: center; }
  .quickbar { transition: transform .25s ease; }
  .quickbar.is-hidden { transform: translateY(110%); }
}
/* Wider phones and tablets (≥ 560px): buttons stay at most 520px wide, centred */
@media (min-width: 560px) and (max-width: 1111px) {
  .quickbar { padding-left: max(12px, calc((100% - 520px) / 2)); padding-right: max(12px, calc((100% - 520px) / 2)); }
}

/* Laptop and PC */
@media (min-width: 1112px) {
  footer { font-size: 12.5px; }
  footer { flex: none; }  /* keep its height inside the window-height frame */
}
/* PC */
@media (min-width: 1312px) {
  footer { font-size: 13px; padding-left: 28px; padding-right: 28px; }
}
/* Phone/tablet */
@media (max-width: 1111px) {
  footer, footer * { line-height: 16.5px; }
}

/* Slim footer ribbon, all views (overrides the sizes above) */
footer { padding-top: 5px; padding-bottom: 5px; font-size: 11px; line-height: 1.5; }
