/* =============================================================
   TPB Multiservicios — hoja de estilos
   1. Tokens  2. Fuentes y base  3. Utilidades  4. Cabecera
   5. Botones  6. Portada  7. Páginas interiores  8. Formulario
   9. Pie, barra móvil, cookies  10. Responsive  11. Motion
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --paper: #F4F6F3;
  --paper-2: #E8ECE6;
  --white: #FFFFFF;
  --ink: #15212C;
  --ink-2: #3B4A58;
  --ink-mute: #66737F;
  --navy: #243648;
  --navy-deep: #1B2938;
  --green: #2B7F37;
  --green-bright: #4CAF50;
  --green-deep: #236A2E;
  --green-tint: #E2F2E4;
  --pool: #0B6E8E;
  --pool-deep: #095A75;
  --pool-tint: #DCEEF4;
  --wa: #1F8F4D;
  --line: rgba(21, 33, 44, .14);
  --line-strong: rgba(21, 33, 44, .3);
  --tone: var(--green);
  --tone-deep: var(--green-deep);
  --tone-tint: var(--green-tint);

  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --text-sm: .9rem;
  --text-base: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + .4vw, 1.3rem);
  --text-h3: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  --text-h2: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --text-h1: clamp(2.3rem, 1.6rem + 3vw, 4.4rem);
  --text-hero: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1200px;
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);
  --space-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 24px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --duration-fast: 160ms;
  --duration: 320ms;
  --header-h: 72px;
}
.tone-pool { --tone: var(--pool); --tone-deep: var(--pool-deep); --tone-tint: var(--pool-tint); }
.tone-green { --tone: var(--green); --tone-deep: var(--green-deep); --tone-tint: var(--green-tint); }

/* 2. Fuentes y base ------------------------------------------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/HankenGrotesk.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/HankenGrotesk-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--sans); font-size: var(--text-base); line-height: 1.6; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; font-variation-settings: "opsz" 96; }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: 600; letter-spacing: -.01em; }
ul, ol { padding-left: 1.2rem; }
::selection { background: var(--green-bright); color: var(--white); }
:focus-visible { outline: 3px solid var(--tone); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: var(--white); z-index: 9999; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* 3. Utilidades ----------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 760px; }
.section-head { max-width: 62ch; margin-bottom: var(--space-block); }
.section-head p { margin-top: .75rem; font-size: var(--text-lg); color: var(--ink-2); }
.lead { font-size: var(--text-lg); color: var(--ink-2); }
.more-link { margin-top: 1.5rem; }
.more-link a, .prose a, .hint a, .field-check a, .contact-data a, .guide-cta a:not(.btn), figcaption a { color: var(--tone-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color var(--duration-fast); }
.more-link a:hover, .prose a:hover, .hint a:hover { color: var(--ink); }
.btn-row, .hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hint { font-size: var(--text-sm); color: var(--ink-mute); }

/* 4. Cabecera -------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { flex: none; }
.brand img { height: 40px; width: auto; }
.main-nav { display: none; margin-left: .5rem; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; padding: 0; }
.main-nav a { display: inline-block; white-space: nowrap; padding: .5rem .75rem; border-radius: var(--radius-sm); font-weight: 600; color: var(--ink-2); transition: color var(--duration-fast), background var(--duration-fast); }
.main-nav a:hover { color: var(--ink); background: var(--paper-2); }
.main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green-bright); border-radius: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.header-actions .btn-phone span, .header-actions .btn-quote { display: none; }
.menu { position: relative; }
.menu > summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--paper-2); }
.burger { display: grid; gap: 5px; width: 22px; }
.burger i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--duration) var(--ease-out), opacity var(--duration-fast); }
.menu[open] .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] .burger i:nth-child(2) { opacity: 0; }
.menu[open] .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel { position: fixed; inset: var(--header-h) 0 0 0; z-index: 5; overflow: auto; background: var(--paper); padding: 1.25rem var(--gutter) 6rem; border-top: 1px solid var(--line); }
.menu-primary, .menu-services { list-style: none; padding: 0; }
.menu-primary a { display: block; padding: .75rem 0; font-family: var(--display); font-size: 1.5rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.menu-label { margin: 1.5rem 0 .25rem; font-weight: 600; color: var(--ink-mute); }
.menu-services { display: grid; gap: .1rem; }
.menu-services a { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; color: var(--ink-2); }
.menu-services .icon { color: var(--green); }
.menu-contact { display: grid; gap: .5rem; margin-top: 1.5rem; }

/* 5. Botones --------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; line-height: 1.2; border: 1.5px solid transparent; transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #197a40; }
.btn-lg { padding: .9rem 1.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.tone-pool .btn-primary { background: var(--pool); }
.tone-pool .btn-primary:hover { background: var(--pool-deep); }

/* 6. Portada --------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) var(--space-section); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-title { font-size: var(--text-hero); line-height: .98; max-width: 14ch; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line-in { display: block; animation: lineUp .9s var(--ease-out) both; animation-delay: calc(.08s + var(--i) * .1s); }
.hero-title .line:nth-child(2) .line-in { color: var(--pool); }
.hero-deck { margin-top: 1.5rem; max-width: 56ch; font-size: var(--text-lg); color: var(--ink-2); animation: fadeIn .8s .45s var(--ease-out) both; }
.hero-cta { margin-top: 1.75rem; animation: fadeIn .8s .55s var(--ease-out) both; }
.hero-trust { list-style: none; padding: 0; margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: var(--text-sm); color: var(--ink-2); animation: fadeIn .8s .65s var(--ease-out) both; }
.hero-trust li { display: inline-flex; align-items: center; gap: .35rem; }
.hero-trust .icon { color: var(--green); }
.hero-media { animation: paneIn 1s .2s var(--ease-out) both; }
.video-pane { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-deep); aspect-ratio: 540 / 885; max-height: 72vh; margin-inline: auto; box-shadow: 0 30px 60px -30px rgba(21,33,44,.45); }
.video-pane video { width: 100%; height: 100%; object-fit: cover; }
.photo-pane { position: relative; width: min(100%, calc(72vh * 3 / 4)); aspect-ratio: 3 / 4; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; background: var(--pool-tint); box-shadow: 0 30px 60px -30px rgba(21,33,44,.45); }
.photo-pane img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption, .product-media figcaption, .inline-video figcaption { margin-top: .75rem; font-size: var(--text-sm); color: var(--ink-mute); text-align: center; }
@keyframes lineUp { from { transform: translateY(110%); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes paneIn { from { opacity: 0; transform: scale(.97) translateY(12px); } }

.ledger { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.ledger-groups { display: grid; gap: 2.5rem 3rem; }
.group-title { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--tone-deep); padding-bottom: .5rem; border-bottom: 2px solid var(--tone); }
.group-blurb { margin: .5rem 0 .25rem; color: var(--ink-mute); font-size: var(--text-sm); }
.ledger-list { list-style: none; padding: 0; }
.ledger-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem .5rem; margin-inline: -.5rem; border-bottom: 1px solid var(--line); border-radius: var(--radius-sm); transition: background var(--duration-fast), padding-left var(--duration) var(--ease-out); }
.ledger-row:hover, .ledger-row:focus-visible { background: var(--tone-tint); padding-left: .9rem; }
.row-icon { width: 1.75rem; height: 1.75rem; color: var(--tone); }
.row-text { display: grid; gap: .15rem; }
.row-name { font-family: var(--display); font-size: clamp(1.15rem, 1.05rem + .6vw, 1.5rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.row-short { color: var(--ink-mute); font-size: var(--text-sm); }
.row-go { color: var(--ink-mute); transition: transform var(--duration) var(--ease-out), color var(--duration-fast); }
.ledger-row:hover .row-go { transform: translateX(4px); color: var(--tone-deep); }

.feature { background: var(--navy); color: var(--white); padding-block: var(--space-section); }
.feature-grid { display: grid; gap: 2.5rem; align-items: center; }
.feature-photo img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-copy h2 { color: var(--white); }
.feature-copy > p { margin-top: 1rem; color: rgba(255,255,255,.82); font-size: var(--text-lg); max-width: 52ch; }
.specs { margin-top: 1.75rem; }
.specs > div { display: flex; gap: 1rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px dashed rgba(255,255,255,.25); }
.specs dt { color: rgba(255,255,255,.7); flex: none; }
.specs dt::after { content: ""; }
.specs dd { margin-left: auto; text-align: right; font-weight: 600; }
.specs-dark > div { border-bottom-color: var(--line-strong); }
.specs-dark dt { color: var(--ink-mute); }
.price-line { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.price-from { font-family: var(--display); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.price-note { color: rgba(255,255,255,.7); }
.page-product .price-note { color: var(--ink-mute); }
.feature .btn-row { margin-top: 1.5rem; }

.admins { padding-block: var(--space-section); background: var(--paper-2); }
.admins-grid { display: grid; gap: 2rem; }
.admins-grid > div > p { margin-top: 1rem; font-size: var(--text-lg); color: var(--ink-2); max-width: 48ch; }
.commit-list { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.commit-list li { padding-left: 1.25rem; border-left: 3px solid var(--green-bright); color: var(--ink-2); }
.commit-list strong { color: var(--ink); display: block; font-family: var(--display); font-size: 1.15rem; margin-bottom: .2rem; }
.admins-more { grid-column: 1 / -1; }

.training { padding-block: var(--space-section); border-top: 1px solid var(--line); background: var(--paper-2); }
.training-page { padding-block: var(--space-block) var(--space-section); }
.course-grid { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.course-card { display: flex; flex-direction: column; gap: .6rem; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.course-card h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem); }
.course-card > p { color: var(--ink-2); }
.course-card .check-list { margin-top: .5rem; }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .25rem; }
.course-icon { width: 2.2rem; height: 2.2rem; color: var(--green); }
.course-date { padding: .3rem .75rem; border-radius: 999px; background: var(--green-tint); color: var(--green-deep); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.course-next { background: transparent; border-style: dashed; border-color: var(--line-strong); justify-content: center; }
.training-more { margin-top: 2rem; }
.training-note { margin-top: 1.25rem; max-width: 70ch; }
.founders { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.founder-list { list-style: none; padding: 0; display: grid; gap: 2rem; }
.founder { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: start; }
.founder img { width: 120px; height: 120px; border-radius: 28px; object-fit: cover; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--green-bright); }
.founder h3 { font-size: 1.4rem; }
.founder-role { margin: .2rem 0 .6rem; font-weight: 600; color: var(--green-deep); }
.founder-text > p:last-child { color: var(--ink-2); max-width: 46ch; }
.zone { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.zone-grid { display: grid; gap: 2rem; }
.zone-grid > div > p { margin-top: 1rem; color: var(--ink-2); font-size: var(--text-lg); max-width: 50ch; }
.towns { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-content: start; }
.towns li { padding: .4rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--text-sm); color: var(--ink-2); background: var(--white); }
.towns li:last-child { border-style: dashed; color: var(--ink-mute); }

.guides-teaser { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.guide-rows { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.guide-rows a { display: grid; gap: .25rem; padding: 1.1rem .5rem; margin-inline: -.5rem; border-bottom: 1px solid var(--line); border-radius: var(--radius-sm); transition: background var(--duration-fast); }
.guide-rows a:hover { background: var(--pool-tint); }
.guide-rows strong { font-family: var(--display); font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.guide-cat { font-size: var(--text-sm); font-weight: 600; color: var(--pool-deep); }
.guide-meta { font-size: var(--text-sm); color: var(--ink-mute); }
.guide-rows-lg a { padding-block: 1.5rem; }
.guide-rows-lg strong { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.9rem); }

.contact { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }

/* 7. Páginas interiores -------------------------------------- */
.page-head { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(2.5rem, 2rem + 2vw, 4rem); background: linear-gradient(180deg, var(--tone-tint), var(--paper)); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.page-head .deck { margin-top: 1.25rem; max-width: 60ch; font-size: var(--text-lg); color: var(--ink-2); }
.crumbs { margin-bottom: 1.25rem; font-size: var(--text-sm); color: var(--ink-mute); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-strong); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.meta-chips { list-style: none; padding: 0; margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.meta-chips li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: var(--text-sm); color: var(--ink-2); }
.meta-chips .icon { color: var(--tone); }
.service-layout { display: grid; gap: 3rem; padding-block: var(--space-block) var(--space-section); align-items: start; }
.service-main > section + section { margin-top: var(--space-block); }
.service-main h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 1rem; }
.intro p + p { margin-top: 1rem; }
.check-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .icon { color: var(--tone); margin-top: .2em; }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; gap: .25rem 1rem; }
.steps li::before { content: counter(step); grid-row: 1 / span 2; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--tone); color: var(--white); font-family: var(--display); font-weight: 700; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--ink-2); }
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 0; font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); font-weight: 500; transition: transform var(--duration) var(--ease-out), background var(--duration-fast), color var(--duration-fast); }
.faq[open] summary::after { transform: rotate(45deg); background: var(--tone); border-color: var(--tone); color: var(--white); }
.faq summary:hover::after { border-color: var(--tone); }
.faq-a { padding: 0 0 1.25rem; color: var(--ink-2); max-width: 65ch; }
.related { list-style: none; padding: 0; display: grid; gap: .5rem; }
.related a { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-weight: 600; transition: border-color var(--duration-fast), transform var(--duration) var(--ease-out); }
.related a:hover { border-color: var(--tone); transform: translateX(4px); }
.related .icon { color: var(--tone); width: 1.5rem; height: 1.5rem; }
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: 0 24px 48px -32px rgba(21,33,44,.35); }
.quote-card h2 { font-size: 1.35rem; }
.quote-card > p { margin: .75rem 0 1.25rem; color: var(--ink-2); }
.quote-card .btn + .btn { margin-top: .5rem; }
.quote-points { list-style: none; padding: 0; margin-top: 1.25rem; display: grid; gap: .4rem; font-size: var(--text-sm); color: var(--ink-2); }
.quote-points li { display: flex; gap: .5rem; align-items: center; }
.quote-points .icon { color: var(--tone); }
.cta-band { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.cta-inner { display: grid; gap: 1.5rem; }
.cta-inner h2 { color: var(--white); max-width: 22ch; }
.cta-inner p { margin-top: .75rem; color: rgba(255,255,255,.8); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-content: start; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* producto */
.product-grid { display: grid; gap: 2.5rem; align-items: center; }
.head-product { padding-bottom: var(--space-block); }
.head-product h1 { max-width: 18ch; font-size: var(--text-h1); }
.product-copy .btn-row { margin-top: 1.75rem; }
.product-copy .price-line { margin-top: 1.25rem; }
.product-media .video-pane { max-height: 64vh; }
.product-section { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.two-col { display: grid; gap: 3rem; }
.two-col h2 { margin-bottom: .75rem; }
.two-col > div > p { color: var(--ink-2); }
.times { width: 100%; border-collapse: collapse; margin-top: 1.25rem; }
.times th, .times td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.times th { font-weight: 500; color: var(--ink-2); }
.times td { text-align: right; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.product-still { margin-top: 2rem; }
.product-still img { border-radius: var(--radius-lg); width: 100%; max-height: 560px; object-fit: cover; object-position: center 62%; }
.video-pane.is-916 { aspect-ratio: 9 / 16; }
.legal-list { display: grid; gap: 1.25rem; }
.legal-list > div { padding: 1.25rem 1.5rem; background: var(--white); border-left: 4px solid var(--pool); border-radius: 0 var(--radius) var(--radius) 0; }
.legal-list dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: .35rem; }
.legal-list dd { color: var(--ink-2); }
.price-grid { display: grid; gap: 3rem; align-items: start; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: 0 24px 48px -32px rgba(21,33,44,.35); }
.price-big { margin: 1rem 0 1.25rem; font-family: var(--display); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.price-big span { display: block; margin-top: .5rem; font-family: var(--sans); font-size: var(--text-base); font-weight: 400; color: var(--ink-mute); letter-spacing: 0; }
.price-card .btn { margin-top: 1.5rem; }
.price-card .hint { margin-top: 1rem; }
.faq-section h2 { margin-bottom: 1rem; }

/* guías y legales (prosa) */
.head-guide h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); max-width: 26ch; }
.head-guide .guide-cat { margin-bottom: .75rem; }
.byline { margin-top: 1.25rem; font-size: var(--text-sm); color: var(--ink-mute); }
.prose { padding-block: var(--space-block); }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin: 2.5rem 0 1rem; }
.prose h3 { margin: 1.75rem 0 .6rem; }
.prose p { margin-bottom: 1rem; }
.prose section > p:first-of-type { font-size: var(--text-lg); }
.prose ul, .prose ol { margin: 0 0 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose ul:not([class]) li::marker { color: var(--pool); }
.prose .callout { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--pool-tint); border-radius: var(--radius); }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .feature-list { list-style: none; padding: 0; display: grid; gap: 1rem; margin-block: 1.5rem; }
.prose .feature-list li { padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.prose .feature-list h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.prose .feature-list p { margin: 0; color: var(--ink-2); font-size: var(--text-sm); }
.prose .price-list { list-style: none; padding: 0; display: grid; gap: 1rem; margin-block: 1.5rem; }
.prose .price-list li { display: grid; padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.prose .price-label { font-weight: 600; }
.prose .price-value { font-family: var(--display); font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.prose .price-note { font-size: var(--text-sm); color: var(--ink-mute); }
.prose .steps { margin-block: 1.5rem; }
.prose .steps h3 { margin: 0; }
.prose .steps p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--paper-2); font-weight: 600; }
.prose .faq summary { font-size: 1.05rem; }
.inline-video { margin: 1.5rem auto; max-width: 420px; }
.inline-video .video-pane { max-height: none; }
.inline-video.is-916 { max-height: none; }
.guide-cta { margin-block: var(--space-block) var(--space-section); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--navy); color: var(--white); border-radius: var(--radius-lg); }
.guide-cta h2 { color: var(--white); font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.guide-cta p { margin: .75rem 0 1.25rem; color: rgba(255,255,255,.82); }
.guide-cta .btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.page-legal .prose h2 { font-size: 1.4rem; }
.page-simple .page-head { min-height: 50vh; }
.page-simple .related { margin-top: 1.5rem; max-width: 420px; }

/* 8. Formulario ---------------------------------------------- */
.quote-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: var(--text-sm); }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); font: inherit; color: var(--ink); transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tone); box-shadow: 0 0 0 3px var(--tone-tint); }
.field input[type="file"] { padding: .55rem; border-style: dashed; }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; gap: 1rem; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.field-check input { width: 1.1rem; height: 1.1rem; margin-top: .25rem; accent-color: var(--green); }
.field-check label { font-weight: 400; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; }
.quote-form .btn-lg { justify-self: start; }
.contact-data h2 { font-size: 1.4rem; }
.contact-data h3 { margin-top: 1.5rem; font-size: 1.05rem; }
.contact-data h3 + p { display: flex; gap: .6rem; align-items: flex-start; margin-top: .5rem; }
.contact-data h3 + p .icon { color: var(--tone); margin-top: .25em; }
.contact-data address { font-style: normal; margin-top: 1rem; display: grid; gap: .6rem; }
.contact-data address p { display: flex; gap: .6rem; align-items: flex-start; }
.contact-data address p:first-child { display: block; }
.contact-data address .icon { color: var(--tone); margin-top: .25em; }
.contact-data address a { text-decoration: none; }
.contact-data address a:hover { text-decoration: underline; }
.contact-data .towns { margin-top: 1rem; }

/* 9. Pie, barra móvil, cookies ------------------------------ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding-block: var(--space-section) 1.5rem; margin-bottom: 64px; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand img { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { margin-top: 1.25rem; max-width: 46ch; }
.footer-brand address { font-style: normal; margin-top: 1.25rem; display: grid; gap: .5rem; }
.footer-brand address a, .footer-brand address > span { display: flex; gap: .6rem; align-items: flex-start; color: var(--white); }
.footer-brand address a:hover { text-decoration: underline; }
.footer-brand .icon { color: var(--green-bright); margin-top: .25em; }
.footer-col h2 { font-size: 1rem; color: var(--white); margin-bottom: .75rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: .35rem; font-size: var(--text-sm); color: rgba(255,255,255,.55); }
.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: var(--white); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: grid; justify-items: center; gap: .15rem; padding: .55rem .25rem .5rem; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.mobile-bar .icon { width: 1.4rem; height: 1.4rem; color: var(--green); }
.mobile-bar .is-main { background: var(--green); color: var(--white); }
.mobile-bar .is-main .icon { color: var(--white); }
.cookie { position: fixed; z-index: 70; left: 1rem; right: 1rem; bottom: calc(64px + 1rem); max-width: 520px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: 0 24px 48px -24px rgba(21,33,44,.4); font-size: var(--text-sm); }
.cookie[hidden] { display: none; }
.cookie-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .75rem; }

/* 10. Responsive ---------------------------------------------- */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .ledger-groups { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .video-pane { max-height: 70vh; }
  .commit-list { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr auto; align-items: center; }
  .two-col, .price-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.3fr .7fr; }
  .product-grid { grid-template-columns: 1.1fr .9fr; }
  .zone-grid, .admins-grid { grid-template-columns: 1fr 1.2fr; }
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid-lg { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 150px 1fr; }
  .founder img { width: 150px; height: 150px; }
  .prose .feature-list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .prose .price-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .main-nav { display: block; }
  .header-actions .btn-quote { display: inline-flex; }
  .main-nav a { padding: .5rem .55rem; }
  .header-row { gap: .75rem; }
  .main-nav { margin-left: 0; }
  .menu { display: none; }
  .brand img { height: 40px; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 4rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .service-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; }
  .founder-list { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
  .quote-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .site-footer { margin-bottom: 0; }
  .mobile-bar { display: none; }
  .cookie { bottom: 1.25rem; left: auto; right: 1.25rem; }
  .ledger-groups { gap: 3rem 4rem; }
}
@media (min-width: 1280px) {
  .header-actions .btn-phone span { display: inline; }
  .main-nav a { padding: .5rem .75rem; }
  .header-row { gap: 1.5rem; }
  .main-nav { margin-left: .5rem; }
  .brand img { height: 44px; }
  .hero-grid { grid-template-columns: 1.3fr .7fr; }
}
@media (hover: none) {
  .ledger-row:hover { padding-left: .5rem; }
}

/* 11. Motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title .line-in, .hero-deck, .hero-cta, .hero-trust, .hero-media { animation-duration: .01s; animation-delay: 0s; }
}
@media print {
  .site-header, .mobile-bar, .cookie, .cta-band, .quote-card, .site-footer nav { display: none; }
}
