/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:          #f0f4f9;
  --bg-white:    #ffffff;
  --dark:        #0d1f3c;
  --dark-2:      #152a50;
  --blue:        #1a56db;
  --blue-mid:    #2563eb;
  --blue-light:  #3b82f6;
  --cyan:        #0ea5e9;
  --grey:        #64748b;
  --grey-light:  #e2e8f0;
  --grey-xlight: #f8fafc;
  --text:        #1e293b;
  --text-soft:   #475569;
  --white:       #ffffff;
  --success:     #22c55e;
  --error:       #ef4444;

  --sans:        'Poppins', system-ui, sans-serif;
  --body:        'Inter', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h:       116px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(13,31,60,0.10);
  --shadow-lg:   0 12px 48px rgba(13,31,60,0.18);
  --gutter:      clamp(1.25rem, 5vw, 2.5rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--sans); text-wrap: balance; line-height: 1.1; letter-spacing: -0.025em; color: var(--dark); }
ul, ol { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--dark); color: var(--white);
  z-index: 9999; border-radius: 8px; font-weight: 500; font-size: .9rem;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-kicker {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.mt-1 { margin-top: 1.25rem; }
.mt-2 { margin-top: 2rem; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Safety: split+reveal never invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26,86,219,.35);
}
.btn-primary:hover { background: var(--dark); box-shadow: 0 6px 28px rgba(13,31,60,.35); }

.btn-ghost {
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,.85); border-color: rgba(255,255,255,.85); color: var(--dark); }

.btn-white {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white:hover { background: var(--grey-xlight); box-shadow: 0 6px 28px rgba(0,0,0,.2); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(13,31,60,.09);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img {
  height: 60px;       /* base: pantallas muy pequeñas (< 400px) */
  width: auto;
  object-fit: contain;
}

/* Móvil medio: 400px–767px */
@media (min-width: 400px) {
  :root { --nav-h: 110px; }
  .nav-logo-img { height: 85px; }
}

/* Tablets y escritorio */
@media (min-width: 768px) {
  :root { --nav-h: 170px; }
  .nav-logo-img { height: 150px; }
}

/* Pantallas muy pequeñas: reducir gap del nav y tamaño del CTA */
@media (max-width: 399px) {
  :root { --nav-h: 84px; }
  .nav-inner { gap: 0.5rem; }
  .nav-cta { font-size: .78rem; padding: .5rem .9rem; }
}
.nav-logo-text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  gap: 0;
}
.nav-logo-text span { color: var(--cyan); }
.nav.is-scrolled .nav-logo-text { color: var(--dark); }

.nav-links {
  display: none;
  gap: .25rem;
  margin-left: auto;
}
.nav-links li a {
  padding: .5rem .85rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .2s, background .2s;
}
.nav.is-scrolled .nav-links li a { color: var(--text-soft); }
.nav-links li a:hover { color: var(--white); background: rgba(255,255,255,.12); }
.nav.is-scrolled .nav-links li a:hover { color: var(--blue); background: rgba(26,86,219,.08); }

.nav-cta { margin-left: auto; font-size: .88rem; padding: .65rem 1.5rem; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.nav.is-scrolled .nav-toggle span { background: var(--dark); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-links.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  padding: 1rem var(--gutter) 1.5rem;
  box-shadow: 0 8px 32px rgba(13,31,60,.12);
}
.nav-links.is-open li a { color: var(--text); padding: .75rem 1rem; border-radius: 8px; display: block; }
.nav-links.is-open li a:hover { color: var(--blue); background: rgba(26,86,219,.06); }
.nav-cta.is-hidden { display: none; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; margin-left: auto; }
  .nav-cta { margin-left: 1rem; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,31,60,.82) 0%,
    rgba(13,31,60,.65) 50%,
    rgba(26,86,219,.35) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 6rem;
  max-width: 760px;
}
.hero-kicker {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp .8s .2s var(--ease-out) forwards;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .8s .4s var(--ease-out) forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--cyan);
  font-weight: 700;
}
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeUp .8s .55s var(--ease-out) forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .8s .7s var(--ease-out) forwards;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  opacity: 0;
  animation: fadeUp .8s .85s var(--ease-out) forwards;
}
.badge {
  display: inline-block;
  padding: .35rem .85rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  font-size: .8rem;
  color: rgba(255,255,255,.9);
  font-family: var(--sans);
  backdrop-filter: blur(8px);
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s 1.2s ease forwards;
}
.hero-scroll-line {
  display: block;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.6));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: .6; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* =============================================================
   7. Trust bar
   ============================================================= */
.trust-bar {
  background: var(--dark);
  padding: 3rem 0;
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: .3rem; }
.trust-value {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}
.trust-label {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  font-family: var(--sans);
  font-weight: 500;
}

@media (min-width: 720px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   8. Benefits
   ============================================================= */
.benefits {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-white);
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.benefit-card {
  background: var(--bg-white);
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
.benefit-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.benefit-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}
.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--dark);
}
.benefit-card p {
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

@media (min-width: 540px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   9. PVC Section
   ============================================================= */
.pvc-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg);
}
.pvc-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.pvc-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pvc-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.pvc-image:hover img { transform: scale(1.04); }
.pvc-image-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  padding: .5rem .9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  box-shadow: 0 4px 16px rgba(26,86,219,.4);
}
.pvc-image-badge span { font-family: var(--sans); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.pvc-image-badge small { font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }

.pvc-content .section-kicker { text-align: left; }
.pvc-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.pvc-desc {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.pvc-features {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2.25rem;
}
.pvc-features li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--text);
}
.check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  margin-top: .15rem;
}

@media (min-width: 960px) {
  .pvc-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

/* =============================================================
   10. Process
   ============================================================= */
.process {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-white);
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin-inline: auto;
}
.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1.5px solid var(--grey-light);
  position: relative;
}
.process-step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--dark) 100%);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 800;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,86,219,.3);
  transition: transform .3s var(--ease-bounce);
}
.process-step:hover .step-num { transform: scale(1.1); }
.step-content { flex: 1; padding-top: .5rem; }
.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--dark);
}
.step-content p { font-size: .95rem; color: var(--text-soft); line-height: 1.65; }

/* =============================================================
   11. Gallery
   ============================================================= */
.gallery {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem .75rem;
  background: linear-gradient(to top, rgba(13,31,60,.75) 0%, transparent 100%);
  color: var(--white);
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 500;
  transform: translateY(4px);
  opacity: 0;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.gallery-item:hover figcaption { transform: translateY(0); opacity: 1; }

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }
  .gallery-item--large { grid-row: span 1; }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--wide img { aspect-ratio: 16/6; }
}
@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-item--large { grid-column: span 1; grid-row: span 1; }
  .gallery-item--wide { grid-column: span 2; }
}

/* =============================================================
   12. CTA Section
   ============================================================= */
.cta-section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
  overflow: hidden;
  text-align: center;
}
.cta-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-bg-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,31,60,.88), rgba(26,86,219,.75));
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-kicker { color: var(--cyan); margin-bottom: 1rem; }
.cta-title {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.cta-note {
  margin-top: 1.25rem;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  font-family: var(--sans);
}

/* =============================================================
   13. Footer
   ============================================================= */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo-img { height: 100px; width: auto; }
@media (min-width: 768px) {
  .footer-logo-img { height: 150px; }
}
.footer-logo-text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
}
.footer-logo-text span { color: var(--cyan); }
.footer-tagline { font-size: .9rem; margin-top: .75rem; line-height: 1.6; max-width: 280px; }
.footer-nav-title {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}
.footer-nav ul, .footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-nav a, .footer-contact a {
  font-size: .92rem;
  transition: color .2s;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-cta { margin-top: 1.5rem; display: inline-flex; }
.footer-bottom {
  padding: 1.5rem 0;
  font-size: .82rem;
  color: rgba(255,255,255,.3);
}
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.footer-seo { color: rgba(255,255,255,.18); }
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-top: .25rem;
}
.footer-legal-links a {
  color: rgba(255,255,255,.35);
  text-decoration: none;
  font-size: .8rem;
  transition: color .2s;
}
.footer-legal-links a:hover { color: var(--cyan); }

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1.5fr; }
  .footer-bottom .container { flex-direction: row; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .5rem; }
  .footer-legal-links { margin-top: 0; }
}

/* =============================================================
   14. Form Modal
   ============================================================= */
.form-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.form-modal[hidden] { display: none; }

.form-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,31,60,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: backdropIn .3s var(--ease-out) both;
}
.form-modal-panel {
  position: relative;
  z-index: 1;
  background: var(--bg-white);
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: panelUp .4s var(--ease-out) both;
  box-shadow: 0 -8px 60px rgba(13,31,60,.25);
}

@media (min-width: 720px) {
  .form-modal {
    align-items: center;
  }
  .form-modal-panel {
    border-radius: var(--radius-lg);
    max-height: 88vh;
  }
}

.form-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--grey-light);
  flex-shrink: 0;
}
.form-header-left { display: flex; align-items: center; gap: 1rem; }
.form-logo-sm {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .9rem;
  color: var(--dark);
}
.form-step-label {
  font-size: .8rem;
  color: var(--grey);
  font-family: var(--sans);
  background: var(--bg);
  padding: .3rem .7rem;
  border-radius: 50px;
}
.form-close {
  color: var(--grey);
  padding: .4rem;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.form-close:hover { color: var(--dark); background: var(--bg); }

.form-progress-track {
  height: 4px;
  background: var(--grey-light);
  flex-shrink: 0;
}
.form-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--blue), var(--cyan));
  border-radius: 0 2px 2px 0;
  transition: width .45s var(--ease-out);
}

.form-steps-container {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.form-step { display: block; }
.form-step[hidden] { display: none; }
.form-step-inner {
  padding: 1.75rem 1.5rem;
}
.form-step-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.form-step h2 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--dark);
}
.form-step-desc {
  font-size: .9rem;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* Form fields */
.form-fields { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 540px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
}
.required { color: var(--blue); }
.form-group input {
  padding: .8rem 1rem;
  border: 1.5px solid var(--grey-light);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
  outline: none;
}
.form-group input.has-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.field-error {
  font-size: .8rem;
  color: var(--error);
  min-height: 1em;
  font-family: var(--sans);
}

/* Option cards */
.option-grid {
  display: grid;
  gap: .75rem;
}
.option-grid--2 { grid-template-columns: repeat(2, 1fr); }
.option-grid--3 { grid-template-columns: repeat(2, 1fr); }
.option-grid--4 { grid-template-columns: repeat(2, 1fr); }
.option-grid--5 { grid-template-columns: repeat(3, 1fr); }

@media (min-width: 480px) {
  .option-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .option-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .option-grid--5 { grid-template-columns: repeat(5, 1fr); }
}

.option-card { cursor: pointer; display: block; }
.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px; height: 1px;
}
.option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1rem .75rem;
  border: 1.5px solid var(--grey-light);
  border-radius: 10px;
  text-align: center;
  background: var(--bg-white);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .15s var(--ease-bounce);
}
.option-card:hover .option-content {
  border-color: var(--blue-light);
  background: rgba(26,86,219,.04);
  transform: translateY(-2px);
}
.option-card input[type="radio"]:checked + .option-content {
  border-color: var(--blue);
  background: rgba(26,86,219,.08);
  box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}
.option-icon { font-size: 1.5rem; }
.option-label {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
}
.option-desc {
  font-size: .75rem;
  color: var(--grey);
  line-height: 1.4;
}
.option-card--sm .option-content { padding: .75rem .5rem; }
.option-card--sm .option-icon { font-size: 1.2rem; }
.option-card--sm .option-label { font-size: .78rem; }

.option-card--color .option-content { flex-direction: row; gap: .75rem; align-items: center; text-align: left; padding: .75rem 1rem; justify-content: flex-start; }
.color-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

/* Summary */
.summary-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: .9rem;
  line-height: 1.6;
}
.summary-row {
  display: flex;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--grey-light);
  align-items: baseline;
}
.summary-row:last-child { border-bottom: none; }
.summary-key {
  flex-shrink: 0;
  width: 140px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.summary-val {
  font-weight: 500;
  color: var(--dark);
}

.laminado-nota {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: .88rem;
  line-height: 1.55;
  color: #92400e;
}
.laminado-nota[hidden] { display: none; }
.laminado-nota span { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }

/* Privacy checkbox */
.privacy-check-wrap {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(13,31,60,.08);
}
.privacy-check-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.4;
}
.privacy-check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.privacy-check-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid rgba(13,31,60,.25);
  border-radius: 5px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}
.privacy-check-label input:checked ~ .privacy-check-box {
  background: var(--blue);
  border-color: var(--blue);
}
.privacy-check-label input:checked ~ .privacy-check-box::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.privacy-check-label a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-check-wrap.has-error .privacy-check-box {
  border-color: #e53e3e;
}
.privacy-check-wrap .field-error {
  margin-top: .4rem;
  margin-left: 2rem;
  font-size: .8rem;
  color: #e53e3e;
}

/* Form nav */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--grey-light);
  flex-shrink: 0;
  background: var(--bg-white);
}
.form-nav-center { display: none; }
.step-dots { display: flex; gap: .4rem; }
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grey-light);
  transition: background .2s, transform .2s;
}
.step-dot.is-active { background: var(--blue); transform: scale(1.25); }
.step-dot.is-done { background: var(--blue-light); }
@media (min-width: 480px) {
  .form-nav { gap: 1rem; padding: 1rem 1.5rem; }
  .form-nav-center { display: flex; flex: 1; justify-content: center; }
}

.btn-send { gap: .5rem; }
.btn-send-loader svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.form-success {
  position: absolute;
  inset: 0;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 2rem;
  gap: 1rem;
  z-index: 10;
}
.form-success[hidden] { display: none; }
.success-icon { margin-bottom: .5rem; }
.success-check { stroke-dasharray: 50; stroke-dashoffset: 50; animation: drawCheck .6s .3s var(--ease-out) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.form-success h2 { font-size: 1.6rem; color: var(--dark); }
.form-success p { color: var(--text-soft); max-width: 360px; font-size: .95rem; line-height: 1.65; }

/* =============================================================
   15. Animations
   ============================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes panelUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   16. Responsive extras
   ============================================================= */
@media (min-width: 960px) {
  .form-step-inner { padding: 2rem 2.25rem; }
  .form-nav { padding: 1.25rem 2rem; }
  .form-modal-header { padding: 1.1rem 2rem; }
}

/* =============================================================
   17. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; }
  .hero-kicker, .hero-title, .hero-sub, .hero-actions, .hero-badges { animation: none; opacity: 1; }
}
