/* ---------- Tokens ---------- */
:root {
  --navy: #1B3A6B;
  --navy-dark: #12294D;
  --orange: #FF6B35;
  --orange-dark: #E8551F;
  --teal: #06A77D;
  --teal-dark: #058C69;

  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --text: #1B2430;
  --text-soft: #5B6B82;
  --border: #E4E9F2;

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

  --shadow-sm: 0 2px 8px rgba(27, 58, 107, 0.08);
  --shadow-md: 0 12px 28px rgba(27, 58, 107, 0.12);

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; color: var(--text-soft); }

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

.text-orange { color: var(--orange); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--orange-dark); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.brand-logo { height: 40px; width: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}
.primary-nav a:not(.btn):hover { color: var(--orange); }
.nav-cta { padding: 10px 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 107, 53, 0.10), transparent 55%),
    radial-gradient(circle at 10% 85%, rgba(6, 167, 125, 0.10), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}
.hero-visual::before {
  width: 60%;
  height: 60%;
  top: -8%;
  right: 0;
  background: rgba(255, 107, 53, 0.22);
}
.hero-visual::after {
  width: 55%;
  height: 55%;
  bottom: -10%;
  left: 4%;
  background: rgba(6, 167, 125, 0.20);
}
.hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(27, 58, 107, 0.22));
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-lead { font-size: 1.05rem; }
.contact-head { text-align: left; margin: 0; max-width: none; }

/* Feature cards */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.icon-navy { background: var(--navy); }
.icon-orange { background: var(--orange); }
.icon-teal { background: var(--teal); }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { margin: 0; }

/* Benefits: bloques de marca */
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}
.blocks-grid > .block-item:nth-child(3n+2) { transform: translateY(-14px); }
.blocks-grid > .block-item:nth-child(3n) { transform: translateY(10px); }
.block-card {
  height: 100%;
  border-radius: 22px;
  padding: 28px 26px 26px;
  color: #fff;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--shadow-sm);
  cursor: default;
}
.block-card:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.block-card.c-navy { background: var(--navy); --rot: -2deg; }
.block-card.c-orange { background: var(--orange); --rot: 3deg; }
.block-card.c-teal { background: var(--teal); --rot: -3deg; }
.block-item:nth-child(2) .block-card { --rot: 2deg; }
.block-item:nth-child(4) .block-card { --rot: 2.5deg; }
.block-item:nth-child(6) .block-card { --rot: -2deg; }
.block-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.block-icon svg { width: 24px; height: 24px; stroke: #fff; }
.block-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.block-card p { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.88); }

/* Steps */
.steps {
  display: grid;
  gap: 24px;
  counter-reset: step;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 28px 32px;
}
.step-num {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
}
.num-navy { background: var(--navy); }
.num-orange { background: var(--orange); }
.num-teal { background: var(--teal); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { margin: 0; }

/* CTA band */
.section-cta {
  background: linear-gradient(120deg, var(--navy), var(--navy-dark));
  padding: 72px 0;
}
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.section-cta h2 { color: #fff; }
.section-cta p { color: rgba(255, 255, 255, 0.8); margin-bottom: 28px; }

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-list { margin-top: 24px; display: grid; gap: 10px; }
.contact-list a { color: var(--teal); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 8px; }
.form-row label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(6, 167, 125, 0.15);
}
.form-submit { justify-self: start; margin-top: 4px; }
.form-note { font-size: 0.9rem; color: var(--teal-dark); min-height: 1.2em; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  height: 34px;
  width: auto;
  border-radius: 6px;
}
.site-footer p { color: rgba(255, 255, 255, 0.6); margin: 0; font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-logo { max-width: 420px; }
  .feature-row { grid-template-columns: 1fr; }
  .blocks-grid { grid-template-columns: repeat(2, 1fr); }
  .blocks-grid > .block-item:nth-child(3n+2),
  .blocks-grid > .block-item:nth-child(3n) { transform: none; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .nav-cta { margin-top: 12px; text-align: center; border-bottom: none !important; }
  .blocks-grid { grid-template-columns: 1fr; }
  .blocks-grid > .block-item:nth-child(3n+2),
  .blocks-grid > .block-item:nth-child(3n) { transform: none; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}
