:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-2: #7c5cff;
  --accent-3: #a855f7;
  --border: #e2e8f0;
  --header-height: 80px;
  --hero-overlay: rgba(6, 10, 24, 0.82);
  --hero-glow: radial-gradient(700px 360px at 84% 60%, rgba(99, 102, 241, 0.35), transparent 60%);
  --hero-bg: linear-gradient(120deg, var(--hero-overlay) 0%, rgba(7, 12, 28, 0.7) 52%, rgba(17, 30, 68, 0.55) 72%, rgba(56, 74, 160, 0.35) 100%),
    var(--hero-glow),
    url("../images/firts.jpg") center/cover no-repeat;
  --body-font: "IBM Plex Sans", system-ui, sans-serif;
  --heading-font: "Sora", "IBM Plex Sans", system-ui, sans-serif;
  --soft-bg: radial-gradient(640px 360px at 12% 18%, rgba(96, 165, 250, 0.25), transparent 65%),
    radial-gradient(520px 320px at 82% 12%, rgba(192, 132, 252, 0.28), transparent 62%),
    radial-gradient(520px 360px at 72% 85%, rgba(94, 234, 212, 0.18), transparent 65%),
    #f7f9ff;
  --soft-card: #ffffff;
  --soft-border: #e3e9f6;
  --soft-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  /* Gradiente elegante azul/púrpura */
  --gradient-bg: linear-gradient(135deg, #0c1029 0%, #131a3a 30%, #1a2654 60%, #2a3875 100%);
  --gradient-glow: radial-gradient(ellipse 80% 50% at 80% 80%, rgba(99, 102, 241, 0.25), transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(139, 92, 246, 0.15), transparent 60%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
  letter-spacing: -0.02em;
}

html[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #10182c;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: #1e2a44;
  --hero-overlay: rgba(4, 8, 20, 0.88);
  --hero-glow: radial-gradient(700px 360px at 84% 60%, rgba(59, 130, 246, 0.35), transparent 60%);
  --soft-bg: linear-gradient(120deg, #0b1226 0%, #121c37 45%, #1b2344 100%);
  --soft-card: rgba(15, 23, 42, 0.78);
  --soft-border: rgba(148, 163, 184, 0.18);
  --soft-shadow: 0 26px 52px rgba(2, 8, 23, 0.5);
}

a {
  color: inherit;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero-wrap {
  background: var(--hero-bg);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding: 14px 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

html[data-theme="dark"] .site-header {
  background: rgba(16, 24, 44, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.logo-img {
  height: 50px;
  width: auto;
  display: none;
}

.logo-img--dark {
  display: block;
}

html[data-theme="dark"] .logo-img--dark {
  display: none;
}

html[data-theme="dark"] .logo-img--light {
  display: block;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: var(--accent-dark);
}

.nav-links a.is-active::after,
.nav-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

html[data-theme="dark"] .nav-links a.is-active,
html[data-theme="dark"] .nav-links a[aria-current="page"] {
  color: #93c5fd;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero {
  padding: 90px 0 120px;
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.55);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.9);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  margin: 16px 0 18px;
  line-height: 1.1;
  font-weight: 700;
}

.hero-accent {
  background: linear-gradient(90deg, var(--accent-3) 0%, var(--accent-2) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.85);
  max-width: 560px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 20px;
  color: rgba(226, 232, 240, 0.65);
  font-size: 14px;
}

.hero-panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 26px;
  display: grid;
  gap: 20px;
  box-shadow: 0 24px 48px rgba(3, 8, 23, 0.35);
  backdrop-filter: blur(8px);
}

.hero-panel__item strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
  color: rgba(248, 250, 252, 0.95);
}

.hero-panel__item span {
  color: rgba(226, 232, 240, 0.72);
}

.scroll-down {
  position: absolute;
  right: clamp(120px, 16vw, 220px);
  bottom: 56px;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
}

.scroll-down svg {
  width: 120px;
  height: 120px;
}

.scroll-down__text {
  font-size: 10px;
  letter-spacing: 3px;
  fill: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.scroll-down__center {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.section {
  padding: 90px 0;
  background: var(--bg);
}

.section--alt {
  background: var(--soft-bg);
  position: relative;
}

.section--alt>.container {
  position: relative;
}

/* Sección con gradiente elegante azul/púrpura */
.section--gradient {
  background: var(--gradient-bg);
  position: relative;
  color: #f8fafc;
  overflow: hidden;
}

.section--gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.section--gradient>.container {
  position: relative;
  z-index: 1;
}

.section--gradient .section-header h2 {
  color: #f8fafc;
}

.section--gradient .section-header p {
  color: rgba(226, 232, 240, 0.8);
}

.section--gradient .card,
.section--gradient .step,
.section--gradient .authority>div {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(8px);
  color: #f8fafc;
}

.section--gradient .card,
.section--gradient .step p,
.section--gradient .authority p {
  color: rgba(226, 232, 240, 0.85);
}

.section--gradient .step span {
  color: #a5b4fc;
}

.section--gradient .bullet-grid li,
.section--gradient .bullet-list li {
  color: rgba(248, 250, 252, 0.95);
}

.section--gradient .authority h3,
.section--gradient .step h3 {
  color: #f8fafc;
}

.section--gradient .tags span {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(165, 180, 252, 0.3);
  color: #c7d2fe;
}

.section--gradient .callout {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(8px);
}

.section--gradient .callout p {
  color: rgba(226, 232, 240, 0.85);
}

.section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 650px;
}

.bullet-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 40px;
}

.bullet-grid li,
.bullet-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
}

.bullet-grid li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.callout {
  background: var(--soft-card);
  color: var(--text);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--soft-border);
  box-shadow: var(--soft-shadow);
}

.callout p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: var(--soft-card);
  border: 1px solid var(--soft-border);
  padding: 22px;
  border-radius: 14px;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--soft-shadow);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step {
  background: var(--soft-card);
  border: 1px solid var(--soft-border);
  padding: 22px;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.step span {
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.authority {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.authority>div {
  background: var(--soft-card);
  border: 1px solid var(--soft-border);
  padding: 22px;
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.authority h3 {
  margin: 0 0 12px;
}

.authority p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(148, 163, 184, 0.08);
}

.cta-section {
  padding: 90px 0;
  background: #0b1020;
  color: #fff;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 32px;
}

.cta-box h2 {
  margin: 0 0 12px;
}

.cta-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.4);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.btn--large {
  padding: 16px 36px;
  font-size: 16px;
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--large:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.5);
}

/* Disclaimer de sección - descarte explícito */
.section-disclaimer {
  margin-top: 32px;
  padding: 16px 24px;
  background: rgba(148, 163, 184, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle__bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
}

.theme-toggle__icon--sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

.footer {
  padding: 40px 0 60px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.footer__brand {
  line-height: 1.5;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__social-link {
  --social-color: var(--accent);
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 15px;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer__social-link::before {
  content: "";
  position: absolute;
  top: -45%;
  left: -85%;
  width: 70%;
  height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(18deg);
  transition: transform 0.45s ease;
  pointer-events: none;
}

.footer__social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.footer__social-link:hover {
  color: var(--social-color);
  border-color: var(--social-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.footer__social-link:hover::before {
  transform: translateX(260%) rotate(18deg);
}

.footer__social-link:hover .footer__social-icon {
  transform: scale(1.12);
}

.footer__social-link:focus-visible {
  outline: 2px solid var(--social-color);
  outline-offset: 2px;
}

.footer__social-link.is-facebook {
  --social-color: #1877f2;
}

.footer__social-link.is-tiktok {
  --social-color: #25f4ee;
}

.footer__social-link.is-instagram {
  --social-color: #e1306c;
}

.footer__social-link.is-youtube {
  --social-color: #ff0033;
}

.footer__social-link.is-linkedin {
  --social-color: #0a66c2;
}

.footer__social-link.is-facebook:hover {
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.24);
}

.footer__social-link.is-tiktok:hover {
  box-shadow: 0 10px 24px rgba(37, 244, 238, 0.24);
}

.footer__social-link.is-instagram:hover {
  box-shadow: 0 10px 24px rgba(225, 48, 108, 0.24);
}

.footer__social-link.is-youtube:hover {
  box-shadow: 0 10px 24px rgba(255, 0, 51, 0.24);
}

.footer__social-link.is-linkedin:hover {
  box-shadow: 0 10px 24px rgba(10, 102, 194, 0.24);
}

html[data-theme="dark"] .footer__social-link {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: none;
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.back-to-top {
  position: fixed;
  right: 32px;
  top: 55%;
  transform: translateY(-50%) translateX(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--muted);
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(37, 211, 102, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 12;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  overflow: visible;
}

.whatsapp-float__icon {
  width: 26px;
  height: 26px;
}

.whatsapp-float::before,
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  pointer-events: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 20px 36px rgba(37, 211, 102, 0.45);
  filter: brightness(1.05);
}

.whatsapp-float:hover::before,
.whatsapp-float:focus-visible::before {
  /* animation removed for sober B2B feel */
  opacity: 0;
}

.whatsapp-float:hover::after,
.whatsapp-float:focus-visible::after {
  /* animation removed for sober B2B feel */
  opacity: 0;
}

@keyframes whatsapp-wave {
  0% {
    opacity: 0.6;
  }

  70% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.9);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.2);
  }
}

/* =========================================
   SCROLL REVEAL ANIMATIONS - Sutil y Elegante
   ========================================= */

/* Estado inicial - elementos ocultos */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

/* Estado visible - elementos revelados */
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes de animación */
.reveal--from-left {
  transform: translateX(-24px);
}

.reveal--from-left.is-revealed {
  transform: translateX(0);
}

.reveal--from-right {
  transform: translateX(24px);
}

.reveal--from-right.is-revealed {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.96);
}

.reveal--scale.is-revealed {
  transform: scale(1);
}

/* Delays escalonados para elementos hijos */
.reveal-group>*:nth-child(1) {
  transition-delay: 0s;
}

.reveal-group>*:nth-child(2) {
  transition-delay: 0.05s;
}

.reveal-group>*:nth-child(3) {
  transition-delay: 0.1s;
}

.reveal-group>*:nth-child(4) {
  transition-delay: 0.15s;
}

.reveal-group>*:nth-child(5) {
  transition-delay: 0.2s;
}

.reveal-group>*:nth-child(6) {
  transition-delay: 0.25s;
}

/* Cards y Steps con animación individual */
.cards .card,
.steps .step,
.authority>div,
.hero-panel__item,
.bullet-grid li,
.bullet-list li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out,
    transform 0.4s ease-out;
}

.cards.is-revealed .card,
.steps.is-revealed .step,
.authority.is-revealed>div,
.hero-panel.is-revealed .hero-panel__item,
.bullet-grid.is-revealed li,
.bullet-list.is-revealed li {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para cards - más rápidos */
.cards.is-revealed .card:nth-child(1),
.steps.is-revealed .step:nth-child(1),
.authority.is-revealed>div:nth-child(1),
.hero-panel.is-revealed .hero-panel__item:nth-child(1),
.bullet-grid.is-revealed li:nth-child(1),
.bullet-list.is-revealed li:nth-child(1) {
  transition-delay: 0s;
}

.cards.is-revealed .card:nth-child(2),
.steps.is-revealed .step:nth-child(2),
.authority.is-revealed>div:nth-child(2),
.hero-panel.is-revealed .hero-panel__item:nth-child(2),
.bullet-grid.is-revealed li:nth-child(2),
.bullet-list.is-revealed li:nth-child(2) {
  transition-delay: 0.06s;
}

.cards.is-revealed .card:nth-child(3),
.steps.is-revealed .step:nth-child(3),
.authority.is-revealed>div:nth-child(3),
.hero-panel.is-revealed .hero-panel__item:nth-child(3),
.bullet-grid.is-revealed li:nth-child(3),
.bullet-list.is-revealed li:nth-child(3) {
  transition-delay: 0.12s;
}

.cards.is-revealed .card:nth-child(4),
.steps.is-revealed .step:nth-child(4),
.bullet-grid.is-revealed li:nth-child(4),
.bullet-list.is-revealed li:nth-child(4) {
  transition-delay: 0.18s;
}

.cards.is-revealed .card:nth-child(5),
.steps.is-revealed .step:nth-child(5),
.bullet-grid.is-revealed li:nth-child(5) {
  transition-delay: 0.24s;
}

.bullet-grid.is-revealed li:nth-child(6) {
  transition-delay: 0.3s;
}

/* Animación especial para el section header */
.section-header.reveal {
  transform: translateY(20px);
}

/* Reducir animaciones si el usuario las prefiere */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .cards .card,
  .steps .step,
  .authority>div,
  .hero-panel__item,
  .bullet-grid li,
  .bullet-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .nav {
    position: relative;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  html[data-theme="dark"] .nav-links {
    box-shadow: 0 16px 32px rgba(2, 8, 23, 0.45);
  }

  .nav-links a {
    padding: 11px 12px;
    border-radius: 10px;
    letter-spacing: 1.1px;
    font-size: 12px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: rgba(148, 163, 184, 0.12);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-actions .btn--outline {
    display: none;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-down {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 70px 0 90px;
  }

  .bullet-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 16px;
    top: 70%;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 20px;
  }
}

/* =========================================
   Service Grid Improvements
   ========================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--soft-card);
  border: 1px solid var(--soft-border);
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
  border-color: var(--accent);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.service-card:hover .service-icon {
  transform: scale(1.05);
  /* Sutil */
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.35);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.service-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}

.service-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* Animation integration for Service Grid */
.service-grid .service-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-grid.is-revealed .service-card {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.service-grid.is-revealed .service-card:nth-child(1) {
  transition-delay: 0s;
}

.service-grid.is-revealed .service-card:nth-child(2) {
  transition-delay: 0.1s;
}

.service-grid.is-revealed .service-card:nth-child(3) {
  transition-delay: 0.2s;
}

.service-grid.is-revealed .service-card:nth-child(4) {
  transition-delay: 0.3s;
}

.service-grid.is-revealed .service-card:nth-child(5) {
  transition-delay: 0.4s;
}

.service-grid.is-revealed .service-card:nth-child(6) {
  transition-delay: 0.5s;
}

@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   New Authority Section (Why Choose Us)
   ========================================= */

.authority-wrap {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.authority-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.authority-image {
  position: relative;
  border-radius: 24px;
  overflow: visible;
  /* Dejar visible para el badge flotante */
}

.authority-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

.floating-badge {
  position: absolute;
  bottom: 30px;
  right: -30px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 16px 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  color: #fff;
  z-index: 2;
}

.floating-badge-icon {
  width: 48px;
  height: 48px;
  background: #22c55e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.floating-badge-text strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.floating-badge-text span {
  font-size: 13px;
  color: #94a3b8;
}

.authority-content .tag {
  display: inline-block;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.authority-content h2 {
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 24px;
  background: linear-gradient(to right, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.authority-content>p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 32px;
}

.feature-list {
  display: grid;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 18px;
  background: rgba(15, 23, 42, 0.4);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: transform 0.2s ease;
}

.feature-item:hover {
  transform: translateX(6px);
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.feature-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.feature-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.feature-icon.teal {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
}

.feature-text h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #f1f5f9;
}

.feature-text p {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

/* Stats Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.stat-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

/* Dark mode adjust for stat cards */
html[data-theme="dark"] .stat-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .authority-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .authority-image {
    order: 2;
    /* Move image below typically on mobile, or keep top */
  }

  .floating-badge {
    right: 0;
    bottom: -20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    width: 90%;
    left: 5%;
    right: auto;
    bottom: -15px;
    justify-content: center;
  }
}

/* =========================================
   Problem Section Improvements
   ========================================= */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.problem-card {
  background: rgba(11, 17, 32, 0.85);
  /* Mayor opacidad para peso visual */
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 30px;
  border-radius: 20px;
  /* backdrop-filter reducido para rendimiento y seriedad */
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problem-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(99, 102, 241, 0.4);
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.problem-card:hover::before {
  opacity: 1;
}

.service-disclaimer {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 16px 24px;
  background: rgba(148, 163, 184, 0.08);
  border-left: 3px solid #ef4444;
  /* Rojo para advertencia/filtro */
  border-radius: 4px;
  color: var(--muted);
  font-size: 14px;
}

.problem-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  /* Red tint for 'problem' context, or keep neutral */
  color: #f87171;
  /* Soft red for problems */
  display: grid;
  place-items: center;
}

/* Alternative: stick to brand colors but maybe muted */
.problem-card .problem-icon {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.problem-card:hover .problem-icon {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.problem-content h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
}

.problem-content p {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

/* =========================================
   Mobile Sticky CTA
   ========================================= */
.mobile-sticky-cta {
  display: none;
  /* Hidden on desktop */
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  html[data-theme='dark'] .mobile-sticky-cta {
    background: rgba(16, 24, 44, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .btn--full {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
  }

  /* Adjust WhatsApp and Back to Top to avoid overlap */
  .whatsapp-float {
    bottom: 90px;
  }

  .back-to-top {
    bottom: 90px;
  }

  /* Add padding to footer so content isn't covered */
  .footer {
    padding-bottom: 80px;
  }
}


/* =========================================
   Client Grid Section ("A quién ayudamos")
   ========================================= */

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.client-card {
  background: linear-gradient(145deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Subtle inner glow on top */
.client-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.client-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(50, 50, 93, 0.15), 0 8px 16px -8px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
}

.client-card:hover::after {
  opacity: 1;
}

.client-card__icon {
  width: 72px;
  height: 72px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--accent);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.4s ease;
}

.client-card:hover .client-card__icon {
  transform: rotate(-5deg) scale(1.1);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.3);
  border-color: transparent;
}

.client-card__icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.8px;
}

.client-card h3 {
  font-size: 24px;
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.client-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Dark Mode Overrides for Client Cards */
html[data-theme="dark"] .client-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(148, 163, 184, 0.1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .client-card:hover {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
}

html[data-theme="dark"] .client-card__icon {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .client-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
