/* ============================================================
   MTB Seguros — Website component styles
   Production recreation of the design-kit prototype.
   Tokens come from colors_and_type.css.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--mtb-navy-900);
  color: var(--fg-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
::selection { background: rgba(212, 175, 55, .3); }

/* Layout helper */
.mtb-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* Reveal-on-scroll, respects reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display); font-weight: 700;
  border-radius: var(--r-md); border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px; letter-spacing: .01em;
  white-space: nowrap; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              filter var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-md { padding: 13px 22px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 15.5px; }
.btn-sm .lucide { width: 16px; height: 16px; }
.btn-md .lucide { width: 17px; height: 17px; }
.btn-lg .lucide { width: 18px; height: 18px; }

.btn-primary { background: var(--gold-metal); color: var(--fg-on-gold); box-shadow: var(--glow-gold); }
.btn-blue    { background: linear-gradient(160deg, #4FB0EE, #1B6FB5); color: #fff; box-shadow: var(--glow-blue); }
.btn-ghost   { background: transparent; color: var(--fg-gold); border: 1px solid var(--line-gold); }
.btn-dark    { background: var(--mtb-navy-700); color: var(--fg-1); border: 1px solid var(--line-cool); }
.btn-block   { width: 100%; justify-content: center; }

/* ---------- Icon helpers ---------- */
.icon-gold { color: var(--gold-300); }
.icon-tile {
  display: flex; align-items: center; justify-content: center;
  background: rgba(212, 175, 55, .1); border: 1px solid var(--line-gold);
}
/* Lucide renders <svg class="lucide">; size per context via CSS. */
.lucide { width: 20px; height: 20px; flex: none; }
.mtb-prod-icon .lucide { width: 26px; height: 26px; }
.mtb-cons-card .icon-tile .lucide { width: 21px; height: 21px; }
.mtb-contact-row .icon-tile .lucide { width: 17px; height: 17px; }
.mtb-foot-social .lucide { width: 17px; height: 17px; }
.mtb-diff-card > .lucide { width: 28px; height: 28px; stroke-width: 1.8; }
.mtb-cta-success .check .lucide { width: 30px; height: 30px; color: #5fd6a4; }

/* ---------- Header ---------- */
.mtb-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 9, 18, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-gold-soft);
}
.mtb-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px; height: 76px;
  display: flex; align-items: center; justify-content: space-between;
}
.mtb-logo img { height: 46px; }
.mtb-nav { display: flex; align-items: center; gap: 30px; }
.mtb-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  color: var(--fg-2); text-decoration: none; letter-spacing: .01em;
  transition: color var(--dur) var(--ease-out);
}
.mtb-nav a:hover { color: var(--gold-200); }
.mtb-nav a.active { color: var(--fg-gold); }

/* ---------- Hero ---------- */
.mtb-hero { position: relative; overflow: hidden; }
.mtb-hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 15% 0%, rgba(20, 28, 52, .85), rgba(4, 6, 13, 0) 60%);
}
.mtb-hero-dots {
  position: absolute; top: 0; left: 0; width: 420px; height: 320px; opacity: .5;
  background-image: radial-gradient(rgba(212, 175, 55, .18) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(60% 60% at 0% 0%, #000, transparent);
  mask-image: radial-gradient(60% 60% at 0% 0%, #000, transparent);
}
.light-streak {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(26px); opacity: .5;
  background: conic-gradient(from 200deg at 70% 60%, transparent, rgba(212, 175, 55, .42), rgba(47, 160, 234, .42), transparent);
}
.mtb-hero-grid {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: 92px 28px 84px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.mtb-hero h1 { margin: 0; max-width: 640px; }
.mtb-hero .mtb-lead { margin: 24px 0 0; max-width: 520px; }
.mtb-hero .mtb-lead strong { color: var(--fg-1); font-weight: 700; }
.mtb-hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.mtb-hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.mtb-stat-n { font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; }
.mtb-stat-l { margin-top: 6px; }

.mtb-hero-seal { position: relative; display: flex; justify-content: center; }
.mtb-seal-frame {
  position: relative; border-radius: 28px; padding: 34px;
  border: 1px solid var(--line-gold);
  box-shadow: inset 0 1px 0 rgba(244, 220, 147, .22), var(--shadow-raised);
  background: radial-gradient(120% 120% at 30% 10%, #0E1730, #05070F);
}
.mtb-seal-frame img {
  width: 320px; max-width: 46vw; border-radius: 50%;
  box-shadow: 0 0 60px -12px rgba(212, 175, 55, .4);
}
.mtb-seal-badge {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  background: var(--gold-metal); color: var(--fg-on-gold);
  font-family: var(--font-display); font-weight: 800; font-size: 12.5px; letter-spacing: .06em;
  padding: 8px 18px; border-radius: 999px; white-space: nowrap;
  text-transform: uppercase; box-shadow: var(--glow-gold);
}

/* ---------- Section heads ---------- */
.mtb-section { position: relative; padding: 88px 0; }
.mtb-head-center { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.mtb-head-center .mtb-h1 { margin: 0; }
.mtb-head-center .mtb-lead { margin: 16px 0 0; }

/* ---------- Products ---------- */
.mtb-prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mtb-prod-card {
  position: relative; background: var(--mtb-navy-700);
  border: 1px solid var(--line-gold-soft); border-radius: var(--r-lg);
  padding: 26px 24px; box-shadow: var(--shadow-card);
  transition: all var(--dur) var(--ease-out);
}
.mtb-prod-card:hover {
  border-color: var(--gold-400); box-shadow: var(--glow-gold); transform: translateY(-4px);
}
.mtb-prod-tag {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 10.5px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--gold-200);
  background: rgba(212, 175, 55, .14); border: 1px solid var(--line-gold);
  padding: 4px 9px; border-radius: 6px;
}
.mtb-prod-icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px; }
.mtb-prod-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--fg-1); margin: 0 0 8px;
}
.mtb-prod-card p { margin: 0 0 20px; font-size: 14.5px; color: var(--fg-3); }

/* ---------- Consórcio ---------- */
.mtb-cons {
  position: relative; background: var(--mtb-navy-800);
  border-top: 1px solid var(--line-gold-soft); border-bottom: 1px solid var(--line-gold-soft);
}
.mtb-cons-inner { max-width: 1200px; margin: 0 auto; padding: 84px 28px; }
.mtb-cons-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.mtb-cons-grid .mtb-h1 { margin: 0; }
.mtb-cons-grid .mtb-lead { margin: 16px 0 28px; }
.mtb-cons-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mtb-cons-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--mtb-navy-700); border: 1px solid var(--line-gold-soft);
  border-radius: var(--r-md); padding: 18px;
}
.mtb-cons-card .icon-tile { width: 42px; height: 42px; flex: none; border-radius: 11px; }
.mtb-cons-card .name {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--fg-1); margin-bottom: 3px;
}

/* ---------- Differentials ---------- */
.mtb-diff { position: relative; overflow: hidden; padding: 90px 0; }
.mtb-diff-glow {
  position: absolute; left: -160px; top: 50%; transform: translateY(-50%);
  width: 460px; height: 460px; opacity: .4; border-radius: 50%; filter: blur(40px);
  background: conic-gradient(from 120deg at 50% 50%, transparent, rgba(47, 160, 234, .4), rgba(212, 175, 55, .4), transparent);
}
.mtb-diff-head { max-width: 620px; margin-bottom: 48px; }
.mtb-diff-head .mtb-h1 { margin: 0; }
.mtb-diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mtb-diff-card { border-top: 1px solid var(--line-gold); padding-top: 22px; }
.mtb-diff-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--fg-1); margin: 16px 0 8px;
}
.mtb-diff-card p { margin: 0; font-size: 14px; color: var(--fg-3); }

/* ---------- Quote CTA ---------- */
.mtb-cta { position: relative; overflow: hidden; padding: 90px 0 100px; background: var(--mtb-black); }
.mtb-cta-inner { position: relative; max-width: 1000px; margin: 0 auto; padding: 0 28px; }
.mtb-cta-panel {
  border: 1px solid var(--line-gold); border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(244, 220, 147, .2), var(--shadow-raised);
  background: radial-gradient(130% 120% at 18% 0%, #0E1730, #05070F);
  padding: 44px 44px 48px;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center;
}
.mtb-cta-panel .mtb-h2 { margin: 0 0 14px; }
.mtb-cta-lead { margin: 0 0 22px; color: var(--fg-2); }
.mtb-contact-list { display: flex; flex-direction: column; gap: 12px; }
.mtb-contact-row { display: flex; align-items: center; gap: 12px; }
.mtb-contact-link { text-decoration: none; border-radius: var(--r-sm); transition: opacity var(--dur) var(--ease-out); }
.mtb-contact-link:hover { opacity: .85; }
.mtb-contact-link:hover .icon-tile { border-color: var(--gold-400); }
.mtb-contact-row .icon-tile { width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgba(212, 175, 55, .08); }
.mtb-contact-t { font-family: var(--font-body); font-size: 14.5px; color: var(--fg-1); font-weight: 600; }
.mtb-contact-s { font-size: 12px; }

/* Form */
.mtb-form { display: flex; flex-direction: column; gap: 16px; }
.mtb-field-label,
.mtb-form-legend {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 7px;
}
.mtb-form-legend { margin-bottom: 9px; }
.mtb-field-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--mtb-navy-800); border: 1px solid var(--line-cool);
  border-radius: var(--r-md); padding: 13px 15px;
  transition: all var(--dur) var(--ease-out);
}
.mtb-field-box:focus-within { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(212, 175, 55, .15); }
.mtb-field-box input {
  background: none; border: 0; outline: 0; color: var(--fg-1);
  font-family: var(--font-body); font-size: 15px; width: 100%;
}
.mtb-field-box input::placeholder { color: var(--fg-4); }
.mtb-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mtb-chip {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-gold); background: rgba(212, 175, 55, .06); color: var(--fg-gold);
  transition: all var(--dur-fast) var(--ease-out);
}
.mtb-chip.active { border-color: transparent; background: var(--gold-metal); color: var(--fg-on-gold); }
.mtb-form .btn-lg { margin-top: 6px; }

/* Success state */
.mtb-cta-success { text-align: center; padding: 30px 10px; }
.mtb-cta-success .check {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(54, 179, 126, .14); border: 1px solid rgba(54, 179, 126, .5);
}
.mtb-cta-success .mtb-h3 { margin: 0 0 8px; }
.mtb-cta-success p { margin: 0 0 20px; color: var(--fg-3); }
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.mtb-footer { background: var(--mtb-black); border-top: 1px solid var(--line-gold-soft); }
.mtb-footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 28px 28px; }
.mtb-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.mtb-foot-brand img { height: 52px; margin-bottom: 16px; }
.mtb-foot-brand p { max-width: 260px; line-height: 1.6; }
.mtb-foot-social { display: flex; gap: 10px; margin-top: 18px; }
.mtb-foot-social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-gold-soft); color: var(--gold-300);
}
.mtb-foot-col h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--fg-gold);
  margin: 0 0 16px;
}
.mtb-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.mtb-foot-col a {
  font-family: var(--font-body); font-size: 14px; color: var(--fg-3);
  text-decoration: none; transition: color var(--dur) var(--ease-out);
}
.mtb-foot-col a:hover { color: var(--fg-1); }
.mtb-foot-bottom {
  border-top: 1px solid var(--line-hair); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.mtb-foot-bottom .mtb-small { font-size: 12.5px; }

/* ---------- Responsive (mirrors prototype) ---------- */
@media (max-width: 920px) {
  .mtb-hero-grid, .mtb-cons-grid, .mtb-cta-panel { grid-template-columns: 1fr; }
  .mtb-hero-seal { order: -1; }
  .mtb-prod-grid, .mtb-diff-grid { grid-template-columns: repeat(2, 1fr); }
  .mtb-foot-grid { grid-template-columns: 1fr 1fr; }
  .mtb-nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .mtb-prod-grid, .mtb-diff-grid, .mtb-cons-cards, .mtb-foot-grid { grid-template-columns: 1fr; }
  .mtb-hero-stats { flex-wrap: wrap; gap: 24px; }
}
