/* ELMNT — sistema visual compartido (sitio + portal) */
:root {
  --teal: #8fb0ab;
  --copper: #c9744a;
  --copper-light: #d68f5e;
  --dark: #0b2c37;
  --darker: #07222b;
  --warm: #f4f1ec;
  --ink: #0b2c37;
  --muted: rgba(244, 241, 236, 0.62);
  --line: rgba(244, 241, 236, 0.1);
  --ok: #6fa58a;
  --warn: #d4a24c;
  --bad: #c85c4a;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--darker); color: var(--warm); -webkit-font-smoothing: antialiased; line-height: 1.5; }
::selection { background: var(--copper); color: #fff; }
a { color: inherit; }
img, svg { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 500 10.5px/1 var(--mono); color: var(--copper); letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--copper); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border-radius: 4px; padding: 14px 26px; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: all .2s ease; border: 1px solid transparent; }
.btn-p { background: var(--copper); color: #fff; }
.btn-p:hover { background: var(--copper-light); transform: translateY(-1px); }
.btn-o { background: transparent; color: var(--warm); border-color: rgba(244, 241, 236, .25); }
.btn-o:hover { background: rgba(201, 116, 74, .12); }
.btn-sm { padding: 9px 14px; font-size: 10px; }

/* Marca */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 34px; height: 34px; border: 1.5px solid var(--copper); display: grid; place-items: center; position: relative; }
.brand-icon span { font: 600 15px/1 var(--mono); color: var(--warm); }
.brand-icon::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 7px; height: 1.5px; background: var(--copper); }
.brand-name { font: 600 14px/1 var(--sans); letter-spacing: .18em; }

/* Navegación */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px; display: flex; align-items: center; transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 34, 43, .94); backdrop-filter: blur(8px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; font: 500 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 241, 236, .68); transition: color .2s; }
.nav-links a:hover { color: var(--copper); }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 1.5px; background: var(--warm); }
.mobile-menu { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--darker); border-bottom: 1px solid var(--line); z-index: 49; padding: 12px 24px 20px; }
.mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.mobile-menu.open { display: block; }

/* Secciones */
section { position: relative; overflow: hidden; }
.sec { padding: 110px 0; }
.sec-alt { background: var(--dark); }
.sec-light { background: var(--warm); color: var(--ink); }
.sec-light .muted { color: rgba(11, 44, 55, .66); }
.h-xl { font-weight: 600; font-size: clamp(40px, 7vw, 84px); line-height: .96; letter-spacing: -.02em; }
.h-lg { font-weight: 600; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.04; letter-spacing: -.015em; }
.h-md { font-weight: 600; font-size: 20px; line-height: 1.25; }
.lead { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 580px; }
.sec-light .lead { color: rgba(11, 44, 55, .72); }
.accent { color: var(--copper); }

.grain { position: absolute; inset: -120px; opacity: .05; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.branch-motif { position: absolute; pointer-events: none; }

/* Grillas y tarjetas */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--line); border-top: 2px solid var(--copper); border-radius: 4px 4px 10px 10px; background: rgba(244, 241, 236, .025); padding: 26px; }
.sec-light .card { border-color: rgba(11, 44, 55, .12); border-top-color: var(--copper); background: #fff; }
.card .num { font: 500 11px/1 var(--mono); color: var(--copper); letter-spacing: .14em; margin-bottom: 18px; display: block; }
.card p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin-top: 10px; }
.sec-light .card p { color: rgba(11, 44, 55, .7); }
.card ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.card li { font-size: 14px; line-height: 1.5; padding-left: 18px; position: relative; color: var(--muted); }
.sec-light .card li { color: rgba(11, 44, 55, .75); }
.card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 1px; background: var(--copper); }

/* Planes */
.plan { display: flex; flex-direction: column; }
.plan .price { font: 600 30px/1 var(--sans); margin-top: 16px; letter-spacing: -.01em; }
.plan .price small { display: block; font: 400 11px/1.4 var(--mono); color: var(--muted); letter-spacing: .06em; margin-top: 8px; text-transform: uppercase; }
.sec-light .plan .price small { color: rgba(11, 44, 55, .6); }
.plan .btn { margin-top: auto; }
.plan ul { margin-bottom: 26px; }
.plan.featured { border-top-width: 4px; box-shadow: 0 18px 50px -30px rgba(11, 44, 55, .5); }
.tag { display: inline-block; font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; border: 1px solid currentColor; border-radius: 20px; color: var(--copper); }
.tag.soon { color: var(--teal); }

/* Ruta (proceso) — línea orgánica */
.route { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 56px; }
.route-step h4 { font-size: 16px; font-weight: 600; margin: 14px 0 8px; }
.route-step p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.route-leaf { width: 44px; height: 44px; }

/* FAQ */
.faq details { border-bottom: 1px solid rgba(11, 44, 55, .14); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--copper); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; font-size: 15px; line-height: 1.7; color: rgba(11, 44, 55, .72); max-width: 760px; }

/* Formularios */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font: 500 9.5px/1.3 var(--mono); color: var(--copper); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; font: 400 15px/1.4 var(--sans); color: var(--warm); background: rgba(244, 241, 236, .04); border: 1px solid rgba(244, 241, 236, .16); border-radius: 4px; padding: 12px 13px; transition: border-color .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field select option { color: #111; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { font: 400 13px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--warm); border: 1px solid rgba(244, 241, 236, .18); border-radius: 20px; padding: 10px 14px; cursor: pointer; margin: 0; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row input:checked + span { color: var(--copper); }
.radio-row label:has(input:checked) { border-color: var(--copper); background: rgba(201, 116, 74, .12); }
.form-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.alert { padding: 14px 16px; border-radius: 4px; font-size: 14px; line-height: 1.5; border: 1px solid; }
.alert-ok { border-color: var(--ok); background: rgba(111, 165, 138, .12); }
.alert-bad { border-color: var(--bad); background: rgba(200, 92, 74, .12); }

/* Footer */
.footer { background: var(--darker); border-top: 1px solid var(--line); padding: 56px 0 36px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h5 { font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin-bottom: 16px; }
.footer a { display: block; text-decoration: none; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.footer a:hover { color: var(--warm); }
.footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 11px/1.5 var(--mono); color: rgba(244, 241, 236, .4); }

/* Páginas legales */
.doc { max-width: 780px; margin: 0 auto; padding: 130px 24px 90px; }
.doc h1 { font-size: 36px; line-height: 1.1; margin-bottom: 8px; }
.doc h2 { font-size: 19px; margin: 34px 0 10px; }
.doc p, .doc li { font-size: 15px; line-height: 1.75; color: rgba(244, 241, 236, .78); }
.doc ul { padding-left: 20px; margin-top: 8px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fade { animation: fadeUp .9s ease both; }
.fade.d1 { animation-delay: .12s; } .fade.d2 { animation-delay: .24s; } .fade.d3 { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; gap: 28px; }
  .footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { display: none; }
  .burger { display: flex; }
  .sec { padding: 80px 0; }
  .g2, .g4 { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
}
