/* =====================================================
   ATLAS CAE — main.css
   ===================================================== */

/* ── 1. Variables ──────────────────────────────────── */
:root {
  --teal:         #00C49A;
  --teal-hover:   #00b388;
  --teal-dim:     rgba(0,196,154,.10);
  --teal-border:  rgba(0,196,154,.22);
  --teal-ring:    rgba(0,196,154,.22);
  --cielo:        #1B9ED4;

  --dark-950: #060d1a;
  --dark-900: #0A1628;
  --dark-800: #0f1e35;
  --dark-700: #162540;
  --dark-600: #1e2f4f;
  --dark-500: #283d62;

  --text-100: #f8fafc;
  --text-300: #cbd5e1;
  --text-500: #64748b;

  --border:       rgba(255,255,255,.07);
  --border-light: rgba(255,255,255,.13);

  --r-sm:  8px;
  --r:     12px;
  --r-lg:  20px;
  --r-xl:  28px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.3);
  --shadow-md:   0 4px 20px rgba(0,0,0,.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.5);
  --shadow-teal: 0 8px 32px rgba(0,196,154,.25);
}

/* ── 2. Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul { list-style: none; }

/* ── 3. Base ───────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: var(--dark-900);
  color: var(--text-100);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }

/* ── 4. Scroll progress bar ────────────────────────── */
#scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--teal);
  width: 0%;
  z-index: 9999;
  transition: width .05s linear;
  box-shadow: 0 0 8px rgba(0,196,154,.6);
}

/* ── 5. Header ─────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(10,22,40,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem,4vw,3.5rem);
  z-index: 500;
  transition: background .3s;
}
.site-header.scrolled { background: rgba(10,22,40,.97); }

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  overflow: visible;
}
/* Glass plate — background shows through the PNG's transparent margin areas.
   brightness() lifts dark logo content against the dark header. */
.logo-png-img {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  /* invert + hue-rotate(180deg) flips dark→light while preserving teal hue.
     contrast/brightness tune the result; drop-shadow adds the soft glow. */
  filter:
    invert(1)
    hue-rotate(180deg)
    brightness(1.08)
    contrast(1.05)
    drop-shadow(0 0 6px rgba(0, 196, 154, 0.45));
  image-rendering: -webkit-optimize-contrast;
  transition: filter .3s ease;
}
.logo-png-footer {
  height: 48px;
}
.logo:hover .logo-png-img {
  filter:
    invert(1)
    hue-rotate(180deg)
    brightness(1.15)
    contrast(1.08)
    drop-shadow(0 0 12px rgba(0, 196, 154, 0.7));
}

.header-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}
.header-nav a {
  color: var(--text-500);
  text-decoration: none;
  font-size: .875rem; font-weight: 600;
  padding: .4rem .85rem;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.current { color: var(--text-100); background: var(--border); }
.header-nav a.current { color: var(--teal); }

.header-cta {
  background: var(--teal);
  color: var(--dark-900);
  padding: .5rem 1.2rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: background .2s, box-shadow .2s, transform .1s;
}
.header-cta:hover {
  background: var(--teal-hover);
  box-shadow: var(--shadow-teal);
  transform: translateY(-1px);
}
.header-cta.current { color: var(--dark-900); }

/* ── 6. Mobile nav ─────────────────────────────────── */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  cursor: pointer;
  gap: 5px;
  z-index: 600;
  flex-shrink: 0;
}
.mobile-toggle .bar {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text-300);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.mobile-toggle.open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle.open .bar:nth-child(2) { opacity: 0; }
.mobile-toggle.open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 62px 0 0;
  background: rgba(10,22,40,.98);
  backdrop-filter: blur(16px);
  z-index: 490;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-300);
  text-decoration: none;
  font-size: 1.25rem; font-weight: 600;
  padding: .85rem 2rem;
  border-radius: var(--r);
  width: 100%;
  text-align: center;
  transition: color .2s, background .2s;
  border: 1px solid transparent;
}
.mobile-nav a:hover { color: var(--text-100); background: var(--border); }
.mobile-nav a.current { color: var(--teal); border-color: var(--teal-border); background: var(--teal-dim); }
.mobile-nav .mobile-cta {
  background: var(--teal);
  color: var(--dark-900);
  font-weight: 700;
  margin-top: .5rem;
  border-color: transparent;
}
.mobile-nav .mobile-cta:hover { background: var(--teal-hover); }

/* ── 7. Buttons (shared) ───────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--teal);
  color: var(--dark-900);
  border: none;
  border-radius: var(--r-sm);
  padding: .78rem 1.5rem;
  font-size: .9rem; font-weight: 700; font-family: inherit;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--teal-hover);
  box-shadow: var(--shadow-teal);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary.full-width { width: 100%; }
.btn-primary.btn-success { background: #00a882; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--text-300);
  background: transparent;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: .78rem 1.5rem;
  font-size: .9rem; font-weight: 600; font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}
.btn-secondary:hover {
  color: var(--text-100);
  border-color: rgba(255,255,255,.25);
  background: var(--border);
}

.btn-ghost {
  display: inline-flex; align-items: center;
  width: auto; padding: .28rem .7rem;
  font-size: .775rem; font-weight: 600; font-family: inherit;
  border-radius: 99px; background: transparent;
  color: var(--text-500);
  border: 1.5px solid rgba(255,255,255,.12);
  cursor: pointer; white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
  flex-shrink: 0; line-height: 1.4;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.25); color: var(--text-100); background: var(--border); }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal);
  color: var(--dark-900);
  font-size: .95rem; font-weight: 700; font-family: inherit;
  padding: .9rem 1.9rem;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .15s;
  white-space: nowrap;
}
.btn-hero-primary:hover {
  background: var(--teal-hover);
  box-shadow: var(--shadow-teal);
  transform: translateY(-2px);
}
.btn-hero-primary:active { transform: translateY(0); }

.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--text-300);
  font-size: .95rem; font-weight: 600; font-family: inherit;
  padding: .9rem 1.5rem;
  border-radius: var(--r);
  border: 1.5px solid var(--border-light);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}
.btn-hero-ghost:hover {
  color: var(--text-100);
  border-color: rgba(255,255,255,.25);
  background: var(--border);
}

.btn-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(10,22,40,.25);
  border-top-color: var(--dark-900);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

/* ── 8. Section utilities ──────────────────────────── */
.section-wrap {
  padding: clamp(4rem,8vw,8rem) clamp(1.25rem,5vw,4.5rem);
  max-width: 1280px;
  margin: 0 auto;
}
.section-wrap.narrow { max-width: 860px; }

.section-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1.5px;
  background: var(--teal);
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.9rem,3.5vw,3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--text-100);
}

.section-sub {
  font-size: 1rem; font-weight: 400;
  color: var(--text-500);
  line-height: 1.7;
}

/* Chip badge */
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  padding: .2rem .55rem;
  border-radius: 99px;
}
.chip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* Step tag */
.step-tag {
  display: inline-block;
  margin-top: .75rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  padding: .2rem .6rem;
  border-radius: 99px;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── 9. Hero (index) ───────────────────────────────── */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 62px;
}

.hero-rings {
  position: absolute;
  right: -8%; top: 50%;
  transform: translateY(-50%);
  width: 60%; height: 130%;
  pointer-events: none;
  opacity: .04;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem,5vw,5rem) clamp(1.25rem,4vw,4.5rem);
  max-width: 700px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  padding: .3rem .8rem;
  border-radius: 99px;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp .5s ease .2s forwards;
}

.hero-h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.6rem,5vw,4.4rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.04;
  color: var(--text-100);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .6s ease .4s forwards;
}
.hero-h1 .accent { color: var(--teal); }

.hero-sub {
  font-size: 1.05rem; font-weight: 400;
  color: var(--text-500);
  line-height: 1.75;
  max-width: 46ch;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .6s ease .6s forwards;
}

.hero-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp .6s ease .8s forwards;
}

.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 3.5rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp .6s ease 1s forwards;
}
.hero-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem; font-weight: 700;
  color: var(--teal); letter-spacing: -.02em;
}
.hero-stat-label {
  font-size: .78rem; font-weight: 500;
  color: var(--text-500); margin-top: .1rem;
}

/* ── 10. Page hero (sub-pages) ─────────────────────── */
.page-hero {
  background: var(--dark-950);
  border-bottom: 1px solid var(--border);
  padding: clamp(5.5rem,10vw,9rem) clamp(1.25rem,5vw,4.5rem) clamp(3rem,5vw,5rem);
}
.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem,4vw,3.2rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--text-100);
  max-width: 18ch;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--text-500);
  line-height: 1.7;
  max-width: 52ch;
  margin-top: 1rem;
}

/* ── 11. Stats strip ───────────────────────────────── */
#stats {
  background: var(--dark-800);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem clamp(1.25rem,5vw,4.5rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  max-width: 1280px;
  margin: 0 auto;
  gap: 1.5rem;
}
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  transition: border-color .3s, background .3s;
}
.stat-item:hover {
  border-color: var(--teal-border);
  background: var(--teal-dim);
}
.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.6rem,3vw,2.4rem);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -.03em;
  display: block;
  margin-bottom: .4rem;
}
.stat-desc {
  font-size: .82rem; font-weight: 500;
  color: var(--text-500); line-height: 1.4;
}

/* ── 12. Process steps ─────────────────────────────── */
.steps { display: flex; flex-direction: column; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  left: 27px; top: 56px; bottom: 56px;
  width: 1px;
  background: linear-gradient(to bottom, var(--teal-border), transparent);
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: border-bottom-color .25s;
}
.step:last-child { border-bottom: none; }
.step:hover { border-bottom-color: var(--teal-border); }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--dark-700);
  border: 1.5px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem; font-weight: 700;
  color: var(--teal); flex-shrink: 0;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.step:hover .step-num {
  background: var(--teal-dim);
  border-color: var(--teal-border);
  box-shadow: 0 0 20px rgba(0,196,154,.2);
}
.step-content { padding-top: .75rem; }
.step-title {
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-100); margin-bottom: .4rem; letter-spacing: -.01em;
  transition: color .2s;
}
.step:hover .step-title { color: var(--teal); }
.step-desc {
  font-size: .9rem; color: var(--text-500); line-height: 1.65; max-width: 54ch;
}

/* ── 13. CTA bifurcación ───────────────────────────── */
.cta-bifurcacion {
  background: var(--dark-800);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 2.5rem 2.75rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin-top: 3rem;
}
.cta-bifurcacion-text .label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .5rem;
}
.cta-bifurcacion-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  letter-spacing: -.01em; color: var(--text-100);
  margin-bottom: .35rem;
}
.cta-bifurcacion-text p {
  font-size: .9rem; color: var(--text-500); max-width: 44ch; line-height: 1.6;
}

/* ── 14. Calculator card ───────────────────────────── */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 5rem;
  align-items: start;
}
.calc-intro { position: sticky; top: 100px; }
.calc-intro .section-title { margin-bottom: 1rem; }
.calc-intro > p {
  font-size: .975rem; color: var(--text-500); line-height: 1.7;
  max-width: 44ch; margin-bottom: 2rem;
}
.calc-feature {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem;
}
.calc-feature-icon {
  width: 36px; height: 36px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.calc-feature-text { font-size: .875rem; color: var(--text-500); line-height: 1.55; }
.calc-feature-text strong { color: var(--text-100); font-weight: 600; display: block; margin-bottom: .1rem; }

.tool-card {
  background: var(--dark-900);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.tool-nav-wrapper {
  display: flex; justify-content: center;
  padding: 1.25rem 1.5rem 0;
}
.tool-nav {
  display: inline-flex;
  background: var(--dark-700);
  border: 1px solid var(--dark-500);
  border-radius: 99px;
  padding: 4px; gap: 2px;
}
.tool-nav button {
  color: var(--text-500);
  font-size: .875rem; font-weight: 600; font-family: inherit;
  padding: .45rem 1.25rem;
  border-radius: 99px;
  border: none; background: transparent;
  transition: color .15s, background .15s;
  cursor: pointer; white-space: nowrap;
}
.tool-nav button.active {
  background: var(--teal);
  color: var(--dark-800);
}
.tool-nav button:not(.active):hover { color: #fff; background: var(--dark-600); }

.tool-head {
  background: var(--dark-800);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.tool-head h2 {
  font-size: 1.05rem; font-weight: 700; color: #f1f5f9; letter-spacing: -.01em;
  margin-top: .35rem;
}
.tool-body { padding: 1.5rem; }

/* ── 15. Form elements ─────────────────────────────── */
.form-stack { display: flex; flex-direction: column; gap: 1.1rem; border: none; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label {
  font-size: .825rem; font-weight: 600;
  color: var(--text-100); line-height: 1.4;
}
select,
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
textarea {
  background: var(--dark-800);
  border: 1.5px solid rgba(255,255,255,.1);
  color: var(--text-100);
  padding: .6rem .9rem;
  min-height: 44px;
  border-radius: var(--r-sm);
  font-size: .9rem; font-family: inherit;
  outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
textarea {
  resize: vertical; min-height: 110px; line-height: 1.6;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%2394a3b8' d='M6 7L.5 0h11z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.25rem; cursor: pointer;
}
select option { background: var(--dark-800); }
select:focus,
input:not([type="file"]):focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-ring);
}
select:hover:not(:focus),
input:not([type="file"]):hover:not(:focus),
textarea:hover:not(:focus) { border-color: rgba(255,255,255,.2); }
input[readonly] {
  background: rgba(255,255,255,.03);
  color: var(--text-500); cursor: default; border-style: dashed;
}
input[type="file"] {
  padding: .45rem .9rem;
  color: var(--text-500); font-size: .875rem; cursor: pointer;
}
::file-selector-button {
  background: var(--dark-700); color: #e2e8f0;
  border: 1px solid var(--dark-500); border-radius: 6px;
  padding: .28rem .7rem; font-weight: 600; cursor: pointer;
  font-size: .825rem; font-family: inherit;
  margin-right: .6rem; transition: background .15s;
}
::file-selector-button:hover { background: var(--dark-600); }

.field.has-error select,
.field.has-error input,
.field.has-error textarea { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.field.has-warn select,
.field.has-warn input { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.12); }

.field-msg {
  display: none; align-items: center; gap: .3rem;
  font-size: .775rem; font-weight: 500;
  border-radius: 6px; padding: .35rem .6rem;
}
.field-msg.error {
  display: flex; background: rgba(239,68,68,.1);
  color: #ef4444; border: 1px solid rgba(239,68,68,.2);
}
.field-msg.warn {
  display: flex; background: rgba(245,158,11,.1);
  color: #f59e0b; border: 1px solid rgba(245,158,11,.2);
}

.form-alert {
  padding: 1rem 1.1rem; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 600;
  display: none; align-items: center; gap: .6rem;
}
.form-alert.success {
  display: flex; background: var(--teal-dim);
  border: 1px solid var(--teal-border); color: var(--teal);
}
.form-alert.error {
  display: flex; background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2); color: #ef4444;
}

.consent-row {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .9rem 1rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.consent-row input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0;
  accent-color: var(--teal); margin-top: .15rem;
  border: none; padding: 0;
}
.consent-row label {
  font-size: .82rem; font-weight: 400;
  color: var(--text-500); cursor: pointer; line-height: 1.55;
}
.consent-row a { color: var(--teal); text-decoration: none; }
.consent-row a:hover { text-decoration: underline; }

/* ── 16. Calculator results ────────────────────────── */
.resultado-block {
  background: var(--dark-700);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: .7rem;
  margin-top: .15rem;
}
.resultado-row {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: .75rem;
}
.resultado-label {
  font-size: .775rem; font-weight: 600; color: var(--text-500); flex-shrink: 0;
}
.resultado-valor {
  font-size: 1.05rem; font-weight: 700;
  color: var(--teal); text-align: right;
  font-family: 'JetBrains Mono', monospace;
}
.resultado-sep { height: 1px; background: var(--border); }

/* PDF gate button area */
.pdf-gate-area {
  margin-top: 1.25rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.pdf-gate-note {
  font-size: .775rem; color: var(--text-500); text-align: center; line-height: 1.5;
}

/* ── 17. Justification flow ────────────────────────── */
.label-con-boton {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: .75rem;
}
.label-con-boton label { flex: 1; cursor: pointer; }
.detalle-saber-mas {
  display: none;
  padding: .75rem .9rem;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.03);
  color: var(--text-500);
  font-size: .845rem; line-height: 1.55;
}
.detalle-saber-mas ul { margin-top: .4rem; padding-left: 1.1rem; list-style: disc; }
.detalle-saber-mas li { color: var(--text-500); font-size: .845rem; margin-bottom: .15rem; font-weight: 500; }
.archivo-confirmado {
  display: flex; align-items: center; gap: .4rem;
  color: #00a882; font-size: .8rem; font-weight: 600;
}
.mensaje-final {
  display: none; align-items: center; gap: .5rem;
  padding: .8rem 1rem;
  background: var(--teal-dim);
  border: 1.5px solid var(--teal-border);
  border-radius: var(--r-sm);
  color: var(--teal);
  font-size: .875rem; font-weight: 600;
}
.progreso-wrapper { margin-bottom: 1.2rem; }
.progreso-info {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: .5rem;
}
.progreso-label {
  font-size: .775rem; font-weight: 600;
  color: var(--text-500); text-transform: uppercase; letter-spacing: .05em;
}
.progreso-steps { font-size: .775rem; font-weight: 700; color: var(--teal); }
.progreso-track {
  height: 5px; background: var(--dark-700);
  border: 1px solid var(--border); border-radius: 99px; overflow: hidden;
}
#barra-progreso {
  height: 100%; background: var(--teal);
  border-radius: 99px; width: 20%;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}

/* ── 18. PDF gate modal ────────────────────────────── */
.pdf-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(6,13,26,.95);
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.pdf-modal-overlay.open { display: flex; }
.pdf-modal {
  background: var(--dark-800);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  max-width: 440px; width: 100%;
  position: relative;
}
.pdf-modal h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  letter-spacing: -.01em; margin-bottom: .35rem;
}
.pdf-modal p {
  font-size: .875rem; color: var(--text-500); margin-bottom: 1.5rem; line-height: 1.6;
}
.pdf-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: 1px solid var(--border);
  color: var(--text-300); width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.pdf-modal-close:hover { background: var(--dark-600); }

/* ── 19. Team carousel ─────────────────────────────── */
@keyframes tcFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dotGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(0,196,154,.55), 0 0 20px rgba(0,196,154,.2); }
  50%       { box-shadow: 0 0 18px rgba(0,196,154,.9), 0 0 36px rgba(0,196,154,.45); }
}
@media (prefers-reduced-motion: reduce) {
  .team-carousel.tc-entering { animation: none !important; opacity: 1 !important; }
}

.team-section {
  background: var(--dark-950);
  border-bottom: 1px solid var(--border);
  padding: clamp(4rem,8vw,8rem) 0 clamp(4rem,8vw,7rem);
  overflow: hidden;
}
.team-section-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem,5vw,4.5rem) 3.5rem;
}

/* Carousel wrapper */
.team-carousel {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}
.team-carousel.tc-entering {
  animation: tcFadeUp .9s cubic-bezier(.22,1,.36,1) both;
}

/* Viewport */
.tc-viewport {
  overflow: hidden;
  cursor: grab;
  padding: 16px 0;
  margin: -16px 0;
}
.tc-viewport.is-grabbing { cursor: grabbing; }

/* Track */
.tc-track {
  display: flex;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .72s cubic-bezier(.22,1,.36,1);
}
.tc-track.no-transition { transition: none !important; }
/* Suppress individual slide transitions during instant teleport */
.tc-track.no-transition .tc-slide { transition: none !important; }

/* Individual slide — default: dimmed & scaled down */
.tc-slide {
  flex: 0 0 auto;
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--dark-700);
  border: 1px solid rgba(255,255,255,.06);
  transform: scale(0.87);
  opacity: 0.42;
  transition:
    transform .65s cubic-bezier(.22,1,.36,1),
    opacity   .65s cubic-bezier(.22,1,.36,1),
    box-shadow .5s ease,
    border-color .5s ease;
  will-change: transform, opacity;
}
/* Adjacent slides */
.tc-slide[data-pos="near"] {
  transform: scale(0.93);
  opacity: 0.65;
}
/* Active / center slide */
.tc-slide[data-pos="active"] {
  transform: scale(1);
  opacity: 1;
  border-color: rgba(0,196,154,.22);
  box-shadow:
    0 32px 80px rgba(0,0,0,.65),
    0 0 0 1px rgba(0,196,154,.18),
    0 0 48px rgba(0,196,154,.07);
}
.tc-slide:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* Photo */
.tc-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.tc-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: grayscale(15%) brightness(.9);
  transition: transform .8s cubic-bezier(.22,1,.36,1), filter .55s ease;
  will-change: transform;
}
.tc-slide[data-pos="active"] .tc-img-wrap img {
  filter: grayscale(0%) brightness(1);
}
.tc-slide:hover .tc-img-wrap img,
.tc-slide:focus-visible .tc-img-wrap img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1.03);
}

/* Gradient overlay */
.tc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 22%,
    rgba(6,13,26,.15) 42%,
    rgba(6,13,26,.76) 66%,
    rgba(6,13,26,.97) 100%
  );
  pointer-events: none;
}

/* Text body */
.tc-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.75rem 1.875rem 1.875rem;
}
.tc-body::before {
  content: '';
  position: absolute; top: 0; left: 1.875rem;
  height: 2px; border-radius: 2px;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(0,196,154,.5);
  width: 24px;
  transition: width .5s cubic-bezier(.22,1,.36,1),
              box-shadow .5s ease;
}
.tc-slide[data-pos="active"] .tc-body::before {
  width: 44px;
  box-shadow: 0 0 22px rgba(0,196,154,.85);
}

.tc-role {
  display: block;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .4rem;
}
.tc-name {
  font-size: 1.15rem; font-weight: 800;
  color: var(--text-100); letter-spacing: -.01em;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-bio {
  font-size: .8rem; color: var(--text-500); line-height: 1.55;
  max-height: 0; overflow: hidden; opacity: 0; margin-top: 0;
  transition: max-height .5s cubic-bezier(.22,1,.36,1),
              opacity .4s ease, margin-top .4s ease;
}
.tc-slide:hover .tc-bio,
.tc-slide:focus-visible .tc-bio {
  max-height: 130px; opacity: 1; margin-top: .5rem;
}

/* Prev / Next buttons */
.tc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 50px; height: 50px;
  background: rgba(6,14,28,.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: var(--text-200);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition:
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    color .3s ease,
    transform .3s cubic-bezier(.22,1,.36,1);
}
.tc-btn svg { transition: transform .3s cubic-bezier(.22,1,.36,1); }
.tc-btn--prev:hover svg { transform: translateX(-2px); }
.tc-btn--next:hover svg { transform: translateX(2px); }
.tc-btn:hover {
  background: rgba(0,196,154,.14);
  border-color: rgba(0,196,154,.42);
  color: var(--teal);
  box-shadow:
    0 0 0 1px rgba(0,196,154,.16),
    0 0 28px rgba(0,196,154,.18),
    inset 0 0 14px rgba(0,196,154,.06);
  transform: translateY(-50%) scale(1.1);
}
.tc-btn:active { transform: translateY(-50%) scale(0.94); }
.tc-btn--prev { left:  clamp(.5rem, 2vw, 1.25rem); }
.tc-btn--next { right: clamp(.5rem, 2vw, 1.25rem); }

/* Dots */
.tc-dots {
  display: flex; gap: .55rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.tc-dot {
  width: 6px; height: 6px;
  border-radius: 3px; border: none; padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,.16);
  flex-shrink: 0;
  transition:
    background .4s ease,
    width .48s cubic-bezier(.22,1,.36,1),
    box-shadow .4s ease,
    transform .3s ease;
}
.tc-dot.is-active {
  background: var(--teal);
  width: 32px;
  animation: dotGlow 2.4s ease-in-out infinite;
}
.tc-dot:hover:not(.is-active) {
  background: rgba(255,255,255,.36);
  transform: scale(1.4);
}

/* ── 20. Values / nosotros ─────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  background: var(--dark-800);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: border-color .25s;
}
.value-card:hover { border-color: var(--teal-border); }
.value-icon {
  width: 44px; height: 44px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.value-title {
  font-size: 1rem; font-weight: 700; color: var(--text-100); margin-bottom: .4rem;
}
.value-desc { font-size: .875rem; color: var(--text-500); line-height: 1.65; }

/* ── 21. FAQ accordion ─────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .5rem; margin-top: 2.5rem; }
.faq-item {
  background: var(--dark-800);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--teal-border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer; width: 100%;
  background: none; border: none; text-align: left; color: inherit; font-family: inherit;
  transition: background .15s;
}
.faq-q:hover { background: rgba(255,255,255,.02); }
.faq-q span {
  font-size: .95rem; font-weight: 600; color: var(--text-100); line-height: 1.45;
}
.faq-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 1px solid var(--border-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, border-color .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--teal-border); }
.faq-a {
  font-size: .9rem; color: var(--text-500); line-height: 1.7;
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.16,1,.3,1), padding .3s;
  padding: 0 1.4rem;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 1.4rem 1.1rem; }
.faq-a a { color: var(--teal); }

/* ── 22. CAE types grid (ayuda) ────────────────────── */
.cae-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.cae-type-card {
  background: var(--dark-800);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: border-color .25s, background .25s;
}
.cae-type-card:hover { border-color: var(--teal-border); background: rgba(0,196,154,.03); }
.cae-type-icon { font-size: 1.5rem; margin-bottom: .75rem; display: block; }
.cae-type-title { font-size: .95rem; font-weight: 700; color: var(--text-100); margin-bottom: .3rem; }
.cae-type-desc { font-size: .825rem; color: var(--text-500); line-height: 1.6; }

/* ── 23. Contact page ──────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--dark-800);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.contact-card:hover { border-color: var(--teal-border); background: var(--teal-dim); }
.contact-card-icon {
  width: 44px; height: 44px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-500); margin-bottom: .2rem;
}
.contact-card-val {
  font-size: .95rem; font-weight: 600; color: var(--text-100);
}

.contact-form-card {
  background: var(--dark-900);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.contact-form-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: -.01em; margin-bottom: .25rem;
}
.contact-form-card p {
  font-size: .85rem; color: var(--text-500); margin-bottom: 1.5rem; line-height: 1.55;
}

/* ── 24. Timeline (nosotros) ───────────────────────── */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.story-col p {
  font-size: 1rem; color: var(--text-500); line-height: 1.8; margin-bottom: 1.25rem;
}
.story-col p:last-child { margin-bottom: 0; }
.story-col strong { color: var(--text-300); font-weight: 600; }
.timeline { display: flex; flex-direction: column; gap: 1.5rem; }
.tl-item {
  display: grid; grid-template-columns: 70px 1fr; gap: 1.25rem; align-items: start;
}
.tl-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem; font-weight: 700; color: var(--teal);
  padding-top: .15rem; letter-spacing: .05em;
}
.tl-text {
  font-size: .9rem; color: var(--text-500); line-height: 1.65;
  border-left: 2px solid var(--teal-border); padding-left: 1.1rem;
}
.tl-text strong { color: var(--text-300); font-weight: 600; display: block; margin-bottom: .15rem; }

/* ── 25. Process detail (ayuda) ────────────────────── */
.process-detail {
  display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem;
}
.process-detail-item {
  display: grid; grid-template-columns: 44px 1fr; gap: 1.25rem; align-items: start;
}
.process-detail-num {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--teal-dim); border: 1px solid var(--teal-border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem; font-weight: 700; color: var(--teal); flex-shrink: 0;
}
.process-detail-content h3 {
  font-size: 1rem; font-weight: 700; color: var(--text-100); margin-bottom: .3rem;
}
.process-detail-content p {
  font-size: .875rem; color: var(--text-500); line-height: 1.65;
}

/* ── 26. Footer ────────────────────────────────────── */
footer {
  background: var(--dark-950);
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1.25rem,5vw,4.5rem);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}
.footer-logo { display: flex; flex-direction: column; gap: .3rem; }
.footer-tagline { font-size: .82rem; color: var(--text-500); margin-top: .3rem; }
.footer-links {
  display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
}
.footer-links a {
  font-size: .82rem; font-weight: 500;
  color: var(--text-500); text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text-100); }
.footer-right { text-align: right; }
.footer-copy { font-size: .78rem; color: var(--text-500); line-height: 1.6; }

/* ── 27. Legal modals ──────────────────────────────── */
.legal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(6,13,26,.96); overflow-y: auto; padding: 2.5rem 1rem 4rem;
}
.legal-overlay.open { display: block; }
.legal-container {
  max-width: 760px; margin: 0 auto;
  background: var(--dark-800);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: clamp(2rem,6vw,3.5rem) clamp(1.5rem,6vw,3.5rem);
  position: relative;
}
.legal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: none; border: 1px solid var(--border); color: var(--text-300);
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 1.2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.legal-close:hover { background: var(--dark-600); color: var(--text-100); }
.legal-container h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem,3vw,1.9rem); font-weight: 800;
  margin-bottom: .4rem; padding-right: 2.5rem;
}
.legal-meta { font-size: .8rem; color: var(--text-500); margin-bottom: 2rem; font-family: 'JetBrains Mono', monospace; }
.legal-container h2 {
  font-family: 'Montserrat', sans-serif; font-size: .95rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin: 2rem 0 .6rem;
}
.legal-container p { color: var(--text-500); line-height: 1.8; margin-bottom: .9rem; font-size: .92rem; }
.legal-container ul { padding-left: 1.5rem; color: var(--text-500); line-height: 1.8; font-size: .92rem; margin-bottom: .9rem; list-style: disc; }
.legal-container ul li { margin-bottom: .35rem; }
.legal-cif {
  font-family: 'JetBrains Mono', monospace; background: var(--dark-700);
  padding: .2em .55em; border-radius: 4px; font-size: .85em; color: var(--teal);
}

/* ── 28. Cookie banner ─────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 8000; background: var(--dark-700);
  border: 1px solid var(--border-light); border-radius: var(--r-lg);
  padding: 1rem 1.5rem; max-width: 680px; width: calc(100% - 3rem);
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); font-size: .85rem; color: var(--text-500);
}
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; line-height: 1.5; }
#cookie-banner a { color: var(--teal); text-decoration: none; }
#cookie-banner a:hover { text-decoration: underline; }
#cookie-banner button {
  background: var(--dark-600); border: 1px solid var(--border);
  color: var(--text-300); padding: .45rem 1.1rem;
  border-radius: var(--r-sm); cursor: pointer;
  font-size: .82rem; font-weight: 600; white-space: nowrap;
  transition: background .2s, color .2s;
}
#cookie-banner button:hover { background: var(--dark-500); color: var(--text-100); }
#cookie-banner.hidden { display: none; }

/* ── 29. Scroll reveal ─────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left  { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal-left.revealed, .reveal-right.revealed { transform: translateX(0); opacity: 1; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ── 30. Focus & cursor utilities ──────────────────── */

/* Keyboard focus ring — visible for all non-input interactive elements */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
/* Inputs keep their own focus style */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
}

/* Cursor pointer for clickable non-link elements */
.faq-q,
.tool-nav button,
.mobile-toggle,
.legal-close,
.pdf-modal-close { cursor: pointer; }

/* Hero trust row */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp .6s ease 1.1s forwards;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-500);
}
.hero-trust-item svg { flex-shrink: 0; }

/* CTA dual cards — hover via CSS (no inline JS) */
.cta-card-primary:hover  { box-shadow: var(--shadow-teal) !important; }
.cta-card-secondary:hover { border-color: rgba(255,255,255,.25) !important; }

/* ── Animations ────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.animar-entrada { animation: fadeUp .28s ease; }
.animar-paso    { animation: fadeUp .22s ease; }

/* ── 31. Responsive ────────────────────────────────── */
@media (max-width: 1100px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-intro  { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  /* team-carousel — nada que ajustar a 1100px, el JS recalcula */
}

@media (max-width: 860px) {
  .story-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-right { text-align: center; }
  .cta-bifurcacion { flex-direction: column; }
  /* Process header 2-col → 1-col */
  .proceso-header-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 2.5rem !important;
  }
}

/* ─── Tablet / large phone ──────────────────────────── */
@media (max-width: 768px) {
  /* Navigation */
  .header-nav    { display: none; }
  .mobile-toggle { display: flex; }

  /* Logo — tighter for narrow header */
  .logo-png-img {
    height: 42px;
  }

  /* Section spacing */
  .section-wrap  { padding: 3rem 1.25rem; }
  #stats         { padding: 2.5rem 1.25rem; }

  /* Hero */
  #hero          { align-items: flex-start; }
  .hero-content  { padding: 2.5rem 1.25rem 3rem; }
  .hero-h1       { font-size: 2.6rem; line-height: 1.06; }
  .hero-actions  {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    margin-top: .25rem;
  }
  .btn-hero-primary,
  .btn-hero-ghost { width: 100%; justify-content: center; }
  .hero-trust    { gap: 1rem; margin-top: 1.5rem; }

  /* CTA dual */
  .cta-dual-grid { grid-template-columns: 1fr !important; }

  /* Steps */
  .steps::before { left: 21px; }
  .step          { grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.5rem 0; }
  .step-num      { width: 44px; height: 44px; font-size: .85rem; }

  /* Stats */
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .stat-item     { padding: 1.1rem .75rem; }
  .stat-num      { font-size: 1.55rem; }

  /* Team carousel — botones más pequeños en tablet */
  .tc-btn { width: 42px; height: 42px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Page hero (sub-pages) */
  .page-hero { padding: 5rem 1.25rem 2.5rem; }
  .page-hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); max-width: 100%; }

  /* CTA bifurcación */
  .cta-bifurcacion { padding: 1.5rem 1.25rem; gap: 1.25rem; }

  /* Contact */
  .contact-form-card { padding: 1.5rem 1.25rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .footer-links { gap: 1rem; justify-content: center; flex-wrap: wrap; }
  footer        { padding: 2.5rem 1.25rem; }

  /* Cookie banner — full-width bar at bottom */
  #cookie-banner {
    bottom: 0; left: 0; right: 0;
    transform: none;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    width: 100%; max-width: 100%;
    padding: 1rem 1.25rem;
    gap: .75rem;
  }

  /* Tool card tabs */
  .tool-nav-wrapper { padding: 1rem 1rem 0; }
  .tool-nav         { width: 100%; }
  .tool-nav button  { flex: 1; padding: .45rem .75rem; font-size: .82rem; }
  .tool-body        { padding: 1.25rem 1rem; }
}

/* ─── Small phone ───────────────────────────────────── */
@media (max-width: 520px) {
  /* Typography */
  .hero-h1      { font-size: 2.15rem; }
  .section-title { font-size: clamp(1.65rem, 6vw, 2.2rem); }

  /* Stats: stay 2 columns but smaller */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num   { font-size: 1.3rem; letter-spacing: -.02em; }
  .stat-desc  { font-size: .75rem; }

  /* Values: 1 column */
  .values-grid { grid-template-columns: 1fr; }

  /* Team carousel — botones más cercanos al borde en móvil */
  .tc-btn { width: 38px; height: 38px; }
  .tc-btn--prev { left: .4rem; }
  .tc-btn--next { right: .4rem; }
  .tc-name { font-size: 1.08rem; }

  /* Steps: tighter */
  .step     { gap: .75rem; padding: 1.25rem 0; }
  .step-num { width: 40px; height: 40px; font-size: .8rem; }
  .steps::before { left: 19px; }

  /* Footer links: wrap nicely */
  .footer-links { gap: .6rem 1.25rem; }

  /* Section wrap */
  .section-wrap { padding: 2.5rem 1rem; }

  /* CTA dual section padding */
  .cta-dual-wrap {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Hero content breathing room */
  .hero-content { padding: 2rem 1rem 2.5rem; }

  /* Buttons full width on tiny screens */
  .btn-secondary { width: 100%; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-badge, .hero-h1, .hero-sub, .hero-actions {
    animation: none !important; opacity: 1 !important;
    transform: none !important; transition: none !important;
  }
}
