/* Liberty Tech v3
   Idea: la marca son las aves en vuelo. El fondo es aire en movimiento; la página es lectura clara encima.
   Tipografía: Libre Franklin (títulos) + Public Sans (texto). Un acento (naranja de marca), un radio (--r). */

:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #E9ECF1;
  --ink: #0F1E3D;
  --ink-2: #4A5067;
  --line: #D9DDE6;
  --accent: #FF7200;
  --accent-ink: #AD4700;
  --accent-tint: #FFEBDC;
  --on-accent: #0F1E3D;
  --r: 10px;
  --r-s: 6px;
  --max: 1180px;
  --head: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgb(15 30 61 / .06), 0 18px 40px -22px rgb(15 30 61 / .38);
  --glass: rgb(245 246 248 / .72);
}



*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }

h1, h2, h3 { font-family: var(--head); margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.9vw, 3.9rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.1; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.lead { font-size: 1.3rem; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-2); }
.small { font-size: .95rem; }
.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r); z-index: 200; }
.skip:focus { left: 8px; }

/* Capas: el fondo animado va detrás de todo */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: var(--r);
  font-family: var(--head); font-weight: 700; font-size: 1.02rem; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: transform .25s cubic-bezier(.16,1,.3,1), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -14px var(--accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, white); box-shadow: 0 14px 28px -14px var(--accent); }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 55%, transparent); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.link { color: var(--accent-ink); font-family: var(--head); font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s cubic-bezier(.16,1,.3,1); padding-bottom: 2px; }
.link:hover { background-size: 100% 2px; }
.link::after { content: "\2192"; margin-left: 8px; display: inline-block; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.link:hover::after { transform: translateX(4px); }

/* Header translúcido */
.site-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: background-color .35s, border-color .35s, backdrop-filter .35s; }
.site-header.scrolled { background: var(--glass); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); border-radius: var(--r); padding: 7px 14px; min-width: 104px; text-decoration: none; color: var(--on-accent); font-family: var(--head); font-weight: 800; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 9px 14px; border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.bar .btn { padding: 11px 20px; font-size: .98rem; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--r); color: var(--ink); padding: 9px 15px; font: 700 .98rem var(--head); cursor: pointer; }

/* Secciones: pocas y con aire */
section { padding-block: 104px; }
.tint { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.sec-head { margin-bottom: 44px; max-width: 38rem; }
.sec-head p { margin-top: 14px; color: var(--ink-2); }

/* Hero */
.hero { padding-block: 56px 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 72px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* Showcase (home) */
.showcase { perspective: 1400px; }
.showcase-inner { transform: rotateY(calc(var(--mx, 0) * -3deg)) rotateX(calc(var(--my, 0) * 2.4deg)); transition: transform .5s cubic-bezier(.16,1,.3,1); transform-style: preserve-3d; }
.stage { display: grid; }
.slide { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1), visibility 0s .6s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.tabs { display: flex; gap: 8px; margin-top: 26px; }
.tab { position: relative; flex: 1; text-align: left; background: none; border: 0; padding: 14px 4px 0; font: 700 1rem var(--head); color: var(--ink-2); cursor: pointer; transition: color .2s; }
.tab::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line); border-radius: 3px; }
.tab::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); border-radius: 3px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { width: 100%; }
.autoplay .tab[aria-selected="true"]::after { width: 0; animation: fill 6.5s linear forwards; }
.paused .tab[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }

/* Listas simples de lectura */
.rows { display: grid; }
.row-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 32px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line); text-decoration: none; transition: padding-left .35s cubic-bezier(.16,1,.3,1); }
.row-link:last-child { border-bottom: 1px solid var(--line); }
.row-link:hover { padding-left: 14px; }
.row-link .q { font-family: var(--head); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; }
.row-link .a { color: var(--ink-2); }
.row-link .a strong { display: block; color: var(--ink); font-family: var(--head); font-size: 1.15rem; margin-bottom: 2px; }
.row-link .go { font-family: var(--head); font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.row-link .go::after { content: " \2192"; display: inline-block; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.row-link:hover .go::after { transform: translateX(5px); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.steps div { border-top: 3px solid var(--ink); padding-top: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); }

/* Logos */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.logos li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.logos li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logos img { width: 100%; height: 100%; object-fit: contain; }
.sector { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 32px; padding-block: 32px; border-top: 1px solid var(--line); align-items: start; }
.sector:last-of-type { border-bottom: 1px solid var(--line); }
.sector h3 { font-size: 1rem; color: var(--ink-2); font-weight: 600; font-family: var(--body); }
.sector .logos { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.names { display: flex; flex-wrap: wrap; gap: 8px 30px; font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; margin-top: 22px; }
.names span { white-space: nowrap; }
.note { font-size: .95rem; color: var(--ink-2); margin-top: 22px; }

/* Banda a medida */
.band { background: var(--ink); color: var(--bg); border-radius: var(--r); padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.band h2 { color: var(--bg); max-width: 18em; }
.band p { color: color-mix(in srgb, var(--bg) 72%, transparent); margin-top: 12px; max-width: 32em; }
.band .btn { background: var(--accent); color: #0F1E3D; }

/* Cierre */
.closing h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 17em; margin-bottom: 30px; letter-spacing: -.032em; }

/* Páginas internas */
.page-head { padding-block: 64px 48px; }
.page-head h1 { max-width: 15em; margin-bottom: 20px; }
.crumbs { font-size: .95rem; color: var(--ink-2); margin-bottom: 26px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin-inline: 8px; }
.head-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.head-split h1 { max-width: 12em; }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.three h3 { margin-bottom: 8px; }
.three p { color: var(--ink-2); }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.pairs h3 { margin-bottom: 6px; }
.pairs p { color: var(--ink-2); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 56px; }
.checks li { padding: 0 0 16px 32px; position: relative; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }

.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 46rem; }
.price.one { grid-template-columns: minmax(0, 28rem); }
.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; }
.price-box.accent { background: var(--accent-tint); border-color: transparent; }
.price-box h3 { color: var(--ink-2); font-size: 1rem; font-weight: 600; font-family: var(--body); letter-spacing: 0; }
.price-box .amount { font-family: var(--head); font-weight: 700; font-size: 2rem; letter-spacing: -.03em; margin: 8px 0; line-height: 1.1; }
.price-box p:last-child { color: var(--ink-2); font-size: 1rem; }

.faq details { border-top: 1px solid var(--line); padding: 24px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: -.012em; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.7rem; line-height: .9; color: var(--accent-ink); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: var(--ink-2); max-width: 42em; }
.narrow { max-width: 46rem; }

.feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature h2 { margin-bottom: 14px; }
.feature p { color: var(--ink-2); margin-bottom: 22px; max-width: 28em; }
.feature .checks { grid-template-columns: 1fr; gap: 0; margin-bottom: 26px; }
.feature .checks li { padding-bottom: 12px; padding-top: 12px; }
.gap-lg { display: grid; gap: 112px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 24px 26px 28px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--ink-2); }
.photo { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--r); margin-bottom: 14px; background: var(--surface-2); }
.person h3 { font-size: 1.1rem; }
.person p { font-size: .98rem; color: var(--ink-2); }
.person .link { font-size: .95rem; display: inline-block; margin-top: 6px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.channels { display: grid; gap: 28px; }
.channels h3 { font-size: .98rem; color: var(--ink-2); margin-bottom: 4px; font-weight: 600; font-family: var(--body); }
.channels a, .channels p { font-family: var(--head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.012em; text-decoration: none; }
.channels a.link { font-size: 1.02rem; letter-spacing: -.005em; }   /* botón secundario en su tamaño estándar */
form { display: grid; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; box-shadow: var(--shadow); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 1rem; }
.field small { color: var(--ink-2); font-size: .92rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid color-mix(in srgb, var(--ink) 40%, var(--bg)); border-radius: var(--r); padding: 14px 15px; width: 100%; }
input:not([type=checkbox]):not([type=radio]), select { box-sizing: border-box; height: 56px; }   /* listas y campos con la misma altura */
select { padding-left: 11px; }   /* el texto de la lista arranca donde el de los campos */
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-msg { font-size: .95rem; color: var(--ink-2); }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); align-items: baseline; }
.ledger li:last-child { border-bottom: 1px solid var(--line); }
.ledger a { text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.3; }
.ledger a:hover { color: var(--accent-ink); }
.ledger small { color: var(--ink-2); font-size: .95rem; white-space: nowrap; }
.prose h2 { font-size: 1.7rem; margin: 56px 0 16px; }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.draft-note { border: 1.5px dashed var(--ink-2); border-radius: var(--r); padding: 14px 18px; font-size: .95rem; color: var(--ink-2); margin-top: 28px; max-width: 46rem; }

/* Footer */
.site-footer { background: color-mix(in srgb, var(--surface-2) 82%, transparent); padding-block: 72px 36px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.1fr .9fr .9fr 1.3fr; gap: 36px; }
.foot-grid a[href^="https://wa.me"] { white-space: nowrap; }
.foot-grid h4, .foot-grid .foot-h { font: 600 .95rem var(--body); margin: 0 0 14px; color: var(--ink-2); letter-spacing: 0; text-transform: none; max-width: none; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot-about p { color: var(--ink-2); margin-top: 16px; max-width: 22em; font-size: 1rem; }
.legal-line { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font-size: .93rem; color: var(--ink-2); }

/* Movimiento */
@media (prefers-reduced-motion: no-preference) {
  main { animation: pageIn .6s cubic-bezier(.16,1,.3,1) both; }
  @keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .rise { opacity: 0; transform: translateY(26px); }
  body.ready .rise { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--d, 0) * 110ms + 80ms); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .slide, .card, .logos li { transition: none; } .showcase-inner { transform: none; } }

/* Responsive */
@media (max-width: 1000px) {
  section { padding-block: 76px; }
  .hero-grid, .head-split, .feature, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .feature.flip .feature-text { order: 0; }
  .three, .steps { grid-template-columns: 1fr; gap: 32px; }
  .pairs, .checks, .cards, .price { grid-template-columns: 1fr; }
  .row-link { grid-template-columns: 1fr; gap: 8px; }
  .band { grid-template-columns: 1fr; padding: 36px 28px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sector { grid-template-columns: 1fr; gap: 14px; }
  .gap-lg { gap: 80px; }
}
@media (max-width: 880px) {
  .menu-btn { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 22px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 15px 4px; font-size: 1.1rem; border-radius: 0; background: none !important; }
  .bar .btn { display: none; }
  .nav .btn-mobile { display: inline-flex; margin-top: 12px; justify-content: center; background: var(--accent) !important; padding: 15px 24px; }
}
@media (min-width: 881px) { .nav .btn-mobile { display: none; } }
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .wrap { width: min(100% - 32px, var(--max)); }
  .row { grid-template-columns: 1fr; }
  .team { gap: 18px; }
  form { padding: 24px; }
  .ledger li { grid-template-columns: 1fr; gap: 6px; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .names { gap: 8px 22px; font-size: 1.1rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .tabs { gap: 4px; }
  .tab { font-size: .92rem; }
}

/* Apertura (solo en la home, una vez por visita) */
#intro { position: fixed; inset: 0; z-index: 300; display: none; background: var(--accent); overflow: hidden; clip-path: inset(0 0 0 0); place-items: center; cursor: pointer; }
.intro-on #intro { display: grid; }
body.intro-lock { overflow: hidden; }
#intro .center { position: relative; display: grid; justify-items: center; gap: 22px; }
#intro .logo { width: min(340px, 64vw); height: auto; opacity: 0; transform: translateY(16px) scale(.98); filter: blur(10px); animation: introLogo 1s .7s cubic-bezier(.16,1,.3,1) forwards; }
#intro .rule { height: 3px; width: 0; background: #0F1E3D; border-radius: 3px; animation: introRule .9s 1.5s cubic-bezier(.76,0,.24,1) forwards; }
#intro .skip-hint { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font: 600 .85rem var(--body); color: rgb(15 30 61 / .6); opacity: 0; animation: introHint .6s 1.2s forwards; }
#intro.out { animation: introLift 1s cubic-bezier(.76,0,.24,1) forwards; }
#intro.out .center { animation: introCenterOut .7s cubic-bezier(.76,0,.24,1) forwards; }
.gull { position: absolute; left: 0; top: 0; width: calc(var(--s, 1) * 60px); height: auto; overflow: visible; opacity: 0; animation: gullFly var(--t, 2.6s) var(--delay, 0s) cubic-bezier(.45,.05,.35,1) forwards; }
.gull path { fill: none; stroke: #0F1E3D; stroke-width: 2.6; stroke-linecap: round; transform-origin: 30px 13px; }
.gull .wl { animation: flapL .42s ease-in-out infinite alternate; }
.gull .wr { animation: flapR .42s ease-in-out infinite alternate; }
@keyframes flapL { from { transform: rotate(0deg); } to { transform: rotate(16deg); } }
@keyframes flapR { from { transform: rotate(0deg); } to { transform: rotate(-16deg); } }
@keyframes gullFly {
  0% { opacity: 0; transform: translate(-12vw, var(--y0)) rotate(-4deg); }
  12% { opacity: .9; }
  88% { opacity: .9; }
  100% { opacity: 0; transform: translate(112vw, var(--y1)) rotate(-9deg); }
}
@keyframes introLogo { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes introRule { to { width: min(340px, 64vw); } }
@keyframes introHint { to { opacity: 1; } }
@keyframes introLift { to { clip-path: inset(0 0 100% 0); } }
@keyframes introCenterOut { to { transform: translateY(-40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #intro { display: none !important; } }

/* Añadidos v3 */
#bg { background: radial-gradient(70vmax 46vmax at 88% -12%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.eyebrow { font: 700 .98rem var(--head); color: var(--accent-ink); margin-bottom: 18px; letter-spacing: .005em; }
.tab small { display: block; font: 500 .88rem var(--body); color: var(--ink-2); margin-top: 2px; }
.caption { font-size: .9rem; color: var(--ink-2); margin-top: 12px; }
.mock .chip.gray { background: #EAECF3; color: #4F5570; }
.lead + .actions { margin-top: 32px; }
.checks.one { grid-template-columns: 1fr; }
.pairs .checks { grid-template-columns: 1fr; gap: 0; margin-top: 16px; }
.pairs .checks li { padding-top: 12px; padding-bottom: 12px; }
.price-box .amount.sm { font-size: 1.5rem; }
.rows .row-link .q small { display: block; font: 500 1rem var(--body); color: var(--ink-2); margin-top: 6px; letter-spacing: 0; }
@media (max-width: 1000px) { .mock-wrap { max-width: 640px; } }

/* ===================== Ajustes v3.2 ===================== */

/* Enlaces de acción: ahora son botones secundarios con relleno que barre al pasar el cursor */
.link {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--r);
  border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  color: var(--accent-ink); font: 700 1rem/1.2 var(--head); text-decoration: none; white-space: nowrap;
  transition: color .35s cubic-bezier(.16,1,.3,1), border-color .35s, box-shadow .35s, transform .35s cubic-bezier(.16,1,.3,1);
  background-image: none; padding-bottom: 12px;
}
.link::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.link::after { content: "\2192"; margin-left: 0; display: inline-block; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.link:hover, .link:focus-visible { color: var(--on-accent); border-color: var(--accent); box-shadow: 0 12px 26px -16px var(--accent); background-size: auto; }
.link:hover::before, .link:focus-visible::before { transform: scaleX(1); }
.link:hover::after, .link:focus-visible::after { transform: translateX(5px); }
.link:active { transform: scale(.97); }
.note .link { font-size: .95rem; padding: 10px 16px; }

/* "Ver Rispy" dentro de las filas: mismo botón, reacciona al pasar por toda la fila */
.row-link .go {
  position: relative; isolation: isolate; overflow: hidden; justify-self: end;
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: var(--r);
  border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent-ink);
  transition: color .35s cubic-bezier(.16,1,.3,1), border-color .35s, box-shadow .35s;
}
.row-link .go::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.row-link .go::after { content: "\2192"; }
.row-link:hover .go, .row-link:focus-visible .go { color: var(--on-accent); border-color: var(--accent); box-shadow: 0 12px 26px -16px var(--accent); }
.row-link:hover .go::before, .row-link:focus-visible .go::before { transform: scaleX(1); }

/* Bloques translúcidos para lo prioritario.
   El blur suaviza las líneas y aves que pasan por detrás, así el texto nunca compite con el fondo. */
:root { --glass-bg: rgb(255 255 255 / .66); --glass-line: rgb(15 30 61 / .08); --glass-hi: rgb(255 255 255 / .7); --glass-shadow: 0 24px 48px -36px rgb(15 30 61 / .35); }


.glass, .rows, .steps > div, .three > div, .pairs > div, .faq, .ledger, .channels, .prose, .ptext,
.checks:not(.pairs .checks):not(.feature .checks), .price-box, form, .sector-wrap {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: calc(var(--r) * 1.6);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.price-box.accent { background: color-mix(in srgb, var(--accent-tint) 82%, transparent); }
.glass { padding: 40px 44px; }
.head-card { max-width: 46rem; }
.hero .head-card { max-width: none; }
.head-split .head-card { max-width: none; }
.page-head { padding-block: 48px 40px; }
.closing-card { padding: 48px 52px; display: grid; gap: 4px; }
.closing-card h2 { margin-bottom: 26px; }
.rows { padding: 4px 32px; }
.rows .row-link:first-child { border-top: 0; }
.rows .row-link:last-child { border-bottom: 0; }
.row-link:hover { padding-left: 10px; }
.steps > div { padding: 28px 28px 30px; border-top: 0; position: relative; }
.steps > div::before { content: ""; position: absolute; left: 28px; top: 0; width: 44px; height: 3px; background: var(--accent); border-radius: 0 0 3px 3px; }
.three > div, .pairs > div { padding: 28px 28px 30px; }
.faq { padding: 4px 32px; }
.faq details:first-child { border-top: 0; }
.faq details:last-child { border-bottom: 0; }
.ledger { padding: 4px 32px; }
.ledger li:first-child { border-top: 0; }
.ledger li:last-child { border-bottom: 0; }
.channels { padding: 32px; }
.prose { padding: 8px 44px 44px; }
.ptext { padding: 32px 34px; }
.checks:not(.pairs .checks):not(.feature .checks) { padding: 28px 32px 12px; }
.sector-wrap { padding: 4px 32px 24px; }
.sector-wrap .sector:first-child { border-top: 0; }

/* Rendimiento: en pantallas chicas el blur se reemplaza por un fondo casi opaco (mismo efecto de lectura, sin costo) */
@media (max-width: 700px) {
  .glass, .rows, .steps > div, .three > div, .pairs > div, .faq, .ledger, .channels, .prose, .ptext,
  .checks:not(.pairs .checks):not(.feature .checks), .price-box, form, .sector-wrap {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
  }
  .glass { padding: 28px 24px; }
  .closing-card { padding: 32px 24px; }
  .rows, .faq, .ledger, .sector-wrap { padding-inline: 20px; }
  .prose { padding: 4px 22px 30px; }
  .ptext { padding: 26px 22px; }
  .row-link .go { justify-self: start; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .rows, .steps > div, .three > div, .pairs > div, .faq, .ledger, .channels, .prose, .ptext, .price-box, form, .sector-wrap { background: color-mix(in srgb, var(--surface) 92%, transparent); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .rows, .steps > div, .three > div, .pairs > div, .faq, .ledger, .channels, .prose, .ptext, .price-box, form, .sector-wrap { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { .link::before, .row-link .go::before { transition: none; } }

/* ===================== Botones v4: sin flechas, relleno que nace del cursor y texto que rueda ===================== */
.btn, .link, .row-link .go { position: relative; isolation: isolate; overflow: hidden; }
.btn::before, .link::before, .row-link .go::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--fill, var(--ink));
  transform: none; clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
  transition: clip-path .65s cubic-bezier(.16,1,.3,1);
}
.btn:hover::before, .btn:focus-visible::before, .link:hover::before, .link:focus-visible::before,
.row-link:hover .go::before, .row-link:focus-visible .go::before { transform: none; clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.link::after, .row-link .go::after { content: none; }

.btn-primary { --fill: var(--ink); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent); color: var(--bg); box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--ink) 70%, transparent); }
.btn-ghost { --fill: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: transparent; color: var(--bg); border-color: var(--ink); }
.link { --fill: var(--accent); }
.row-link .go { --fill: var(--accent); }
.band .btn { --fill: #fff; }
.band .btn:hover { color: #0F1E3D; }

/* Texto que rueda: la etiqueta sube y entra una copia desde abajo */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { display: block; transition: transform .55s cubic-bezier(.16,1,.3,1); }
.roll::after { content: attr(data-t); content: attr(data-t) / ""; position: absolute; left: 0; right: 0; top: 100%; display: block; transition: transform .55s cubic-bezier(.16,1,.3,1); }
.btn:hover .roll > span, .btn:hover .roll::after, .btn:focus-visible .roll > span, .btn:focus-visible .roll::after,
.link:hover .roll > span, .link:hover .roll::after, .link:focus-visible .roll > span, .link:focus-visible .roll::after,
.row-link:hover .go .roll > span, .row-link:hover .go .roll::after { transform: translateY(-100%); }
.btn:hover { transform: none; }
.btn:active, .link:active { transform: scale(.97); }
.ask::after { content: none; }
@media (prefers-reduced-motion: reduce) {
  .btn::before, .link::before, .row-link .go::before, .roll > span, .roll::after { transition: none; }
}
/* páginas legales */
.legal h3 { font-size: 1.1rem; margin: 26px 0 8px; letter-spacing: -.01em; }
.legal ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.legal-nav { font-weight: 600; }
.legal-date { font-size: .9rem; color: #3E4660 !important; margin-top: -6px; }
/* artículos: guías y comparativas (contenido/articulos/) */
.art-meta { margin-top: 14px; font-size: .95rem; color: var(--ink-2); }
.article h2 { font-size: 1.6rem; margin: 52px 0 14px; scroll-margin-top: 110px; }
.article h3 { font-size: 1.2rem; margin: 30px 0 10px; letter-spacing: -.01em; scroll-margin-top: 110px; }
.article h4 { font-size: 1.05rem; margin: 0 0 8px; }
.article > :first-child { margin-top: 0; }
.article ul, .article ol { margin: 12px 0 0; padding-left: 22px; color: var(--ink-2); display: grid; gap: 6px; }
.article ul + p, .article ol + p, .article div + p { margin-top: 16px; }
.article strong { color: var(--ink); }
.article a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.article blockquote { margin: 24px 0; padding: 16px 22px; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: 0 var(--r) var(--r) 0; color: var(--ink); }
.article .toc { margin: 24px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.article .toc p { font-family: var(--head); font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.article .toc ol { margin: 0; gap: 2px; }
.article .toc a { text-decoration: none; }
.article .highlight-box, .article .warning-box, .article .danger-box, .article .success-box, .article .fix {
  margin: 24px 0; padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); color: var(--ink-2); }
.article .highlight-box { background: var(--accent-tint); border-color: #F6D2B6; border-left-color: var(--accent); }
.article .warning-box { border-left-color: #C98A00; }
.article .danger-box { border-left-color: #C2412D; }
.article .success-box { border-left-color: #2F8F5B; }
.article .highlight-box p, .article .warning-box p, .article .danger-box p, .article .success-box p { margin: 0; }
.article .error-card { margin: 22px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.article .error-card h3 { margin-top: 0; display: flex; gap: 10px; align-items: center; }
.article .error-num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .9rem; }
.article .error-card .fix { margin: 14px 0 0; border-left-color: #2F8F5B; }
.article .versus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.article .versus > div { padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.article .versus .after { border-color: #F6D2B6; background: var(--accent-tint); }
.article .sources { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.art-table { margin: 22px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.art-table table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.art-table th { text-align: left; padding: 12px 16px; background: var(--ink); color: #fff; font-family: var(--head); font-weight: 600; }
.art-table td { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.art-table tr:nth-child(even) td { background: var(--bg); }
.vs-table td.yes::before { content: "✓ "; color: #2F8F5B; font-weight: 700; }
.vs-table td.no { color: #A13A28; }
.vs-table td.mid { color: #8A6500; }
.vs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 8px; }
.vs-col { padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.vs-col p { margin: 0; }
.vs-col ul { margin-top: 8px; }
.vs-liberty { border-color: #F6D2B6; background: var(--accent-tint); }
.art-note { margin-top: 36px; font-size: .9rem; }
@media (max-width: 720px) { .vs-pair, .article .versus { grid-template-columns: 1fr; } }
.head-card:has(.art-meta) h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
