/* --- Variables y Reset --- */
:root {
  /* Paleta de Colores Refinada */
  --bg-primary: #ffffff;
  --bg-secondary: #fbfaff;
  --secondary-color: #4f1fe8;
  /* Morado Principal */
  --accent-color: #e8d51e;
  /* Amarillo de Acento */
  --text-main: #0c0816;
  /* Casi negro para mejor contraste */
  --text-muted: #5a5665;
  /* Gris para textos secundarios */
  --card-bg: #ffffff;
  --border-color: rgba(79, 31, 232, 0.04);
  --shadow-base: 0 15px 40px rgba(79, 31, 232, 0.08);
  --shadow-hover: 0 20px 50px rgba(79, 31, 232, 0.12);

  /* Sistema de espaciado consistente */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 0.75rem;
  /* 12px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 3rem;
  /* 48px */
  --space-3xl: 4rem;
  /* 64px */
  --space-4xl: 5rem;
  /* 80px */

  /* Border-radius unificado */
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "League Spartan", sans-serif;
  background-color: #f6f4fe;
  /* Mismo color que el header y la parte superior del hero */
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}

/* Restaurar fondo blanco en todas las secciones excepto el hero */
section:not(.hero),
.legal-page,
.error-page {
  background-color: #ffffff;
}

/* --- Wrapper unificado Header + Hero --- */
.top-wrapper {
  background: linear-gradient(to bottom, #f6f4fe 0%, #ffffff 100%);
  margin: 0 !important;
  padding: 0 !important;
}

.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 4%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "League Spartan", sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s ease;
  font-family: "League Spartan", sans-serif;
}

/* --- Navegación --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition:
    background-color 0.3s ease,
    padding 0.3s ease,
    box-shadow 0.3s ease;
  padding: 0;
  border-bottom: none !important;
  box-shadow: none;
  margin-bottom: 0 !important;
}

header.scrolled {
  background-color: #ffffff;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 1.5rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.scrolled .header-inner {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav ul li a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

nav ul li a:hover {
  color: var(--secondary-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  width: 24px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Menú Móvil Full-Screen --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 0.5rem;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.mobile-menu-close:hover {
  color: var(--secondary-color);
  transform: rotate(90deg);
}

.mobile-menu-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.mobile-menu-nav ul li {
  text-align: center;
}

.mobile-menu-link {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-main);
  padding: 1rem 2rem;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.mobile-menu-link:hover {
  color: var(--secondary-color);
  transform: scale(1.05);
}

.mobile-menu-social {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  width: 100%;
  text-align: center;
}

.mobile-menu-social .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.mobile-menu-social .social-link:hover {
  color: var(--secondary-color);
}

/* --- Botones --- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.85rem;
  font-family: "League Spartan", sans-serif;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(79, 31, 232, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(79, 31, 232, 0.3);
  background-color: #3d18b5;
}

.header-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  background-color: var(--secondary-color);
  color: #ffffff;
}

.header-btn:hover {
  background-color: #3d18b5;
}

.text-cta {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  color: var(--secondary-color);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  gap: 0.5rem;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.text-cta:hover {
  transform: translateX(5px);
  color: #3d18b5;
}

/* --- Sección Hero --- */
.hero {
  position: relative;
  padding: 10rem 0 var(--space-4xl);
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: transparent !important;
  overflow: hidden;
  border-bottom: none !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(6px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 70%,
    transparent 95%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 70%,
    transparent 95%
  );
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 6rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-pretitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 2px;
  display: block;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  font-weight: 800;
}

.highlight-text {
  color: var(--secondary-color);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero-cta-wrapper.centered {
  align-items: center;
  text-align: center;
  margin-top: var(--space-xl);
}

/* --- Formularios --- */
.custom-form-container {
  background-color: var(--card-bg);
  padding: var(--space-2xl);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-base);
  transition: all 0.3s ease;
}

.custom-form-container:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--secondary-color);
}

.custom-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-main);
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(79, 31, 232, 0.12);
  background-color: var(--bg-secondary);
  font-family: "League Spartan", sans-serif;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(79, 31, 232, 0.08);
  background-color: var(--bg-primary);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit-btn {
  padding: 1.1rem;
  background-color: var(--secondary-color);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: "League Spartan", sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(79, 31, 232, 0.2);
}

.form-submit-btn:hover {
  background-color: #3d18b5;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(79, 31, 232, 0.3);
}

/* --- Mensajes de Feedback --- */
.form-feedback {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0;
  margin: 0;
  min-height: 0;
  transition: all 0.3s ease;
  border-radius: var(--radius);
}

.form-feedback.success {
  color: #16a34a;
  background-color: rgba(22, 163, 74, 0.08);
  padding: 0.75rem 1rem;
}

.form-feedback.error {
  color: #dc2626;
  background-color: rgba(220, 38, 38, 0.08);
  padding: 0.75rem 1rem;
}

/* --- Secciones Generales --- */
section {
  padding: var(--space-4xl) 0;
  scroll-margin-top: 10px;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--space-md);
  line-height: 1.2;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto var(--space-2xl) auto;
  line-height: 1.7;
}

/* --- Stats Bar --- */
.stats-bar-section {
  padding: var(--space-xl) 0;
  background-color: transparent;
}

.stats-bar {
  max-width: 85%;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    #6b3ff5 50%,
    #8b5cf6 100%
  );
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(79, 31, 232, 0.25);
}

.stats-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  letter-spacing: 0.5px;
}

/* --- Carrusel de Herramientas --- */
.tools-carousel-section {
  padding: var(--space-2xl) 0 var(--space-3xl);
  background-color: transparent;
  overflow: hidden;
}

.tools-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll 60s linear infinite;
  will-change: transform;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-group {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
  flex-shrink: 0;
}

.carousel-group img {
  max-width: 140px;
  height: 30px;
  width: auto;
  object-fit: contain;
  margin: 0 1.5rem;
  flex-shrink: 0;
  filter: grayscale(100%) contrast(0%) brightness(130%) opacity(0.6);
  transition: filter 0.3s ease;
}

.carousel-group img:hover {
  filter: grayscale(0%) opacity(1);
  cursor: pointer;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Sección Problema vs Solución --- */
.transformation {
  background-color: transparent;
  position: relative;
  overflow: hidden;
}

.transformation-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.flow-column {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  height: 100%;
  transition: transform 0.3s ease;
}

.flow-column:hover {
  transform: translateY(-5px);
}

.problem-card {
  background: #111827;
  background: linear-gradient(145deg, #111827, #1f2937);
  border-radius: 16px 16px 0 0;
  padding: 32px;
  width: 100%;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.problem-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.problem-card .icon-box {
  color: #f87171;
  margin-bottom: var(--space-md);
  display: inline-flex;
  padding: 12px;
  background: rgba(239, 68, 68, 0.15);
  border-radius: 12px;
}

.problem-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: #ffffff;
}

.problem-card p {
  font-size: 0.95rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.6;
}

.solution-card {
  background: #ffffff;
  border-radius: 0 0 16px 16px;
  padding: 32px;
  padding-top: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  color: #111827;
  border: none;
  box-shadow: 0 15px 30px -5px rgba(79, 31, 232, 0.2);
  transition: box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #1f2937;
  z-index: 10;
}

.solution-card:hover {
  box-shadow: 0 15px 35px 0px rgba(79, 31, 232, 0.4);
}

.solution-card .icon-box {
  color: var(--secondary-color);
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-self: flex-start;
  padding: 12px;
  background: rgba(79, 31, 232, 0.08);
  border-radius: 12px;
}

.solution-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: #111827;
}

.solution-card p {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.flow-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--secondary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: opacity 0.3s ease;
}

.flow-link:hover {
  opacity: 0.8;
}

/* Base class for JS reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

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

/* --- Sección Método --- */
.method {
  background-color: transparent;
  color: var(--text-main);
}

.method .section-title {
  color: var(--text-main);
}

.method .section-subtitle {
  color: var(--text-muted);
}

.method-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: var(--space-2xl);
}

/* Columna Izquierda: Visual */
.method-visual {
  position: relative;
  padding: 1rem 1rem 1rem 2rem;
}

.method-image-wrapper {
  position: relative;
  border-radius: 24px;
  max-width: 520px;
  margin: 0 auto;
}

.method-img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  display: block;
  object-fit: cover;
  aspect-ratio: 10 / 11.5;
}

/* Etiqueta Flotante Pequeña (Flujo Activo) */
.method-floating-tag-small {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(79, 31, 232, 0.3);
}

/* UI Flotante */
.method-floating-ui {
  position: absolute;
  bottom: -30px;
  left: -40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(79, 31, 232, 0.15);
  padding: 20px;
  width: 260px;
  z-index: 10;
  border: 1px solid rgba(79, 31, 232, 0.05);
}

.method-floating-ui .ui-header {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
}

.method-floating-ui .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.method-floating-ui .ui-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.method-floating-ui .ui-nodes-animation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 10px;
  padding: 0 10px;
}

.method-floating-ui .node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--secondary-color);
  position: relative;
  z-index: 2;
  animation: pulse-node 2s infinite ease-in-out;
}

.method-floating-ui .node:nth-child(1) {
  animation-delay: 0s;
}

.method-floating-ui .node:nth-child(3) {
  animation-delay: 0.6s;
}

.method-floating-ui .node:nth-child(5) {
  animation-delay: 1.2s;
}

.method-floating-ui .line {
  flex-grow: 1;
  height: 4px;
  background: rgba(79, 31, 232, 0.1);
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 0 -2px;
}

.method-floating-ui .flow-dot {
  position: absolute;
  top: 0;
  left: -50%;
  height: 100%;
  width: 40%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary-color),
    transparent
  );
  animation: flow-move 1.5s infinite linear;
}

.method-floating-ui .line:nth-child(4) .flow-dot {
  animation-delay: 0.75s;
}

@keyframes flow-move {
  0% {
    left: -50%;
  }

  100% {
    left: 100%;
  }
}

@keyframes pulse-node {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(79, 31, 232, 0.3);
  }

  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(79, 31, 232, 0);
  }
}

/* Columna Derecha: Pasos Verticales */
.method-steps-vertical {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  padding-left: 10px;
}

.method-steps-vertical::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: rgba(79, 31, 232, 0.1);
  z-index: 0;
}

.v-step {
  display: flex;
  gap: 2rem;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.v-step-icon {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: 2px solid rgba(79, 31, 232, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  /* Para que esté por encima de la línea */
}

.v-step-icon svg {
  width: 22px;
  height: 22px;
}

.v-step.active .v-step-icon {
  background: #ffffff;
  /* Sólido para cubrir la línea */
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  box-shadow: inset 0 0 0 50px rgba(79, 31, 232, 0.08);
  /* Tinte morado usando sombra interna */
}

.v-step-content {
  padding-top: 5px;
}

.v-step-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 800;
  transition: color 0.3s ease;
}

.v-step:not(.active) .v-step-content h3 {
  color: var(--text-muted);
}

.v-step-desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.v-step.active .v-step-desc {
  grid-template-rows: 1fr;
}

.v-step-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transform: translateY(-5px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    padding-top 0.3s ease;
}

.v-step.active .v-step-content p {
  opacity: 1;
  padding-top: 0.8rem;
  transform: translateY(0);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
    padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Sección Beneficios --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.benefit-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-2xl);
  border-radius: var(--radius);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-base);
}

.benefit-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--secondary-color);
}

.benefit-check {
  width: 32px;
  height: 32px;
  background-color: var(--secondary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.benefit-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.benefit-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Sección Contacto --- */
.contact {
  background-color: transparent;
}

.contact p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.contact-form-wrapper {
  max-width: 750px;
  margin: var(--space-2xl) auto 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* --- Footer --- */
.site-footer {
  background-color: #0c0816;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-4xl) 0 0;
  margin-top: 0 !important;
}

/* Última sección antes del footer */
.contact {
  margin-bottom: 0 !important;
  padding-bottom: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-md);
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 360px;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: var(--space-lg);
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav ul li a,
.footer-legal ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-nav ul li a:hover,
.footer-legal ul li a:hover {
  color: #ffffff;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-social-link:hover {
  color: #ffffff;
}

.footer-social-link svg {
  flex-shrink: 0;
}

.footer-bottom {
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Páginas Legales --- */
.legal-page {
  padding: calc(80px + var(--space-4xl)) 0 var(--space-4xl) 0;
  min-height: 60vh;
  background-color: #ffffff;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 4%;
}

.legal-container h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  color: var(--text-main);
}

.legal-container .legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3xl);
}

.legal-container h2 {
  font-size: 1.4rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-main);
}

.legal-container p,
.legal-container li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.legal-container ul {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-container ul li {
  margin-bottom: var(--space-xs);
}

/* --- Página 404 --- */
.error-page {
  padding: calc(80px + var(--space-4xl)) 0 var(--space-4xl) 0;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #ffffff;
}

.error-content {
  max-width: 560px;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--secondary-color), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

.error-content h1 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  color: var(--text-main);
}

.error-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero p {
    margin: 0 auto var(--space-xl) auto;
  }

  .vs-row {
    gap: var(--space-sm);
  }

  .method-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 90%;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-social {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  /* --- Menú Hamburguesa visible --- */
  .menu-toggle {
    display: flex;
  }

  .header-btn-container {
    display: none;
  }

  /* --- Ocultar nav desktop en móvil --- */
  #main-nav {
    display: none;
  }

  .header-inner {
    padding: 1rem 4%;
  }

  /* --- Reducción de espaciado vertical en secciones --- */
  section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: var(--space-xl);
  }

  /* --- Hero optimizado para móvil --- */
  .hero {
    padding: 5rem 0 2.5rem;
    min-height: auto;
    margin-top: 0 !important;
  }

  .hero-pretitle {
    font-size: 0.7rem;
    margin-bottom: var(--space-md);
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
  }

  .text-cta {
    font-size: 0.9rem;
  }

  /* --- Grids en una sola columna --- */
  .method-layout,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  /* --- Flujos apilados en móvil --- */
  .transformation-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .problem-card {
    padding: 24px;
  }

  .solution-card {
    padding: 32px 24px 24px 24px;
  }

  .benefit-item {
    padding: var(--space-xl);
  }

  .method-floating-ui {
    left: -10px;
    bottom: -20px;
    width: 220px;
    padding: 15px;
  }

  .method-floating-tag {
    top: 20px;
    right: -10px;
  }

  .custom-form-container {
    padding: var(--space-xl);
  }

  /* --- Stats bar compacta --- */
  .stats-bar-section {
    padding: var(--space-xl) 0;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    max-width: 92%;
    padding: 1.5rem 1.2rem;
    border-radius: 12px;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* --- Carrusel sin desbordamiento --- */
  .tools-carousel-section {
    padding: var(--space-xl) 0 var(--space-xl);
  }

  .tools-title {
    font-size: 0.75rem;
    margin-bottom: var(--space-md);
  }

  .carousel-group img {
    max-width: 100px;
    height: 22px;
    margin: 0 0.8rem;
  }

  .carousel-group {
    gap: 2rem;
    padding-right: 2rem;
  }

  /* --- Contacto compacto --- */
  .contact p {
    font-size: 0.95rem;
  }

  .contact-form-wrapper {
    margin-top: var(--space-xl);
  }

  /* --- Footer compacto --- */
  .site-footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .footer-description {
    max-width: 100%;
  }

  .footer-bottom {
    padding: var(--space-md) 0;
  }

  /* --- Legal pages compactas --- */
  .legal-page {
    padding: var(--space-2xl) 0;
  }

  .legal-container h1 {
    font-size: 1.8rem;
  }

  .legal-container h2 {
    font-size: 1.2rem;
  }

  /* --- 404 compacta --- */
  .error-page {
    padding: var(--space-2xl) 0;
    min-height: 50vh;
  }

  .error-code {
    font-size: 5rem;
  }

  .error-content h1 {
    font-size: 1.4rem;
  }

  /* --- Beneficios check más compacto --- */
  .benefit-check {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .benefit-content h3 {
    font-size: 1.05rem;
  }

  .benefit-content p {
    font-size: 0.9rem;
  }

  /* --- Método steps compactos --- */
  .method .step-number {
    font-size: 2.2rem;
  }

  .method .step h3 {
    font-size: 1.2rem;
  }
}
