/* ==========================================================================
   ClickSeguros — Landing Page
   ========================================================================== */

:root {
  --navy-950: #060e29;
  --navy-900: #0a1c42;
  --navy-800: #12285c;
  --navy-700: #1c3d7f;
  --blue-600: #2261e0;
  --blue-500: #3b7cf0;

  --ink: #1a2340;
  --gray-600: #5c6478;
  --gray-300: #d7dced;
  --gray-100: #f3f6fc;
  --white: #ffffff;

  --orange-500: #ff6a1a;
  --orange-600: #ff4a1c;
  --red-600: #e21f2e;
  --gradient-flame: linear-gradient(135deg, #ff8a1e 0%, #ff4a1c 48%, #e21f2e 100%);
  --gradient-navy: linear-gradient(160deg, #0a1c42 0%, #163a7d 100%);

  --shadow-sm: 0 6px 16px -8px rgba(10, 28, 66, 0.25);
  --shadow-md: 0 14px 34px -12px rgba(10, 28, 66, 0.28);
  --shadow-lg: 0 26px 55px -18px rgba(10, 28, 66, 0.38);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container: 1200px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
input { font: inherit; }
svg { width: 1em; height: 1em; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Poppins", "Inter", sans-serif; color: var(--navy-900); line-height: 1.2; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 2000;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

section[id] { scroll-margin-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--gradient-flame);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-900);
}
.btn-ghost-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 11px 22px; font-size: 0.9rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img { border-radius: 12px; }

.nav-list {
  display: flex;
  gap: 32px;
}
.nav-list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  transition: color 0.2s ease;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-list a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.header-whatsapp { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
  height: 72px;
}
.site-header.is-scrolled .nav-list a { color: var(--navy-900); }
.site-header.is-scrolled .icon-btn { background: var(--gray-100); color: var(--navy-900); }
.site-header.is-scrolled .icon-btn:hover { background: var(--gray-300); }
.site-header.is-scrolled .menu-toggle span { background: var(--navy-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-navy);
  padding: calc(var(--header-h) + 64px) 0 96px;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }

.hero-dots {
  position: absolute;
  top: 40px; left: 24px;
  width: 140px; height: 100px;
  background-image: radial-gradient(rgba(255,255,255,0.35) 1.6px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.hero-glow--orange { background: var(--orange-600); top: -120px; right: -100px; }
.hero-glow--blue { background: var(--blue-500); bottom: -160px; left: -120px; opacity: 0.3; }

.hero-shield {
  position: absolute;
  right: 6%;
  bottom: -10%;
  width: 340px;
  height: 370px;
  color: rgba(255, 255, 255, 0.08);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.badge svg { color: var(--orange-500); width: 18px; height: 18px; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.text-accent { color: var(--orange-500); }

.hero-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-discount {
  position: relative;
  background: var(--gradient-flame);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  width: 100%;
  max-width: 300px;
}
.hero-discount__label { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; opacity: 0.9; }
.hero-discount__value { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 4.2rem; line-height: 1; margin-top: 4px; }
.hero-discount__value small { font-size: 2rem; }
.hero-discount__text { font-weight: 700; font-size: 1.15rem; margin-top: 2px; }
.hero-discount__pill {
  margin-top: 18px;
  background: var(--navy-900);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--gray-100); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--gray-600); margin-top: 14px; font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-600);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow svg { width: 16px; height: 16px; }

.section-head h2, .online-content h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-card__img { height: 240px; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

.service-card__body { padding: 30px 28px 32px; }

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gray-100);
  color: var(--blue-600);
  margin-bottom: 18px;
  margin-top: -60px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.service-card__icon svg { width: 26px; height: 26px; }

.service-card__body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card__body p { color: var(--gray-600); margin-bottom: 18px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-900);
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow svg { width: 18px; height: 18px; color: var(--orange-600); transition: transform 0.2s ease; }
.link-arrow:hover { gap: 12px; color: var(--orange-600); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.benefit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gradient-navy);
  color: var(--white);
  margin-bottom: 20px;
}
.benefit-card__icon svg { width: 30px; height: 30px; }

.benefit-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.benefit-card p { color: var(--gray-600); }

/* ---------- Online + WhatsApp ---------- */
.online-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  background: var(--gradient-navy);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow: hidden;
}

.online-media { border-radius: var(--radius-md); overflow: hidden; height: 420px; box-shadow: var(--shadow-lg); }
.online-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.online-content { padding: 20px 36px 20px 0; }

.eyebrow--onnavy { color: var(--orange-500); }
.text-onnavy { color: var(--white); }
.text-onnavy-muted { color: rgba(255, 255, 255, 0.75); margin: 16px 0 26px; font-size: 1.05rem; }

.online-content h2 { margin-bottom: 4px; }

.online-whatsapp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  margin-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.online-whatsapp__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--orange-500);
  flex-shrink: 0;
}
.online-whatsapp__icon svg { width: 20px; height: 20px; }

/* ---------- Companies ---------- */
.companies-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.companies-row li {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Quote form ---------- */
.quote-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.quote-form { padding: 44px; }

.vehicle-toggle {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 30px;
  gap: 6px;
}
.vehicle-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--gray-600);
  transition: background 0.25s ease, color 0.25s ease;
}
.vehicle-toggle__btn svg { width: 20px; height: 20px; }
.vehicle-toggle__btn.is-active {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy-800); }
.field input {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
}
.field input::placeholder { color: #a7adc0; }
.field input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 124, 240, 0.15);
  outline: none;
}
.field input:invalid:not(:placeholder-shown):not(:focus) { border-color: var(--red-600); }

.field-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.quote-form__note { color: var(--gray-600); font-size: 0.85rem; max-width: 320px; }

.btn-submit { position: relative; min-width: 210px; justify-content: center; }
.btn-submit__spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
}
.btn-submit.is-loading .btn-submit__label { opacity: 0.6; }
.btn-submit.is-loading .btn-submit__spinner { display: inline-block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-alert.is-success { background: #e7f7ee; color: #1c7c4d; }
.form-alert.is-error { background: #fdeceb; color: #c0281c; }

.quote-side { position: relative; min-height: 100%; }
.quote-side img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; position: absolute; inset: 0; }
.quote-side__overlay {
  position: relative;
  height: 100%;
  min-height: 460px;
  background: linear-gradient(100deg, rgba(10,28,66,0.97) 0%, rgba(10,28,66,0.9) 45%, rgba(10,28,66,0.35) 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px;
}
.quote-side__content h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 10px; }
.quote-side__content p { color: rgba(255,255,255,0.8); margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.75); padding: 72px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img { border-radius: 12px; margin-bottom: 16px; }
.footer-brand p { max-width: 260px; }

.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a:hover { color: var(--orange-500); }

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--white);
}
.footer-whatsapp svg { width: 18px; height: 18px; color: var(--orange-500); }

.footer-bottom { padding: 24px 0; text-align: center; font-size: 0.85rem; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gradient-flame);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: transform 0.2s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-discount { justify-self: start; margin-top: 12px; }
  .online-grid { grid-template-columns: 1fr; }
  .online-media { height: 320px; }
  .online-content { padding: 12px 12px 28px; }
  .quote-panel { grid-template-columns: 1fr; }
  .quote-side__overlay { min-height: 300px; background: linear-gradient(180deg, rgba(10,28,66,0.55) 0%, rgba(10,28,66,0.95) 70%); align-items: flex-end; }
}

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy-900); padding: 32px 24px; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; }
  .nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 22px; }
  .nav-list a { font-size: 1.2rem; }
  .header-whatsapp { display: none !important; }
  .menu-toggle { display: flex; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .btn-sm { display: none; }

  .hero { padding: calc(var(--header-h) + 40px) 0 64px; }
  .hero-discount { max-width: 100%; }

  .section { padding: 64px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .quote-form { padding: 28px; }
  .quote-form__footer { flex-direction: column; align-items: stretch; }
  .btn-submit { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (min-width: 721px) {
  .header-whatsapp { display: inline-flex; }
}
