:root {
  --navy: #14213d;
  --navy-2: #0f1a30;
  --blue: #2a4f9e;
  --blue-2: #1f3c7a;
  --copper: #b8774a;
  --ink: #1c2230;
  --muted: #5b6475;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f3f5f9;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
h1, h2, h3, h4, h5 { font-family: "Montserrat", sans-serif; line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Botones */
.btn { display: inline-block; padding: 14px 26px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: 600 15px "Inter", sans-serif; transition: .2s; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e9edf5; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink); font-size: 15px; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav .btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 55%, #1d3263 100%); color: #dfe5f2; padding: 90px 0 100px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.5vw, 52px); }
.hero p { font-size: 18px; max-width: 560px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin-bottom: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 36px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; }
.hero-stats strong { display: block; color: #fff; font-family: "Montserrat"; font-size: 18px; }
.hero-stats span { font-size: 13px; color: #9fabc4; }
.hero-visual { position: relative; }
.globe-wrap { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin: 0 auto; perspective: 900px; }
.globe-wrap canvas { position: relative; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.globe-wrap canvas:active { cursor: grabbing; }
.orbit { position: absolute; inset: 2%; border-radius: 50%; border: 1px solid rgba(110,190,255,.28); pointer-events: none; }
.orbit::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #7fd3ff; box-shadow: 0 0 12px #7fd3ff; }
.o1 { transform: rotateX(74deg) rotateZ(0deg); animation: orbit1 14s linear infinite; }
.o2 { inset: -3%; border-style: dashed; border-color: rgba(201,139,94,.3); transform: rotateX(70deg) rotateY(-24deg); animation: orbit2 22s linear infinite; }
.o2::after { background: #e0a070; box-shadow: 0 0 12px #e0a070; }
@keyframes orbit1 { to { transform: rotateX(74deg) rotateZ(360deg); } }
@keyframes orbit2 { from { transform: rotateX(70deg) rotateY(-24deg) rotateZ(0deg); } to { transform: rotateX(70deg) rotateY(-24deg) rotateZ(-360deg); } }

.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.97); color: var(--ink); padding: 12px 18px 12px 12px; border-radius: 14px; font-size: 13px; box-shadow: 0 16px 40px rgba(0,0,0,.35); line-height: 1.35; z-index: 2; }
.float-card b { display: block; color: var(--navy); font-size: 14px; }
.float-card small { color: var(--muted); font-size: 12px; }
.check { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #1fae5b; display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(31,174,91,.5); animation: ping 2.4s ease-out infinite; }
.check svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick .6s .4s ease forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31,174,91,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(31,174,91,0); } }
.pulse { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fdf1e8; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--copper); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.fc1 { top: 6%; right: -2%; animation: floaty 6s ease-in-out infinite; }
.fc2 { bottom: 8%; left: -2%; animation: floaty 6s 3s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .orbit, .float-card, .check { animation: none; } .check svg { stroke-dashoffset: 0; animation: none; } }

/* Secciones */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head p { color: var(--muted); }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: .25s; background: #fff; }
.service:hover { border-color: var(--blue); box-shadow: 0 16px 40px rgba(20,33,61,.08); transform: translateY(-3px); }
.service p { color: var(--muted); margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 12px; background: #eaf0fb; display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Cotizar */
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.quote-text h2 { font-size: clamp(26px, 3.2vw, 36px); }
.quote-text p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 12px; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--copper); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.quote-form { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: 0 20px 50px rgba(20,33,61,.1); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.quote-form h3 { grid-column: 1 / -1; margin-bottom: 4px; }
.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input, .field select { width: 100%; padding: 12px 14px; border: 1px solid #cfd6e2; border-radius: 9px; font: inherit; font-size: 15px; background: #fff; }
.field input:focus, .field select:focus { outline: 2px solid var(--blue); border-color: transparent; }
.consent { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.consent a { color: var(--blue); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--bg-alt); border-top: 3px solid var(--copper); }
.feature p { color: var(--muted); margin: 0; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--blue-2), var(--blue)); color: #dfe7f7; padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(22px, 2.8vw, 32px); margin-bottom: 6px; }
.cta p { margin: 0; }

.notice { padding: 40px 0; }
.notice p { max-width: 900px; margin: 0 auto; text-align: center; font-size: 14px; color: var(--muted); }

/* Footer */
.footer { background: var(--navy-2); color: #a9b3c7; padding: 64px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 54px; width: auto; margin-bottom: 14px; }
.footer h5 { color: #fff; font-size: 15px; }
.footer p { margin: 0 0 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; font-size: 13px; }

.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 60; }
.wa-float svg { width: 32px; height: 32px; }

/* Legal */
.legal { padding: 60px 0 90px; max-width: 820px; }
.legal h1 { font-size: 34px; }
.legal h2 { margin-top: 48px; }
.legal p, .legal li { color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border: 0; }
  .hero { padding: 60px 0 70px; }
  .hero-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .services, .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .quote-form { grid-template-columns: 1fr; padding: 24px; }
  .brand img { height: 38px; }
  .float-card { font-size: 12px; padding: 9px 12px; }
}
