:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #101828;
  --muted: #5b6474;
  --line: #e6e3dc;
  --accent: #101828;
  --accent-ink: #fff;
  --mint: #79e2b0;
  --mint-ink: #0b7a4b;
  --navy: #0d1626;
  --radius: 12px;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

::selection { background: var(--mint); color: var(--ink); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.015em; }
h1 em, h2 em { color: var(--mint-ink); }
.dark h2 em { color: var(--mint); }
.eyebrow, .tag { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.section { padding: clamp(80px, 10vw, 136px) 0; position: relative; }
.section-head { margin-bottom: 44px; max-width: 780px; }
.section-head h2, .regime h2, .plan h2, .contact h2 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 32px; max-width: none; }
.section-head.split > p { max-width: 380px; color: var(--muted); }
.btn { border-radius: 10px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-ghost { border-color: #c9c5bb; }
.btn-ghost:hover { border-color: var(--ink); }
.note { margin-top: 16px; font-size: 0.82rem; color: var(--muted); }
.input { border-radius: 10px; }
textarea.input { resize: vertical; padding-top: 12px; }

/* Intro */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; gap: 28px; background: var(--navy); color: #e7ebf3; transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1); pointer-events: none; }
.intro.open { transform: translateY(-100%); }
.ledger { width: min(84vw, 420px); font-size: 0.95rem; }
.ledger .row { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px dashed rgb(231 235 243 / 0.2); opacity: 0; animation: up 0.5s var(--ease) forwards; }
.ledger .row:nth-child(2) { animation-delay: 0.1s; } .ledger .row:nth-child(3) { animation-delay: 0.2s; }
.ledger .row.total { border-bottom: 3px double rgb(231 235 243 / 0.5); font-weight: 600; }
.ledger b { font: 500 1rem/1.4 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.intro.done .row.total b { color: var(--mint); }
.intro-brand { text-align: center; font: 400 2.6rem/1 var(--font-display); opacity: 0; animation: up 0.6s 0.35s var(--ease) forwards; }
.intro-brand em { display: block; margin-top: 8px; font: 500 0.7rem/1 var(--font-body); letter-spacing: 0.3em; text-transform: uppercase; font-style: normal; opacity: 0.6; }
@keyframes up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Header */
.header { position: sticky; top: 0; z-index: 50; transition: background 0.3s, box-shadow 0.3s; }
.header.is-solid { background: rgb(251 250 247 / 0.75); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 400 1.9rem/1 var(--font-display); text-decoration: none; }
.logo svg { width: 24px; height: 24px; fill: none; stroke: var(--mint-ink); stroke-width: 3.2; stroke-linecap: round; }
.logo.small { font-size: 1.4rem; }
.nav { display: flex; gap: 28px; font-size: 0.92rem; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; isolation: isolate; }
.grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); opacity: 0.7; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(3rem, 6.8vw, 6rem); line-height: 0.96; margin: 6px 0 26px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 30%; border-radius: 18px; }
.glass { position: absolute; padding: 14px 18px; border-radius: 14px; background: rgb(255 255 255 / 0.6); border: 1px solid rgb(255 255 255 / 0.85); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 20px 50px -20px rgb(16 24 40 / 0.4); }
.glass small { display: block; font-size: 0.74rem; color: var(--muted); }
.glass strong { font-weight: 600; font-size: 1rem; }
.g1 { left: -8%; top: 14%; display: flex; align-items: center; gap: 12px; animation: drift 8s ease-in-out infinite; }
.g1 svg { width: 30px; height: 30px; fill: none; stroke: var(--mint-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g2 { right: -5%; bottom: 10%; min-width: 190px; animation: drift 9s 1s ease-in-out infinite reverse; }
.g2 strong { display: block; font-size: 1.5rem; margin: 2px 0 6px; }
.spark { width: 100%; height: 36px; fill: none; stroke: var(--mint-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1.6s 2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drift { 50% { transform: translateY(-8px); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.stats div { padding: 26px 24px 30px 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
.stats span { font-size: 0.9rem; color: var(--muted); }

/* Servicios */
.services { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list button { display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 22px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.1 var(--font-display); color: var(--muted); transition: color 0.25s, padding 0.35s var(--ease); }
.svc-list button span { font-size: 0.78rem; color: var(--muted); }
.svc-list button:hover { color: var(--ink); }
.svc-list button[aria-selected='true'] { color: var(--ink); padding-left: 16px; box-shadow: inset 3px 0 0 var(--mint-ink); }
.svc-panel { position: relative; min-height: 460px; }
.svc-img { border-radius: 18px; overflow: hidden; aspect-ratio: 16/11; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { position: relative; margin: -90px 24px 0 auto; width: min(92%, 440px); padding: 26px 28px; border-radius: 16px; background: rgb(255 255 255 / 0.72); border: 1px solid rgb(255 255 255 / 0.9); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 30px 60px -30px rgb(16 24 40 / 0.45); }
.svc-body h3 { font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.svc-body p { color: var(--muted); font-size: 0.96rem; }
.svc-body ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.svc-body li { display: flex; gap: 10px; align-items: center; }
.svc-body li::before { content: ''; width: 16px; height: 1.5px; background: var(--mint-ink); }
.svc-panel.in .svc-img img { animation: zoomin 0.9s var(--ease); }
.svc-panel.in .svc-body { animation: up 0.6s 0.1s var(--ease) both; }
@keyframes zoomin { from { transform: scale(1.08); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* Régimen (sección oscura) */
.dark { background: var(--navy); color: #e7ebf3; overflow: hidden; isolation: isolate; }
.dark::before { content: ''; position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -20vw; top: -20vw; border-radius: 50%; background: radial-gradient(circle, rgb(121 226 176 / 0.18), transparent 65%); }
.dark .eyebrow, .dark .note { color: #93a0b8; }
.regime { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.regime-copy > p:not(.eyebrow):not(.note) { margin-top: 20px; color: #b7c1d3; max-width: 420px; }
.regime-tool { padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.q { margin-bottom: 26px; }
.q-label { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; color: #fff; }
.q-label output { color: var(--mint); font-size: 1rem; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 12px; background: rgb(255 255 255 / 0.06); gap: 4px; }
.seg button { border: 0; background: none; color: #b7c1d3; padding: 9px 16px; border-radius: 9px; font-weight: 500; font-size: 0.92rem; transition: background 0.25s, color 0.25s; }
.seg button.on { background: #fff; color: var(--ink); }
input[type='range'] { width: 100%; accent-color: var(--mint-ink); height: 28px; }
.dark input[type='range'] { accent-color: var(--mint); }
.scale { display: flex; justify-content: space-between; font-size: 0.74rem; color: #7f8ba3; }
.result { padding: 22px 24px; border-radius: 16px; background: #fff; color: var(--ink); animation: up 0.4s var(--ease); }
.r-kicker { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.r-name { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 4px; }
.r-name span { font-size: 0.86rem; padding: 3px 8px; border-radius: 6px; background: #e3f7ed; color: var(--mint-ink); }
.r-name h3 { font-size: 2.2rem; line-height: 1; }
.r-limit { font-size: 0.86rem; color: var(--mint-ink); margin-bottom: 10px; }
.result p:not(.r-kicker):not(.r-limit) { color: var(--muted); font-size: 0.95rem; }
.r-alt { margin-top: 8px; font-size: 0.86rem !important; }
.result .btn { margin-top: 16px; }

/* Cotizador */
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.plan-copy > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); max-width: 440px; }
.incl { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.incl li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); position: relative; }
.incl li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 2px solid var(--mint-ink); border-bottom: 2px solid var(--mint-ink); transform: rotate(-45deg); }
.quote { display: grid; gap: 22px; padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgb(16 24 40 / 0.3); }
.quote .field > span { display: flex; justify-content: space-between; }
.quote output { color: var(--mint-ink); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; width: max-content; }
.stepper button { width: 46px; height: 46px; border: 0; background: none; font-size: 1.3rem; }
.stepper button:hover { background: #f3f1ec; }
.stepper output { min-width: 48px; text-align: center; color: var(--ink) !important; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 18px 0 4px; border-top: 1px dashed var(--line); }
.price small { color: var(--muted); }
.price strong { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 500; line-height: 1; }
.price span { color: var(--muted); font-size: 0.9rem; }

/* Proceso */
.process-section { background: #f3f1ec; }
.process { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.process-media { position: sticky; top: 100px; }
.process-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 26px 0; border-top: 1px solid #dcd8cf; }
.steps li > span { font-size: 0.9rem; color: var(--mint-ink); padding-top: 6px; }
.steps h3 { font-size: 1.9rem; line-height: 1.05; }
.steps p { margin-top: 8px; color: var(--muted); max-width: 460px; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.m-photo { aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; margin-bottom: 18px; background: #eee; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 1s var(--ease); }
.member:hover .m-photo img { transform: scale(1.04); }
.member h3 { font-size: 1.8rem; line-height: 1; }
.member .role { font-size: 0.84rem; font-weight: 600; color: var(--mint-ink); margin: 6px 0 8px; }
.member p:last-child { color: var(--muted); font-size: 0.94rem; }

/* Preguntas */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 400 1.5rem/1.2 var(--font-display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { flex: none; position: relative; width: 16px; height: 16px; }
.faq-list summary span::before, .faq-list summary span::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease); }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 620px; }

/* Contacto */
.contact-section { overflow: hidden; isolation: isolate; color: #fff; }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(10px) brightness(0.4) saturate(0.7); transform: scale(1.1); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact .eyebrow { color: #b7c1d3; }
.contact h2 em { color: var(--mint); }
.contact > div > p:not(.eyebrow) { margin-top: 20px; color: #d3d9e4; max-width: 440px; }
.info { margin: 32px 0 0; border-top: 1px solid rgb(255 255 255 / 0.18); }
.info div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgb(255 255 255 / 0.18); }
.info dt { color: #b7c1d3; font-size: 0.88rem; }
.info dd { margin: 0; }
.contact-form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: rgb(255 255 255 / 0.92); color: var(--ink); backdrop-filter: blur(16px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid, .services, .regime, .plan, .process, .faq, .contact { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
  .g1 { left: 4%; }
  .g2 { right: 4%; }
  .process-media { position: static; }
  .process-media img { aspect-ratio: 16/10; }
  .team { grid-template-columns: 1fr 1fr; }
  .svc-panel { min-height: 0; }
}
@media (max-width: 640px) {
  .header .btn-sm { padding: 0 14px; font-size: 0.82rem; }
  .section-head.split { flex-direction: column; align-items: start; }
  .stats { grid-template-columns: 1fr; }
  .stats div, .stats div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .svc-body { margin: -40px 12px 0; width: auto; }
  .team { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 1.3rem; }
}
