/* Clivo — landing styles. Brand: navy #022046, turquoise #02E0B4 */
:root {
  --navy: #022046;
  --navy-800: #0b2c5a;
  --navy-700: #163b70;
  --turq: #02e0b4;
  --turq-600: #00b893;
  --turq-700: #00876c; /* AA on white for text */
  --turq-50: #e6fcf7;
  --ink: #0f1c2e;
  --muted: #4a5a70;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px -12px rgba(2, 32, 70, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(2, 32, 70, 0.35);
  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 900; }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }

:focus-visible { outline: 3px solid var(--turq-600); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--turq-700); margin-bottom: 0.9rem;
}
.eyebrow::before { content: ''; width: 22px; height: 6px; border-radius: 6px; background: var(--turq); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0.8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-700); }
.btn-wa { background: var(--wa); color: #06331b; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.7); }
.btn-wa:hover { background: #2fe372; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 42px; padding: 0.45em 1.15em; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(2, 32, 70, 0.5); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 38px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 700; color: var(--navy); transition: background-color 0.2s;
}
.main-nav a:hover { background: var(--bg-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 600; border: 1px solid var(--line);
}
.lang-switch b { color: var(--navy); }
.lang-switch:hover { border-color: var(--navy); }
.lang-switch .icon { width: 16px; height: 16px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded='true'] .ico-open { display: none; }
.nav-toggle[aria-expanded='true'] .ico-close { display: block; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(2, 224, 180, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 90%, rgba(2, 32, 70, 0.08), transparent 60%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-block: 72px 96px; }
.hero h1 .accent { display: block; color: var(--turq-700); }
.hero .lead { font-size: 1.25rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--navy); font-size: 0.95rem;
}
.chips .icon { color: var(--turq-600); width: 18px; height: 18px; }

.hero-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.arc {
  position: absolute; border-radius: 50%; border: 26px solid var(--turq);
  border-bottom-color: transparent; border-left-color: transparent; border-right-color: transparent;
}
.arc-1 { width: 440px; height: 440px; top: -30px; opacity: 0.9; transform: rotate(-4deg); }
.chat-card {
  position: relative; width: min(360px, 100%); background: var(--navy); color: #fff;
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--turq); }
.chat-head strong { display: block; font-size: 1.05rem; }
.online { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: #a8f5e3; }
.online::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 4px rgba(2, 224, 180, 0.25); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; }
.bubble { margin: 0; padding: 10px 14px; border-radius: 18px; max-width: 85%; font-size: 0.97rem; line-height: 1.45; }
.bubble.in { background: var(--navy-700); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.out { background: var(--turq); color: var(--navy); font-weight: 700; border-bottom-right-radius: 6px; align-self: flex-end; }
.chat-foot { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #c9d6e8; }
.chat-foot .icon { color: var(--turq); width: 16px; height: 16px; }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: #fff; color: var(--navy); font-weight: 800; font-size: 0.95rem; box-shadow: var(--shadow);
}
.float-badge .icon { color: var(--turq-600); }
.badge-top { top: 40px; right: -6px; animation: bob 5s ease-in-out infinite; }
.badge-bottom { bottom: -6px; left: -6px; animation: bob 5s ease-in-out -2.5s infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Sections */
.section { padding-block: 96px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .lead { margin-inline: auto; }

/* About */
.about { background: var(--bg-soft); }
.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.duo-card { background: #fff; border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--line); }
.duo-card.human { background: var(--navy); border-color: var(--navy); color: #e6edf7; }
.duo-card.human h3 { color: #fff; }
.duo-ico {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: 18px;
  background: var(--turq-50); color: var(--turq-700);
}
.duo-card.human .duo-ico { background: rgba(2, 224, 180, 0.15); color: var(--turq); }
.duo-ico .icon { width: 28px; height: 28px; }
.duo-plus {
  align-self: center; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--turq); color: var(--navy); font-size: 2rem; font-weight: 900; box-shadow: var(--shadow);
}
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon {
  width: 22px; height: 22px; padding: 4px; margin-top: 2px; border-radius: 50%;
  background: var(--turq); color: var(--navy); stroke-width: 3;
}
.manifesto {
  text-align: center; margin: 56px 0 40px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; color: var(--navy);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats li { background: #fff; border-radius: var(--radius); padding: 24px; text-align: center; border: 1px solid var(--line); }
.stats strong { display: block; font-size: 2rem; font-weight: 900; color: var(--navy); line-height: 1.1; }
.stats span { color: var(--muted); font-weight: 600; font-size: 0.95rem; }

/* Products — grid adapts to however many products are configured */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.product-grid[data-count='1'] { max-width: 520px; margin-inline: auto; }
.product-grid[data-count='2'] { max-width: 980px; margin-inline: auto; }
.product-card {
  position: relative; display: flex; flex-direction: column; padding: 36px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card::before {
  content: ''; position: absolute; top: -90px; right: -90px; width: 200px; height: 200px; border-radius: 50%;
  border: 18px solid var(--turq); border-left-color: transparent; border-bottom-color: transparent; opacity: 0.35;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-ico {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; margin-bottom: 20px;
  background: var(--navy); color: var(--turq);
}
.product-ico .icon { width: 32px; height: 32px; }
.product-tagline { font-weight: 800; color: var(--turq-700); }
.product-card > p:not(.product-tagline) { color: var(--muted); }
.product-card .checks { margin: 8px 0 28px; }
.product-card .btn { margin-top: auto; }

/* How */
.how { background: var(--navy); color: #dbe5f3; position: relative; overflow: hidden; }
.how h2, .how h3 { color: #fff; }
.how .eyebrow { color: var(--turq); }
.how::after {
  content: ''; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -300px; border-radius: 50%;
  border: 40px solid rgba(2, 224, 180, 0.12);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; position: relative; z-index: 1; }
.steps li { background: var(--navy-800); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-lg); padding: 32px; }
.steps p { margin: 0; }
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 18px;
  background: var(--turq); color: var(--navy); font-weight: 900; font-size: 1.3rem;
}

/* Form */
.lead-form { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.form-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.form-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.form-alt { margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--turq-50); }
.form-alt p { font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-soft);
  border: 2px solid transparent; border-radius: 14px; padding: 13px 16px; transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--turq-600); background: #fff; }
.field input.invalid, .field select.invalid { border-color: #d64545; background: #fff6f6; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 0.85rem; color: var(--muted); }
.form-status { margin: 14px 0 0; font-weight: 700; min-height: 1.5em; }
.form-status.ok { color: var(--turq-700); }
.form-status.err { color: #c03030; }
.form-card.sent .field, .form-card.sent .field-row, .form-card.sent .consent, .form-card.sent button { display: none; }
.form-card.sent .form-status {
  font-size: 1.2rem; padding: 32px 8px; text-align: center; color: var(--navy);
}
.form-card.sent .form-status::before {
  content: '✓'; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--turq); color: var(--navy); font-size: 2rem; font-weight: 900;
}

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--bg-soft); border-radius: var(--radius); padding: 0 24px; border: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 800; color: var(--navy); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.2s; color: var(--turq-700); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Contact */
.contact { background: var(--bg-soft); }
.contact-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.contact-grid > li { flex: 1 1 300px; max-width: 380px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; height: 100%; padding: 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--turq); }
.contact-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; flex: none; background: var(--navy); color: var(--turq); }
.contact-ico.wa { background: var(--wa); color: #fff; }
.contact-ico.ig { background: linear-gradient(45deg, #f9a03f, #e1306c 50%, #833ab4); color: #fff; }
.contact-label { display: block; font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.contact-value { display: block; font-weight: 800; color: var(--navy); font-size: 1.08rem; word-break: break-word; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d6e8; padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; padding-bottom: 40px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 36ch; margin: 0; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a, .footer-social a { text-decoration: none; color: #e6edf7; font-weight: 600; }
.footer-nav a:hover { color: var(--turq); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); transition: background-color 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--turq); color: var(--navy); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 22px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px;
  height: 60px; padding: 0 18px; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none;
  font-weight: 800; box-shadow: 0 14px 30px -10px rgba(18, 140, 75, 0.7); transition: transform 0.2s;
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float span { color: #06331b; }
.wa-float:hover { transform: scale(1.05); }

/* 404 */
.page-404 { min-height: 100vh; display: grid; place-items: center; background: var(--bg-soft); }
.nf { text-align: center; padding: 48px 0; }
.nf-logo { width: 140px; height: 140px; margin: 0 auto 24px; border-radius: 50%; }
.nf .lead { margin-inline: auto; }
.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Reveal on scroll (enabled by JS only) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 10px; }
  .header-cta { display: none; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 12px 16px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 14px 12px; font-size: 1.1rem; }
  .header-actions { margin-left: auto; }

  .hero-inner { grid-template-columns: 1fr; padding-block: 48px 72px; }
  .hero-visual { min-height: 400px; }
  .duo { grid-template-columns: 1fr; }
  .duo-plus { justify-self: center; margin: -8px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; gap: 32px; }
  .form-intro { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 40px; }
  .brand-logo { height: 32px; }
  .lang-switch .icon { display: none; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual { min-height: 380px; }
  .arc-1 { width: 320px; height: 320px; border-width: 20px; }
  .badge-top { right: 0; top: 10px; }
  .badge-bottom { left: 0; bottom: -10px; }
  .duo-card, .product-card, .form-card, .steps li { padding: 26px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .stats strong { font-size: 1.6rem; }
  .wa-float { width: 60px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Generic WhatsApp buttons land on #seguros: briefly highlight the cards so the client picks one */
#seguros:target .product-card { animation: pick 1.6s ease 0.3s 1; }
@keyframes pick {
  30% { box-shadow: 0 0 0 4px var(--turq), var(--shadow-lg); transform: translateY(-4px); }
}
