/* ===== Asesorías e Inversiones RZ Ltda. ===== */
:root {
  --black: #000;
  --ink: #0a0e14;
  --ink-2: #121924;
  --white: #fff;
  --paper: #f5f7fa;
  --text: #1b1f26;
  --muted: #5b6472;
  --muted-light: #a8b2c0;
  --green: #5b9bd5;
  --green-bright: #8dbbe6;
  --teal: #2f6fb3;
  --blue: #2f6fb3;
  --blue-hover: #24578f;
  --line: rgba(255, 255, 255, .12);
  --radius: 14px;
  --maxw: 1200px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 16px 40px; border-radius: 999px; font-weight: 700; font-size: 1.05rem;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--block { width: 100%; }

/* ===== Navegación ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: transparent; transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(0,0,0,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav__inner {
  max-width: 1400px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: baseline; color: var(--white); white-space: nowrap; flex-shrink: 0; }
.logo__mark { font-weight: 700; font-size: 1.9rem; letter-spacing: -.02em; }
.logo__dot { color: var(--green); font-weight: 700; font-size: 2.2rem; line-height: 0; }
.logo__text { margin-left: 10px; font-size: .95rem; font-weight: 600; opacity: .85; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  color: var(--white); font-size: 1.02rem; position: relative; padding: 6px 0; white-space: nowrap;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--green); transition: width .25s;
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta { border: 1.5px solid var(--green); border-radius: 999px; padding: 8px 20px !important; color: var(--green) !important; font-weight: 600; transition: background .25s, color .25s; }
.nav__cta:hover { background: var(--green); color: var(--black) !important; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  background: radial-gradient(ellipse at 80% 50%, #0b1626 0%, var(--black) 60%);
  color: var(--white); display: flex; align-items: flex-end;
}
.hero__globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__content {
  position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 140px 32px 120px;
}
.eyebrow {
  display: inline-block; margin: 0 0 18px; font-size: .85rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
.eyebrow--dark { color: var(--teal); }
.hero__title {
  font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -.01em;
  max-width: 20ch;
}
.hero__subtitle { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 600; margin: 22px 0 10px; }
.hero__text { max-width: 520px; color: var(--muted-light); font-size: 1.1rem; margin: 0 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--green); border-radius: 2px; animation: scroll 1.8s infinite;
}
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ===== Cifras ===== */
.stats { background: var(--ink); color: var(--white); border-top: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 48px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num, .stat__plus { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 300; color: var(--white); }
.stat__plus { color: var(--green); }
.stat p { margin: 4px 0 0; color: var(--muted-light); }

/* ===== Secciones ===== */
.section { padding: 120px 0; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__title { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 300; letter-spacing: -.01em; }
.section__title--light { color: var(--white); }
.lead { font-size: 1.25rem; color: var(--text); margin-top: 0; }

/* Nosotros */
.about { background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.about p { color: var(--muted); }
.about .lead { color: var(--text); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Servicios */
.services { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.services::before {
  content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,155,213,.18), transparent 65%);
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, background .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--green); background: #172131; }
.card__icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(91,155,213,.12); margin-bottom: 24px;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--muted-light); margin: 0 0 24px; flex: 1; }
.card__link { font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 8px; }
.card__link::after { content: "→"; transition: transform .25s; }
.card__link:hover::after { transform: translateX(5px); }
.insight .card__link { color: var(--teal); }
.card__link--light { color: var(--green) !important; }

/* Perspectivas */
.insights { background: var(--paper); }
.insights__grid { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.insight {
  background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px; justify-content: space-between;
  transition: transform .3s;
}
.insight:hover { transform: translateY(-4px); }
.insight h3 { font-size: 1.3rem; font-weight: 600; }
.insight--feature {
  grid-row: span 2; color: var(--white); padding: 48px; justify-content: flex-end;
  background:
    radial-gradient(circle at 75% 25%, rgba(91,155,213,.45), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(47,111,179,.5), transparent 50%),
    var(--ink);
  min-height: 420px;
}
.insight--feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 300; }
.insight--feature p { color: var(--muted-light); margin: 0; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--green); color: var(--black); }
.tag--dark { background: rgba(47,111,179,.1); color: var(--teal); }

/* Fechas clave */
.section__intro { color: var(--muted); font-size: 1.1rem; margin: 16px 0 0; }
.dates {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 28px; display: flex; flex-direction: column; justify-content: center;
}
.date { display: flex; align-items: center; gap: 20px; padding: 16px 0; }
.date + .date { border-top: 1px solid #e5e9ef; }
.date__badge {
  flex-shrink: 0; width: 84px; height: 72px; border-radius: 12px; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.date__badge strong { color: var(--green); font-size: 1.7rem; font-weight: 700; }
.date__badge span { color: var(--muted-light); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.date__badge--alt { background: rgba(47,111,179,.1); }
.date__badge--alt strong { color: var(--teal); font-size: 1rem; letter-spacing: .04em; }
.date__badge--alt span { color: var(--teal); }
.date h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 2px; }
.date p { margin: 0; color: var(--muted); font-size: .95rem; }
.dates__note { color: var(--muted); font-size: .88rem; margin: 28px 0 0; }

/* Proceso */
.process { background: var(--ink); color: var(--white); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 32px 28px 8px; border-top: 2px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--green); transition: width .8s ease; }
.step.is-visible::before { width: 100%; }
.step__n { font-size: 2.6rem; font-weight: 300; color: var(--green); }
.step h3 { font-size: 1.25rem; font-weight: 600; margin: 10px 0 8px; }
.step p { color: var(--muted-light); margin: 0; }

/* Contacto */
.contact { background: var(--white); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; }
.contact__info .lead { color: var(--muted); margin-top: 20px; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.contact__list a:hover { color: var(--teal); }
.contact__list svg.wa-icon { fill: #25d366; stroke: none; }
.contact__list a[href^="https://wa.me"]:hover { color: #1da851; }
.contact__list svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.form {
  background: var(--paper); border-radius: 20px; padding: 44px; box-shadow: var(--shadow);
  border-top: 4px solid var(--green); position: relative;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 16px; border: 1.5px solid #d3d9e2; border-radius: 10px;
  background: var(--white); color: var(--text); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47,111,179,.15);
}
.field.has-error input, .field.has-error select { border-color: #d0342c; }
.field__error { color: #d0342c; font-size: .82rem; min-height: 0; margin-top: 4px; }
.field__error:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 4px 0 6px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex-shrink: 0; }
#consentError { display: block; margin-bottom: 14px; }
.form .btn { margin-top: 10px; }
.form__success {
  margin-top: 18px; padding: 16px 20px; border-radius: 10px; background: rgba(91,155,213,.16);
  border-left: 4px solid var(--green); display: flex; flex-direction: column;
}
.form__success[hidden] { display: none; }

/* Footer */
.footer { background: var(--black); color: var(--muted-light); padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__tag { margin: 14px 0 0; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer__grid a:not(.logo) { display: block; margin-bottom: 8px; transition: color .2s; }
.footer__grid a:not(.logo):hover { color: var(--green); }
.social { display: flex; gap: 12px; margin-top: 24px; }
.footer__grid .social a {
  width: 42px; height: 42px; margin: 0; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: background .25s, border-color .25s, transform .25s;
}
.social svg { width: 18px; height: 18px; fill: var(--muted-light); transition: fill .25s; }
.footer__grid .social a:hover { background: var(--green); border-color: var(--green); transform: translateY(-3px); }
.social a:hover svg { fill: var(--black); }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 24px; padding-bottom: 24px; font-size: .88rem; }

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  height: 60px; min-width: 60px; padding: 0 16px; border-radius: 999px;
  background: #25d366; color: #fff; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: transform .25s, background .25s;
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid #25d366; animation: wa-pulse 2.2s infinite; pointer-events: none;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; flex-shrink: 0; margin-left: -2px; }
.wa-float__label {
  max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s ease, margin .35s ease;
}
.wa-float:hover { background: #1da851; transform: translateY(-3px); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 240px; margin-left: 10px; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 600px) { .wa-float { right: 16px; bottom: 16px; height: 56px; min-width: 56px; padding: 0 13px; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .nav__links { gap: 22px; }
  .nav__links a { font-size: .95rem; }
  .logo__text { display: none; }
}
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .about__grid, .contact__grid { gap: 48px; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(0,0,0,.97); padding: 8px 24px 24px; transform: translateY(-120%);
    transition: transform .35s ease; border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 16px; text-align: center; border-bottom: 1.5px solid var(--green) !important; }
  .nav.menu-open { background: rgba(0,0,0,.97); }
  .about__grid, .contact__grid, .insights__grid { grid-template-columns: 1fr; }
  .insights__grid { grid-template-rows: auto; }
  .insight--feature { grid-row: auto; min-height: 320px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .container, .nav__inner, .hero__content { padding-left: 16px; padding-right: 16px; }
  .logo__text { display: none; }
  .hero__globe { opacity: .45; }
  .cards, .steps { grid-template-columns: 1fr; }
  .form { padding: 28px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn { padding: 14px 28px; }
  .hero__content { padding-bottom: 100px; }
}
