*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  overflow-x: hidden;
}

.interactive-modern {
  overflow-x: hidden;
  position: relative;
}

.interactive-modern::before {
  max-width: 100vw;
}

section {
  position: relative;
  overflow: hidden;
}

section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: rgba(238, 43, 108, 0.15);
}

.digital-advantage,
.process-modern {
  background-color: #fff1f6;

  background-image:
    radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px);

  background-size: 4px 4px, 6px 6px;
  background-position: 0 0, 2px 2px;
}

.interactive-modern,
.packages-modern,
.faq-modern {
  background: linear-gradient(180deg,
      #ffffff 0%,
      #fff9fb 100%);
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-delay-1 {
  transition-delay: 0.1s;
}

.fade-delay-2 {
  transition-delay: 0.2s;
}

.fade-delay-3 {
  transition-delay: 0.3s;
}

/* =========================
   HERO MODERNO
   ========================= */
.hero-modern {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  padding-top: 0;
  position: relative;
  background: url("../img/hero.png") center/cover no-repeat;
}

.hero-modern__content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
}

.hero-modern__image {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-modern__gradient {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
      rgba(238, 43, 108, 0.15),
      transparent 70%);

  z-index: 1;
}

/* GRID */
.hero-modern__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
  z-index: 2;
  align-items: flex-end;
}

/* TEXTO */
.hero-modern__content h1.hero-title-special {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: 1.5px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.hero-modern__content h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
}

.hero-modern__content h1 span {
  color: var(--color-primary);
}

.hero-modern__content p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

/* Badge */
.hero-badge {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

/* BOTONES */
.hero-modern__buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.package-card.is-selected {
  border: 2px solid var(--color-action);
  box-shadow: 0 18px 40px rgba(238, 43, 108, 0.25);
}

/* IMAGEN */
.hero-modern__image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: translateY(20px);
}

.hero-modern__image img {
  width: 100%;
  max-width: 440px;
  margin-top: 40px;
  border-radius: 30px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.hero-counter--inline {
  margin: 1.5rem 0 2rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-main);
}

.hero-counter--inline .counter {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
}

.hero-modern .btn--outline {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(238, 43, 108, 0.4);
  color: var(--color-primary);
  font-weight: 600;
}

/* =========================
   CONTENEDOR
   ========================= */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER MODERNO ===== */

.header-modern {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 999;
}

.header-modern__content {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Nav */
.nav-modern {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-modern a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s ease;
}

.nav-modern a:hover {
  color: var(--color-primary);
}

/* CTA */
.nav-cta-modern {
  margin-left: 1rem;
  padding: 12px 22px;
}

/* Mobile */
.menu-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================
   SECCIONES GENERALES
   ========================= */

section {
  padding: 5rem 0;
}

/* =========================
   TIPOGRAFÍA
   ========================= */

h1,
h2 {
  font-family: var(--font-title);
}

h3,
h4 {
  font-family: var(--font-body);
  font-weight: 600;
}

h1 {
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 0.8rem;
  color: var(--color-text-main);
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

p {
  line-height: 1.7;
}

/* Texto introductorio */
.section__intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* =========================
   ANCHO DE LECTURA ÓPTIMO
   ========================= */

.hero__text p,
.hero__image-text p,
.section__intro,
.process__microcopy {
  max-width: 560px;
}

/* =========================
   ANIMACIONES BASE
   ========================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes de delay */
.reveal--delay-1 {
  transition-delay: 0.08s;
}

.reveal--delay-2 {
  transition-delay: 0.16s;
}

.reveal--delay-3 {
  transition-delay: 0.24s;
}

/* =========================
   ACCESIBILIDAD
   ========================= */

:focus-visible {
  outline: 2px solid var(--color-action);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================
   HEADER SCROLL STATE
   ========================================= */

.header {
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    min-height 0.3s ease;
}