:root {
  --blue: #164bd8;
  --teal: #00a59f;
  --orange: #ff6b16;
  --navy: #061d39;
  --ink: #081c39;
  --muted: #55627a;
  --pale: #edf8ff;
  --line: #dce5ef;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --edge: max(24px, calc((100% - 1280px) / 2));
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* base */
* { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-behavior: smooth; overflow-x: clip }
body { margin: 0; overflow-x: clip; background: #fff; color: var(--ink); font: 500 15px/1.55 var(--sans) }
img { max-width: 100% }
a { color: inherit; text-decoration: none }
button { font: inherit; cursor: pointer }
section[id] { scroll-margin-top: 72px }
.wrap { width: min(1280px, calc(100% - 48px)); margin-inline: auto }
.section { padding: 88px 0 }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--blue); color: #fff }
.skip-link:focus { top: 16px }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0 }
.eyebrow { margin: 0 0 13px; color: var(--blue); font-size: 12px; letter-spacing: .1em; font-weight: 800 }

/* buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 12px 21px;
  border: 1px solid var(--blue); border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 800;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.button b { font-size: 18px; line-height: 0; transition: transform 180ms var(--ease) }
.button:disabled { opacity: .6; cursor: progress }
.button-small { min-height: 42px; padding: 9px 18px; font-size: 13px }
.button-outline { background: #fff; color: var(--ink); border-color: #bcc9d9 }
.button-white { background: #fff; border-color: #fff; color: var(--blue) }
.button-ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff }

/* navigation */
.site-header { height: 72px; position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); border-bottom: 1px solid transparent; backdrop-filter: blur(12px); transition: border-color 180ms var(--ease) }
.site-header.is-scrolled { border-color: var(--line) }
.header-inner { height: 72px; width: min(1280px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; justify-content: space-between }
.logo { display: block; flex: none }
.logo img, .logo .logo-write { display: block; width: 140px; height: auto }
.site-nav { display: flex; align-items: center; gap: 31px; font-size: 14px; font-weight: 700 }
.site-nav a { position: relative; white-space: nowrap; padding: 5px 0; transition: color 180ms var(--ease) }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 180ms var(--ease) }
.menu-toggle { display: none }

/* hero: the supplied 16:9 artwork owns the complete section */
.hero { min-height: calc(100dvh - 72px); position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; background: var(--navy); padding: 68px var(--edge) }
.hero-background, .hero-scrim { position: absolute; inset: 0; width: 100%; height: 100% }
.hero-background { z-index: -2; object-fit: cover; object-position: center }
.hero-scrim { z-index: -1; background: linear-gradient(90deg, rgba(6, 29, 57, .88) 0%, rgba(6, 29, 57, .64) 36%, rgba(6, 29, 57, .12) 72%, rgba(6, 29, 57, .05) 100%) }
.hero h1, .section h2, .cta h2 { margin: 0; font-size: clamp(42px, 4.25vw, 64px); line-height: 1.08; letter-spacing: -.04em; word-spacing: .1em; font-weight: 800 }
.hero h1 { color: #fff }
.section h2 span { color: var(--blue) }
.hero h1 em, .section h2 em, footer em { color: var(--orange); font-style: normal }
.hero-copy { position: relative; z-index: 2; width: min(560px, 48%) }
.hero-copy > p { max-width: 475px; margin: 24px 0 26px; color: #eef5ff; font-size: 16px }
.actions { display: flex; gap: 11px; flex-wrap: wrap }
.hero .button-outline { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .7); color: #fff }
.facts { display: flex; flex-wrap: wrap; list-style: none; border-top: 1px solid rgba(255, 255, 255, .42) }
.facts span { white-space: nowrap }
.facts li { display: flex; align-items: center }
.facts strong { color: #fff; line-height: 1 }
.facts span { color: #eef5ff; font-weight: 800; line-height: 1.3 }

/* shared full-width section shells */
.services.wrap, .team.wrap { width: 100%; padding-inline: var(--edge) }
.services > *, .team > * { width: min(1280px, 100%); margin-inline: auto }
.section-top, .team-top { display: flex; justify-content: space-between; align-items: end; gap: 25px }

/* services */
.services { background: #fff }
.services-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px }
.service-card { min-height: 244px; position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 18px rgba(18, 47, 85, .045); transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease) }
.icon, .flow-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50% }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden }
.icon svg, .flow-icon svg, .form-benefits svg, .faq summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.flow-icon svg { width: 19px; height: 19px }
.section-note { max-width: 380px; margin: 0; color: var(--muted); font-size: 15px }
.blue { background: #e9efff; color: var(--blue) }
.teal { background: #e3f8f6; color: #00817c }
.orange { background: #fff0e6; color: #d4520a }
.navy { background: #e8edf3; color: var(--navy) }
.service-card h3 { margin: 34px 0 8px; font-size: 18px; line-height: 1.25; letter-spacing: -.025em }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6 }

/* system */
.system { padding: 80px var(--edge); background: var(--pale) }
.system .wrap { width: min(1280px, 100%) }
.system-intro { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: end }
.system-intro > p { margin: 0; color: var(--muted); font-size: 14px }
.system-demo { margin-top: 38px; background: #fff; border: 1px solid #deebf3; border-radius: 18px; overflow: hidden }
.flow { padding: 14px 10px 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid #e6eef6 }
.flow-step { --stage-color: var(--blue); min-width: 0; position: relative; padding: 10px 8px 18px; border: 0; background: transparent; color: var(--ink); text-align: center; display: flex; flex-direction: column; align-items: center; opacity: .62; transition: opacity 220ms var(--ease) }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 26px; color: #a8bad1; font-size: 18px }
.flow-step::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 3px; border-radius: 3px; background: var(--stage-color); transform: scaleX(0); transform-origin: left }
.flow-step[aria-selected="true"] { opacity: 1 }
.flow-step[aria-selected="true"]::before { transform: scaleX(1); transition: transform 300ms var(--ease) }
.system-demo.is-playing .flow-step[aria-selected="true"]::before { transform: scaleX(0); animation: stage-progress var(--stage-duration, 6s) linear forwards }
@keyframes stage-progress { to { transform: scaleX(1) } }
.flow-step:focus-visible { outline-offset: -3px }
.flow-step:nth-child(2), .flow-step:nth-child(7) { --stage-color: var(--teal) }
.flow-step:nth-child(3), .flow-step:nth-child(6) { --stage-color: var(--orange) }
.flow-step:nth-child(4) { --stage-color: var(--navy) }
.flow-icon { width: 36px; height: 36px; margin-bottom: 10px; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease) }
.flow-step[aria-selected="true"] .flow-icon { transform: scale(1.12); box-shadow: 0 0 0 5px #fff, 0 0 0 6px currentColor }
.flow-step b { font-size: 13px; line-height: 1.25 }
.flow-step small { color: var(--muted); font-size: 12px }
.stage-panel { --stage-color: var(--blue); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); gap: 40px; align-items: center; padding: 34px 36px 38px }
.stage-panel + .stage-panel { border-top: 1px solid #e6eef6 }
.js .stage-panel + .stage-panel { border-top: 0 }
.stage-panel.is-entering { animation: stage-in 420ms var(--ease) }
@keyframes stage-in { from { opacity: 0; transform: translateY(8px) } }
.stage-teal { --stage-color: #00817c }
.stage-orange { --stage-color: #d4520a }
.stage-navy { --stage-color: var(--navy) }
.stage-count { color: var(--stage-color); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase }
.stage-panel h3 { margin: 10px 0 10px; font-size: 26px; line-height: 1.15; letter-spacing: -.03em }
.stage-panel p { margin: 0; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.6 }
.stage-work { padding: 20px 22px; border-radius: 14px; background: var(--pale) }
.stage-work span { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.stage-work ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none }
.stage-work li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700 }
.stage-work li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--stage-color) }

/* compare */
.compare { background: #fff }
.compare-intro { text-align: center; max-width: 1000px; margin: 0 auto }
.compare-intro h2 { text-wrap: balance }
.compare-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1080px; margin-inline: auto }
.compare-card { padding: 34px 34px 36px; border-radius: 20px }
.compare-card h3 { margin: 0 0 22px; font-size: 22px; letter-spacing: -.02em }
.compare-card ul { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none }
.compare-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45 }
.compare-card svg { flex: none; width: 22px; height: 22px; margin-top: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.compare-before { background: #f3f5f8; color: var(--muted) }
.compare-before h3 { color: var(--ink) }
.compare-before svg { color: #b42318 }
.compare-after { background: var(--navy); color: #fff; position: relative; overflow: hidden; box-shadow: 0 24px 48px rgba(6, 29, 57, .18) }
.compare-after::before { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -120px; border-radius: 50%; background: var(--blue); opacity: .55 }
.compare-after > * { position: relative }
.compare-after svg { color: #3ee0d6 }
.compare-after .button { margin-top: 28px }

/* cases */
.cases { padding: 88px var(--edge); background: linear-gradient(180deg, #fff 0%, #f8fbff 100%) }
.cases-intro, .works { width: min(1280px, 100%); margin-inline: auto }
.cases-intro { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px }
.cases-intro > p { max-width: 380px; margin: 0; color: var(--muted); font-size: 15px }

/* works: carrusel deslizable por defecto; app.js lo convierte en rueda en escritorio */
.works-list { display: flex; gap: 22px; margin: 0; padding: 4px 0 26px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain }
.works-list::-webkit-scrollbar { display: none }
.work { flex: 0 0 min(460px, 82vw); scroll-snap-align: start }
.work img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 22px 44px -18px rgba(18, 47, 85, .35); user-select: none; -webkit-user-drag: none }
.work-caption { display: flex; flex-direction: column; gap: 3px; margin: 16px 0 0; font-size: 14px; color: var(--muted) }
.work-caption b { color: var(--ink); font-size: 17px; letter-spacing: -.01em }

.works.is-wheel { position: relative; width: auto; height: clamp(600px, 94svh, 920px); margin-inline: calc(var(--edge) * -1); overflow: hidden; user-select: none; -webkit-user-select: none }
.is-wheel .works-stage { position: absolute; inset: 0; cursor: grab; outline: none; touch-action: pan-y; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%) }
.is-wheel .works-stage:active { cursor: grabbing }
.is-wheel .works-stage:focus-visible { outline: 2px solid var(--blue); outline-offset: -6px; border-radius: 18px }
.is-wheel .works-list { position: absolute; top: 50%; left: 50%; display: block; padding: 0; overflow: visible; transform-style: preserve-3d }
.is-wheel .work { position: absolute; top: 0; left: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform }
.is-wheel .work-face { display: block; width: 100%; height: 100%; transform-origin: 50% 50% }
.is-wheel .work img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 26px 50px -22px rgba(6, 29, 57, .5) }
.is-wheel .work-caption { display: none }
.works-ring-label, .works-front, .works-index, .works-hint { position: absolute; pointer-events: none }
.works-ring-label { inset: 0; display: grid; place-items: center; margin: 0; color: var(--navy); font-weight: 800; letter-spacing: -.035em; line-height: 1 }
.works-ring-label span { text-align: center }
.works-ring-label em { display: block; color: var(--blue); font-size: 1.9em; font-style: normal }
.works-front { top: 50%; left: max(32px, 5%); margin: 0; transform: translateY(-50%); opacity: 0 }
.works-front b { display: block; color: var(--navy); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance }
.works-front span { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.45 }
.works-front i { display: block; margin-bottom: 14px; color: var(--blue); font-size: 12px; font-style: normal; font-weight: 800; letter-spacing: .08em }
.works-index { top: 9%; right: max(32px, 4%); margin: 0; padding: 0; list-style: none; text-align: right; pointer-events: auto }
.works-index button { padding: 3px 0; border: 0; background: none; color: #8a96a8; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.6; cursor: pointer; transition: color 200ms var(--ease) }
.works-index button:hover, .works-index button[aria-current="true"] { color: var(--navy) }
.works-index button[aria-current="true"] { font-weight: 800 }
.works-index button[aria-current="true"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--orange) }
.works-index button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px }
.works-hint { bottom: 3.5%; left: 50%; margin: 0; transform: translateX(-50%); color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .02em; white-space: nowrap }

/* trust strip */
.trust-strip { padding: 22px var(--edge); background: var(--navy); color: #fff }
.trust-inner { width: min(1280px, 100%); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap }
.trust-inner p { margin: 0; color: #b5c1d0; font-size: 13px; font-weight: 700; letter-spacing: .04em }
.trust-inner ul { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0; padding: 0; list-style: none }
.trust-inner li { display: flex; align-items: baseline; gap: 10px }
.trust-inner b { font-size: 17px; letter-spacing: -.01em }
.trust-inner li + li::before { content: "·"; margin-right: 12px; color: #7fa6ff }

/* process */
.process { background: #fff }
.process-steps { margin: 44px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px }
.process-steps li { padding: 26px 24px 28px; border-radius: 17px; background: var(--pale); position: relative }
.step-number { display: block; margin-bottom: 30px; color: var(--blue); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.04em }
.process-steps li:nth-child(2) .step-number { color: var(--teal) }
.process-steps li:nth-child(3) .step-number { color: #d4520a }
.process-steps li:nth-child(4) .step-number { color: var(--navy) }
.process-steps h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.02em }
.process-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6 }

/* faq */
.faq { background: var(--pale) }
.faq-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start }
.faq-inner .section-note { margin-top: 20px }
.faq-list { border-top: 1px solid #cfdcea }
.faq details { border-bottom: 1px solid #cfdcea }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; cursor: pointer; list-style: none }
.faq summary::-webkit-details-marker { display: none }
.faq summary svg { flex: none; color: var(--blue); transition: transform 220ms var(--ease) }
.faq details[open] summary svg { transform: rotate(45deg) }
.faq details p { margin: -6px 0 22px; max-width: 640px; color: var(--muted); font-size: 15px; line-height: 1.65 }
.faq summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px }

/* team: background is clipped, transparent person cutout intentionally is not */
.team { padding-top: 82px; background: #fff }
.team-top { align-items: center }
.team-lead { max-width: 600px; margin: 18px 0 34px; color: var(--muted); font-size: 14px }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px }
.team-card { min-width: 0; position: relative }
.portrait { height: 330px; position: relative; overflow: visible; isolation: isolate }
.portrait-bg { position: absolute; z-index: 0; inset: 24px 0 0; width: 100%; height: calc(100% - 24px); object-fit: cover; clip-path: inset(0 round 18px 18px 0 0) }
.portrait-person { position: absolute; z-index: 1; left: -6%; bottom: 0; width: 112%; height: 100%; max-width: none; object-fit: contain; object-position: center bottom; pointer-events: none; filter: drop-shadow(0 16px 14px rgba(6, 29, 57, .14)); transition: transform 220ms var(--ease) }
.team-card h3 { margin: 14px 0 1px; font-size: 17px; letter-spacing: -.02em }
.team-card strong { color: var(--blue); font-size: 12px }
.team-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5 }

/* call to action */
.cta { overflow: hidden; position: relative; background: var(--blue); color: #fff; padding: 78px var(--edge) }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 999px }
.cta::before { width: 420px; height: 420px; right: -100px; top: -192px; background: var(--teal) }
.cta::after { width: 240px; height: 210px; right: 18%; bottom: -145px; background: var(--orange) }
.cta-inner { width: min(1280px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; z-index: 1 }
.cta .eyebrow { color: #fff }
.cta h2 { font-size: clamp(34px, 3.8vw, 54px) }
.cta p:not(.eyebrow) { margin: 18px 0 0; font-size: 15px }
.cta-actions { display: flex; flex-direction: column; gap: 12px; flex: none }

/* contact form */
.contact-form-section { padding: 88px var(--edge); background: #f5faff }
.contact-form-wrap { width: min(1040px, 100%); margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start }
.contact-form-copy h2 { margin: 0; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -.04em; word-spacing: .1em }
.contact-form-copy > p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 15px }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 30px; border-radius: 18px; background: #fff; box-shadow: 0 18px 38px rgba(18, 47, 85, .09) }
.form-field { display: grid; gap: 7px }
.form-field-full, .form-message, .contact-form .button { grid-column: 1 / -1 }
.form-field label { font-size: 13px; font-weight: 800 }
.form-field small { color: var(--muted); font-size: 12px }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid #bdcce0; border-radius: 9px; padding: 12px 13px; background: #fff; color: var(--ink); font: inherit; outline: 0; transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease) }
.form-field textarea { min-height: 122px; resize: vertical }
.form-field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23164bd8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; padding-right: 40px; cursor: pointer }
.form-field select:invalid { color: var(--muted) }
.form-field input::placeholder, .form-field textarea::placeholder { color: #8391a7 }
.form-benefits { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 700 }
.form-benefits li { display: flex; align-items: center; gap: 10px }
.form-benefits svg { color: var(--teal) }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 75, 216, .14) }
.form-field input:user-invalid, .form-field textarea:user-invalid, .form-field select:user-invalid { border-color: #b42318 }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.form-consent { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.5 }
.form-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue) }
.form-consent a { color: var(--blue); text-decoration: underline }
.form-message { min-height: 1.35em; margin: 0; color: var(--blue); font-size: 13px; font-weight: 700 }
.form-message:empty { display: none }
.form-message.is-error { color: #b42318 }

/* paso 2: calendario de reserva */
.form-step-label { grid-column: 1 / -1; margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase }
.booking-step { padding: 26px 26px 30px; border-radius: 18px; background: #fff; box-shadow: 0 18px 38px rgba(18, 47, 85, .09) }
.booking-back { margin-bottom: 6px; padding: 6px 0; border: 0; background: none; color: var(--blue); font-size: 13px; font-weight: 800; cursor: pointer }
.booking-embed { min-height: 480px; margin-top: 14px }
.booking-embed iframe { width: 100%; border: 0 }
.booking-loading { display: grid; place-items: center; min-height: 480px; margin: 0; color: var(--muted); font-size: 14px }
.booking-fallback { margin: 14px 0 0; color: var(--muted); font-size: 13px }
.booking-fallback a { color: var(--blue); font-weight: 700; text-decoration: underline }

/* contact channels */
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none }
.contact-links a { display: inline-flex; padding: 9px 16px; border: 1px solid #bcc9d9; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; transition: border-color 180ms var(--ease), color 180ms var(--ease) }
.contact-links-footer { grid-column: 1 / -1; margin: 0 }
.contact-links-footer a { border-color: rgba(255, 255, 255, .28); background: transparent; color: #fff; font-size: 13px }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(6, 29, 57, .25); transition: transform 180ms var(--ease) }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor }
.mobile-cta { display: none }
.count { font-variant-numeric: tabular-nums }

/* footer */
footer { padding: 54px 0 30px; background: var(--navy); color: #fff }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 25px; align-items: center }
.footer-logo img { filter: brightness(0) invert(1); opacity: .96 }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 19px; font-size: 13px }
.footer-inner p { margin: 0; text-align: right; font-weight: 700; font-size: 15px }
.footer-inner p span { color: #7fa6ff }
.footer-inner small { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); color: #b5c1d0; font-size: 12px }

/* entrance motion: only hidden when JS is running, so content never disappears without it */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); transition-delay: var(--reveal-delay, 0ms) }
.js .reveal-image { clip-path: inset(0 0 100% 0); transform: translateY(12px); transition: clip-path 680ms var(--ease), opacity 460ms var(--ease), transform 680ms var(--ease) }
.js .reveal-card { transform: translateY(24px) scale(.985) }
.js .reveal.is-visible { opacity: 1; transform: none }
.js .reveal-image.is-visible { clip-path: inset(0 0 0 0) }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--blue) }
  .site-nav a:hover::after { transform: scaleX(1) }
  .button:hover { transform: translateY(-2px); background: #103fc3; box-shadow: 0 10px 20px rgba(22, 75, 216, .18) }
  .button:hover b { transform: translateX(3px) }
  .button-outline:hover { background: #f3f7fc; border-color: var(--blue) }
  .button-white:hover { background: #fff; color: var(--navy); box-shadow: 0 10px 22px rgba(6, 29, 57, .2) }
  .button-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff }
  .service-card:hover { transform: translateY(-5px); border-color: #bacaf0; box-shadow: 0 16px 30px rgba(18, 47, 85, .11) }
  .team-card:hover .portrait-person { transform: translateY(-5px) }
  .contact-links a:hover { border-color: var(--blue); color: var(--blue) }
  .contact-links-footer a:hover { border-color: #fff; color: #fff }
  .whatsapp-float:hover { transform: scale(1.06) }
}
button:active, .button:active { transform: scale(.98) }

/* desktop: the reference has generous scale, not empty margins */
@media (min-width: 761px) {
  :root { --edge: max(32px, calc((100% - 1440px) / 2)) }
  .wrap, .header-inner { width: min(1440px, calc(100% - 64px)) }
  .services > *, .team > *, .cases-intro, .works { width: min(1440px, 100%) }
  .hero { padding-block: 54px }
  .hero-copy { width: min(620px, 47%) }
  .hero h1 { font-size: clamp(42px, 4.2vw, 64px); line-height: 1.05; letter-spacing: -.045em }
  .hero-copy > p { max-width: 580px; margin: 26px 0 30px; font-size: 18px; line-height: 1.55 }
  .hero .button { min-height: 58px; padding: 14px 28px; font-size: 15px }
  .facts { gap: 20px 32px; margin: 38px 0 0; padding: 24px 0 0 }
  .facts li { gap: 10px }
  .facts strong { font-size: 34px }
  .facts span { font-size: 12px }
  .section { padding-block: 112px }
  .section h2 { font-size: clamp(52px, 4.5vw, 72px); line-height: 1.04 }
  .services-grid { margin-top: 48px; gap: 20px }
  .service-card { min-height: 290px; padding: 29px }
  .service-card h3 { margin-top: 52px; font-size: 22px }
  .service-card p { font-size: 15px }
  .icon { width: 52px; height: 52px; font-size: 25px }
  .system { padding-block: 112px }
  .system .wrap { width: min(1440px, 100%) }
  .system-intro { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 80px }
  .system-intro > p { font-size: 16px; line-height: 1.6 }
  .system-demo { margin-top: 52px; border-radius: 24px }
  .flow { padding: 22px 16px 0 }
  .flow-step { padding: 10px 14px 24px }
  .flow-step:not(:last-child)::after { top: 32px; right: -10px; font-size: 22px }
  .flow-icon { width: 48px; height: 48px; margin-bottom: 14px }
  .flow-step b { font-size: 14px }
  .stage-panel { padding: 44px 48px 48px; gap: 64px }
  .stage-panel h3 { font-size: 32px }
  .stage-panel p { font-size: 17px }
  .cases { padding-block: 118px }
  .process-steps { margin-top: 56px; gap: 24px }
  .process-steps li { padding: 30px 28px 34px }
  .team { padding-top: 112px }
  .team-lead { max-width: 730px; font-size: 16px; margin: 22px 0 42px }
  .team-grid { gap: 26px }
  .portrait { height: 400px }
  .team-card h3 { font-size: 20px }
  .team-card strong { font-size: 13px }
  .team-card p { font-size: 14px }
}

/* tablet */
@media (min-width: 761px) and (max-width: 1100px) {
  .site-nav { gap: 18px; font-size: 13px }
  .header-cta { display: none }
  .services-grid, .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .faq-inner { grid-template-columns: 1fr; gap: 36px }
}

/* mobile */
@media (max-width: 760px) {
  :root { --edge: 16px }
  .wrap { width: min(100% - 32px, 560px) }
  .header-inner { width: calc(100% - 32px) }
  .logo img, .logo .logo-write { width: 116px }
  .header-cta { display: none }
  .menu-toggle { display: flex; width: 44px; height: 44px; padding: 10px; flex-direction: column; justify-content: center; gap: 6px; border: 0; border-radius: 50%; background: #eef3ff }
  .menu-toggle span { height: 2px; background: var(--blue); display: block }
  .menu-toggle span[aria-hidden] { width: 22px; margin-inline: auto; border-radius: 2px; transition: transform 380ms var(--ease) }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(4px) rotate(45deg) }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg) }
  /* El menú baja como una cortina y los enlaces entran uno tras otro */
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; padding: 6px 16px 18px; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 22px 34px rgba(8, 28, 57, .12); font-size: 18px; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 380ms var(--ease), visibility 0s linear 380ms }
  .site-nav.is-open { visibility: visible; clip-path: inset(0 0 -80px 0); transition: clip-path 520ms var(--ease), visibility 0s }
  .site-nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 2px; border-bottom: 1px solid #edf1f6; opacity: 0; transform: translateY(-12px); transition: opacity 180ms var(--ease), transform 180ms var(--ease) }
  .site-nav a:last-child { border-bottom: 0 }
  .site-nav a::after { position: static; content: "→"; height: auto; background: none; color: var(--blue); transform: translateX(-6px); opacity: .5; transition: none }
  .site-nav.is-open a { opacity: 1; transform: none; transition: opacity 420ms var(--ease), transform 520ms var(--ease) }
  .site-nav.is-open a:nth-child(2) { transition-delay: 50ms }
  .site-nav.is-open a:nth-child(3) { transition-delay: 100ms }
  .site-nav.is-open a:nth-child(4) { transition-delay: 150ms }
  .site-nav.is-open a:nth-child(5) { transition-delay: 200ms }
  .nav-backdrop { position: fixed; inset: 72px 0 0; z-index: 19; background: rgba(6, 29, 57, .38); opacity: 0; visibility: hidden; transition: opacity 380ms var(--ease), visibility 0s linear 380ms }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity 380ms var(--ease), visibility 0s }
  .section { padding: 64px 0 }

  /* En el teléfono la foto del equipo va completa arriba y se funde con el azul del texto */
  .hero { min-height: 0; padding: 0 var(--edge) 44px; flex-direction: column; justify-content: flex-start; align-items: stretch }
  .hero-picture { display: block; margin-inline: calc(var(--edge) * -1) }
  .hero-background { position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 1240 / 910; object-fit: cover }
  .hero-scrim { background: linear-gradient(180deg, rgba(6, 29, 57, 0) 0, rgba(6, 29, 57, 0) 38vw, rgba(6, 29, 57, .78) 60vw, var(--navy) 73.4vw) }
  .hero-copy { margin-top: -17vw }
  .hero-copy { width: min(100%, 500px) }
  .hero h1, .section h2 { font-size: 40px }
  .hero h1 { font-size: 36px; line-height: 1.06 }
  .hero-copy > p { font-size: 15px; margin: 20px 0 24px }
  .actions .button { width: 100% }
  .facts { flex-wrap: wrap; gap: 12px 18px; margin: 26px 0 0; padding: 18px 0 0 }
  .facts li { gap: 6px }
  .facts strong { font-size: 21px }
  .facts span { font-size: 12px; line-height: 1.25 }

  .section-top, .team-top { align-items: flex-start; flex-direction: column }
  .services-grid { grid-template-columns: 1fr; margin-top: 28px }
  .service-card { min-height: 0 }
  .section-note { max-width: none }
  .trust-inner { flex-direction: column; align-items: flex-start; gap: 12px }
  .trust-inner ul { gap: 10px 24px }
  .trust-inner b { font-size: 16px }
  .process-steps { grid-template-columns: 1fr; margin-top: 30px; gap: 14px }
  .step-number { margin-bottom: 16px; font-size: 36px }
  .faq-inner { grid-template-columns: 1fr; gap: 28px }
  .faq summary { font-size: 16px; padding: 18px 0 }
  .service-card h3 { margin-top: 28px }

  .system { padding: 64px var(--edge) }
  .system-intro { grid-template-columns: 1fr; gap: 18px }
  .system-demo { margin-top: 31px }
  /* Las 7 etapas caben en una fila: solo íconos unidos por una línea que se llena al avanzar */
  .flow { grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 18px 6px 0; border-bottom: 0 }
  .flow-step { padding: 4px 0 14px; opacity: 1 }
  .flow-step b, .flow-step small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap }
  .flow-step:not(:last-child)::after { content: ""; top: 21px; left: calc(50% + 21px); right: calc(-50% + 21px); height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue) 50%, #dbe5f0 50%) 100% 0 / 200% 100% no-repeat; transition: background-position 520ms var(--ease) }
  .flow-step.is-done::after { background-position: 0 0 }
  .flow-step::before { display: none }
  .flow-icon { width: 40px; height: 40px; margin: 0 auto; opacity: .55; transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), opacity 320ms var(--ease) }
  .flow-step.is-done .flow-icon, .flow-step[aria-selected="true"] .flow-icon { opacity: 1 }
  .flow-step[aria-selected="true"] .flow-icon { transform: scale(1.14); box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px currentColor }
  .flow-caption { display: flex; align-items: baseline; justify-content: center; gap: 8px; min-height: 44px; margin: 0; padding: 4px 16px 14px; border-bottom: 1px solid #e6eef6; font-size: 15px }
  .flow-caption b { color: var(--ink); font-weight: 800 }
  .flow-caption span { color: var(--muted); font-size: 13px; font-weight: 600 }
  .flow-caption.is-changing { animation: caption-in 420ms var(--ease) }
  .flow-progress { position: relative; height: 3px; margin: -1px 0 0; background: transparent }
  .flow-progress::after { content: ""; position: absolute; inset: 0; background: var(--stage-color, var(--blue)); transform: scaleX(0); transform-origin: left }
  .system-demo.is-playing .flow-progress::after { animation: stage-progress var(--stage-duration, 6s) linear forwards }
  .stage-panel { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px 26px; touch-action: pan-y }
  .stage-panel.is-entering { animation: stage-slide 460ms var(--ease) }
  .stage-panel.is-entering.from-prev { animation-name: stage-slide-prev }
  .swipe-hint { display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0 0 18px }
  .swipe-hint i { width: 6px; height: 6px; border-radius: 3px; background: #d3deea; transition: width 320ms var(--ease), background 320ms var(--ease) }
  .swipe-hint i.is-on { width: 20px; background: var(--blue) }
  .stage-panel h3 { font-size: 22px }

  .cases { padding: 64px var(--edge) }
  .cases-intro { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px }
  .works-list { gap: 16px; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); scroll-padding-inline: var(--edge) }

  .team-top .button { width: 100% }
  .team-lead { margin: 16px 0 29px }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px }
  .portrait { height: min(62vw, 270px) }
  .portrait-bg { inset: 18px 0 0; height: calc(100% - 18px) }
  .team-card h3 { font-size: 17px }
  .team-card p { font-size: 12.5px }

  .cta { padding: 64px var(--edge) }
  .cta-inner { align-items: flex-start; flex-direction: column }
  .cta h2 { font-size: 36px }
  .cta-actions { width: 100% }
  .cta .button { width: 100% }

  .contact-form-section { padding: 64px var(--edge) }
  .contact-form-wrap { grid-template-columns: 1fr; gap: 28px }
  .contact-form { grid-template-columns: 1fr; padding: 21px }
  .contact-form .button { width: 100% }
  .booking-step { padding: 18px }

  .footer-inner { grid-template-columns: 1fr; gap: 22px }
  .footer-inner p { text-align: left }
  .footer-inner small { margin-top: 4px }
  .footer-logo img { width: 140px }
  .whatsapp-float { display: none }
  .mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); box-shadow: 0 12px 32px rgba(6, 29, 57, .22); transform: translateY(calc(100% + 24px)); visibility: hidden; transition: transform 320ms var(--ease), visibility 0s linear 320ms }
  .mobile-cta.is-visible { transform: none; visibility: visible; transition: transform 320ms var(--ease), visibility 0s }
  .mobile-cta .button { flex: 1; min-height: 48px }
  .mobile-cta-wa { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #25d366; color: #fff }
  .mobile-cta-wa svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2 }
  footer { padding-bottom: 100px }
  .compare-grid { grid-template-columns: 1fr; margin-top: 30px; gap: 14px }
  .compare-card { padding: 24px 22px 26px }
  .compare-card li { font-size: 15px }
  .compare-after .button { width: 100% }
  .js .reveal { transform: translateY(26px) }
  .js .reveal-card { transform: translateY(30px) scale(.97) }
}

/* Logo que se escribe: cada trazo de la máscara destapa el logo real en orden de escritura */
.logo .logo-write { overflow: visible }
.lw-stroke { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; animation: lw-draw .4s cubic-bezier(.45, 0, .55, 1) forwards }
/* Cada letra vive en su propia capa y se destapa con una pluma que sigue su línea central, con su mismo grosor */
.lw-1 { animation-delay: .2s; animation-duration: 1.5s; animation-timing-function: cubic-bezier(.35, 0, .5, 1) }
.lw-2 { animation-delay: 1.8s; animation-duration: 0.25s }
.lw-3 { animation-delay: 2.12s; animation-duration: 0.1s }
.lw-4 { animation-delay: 2.3s; animation-duration: 0.45s }
.lw-5 { animation-delay: 2.75s; animation-duration: 0.22s }
.lw-6 { animation-delay: 3.05s; animation-duration: 0.45s }
.lw-7 { animation-delay: 3.5s; animation-duration: 0.22s }
.lw-tagline { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: lw-wipe .7s 3.55s var(--ease) forwards }
/* Al final entra el logo completo para asentar los bordes que la pluma no toca */
.lw-fill { opacity: 0; animation: lw-fade .3s 3.75s ease-out forwards }
@keyframes lw-draw { from { opacity: 1; stroke-dashoffset: 1 } to { opacity: 1; stroke-dashoffset: 0 } }
@keyframes lw-wipe { to { transform: scaleX(1) } }
@keyframes lw-fade { to { opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .js .reveal, .js .reveal-image { opacity: 1; transform: none; clip-path: none; transition: none }
  .site-header, .site-nav a, .site-nav a::after, .button, .button b, .service-card, .works-index button, .portrait-person, .whatsapp-float, .faq summary svg, .flow-step, .flow-icon { transition: none }
  .stage-panel.is-entering { animation: none }
  .mobile-cta, .mobile-cta.is-visible { transition: none }
  .lw-stroke, .lw-tagline, .lw-fill { animation: none; opacity: 1; stroke-dashoffset: 0; transform: none }
}

/* ─── Movimiento ─────────────────────────────────────────────────────────── */
@keyframes caption-in { from { opacity: 0; transform: translateY(6px) } }
@keyframes stage-slide { from { opacity: 0; transform: translateX(28px) } }
@keyframes stage-slide-prev { from { opacity: 0; transform: translateX(-28px) } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px) } }
@keyframes hero-settle { from { transform: scale(1.06) } }
.flow-caption, .flow-progress, .swipe-hint { display: none }
@media (max-width: 760px) { .flow-caption, .swipe-hint { display: flex } .flow-progress { display: block } }

/* Paneles del sistema apilados en la misma celda: el alto no salta al cambiar de etapa */
.js .stage-panels { display: grid }
.js .stage-panels > .stage-panel { grid-area: 1 / 1 }
.js .stage-panels > .stage-panel.is-off { visibility: hidden; pointer-events: none }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: la foto se asienta y el texto sube en orden */
  .js .hero-background { animation: hero-settle 1600ms var(--ease) both }
  .js .hero-copy > * { animation: hero-rise 900ms var(--ease) both }
  .js .hero-copy > :nth-child(2) { animation-delay: 120ms }
  .js .hero-copy > :nth-child(3) { animation-delay: 220ms }
  .js .hero-copy > :nth-child(4) { animation-delay: 320ms }

  /* Listas que entran elemento por elemento cuando su bloque aparece */
  .js .reveal .stagger > *, .js .reveal.stagger-self > * { opacity: 0; transform: translateY(12px); transition: opacity 520ms var(--ease), transform 620ms var(--ease); transition-delay: calc(var(--reveal-delay, 0ms) + 160ms + var(--i, 0) * 70ms) }
  .js .reveal.is-visible .stagger > *, .js .reveal.is-visible.stagger-self > * { opacity: 1; transform: none }
  .js .hero .stagger > * { animation: hero-rise 800ms var(--ease) both; animation-delay: calc(420ms + var(--i, 0) * 90ms) }

  /* Servicios: el ícono aparece con un pequeño rebote */
  .js .service-card .icon { transform: scale(.55); opacity: 0; transition: transform 640ms cubic-bezier(.34, 1.56, .64, 1), opacity 300ms var(--ease); transition-delay: calc(var(--reveal-delay, 0ms) + 220ms) }
  .js .service-card.is-visible .icon { transform: none; opacity: 1 }

  /* Equipo: sube el fondo, luego la persona y al final el texto */
  .js .team-card .portrait-bg { clip-path: inset(100% 0 0 0 round 18px 18px 0 0); transition: clip-path 760ms var(--ease); transition-delay: var(--reveal-delay, 0ms) }
  .js .team-card.is-visible .portrait-bg { clip-path: inset(0 0 0 0 round 18px 18px 0 0) }
  .js .team-card .portrait-person { opacity: 0; translate: 0 36px; transition: transform 220ms var(--ease), translate 900ms var(--ease), opacity 600ms var(--ease); transition-delay: 0ms, calc(var(--reveal-delay, 0ms) + 200ms), calc(var(--reveal-delay, 0ms) + 200ms) }
  .js .team-card.is-visible .portrait-person { opacity: 1; translate: none }
  .js .team-card > :not(.portrait) { opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease), transform 600ms var(--ease); transition-delay: calc(var(--reveal-delay, 0ms) + 420ms) }
  .js .team-card.is-visible > :not(.portrait) { opacity: 1; transform: none }
  .js .team-card.reveal { transform: none }

  /* Preguntas: la respuesta aparece mientras la fila se abre (la altura la anima app.js) */
  .faq details p { transition: opacity 360ms var(--ease), transform 420ms var(--ease) }
  .faq details:not([open]) p, .faq details.is-closing p { opacity: 0; transform: translateY(-6px) }
  .faq summary { transition: color 200ms var(--ease) }
  .faq details[open]:not(.is-closing) summary { color: var(--blue) }
}
