/* ==========================================================================
   appname (España): estilos
   ========================================================================== */

   @font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
         url("/fonts/inter-latin-wght-normal.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;
  }
  
  :root {
    --green: #00c78b;
    --green-hover: #00b27d;
    --green-text: #00704f;
    --indigo: #313b72;
    --white: #ffffff;
    --page: #f5f5f3;
    --gray: #eeeeee;
    --ink: #1b191b;
    --ink-2: rgba(27, 25, 27, 0.7);
    --line: #e4e4e0;
    --mint: #ddf6ec;
    --mint-2: #e3f8f0;
    /* SF Pro en dispositivos Apple; Inter (alojada aquí) en el resto */
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
    --header-h: 72px;
  }
  
  *, *::before, *::after { box-sizing: border-box; }
  
  [hidden] { display: none !important; }
  
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  
  body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img { max-width: 100%; }
  button, input, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  a { color: inherit; }
  
  :focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
  
  h1, h2 { font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
  h1 { font-size: 56px; line-height: 1.04; }
  h2 { font-size: 40px; line-height: 1.1; }
  h3 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
  
  .container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
  
  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 8px;
    background: var(--ink); color: #fff;
  }
  .skip-link:focus { top: 12px; }
  
  .ph {
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: #e0e0e0; color: #4e4a4c; border: 1px dashed #b5b5b5; border-radius: 12px;
    font-size: 12px; font-weight: 500; line-height: 1.3; padding: 8px; user-select: none;
  }
  .ph--logo { width: 36px; height: 36px; border-radius: 9px; font-size: 9px; padding: 2px; flex: none; }
  .brand__logo { display: block; flex: none; width: 40px; height: 40px; object-fit: contain; }
  
  .lead { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
  .fine { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
  
  /* ---------- botones ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 0;
    border-radius: 8px; white-space: nowrap; font-weight: 600; line-height: 1;
  }
  .btn--green { height: 52px; padding: 0 26px; background: var(--green); color: var(--ink); font-size: 16px; transition: background-color 0.15s ease; }
  .btn--green:hover { background: var(--green-hover); }
  .btn--gray { height: 48px; padding: 0 22px; background: var(--gray); color: var(--ink); font-size: 15px; }
  .btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
  .btn--block { display: flex; width: 100%; }
  
  /* ---------- header ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: #fff; border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .site-header.is-solid { border-color: var(--line); box-shadow: 0 6px 18px rgba(27, 25, 27, 0.06); }
  .site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
  .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
  .brand__name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--indigo); }
  .site-nav { display: flex; align-items: center; gap: 30px; margin-inline: auto; }
  .site-nav a:not(.btn) { position: relative; padding: 8px 0; text-decoration: none; font-size: 15px; font-weight: 500; }
  .site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--green);
    transform: scaleX(0); transition: transform 0.2s ease;
  }
  .site-nav a[aria-current="true"]::after, .site-nav a:not(.btn):hover::after { transform: scaleX(1); }
  .nav-cta { display: none; }
  .header-actions { display: flex; align-items: center; gap: 12px; }
  .nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 8px;
    align-items: center; justify-content: center; color: var(--ink);
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 22px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform 0.2s ease;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }
  
  /* ---------- hero ---------- */
  .hero { position: relative; z-index: 5; padding: 64px 0 0; text-align: center; overflow-x: clip; }
  .hero__inner { position: relative; z-index: 2; }
  .hero h1 { max-width: 760px; margin-inline: auto; }
  .hero .lead { max-width: 560px; margin-inline: auto; }
  .hero__note { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
  
  .art { display: block; object-fit: contain; }
  
  .hero__stage { position: relative; margin-top: 36px; padding-top: 44px; }
  .hero__photo {
    --fade: 14%;
    height: 400px; overflow: hidden;
    /* los bordes izquierdo y derecho se difuminan hacia el fondo de la página */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.55) calc(var(--fade) * 0.45), #000 var(--fade), #000 calc(100% - var(--fade)), rgba(0, 0, 0, 0.55) calc(100% - var(--fade) * 0.45), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.55) calc(var(--fade) * 0.45), #000 var(--fade), #000 calc(100% - var(--fade)), rgba(0, 0, 0, 0.55) calc(100% - var(--fade) * 0.45), transparent 100%);
  }
  .photo { display: block; width: 100%; height: 100%; object-fit: cover; }
  .photo.ph { display: flex; flex-direction: column; gap: 4px; border: 0; border-radius: 0; font-size: 14px; background: linear-gradient(135deg, #d7dddb, #bfc9c6); color: #4e5a57; }
  .ph small { display: block; font-size: 11px; font-weight: 400; opacity: 0.85; overflow-wrap: anywhere; }
  .hero__stage > .finder { position: absolute; z-index: 3; top: 0; left: 50%; transform: translateX(-50%); width: min(900px, 100%); margin: 0; }
  
  .finder {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.1fr) auto; align-items: stretch;
    padding: 10px; text-align: left;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgba(27, 25, 27, 0.1);
  }
  .finder__field { position: relative; padding: 8px 16px 8px 18px; border-right: 1px solid var(--gray); min-width: 0; }
  .finder__field label { display: block; font-size: 12px; line-height: 1.3; color: var(--ink-2); }
  .finder__field select {
    display: block; width: 100%; margin-top: 2px; padding: 0 26px 0 0; border: 0; background: transparent;
    font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); cursor: pointer;
    -webkit-appearance: none; appearance: none; text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23313b72' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0 center; background-size: 18px 18px;
  }
  .finder__field select:focus-visible { outline: 3px solid var(--indigo); outline-offset: 4px; border-radius: 4px; }
  .finder__field select option { background: #fff; color: var(--ink); font-size: 16px; font-weight: 500; }
  
  /* lista desplegable propia (ordenador); en móvil se usa el selector del sistema */
  .dd { position: relative; }
  .dd__btn {
    display: block; width: 100%; margin-top: 2px; padding: 0 26px 0 0; border: 0; border-radius: 4px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23313b72' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0 center / 18px 18px;
    font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.4; text-align: left; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  }
  .dd__btn:focus-visible { outline: 3px solid var(--indigo); outline-offset: 4px; }
  .dd.is-open .dd__btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 15l6-6 6 6' fill='none' stroke='%23313b72' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .dd__list {
    position: absolute; left: -10px; top: calc(100% + 16px); z-index: 30; min-width: max(100%, 236px); max-height: 320px; overflow: auto;
    padding: 6px; margin: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 18px 40px rgba(27, 25, 27, 0.16);
  }
  .dd__list[hidden] { display: none; }
  .dd__list li {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 0 12px;
    border-radius: 8px; font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--ink); cursor: pointer; white-space: nowrap;
  }
  .dd__list li:hover, .dd__list li.is-active { background: var(--page); }
  .dd__list li[aria-selected="true"] { font-weight: 700; }
  .dd__list li[aria-selected="true"]::after {
    content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--green)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l4 4 7-8.5' fill='none' stroke='%231b191b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
  }
  .finder__btn { margin-left: 10px; align-self: center; height: 56px; padding: 0 22px; }
  
  /* ---------- secciones ---------- */
  .section { padding: 96px 0; }
  .section--white { background: #fff; }
  .section-head { text-align: center; }
  .section-head .lead { max-width: 600px; margin-inline: auto; text-wrap: balance; }
  
  /* TAE */
  .tae { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
  .tae__word { font-size: clamp(96px, 15vw, 190px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; color: var(--indigo); }
  .tae__sub { margin-top: 18px; font-size: 16px; color: var(--ink-2); }
  .tae__bar { width: 90px; height: 5px; margin-top: 22px; border-radius: 3px; background: var(--green); }
  .tae h2 { font-size: 34px; margin-bottom: 14px; }
  .qa { border-top: 1px solid var(--gray); padding: 18px 0; }
  .qa h3 { margin-bottom: 6px; font-size: 17px; }
  .qa p { color: var(--ink-2); }
  .tae .fine { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--gray); }
  
  /* oferta */
  .offer { display: grid; grid-template-columns: 0.95fr 1fr; gap: 64px; align-items: center; margin-top: 40px; }
  .offer__photo { overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 5; max-height: 560px; background: #d9dedc; }
  .num {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
    border-radius: 50%; background: var(--indigo); color: #fff; font-size: 14px; font-weight: 700; font-style: normal; line-height: 1;
  }
  .explain { display: grid; gap: 18px; }
  .explain li { display: flex; gap: 14px; }
  .explain h3 { margin-bottom: 2px; font-size: 16px; }
  .explain p { color: var(--ink-2); font-size: 15px; }
  .req { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
  .req h3 { margin-bottom: 14px; }
  .req li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 15px; }
  .req li::before {
    content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l4 4 7-8.5' fill='none' stroke='%231b191b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  }
  .offer .fine { margin-top: 18px; }
  
  /* dispositivo con pantalla de la app */
  .device { width: 272px; padding: 7px; background: #1b191b; border-radius: 40px; box-shadow: 0 22px 44px rgba(27, 25, 27, 0.24); }
  .screen { display: block; width: 100%; height: auto; border-radius: 33px; background: #f5f5f3; }
  .screen.ph { aspect-ratio: 402 / 874; border-radius: 33px; font-size: 13px; }
  .device-crop { overflow: hidden; }
  
  /* articulos */
  #articulos { padding-bottom: 0; }
  .articles { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; }
  .articles__text { padding-bottom: 96px; }
  .articles h2 { font-size: 38px; }
  .alist { margin-top: 28px; }
  .alist li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--gray); font-size: 16px; font-weight: 600; }
  .alist li:last-child { border-bottom: 1px solid var(--gray); }
  .alist span { flex: none; font-weight: 400; font-size: 14px; color: var(--ink-2); }
  .textlink {
    display: inline-block; margin-top: 24px; padding-bottom: 2px; border-bottom: 2px solid var(--green);
    font-size: 15px; font-weight: 600; color: var(--indigo); text-decoration: none;
  }
  .textlink:hover { border-bottom-color: var(--indigo); }
  .articles__visual { position: relative; display: flex; justify-content: center; }
  .arch { position: absolute; left: 50%; bottom: 0; width: 340px; height: 500px; margin-left: -170px; border-radius: 170px 170px 0 0; background: var(--mint-2); }
  .articles__visual .device-crop { position: relative; height: 500px; padding-top: 44px; }
  .art--bills { position: absolute; right: calc(50% - 215px); top: 6px; width: 120px; height: 120px; z-index: 2; }
  
  /* como ganamos dinero */
  .earn { background: var(--indigo); color: #fff; }
  .earn__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
  .earn__grid > div:first-child { position: sticky; top: 104px; align-self: start; }
  .earn h2 { color: #fff; }
  .earn .lead { color: rgba(255, 255, 255, 0.84); font-size: 17px; }
  .earn__bar { width: 90px; height: 5px; margin-top: 26px; border-radius: 3px; background: var(--green); }
  .earn ol li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
  .earn ol li:last-child { padding-bottom: 0; }
  .earn__n { flex: none; min-width: 34px; font-size: 22px; font-weight: 700; color: var(--green); }
  .earn h3 { margin-bottom: 4px; font-size: 17px; }
  .earn p { color: rgba(255, 255, 255, 0.84); font-size: 15px; }
  
  /* faq */
  .faq { max-width: 720px; margin: 36px auto 0; border-bottom: 1px solid var(--line); }
  .faq details { border-top: 1px solid var(--line); }
  .faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 18px 0;
    font-size: 17px; font-weight: 600; cursor: pointer; list-style: none;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: ""; flex: none; width: 26px; height: 26px; border: 1.5px solid var(--indigo); border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%23313b72' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  }
  .faq details[open] summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h12' fill='none' stroke='%23313b72' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  }
  .faq details p { padding: 0 44px 20px 0; color: var(--ink-2); font-size: 16px; }
  
  /* cta final */
  .section--cta { background: var(--mint); padding-bottom: 0; overflow: hidden; }
  .cta { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: end; }
  .cta__visual { position: relative; display: flex; justify-content: center; order: 1; }
  .cta__visual .device-crop { height: 440px; position: relative; z-index: 1; padding-top: 12px; }
  .art--folder { position: absolute; left: calc(50% + 40px); top: 30px; width: 200px; height: 200px; z-index: 0; }
  .cta__text { order: 2; align-self: center; padding-bottom: 56px; }
  .cta__text h2 { font-size: 42px; }
  .cta__text .lead { color: var(--ink-2); }
  .cta__text .btn { margin-top: 28px; }
  
  /* footer */
  .footer { background: var(--ink); color: #fff; padding: 64px 0 32px; }
  .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
  .footer .brand__name { color: #fff; }
  .footer-tag { margin-top: 14px; max-width: 30ch; font-size: 15px; color: #b9bcbe; }
  .footer-label { margin-bottom: 14px; font-size: 14px; font-weight: 700; }
  .footer-links li + li { margin-top: 10px; }
  .footer-links a, .footer-meta a { color: #b9bcbe; text-decoration: none; font-size: 15px; }
  .footer-links a:hover, .footer-links a[aria-current="page"], .footer-meta a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
  .footer-disclaimer { margin-top: 40px; max-width: 74ch; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.62); }
  .footer-meta { margin-top: 16px; font-size: 13px; color: #b9bcbe; }
  .footer-meta a { font-size: 13px; }
  .footer-copy { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: rgba(255, 255, 255, 0.62); }
  
  /* ---------- adaptive ---------- */
  
  @media (max-width: 979px) {
    h1 { font-size: 46px; }
    h2 { font-size: 34px; }
    .section { padding: 72px 0; }
    .nav-toggle { display: inline-flex; }
    .site-header__inner { gap: 12px; }
    .brand { margin-right: auto; }
    .site-nav {
      position: absolute; left: 0; right: 0; top: var(--header-h); display: none; flex-direction: column; align-items: stretch;
      gap: 0; margin: 0; padding: 4px 24px 20px; background: #fff; box-shadow: 0 14px 24px rgba(27, 25, 27, 0.1);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { display: flex; align-items: center; min-height: 56px; padding: 0; border-bottom: 1px solid var(--gray); font-size: 17px; }
    .site-nav a:not(.btn)::after { display: none; }
    .tae, .offer, .articles, .earn__grid, .cta { grid-template-columns: 1fr; gap: 40px; }
    .offer__photo { aspect-ratio: 16 / 11; max-height: 380px; }
    .earn__grid > div:first-child { position: static; }
    .tae__word { font-size: clamp(96px, 28vw, 170px); }
    .articles__text { order: 1; padding-bottom: 0; }
    .articles__visual { order: 2; }
    .cta__text { order: 1; padding: 0; }
    .cta__visual { order: 2; }
    .section--cta { padding-bottom: 0; }
    .hero__stage { padding-top: 0; }
    .hero__stage > .finder { position: relative; top: auto; left: auto; transform: none; width: 100%; margin: -32px 0 28px; }
    .hero__photo { height: 300px; --fade: 9%; }
    .finder { grid-template-columns: 1fr 1fr; }
    .finder__field { border-right: 0; border-bottom: 1px solid var(--gray); }
    .finder__field:nth-child(2) { border-right: 0; }
    .finder__field:nth-child(2) .dd__list { left: auto; right: -10px; }
    .dd__list { max-width: calc(100vw - 40px); }
    .finder__field:nth-child(3) { grid-column: 1 / -1; border-bottom: 0; }
    .finder__btn { grid-column: 1 / -1; margin: 6px 0 0; width: 100%; }
  }
  
  @media (max-width: 599px) {
    .container { width: calc(100% - 32px); }
    h1 { font-size: 34px; }
    h2 { font-size: 28px; }
    .lead { font-size: 16px; }
    .section { padding: 56px 0; }
    .hero { padding: 40px 0 64px; }
    .header-cta { display: none; }
    .nav-cta { display: inline-flex; margin-top: 16px; height: 52px; }
    .finder { grid-template-columns: 1fr; padding: 6px 14px 14px; }
    .finder__field, .finder__field:nth-child(3) { grid-column: auto; padding: 12px 0; border-bottom: 1px solid var(--gray); }
    .finder__field:nth-child(3) { border-bottom: 0; }
    .finder__btn { margin-top: 6px; }
    .tae h2, .articles h2 { font-size: 28px; }
    .cta__text h2 { font-size: 30px; }
    .alist li { font-size: 15px; }
    .hero__photo { height: 240px; --fade: 7%; }
    .arch { width: 280px; margin-left: -140px; height: 430px; }
    .device { width: 240px; }
    .art--bills { width: 96px; height: 96px; right: calc(50% - 132px); }
    .art--folder { width: 150px; height: 150px; left: calc(50% - 4px); }
    .articles__visual .device-crop { height: 430px; }
    .cta__visual .device-crop { height: 400px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
  }
  
  /* ==========================================================================
     Páginas legales (/condiciones/ y /privacidad/)
     ========================================================================== */
  
  .legal-hero { padding: 56px 0 48px; background: var(--page); }
  .crumbs { margin-bottom: 20px; font-size: 14px; color: var(--ink-2); }
  .crumbs a { text-decoration: none; }
  .crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .crumbs span[aria-hidden] { margin: 0 8px; opacity: 0.6; }
  .legal-hero h1 { max-width: 16em; font-size: 52px; }
  .legal-hero__lead { max-width: 62ch; margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
  .legal-date { margin-top: 20px; font-size: 14px; color: var(--ink-2); }
  .legal-date::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--green); }
  
  .legal-body { padding: 56px 0 96px; background: #fff; }
  .legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; align-items: start; }
  
  .toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
  .toc__title { margin-bottom: 12px; font-size: 14px; font-weight: 700; }
  .toc ol { counter-reset: toc; border-left: 2px solid var(--gray); }
  .toc li { counter-increment: toc; }
  .toc a {
    display: block; margin-left: -2px; padding: 8px 12px 8px 16px; border-left: 2px solid transparent;
    font-size: 14.5px; line-height: 1.35; color: var(--ink-2); text-decoration: none;
  }
  .toc a::before { content: counter(toc) ". "; color: var(--indigo); font-weight: 600; }
  .toc a:hover { color: var(--ink); }
  .toc a.is-current { border-left-color: var(--green); color: var(--ink); font-weight: 600; }
  .toc--mobile { display: none; }
  
  .doc { max-width: 740px; min-width: 0; }
  .doc-summary li, .dsec p, .dsec li { overflow-wrap: anywhere; }
  .doc-summary { margin-bottom: 52px; padding: 28px 32px; background: var(--mint); border-radius: 14px; }
  .doc-summary h2 { margin-bottom: 14px; font-size: 22px; letter-spacing: -0.02em; }
  .doc-summary ul { display: grid; gap: 10px; }
  .doc-summary li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.55; }
  .doc-summary li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
  
  .dsec { margin-top: 56px; scroll-margin-top: 96px; }
  .dsec:first-of-type { margin-top: 0; }
  .dsec h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; text-wrap: pretty; }
  .dsec h2 .n { flex: none; min-width: 34px; font-size: 20px; font-weight: 700; color: var(--indigo); letter-spacing: 0; }
  .dsec h3 { margin: 28px 0 8px; font-size: 18px; }
  .dsec p { margin-bottom: 14px; font-size: 17px; line-height: 1.7; color: rgba(27, 25, 27, 0.88); }
  .dsec p:last-child { margin-bottom: 0; }
  .dsec ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
  .dsec li { margin-bottom: 10px; padding-left: 4px; font-size: 17px; line-height: 1.65; color: rgba(27, 25, 27, 0.88); }
  .dsec li::marker { color: var(--green); }
  .dsec strong { font-weight: 700; color: var(--ink); }
  .dsec a, .doc-summary a { color: var(--indigo); text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
  .dsec a:hover { text-decoration-color: var(--indigo); }
  .callout { margin: 6px 0 18px; padding: 20px 24px; background: var(--page); border-left: 4px solid var(--indigo); border-radius: 0 12px 12px 0; }
  .callout p { margin: 0; color: var(--ink); }
  
  .doc-back { margin-top: 40px; font-size: 14px; }
  .doc-help {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px;
    margin-top: 40px; padding: 28px 32px; background: var(--page); border-radius: 14px;
  }
  .doc-help h2 { font-size: 22px; letter-spacing: -0.02em; }
  .doc-help p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
  .doc-help__actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .btn--line { height: 52px; padding: 0 24px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-size: 16px; }
  .btn--line:hover { background: var(--ink); color: #fff; }
  .doc-help .btn { height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; white-space: normal; text-align: center; line-height: 1.2; }
  
  @media (max-width: 979px) {
    .legal-hero h1 { font-size: 42px; }
    .legal-layout { grid-template-columns: 1fr; gap: 24px; }
    .toc--desk { display: none; }
    .toc--mobile { display: block; position: static; max-height: none; background: var(--page); border-radius: 12px; }
    .toc--mobile summary {
      display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 14px 20px;
      font-size: 16px; font-weight: 700; cursor: pointer; list-style: none;
    }
    .toc--mobile summary::-webkit-details-marker { display: none; }
    .toc--mobile summary::after {
      content: ""; width: 22px; height: 22px; transition: transform 0.2s ease;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23313b72' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }
    .toc--mobile[open] summary::after { transform: rotate(180deg); }
    .toc--mobile ol { margin: 0 0 12px 20px; max-height: 50vh; overflow: auto; }
    .legal-body { padding: 40px 0 72px; }
  }
  @media (max-width: 599px) {
    .legal-hero { padding: 40px 0 36px; }
    .legal-hero h1 { font-size: 32px; }
    .doc-summary { padding: 22px 20px; margin-bottom: 40px; }
    .dsec { margin-top: 44px; }
    .dsec h2 { font-size: 23px; gap: 10px; }
    .dsec h2 .n { min-width: 28px; font-size: 17px; }
    .dsec p, .dsec li { font-size: 16px; }
    .doc-help { padding: 22px 20px; }
    .doc-help__actions, .doc-help__actions .btn { width: 100%; }
  }
  @media print {
    .site-header, .toc, .doc-help, .doc-back, .footer, .skip-link { display: none !important; }
    .legal-hero { padding: 0 0 12px; background: none; }
    .legal-layout { display: block; }
    .doc-summary { background: none; border: 1px solid #999; }
    .dsec { break-inside: avoid-page; }
  }
  
  /* ==========================================================================
     Página de contacto (/contacto/), sin formulario
     ========================================================================== */
  
  .contact-stack { display: grid; gap: 32px; }
  .contact-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .contact-main h2 { font-size: 32px; line-height: 1.15; }
  .contact-main__lead { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
  .contact-mail { margin-top: 26px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
  .contact-mail a { color: var(--indigo); text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 5px; }
  .contact-main .btn { margin-top: 24px; }
  .contact-data { padding: 28px 30px; background: var(--page); border-radius: 14px; }
  .contact-data h3 { margin-bottom: 16px; font-size: 18px; }
  .contact-data dl { display: grid; gap: 16px; }
  .contact-data dt { font-size: 13px; color: var(--ink-2); }
  .contact-data dd { margin-top: 2px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
  .contact-main__lead a { color: var(--indigo); text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
  .contact-data a { color: var(--indigo); text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
  
  .contact-h2 { margin: 12px 0 20px; font-size: 32px; line-height: 1.15; }
  .topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .topic { display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
  .topic::before { content: ""; display: block; width: 36px; height: 4px; margin-bottom: 20px; border-radius: 2px; background: var(--green); }
  .topic h3 { margin-bottom: 8px; font-size: 19px; }
  .topic p { margin-bottom: 22px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
  .topic .btn { margin-top: auto; align-self: flex-start; }
  
  .contact-notes { padding: 34px 38px; background: var(--mint); border-radius: 14px; }
  .contact-notes h2 { font-size: 26px; line-height: 1.2; }
  .contact-notes ul { display: grid; gap: 12px; margin-top: 18px; }
  .contact-notes li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.6; }
  .contact-notes li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
  .contact-notes a { color: var(--indigo); text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
  .contact-notes strong { font-weight: 700; }
  
  @media (max-width: 979px) { .contact-main { grid-template-columns: 1fr; gap: 32px; } }
  @media (max-width: 719px) { .topics { grid-template-columns: 1fr; } .contact-notes { padding: 28px 22px; } }
  @media (max-width: 599px) {
    .contact-main h2, .contact-h2 { font-size: 26px; }
    .contact-mail { font-size: 20px; }
    .contact-main .btn, .topic .btn { width: 100%; }
    .topic { padding: 22px 18px; }
    .contact-data { padding: 22px 18px; }
  }
  @media print { .contact-main .btn, .topic .btn { display: none !important; } }