:root {
  --bg-color: #030305;
  --surface-color: #0a0a0f;
  --surface-color-light: rgba(255, 255, 255, 0.03);
  --primary: #00f0ff;
  --primary-glow: rgba(0, 240, 255, 0.5);
  --secondary: #7c3aed;
  --secondary-glow: rgba(124, 58, 237, 0.5);
  --accent: #ec4899;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(10, 10, 15, 0.6);

  /* Textura de ruido SVG inyectada para Glassmorphism Real */
  --noise-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
  overflow-x: hidden;
  background-color: var(--bg-color);
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* CUSTOM SCROLLBAR ULTRA SLEEK */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* ========================================================
           1. PRELOADER CINEMATOGRÁFICO
           ======================================================== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease-out, visibility 0.6s;
  overflow: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.loader-logo img {
  width: 140px;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 20px var(--primary-glow));
  animation: pulseLogo 2s infinite alternate;
}

@keyframes pulseLogo {
  from {
    filter: drop-shadow(0 0 10px var(--primary-glow));
    transform: scale(0.98);
  }

  to {
    filter: drop-shadow(0 0 30px var(--primary));
    transform: scale(1.02);
  }
}

.progress-wrapper {
  width: 250px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 15px;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
  transition: width 0.1s linear;
}

.progress-text {
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--primary);
  font-weight: 700;
  font-family: monospace;
}

/* Grid de fondo loader */
.loader-grid {
  position: absolute;
  inset: 0;
  background-size: 50px 50px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
  animation: moveGrid 4s linear infinite;
  opacity: 0.5;
}

@keyframes moveGrid {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 50px;
  }
}

/* ========================================================
           2. CUSTOM CURSOR & BLOBS DYNAMIC BG
           ======================================================== */
/* Cursores */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Efectos Hover Globales del Cursor */
body.hovering .cursor-dot {
  width: 0;
  height: 0;
  opacity: 0;
}

body.hovering .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  backdrop-filter: blur(2px);
  mix-blend-mode: difference;
}

/* Ocultar en táctiles */
@media (max-width: 1024px) {

  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
}

/* Blobs de Fondo Morphing */
.blob-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.4;
}

.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: morphBlob 15s ease-in-out infinite alternate;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: 40%;
  right: -10%;
  animation-delay: -5s;
}

.blob-3 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  bottom: -20%;
  left: 20%;
  animation-delay: -10s;
  opacity: 0.5;
}

@keyframes morphBlob {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  100% {
    transform: translate(100px, -50px) scale(1.1) rotate(20deg);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* ========================================================
           3. TIPOGRAFÍAS Y UTILIDADES
           ======================================================== */
h1,
h2,
h3,
h4 {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

p {
  line-height: 1.7;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.gradient-text {
  background: linear-gradient(100deg, #fff 0%, var(--primary) 30%, var(--secondary) 70%, #fff 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 8s linear infinite;
}

@keyframes shineText {
  to {
    background-position: 300% center;
  }
}

.section-padding {
  padding: 140px 5%;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ========================================================
           4. BOTONES MAGNÉTICOS Y COMPONENTES
           ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: 0.4s;
}

/* Botón Primario: Estilo "Vercel / Linear" */
.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  text-transform: capitalize;
  letter-spacing: -0.5px;
}

.btn-primary:hover {
  background: var(--primary);
  box-shadow: 0 10px 30px var(--primary-glow), 0 0 15px var(--primary);
  transform: translateY(-2px);
}

/* Botón Secundario / Outline con Ruido */
.btn-outline {
  background: var(--surface-color-light);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise-texture);
  opacity: 0.5;
  z-index: -1;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline:hover::after {
  opacity: 1;
}

/* Botones Header Especiales */
.btn-header {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* Alertas Modales */
.alert-success,
.alert-error {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 25px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
}

.alert-success {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.alert-error {
  background: rgba(255, 74, 74, 0.1);
  border: 1px solid #ff4a4a;
  color: #ff4a4a;
  box-shadow: 0 0 20px rgba(255, 74, 74, 0.1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ========================================================
           5. HEADER & NAVIGATION SÚPER CLEAN
           ======================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(180deg, rgba(3, 3, 5, 0.9) 0%, rgba(3, 3, 5, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

header.scrolled {
  height: 75px;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.logo img {
  max-height: 55px;
  width: auto;
  transition: 0.4s;
  filter: drop-shadow(0 0 0 transparent);
}

.logo:hover img {
  filter: drop-shadow(0 0 15px var(--primary-glow));
}

header.scrolled .logo img {
  max-height: 45px;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 30px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.desktop-nav ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.3s;
  position: relative;
  letter-spacing: 0.5px;
}

.desktop-nav ul li a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

@media (min-width: 1025px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

/* Selector Idioma */
.lang-selector {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  transition: 0.3s;
  appearance: none;
  cursor: pointer;
}

.lang-selector:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-selector option {
  background: var(--surface-color);
  color: #fff;
}

/* ========================================================
           6. MENÚ MÓVIL PANTALLA COMPLETA
           ======================================================== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 5, 0.98);
  backdrop-filter: blur(30px);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  clip-path: circle(0% at 100% 0);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
  clip-path: circle(150% at 100% 0);
}

.mobile-menu-overlay ul {
  list-style: none;
  text-align: center;
  width: 100%;
}

.mobile-menu-overlay ul li {
  margin-bottom: 25px;
  transform: translateY(30px);
  opacity: 0;
  transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu-overlay.active ul li {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-overlay.active ul li:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu-overlay.active ul li:nth-child(2) {
  transition-delay: 0.2s;
}

.mobile-menu-overlay.active ul li:nth-child(3) {
  transition-delay: 0.3s;
}

.mobile-menu-overlay.active ul li:nth-child(4) {
  transition-delay: 0.4s;
}

.mobile-menu-overlay ul li a {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  text-decoration: none;
  position: relative;
  display: inline-block;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  color: transparent;
  transition: 0.4s;
}

.mobile-menu-overlay ul li a:hover {
  color: #fff;
  -webkit-text-stroke: 0px;
  text-shadow: 0 0 20px var(--primary);
  transform: scale(1.1);
}

.close-mobile {
  position: absolute;
  top: 30px;
  right: 5%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: #fff;
  transition: 0.4s;
}

.close-mobile:hover {
  background: #fff;
  color: #000;
  transform: rotate(90deg);
}

/* ========================================================
           7. HERO SECTION AVANZADO (CANVAS NETWORK + 3D)
           ======================================================== */
.hero {
  min-height: 100vh;
  padding-top: 90px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Lienzo interactivo en el fondo */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, transparent 0%, var(--bg-color) 80%);
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  z-index: 2;
  position: relative;
}

.hero-content {
  text-align: left;
  padding-right: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  letter-spacing: 1px;
}

.badge i {
  color: var(--primary);
}

/* Texto principal animado */
.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 25px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
}

.hero p {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  margin-bottom: 40px;
  color: #cbd5e1;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* Composición 3D Hero */
.hero-mockups {
  position: relative;
  height: 650px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
  transform-style: preserve-3d;
}

.glow-sphere {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.3;
  animation: pulseSphere 4s infinite alternate;
  z-index: 0;
}

@keyframes pulseSphere {
  to {
    transform: scale(1.2);
    opacity: 0.5;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  }
}

.mockup-desktop {
  position: absolute;
  width: 140%;
  max-width: 800px;
  right: -20%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: -30px 40px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotateY(-20deg) rotateX(10deg);
  animation: floatDesktop 8s ease-in-out infinite;
  z-index: 1;
  background: #111;
}

.mockup-desktop::before {
  content: '';
  display: block;
  padding-top: 60%;
  /* Ratio 16:9 approx */
}

.mockup-desktop img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-mobile {
  position: absolute;
  width: 240px;
  left: 0%;
  bottom: 10%;
  border-radius: 35px;
  border: 8px solid #1a1a24;
  overflow: hidden;
  box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotateY(-20deg) rotateX(10deg) translateZ(120px);
  animation: floatMobile 9s ease-in-out infinite alternate;
  z-index: 2;
  background: #000;
}

.mockup-mobile::before {
  content: '';
  display: block;
  padding-top: 216%;
  /* Ratio Phone */
}

.mockup-mobile img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: 25px;
  background: #1a1a24;
  border-radius: 0 0 12px 12px;
  z-index: 3;
}

@keyframes floatDesktop {

  0%,
  100% {
    transform: rotateY(-20deg) rotateX(10deg) translateY(0px);
  }

  50% {
    transform: rotateY(-20deg) rotateX(10deg) translateY(-25px);
    box-shadow: -30px 60px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

@keyframes floatMobile {
  0% {
    transform: rotateY(-20deg) rotateX(10deg) translateZ(120px) translateY(0px);
  }

  100% {
    transform: rotateY(-20deg) rotateX(10deg) translateZ(120px) translateY(-35px);
    box-shadow: -20px 50px 60px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

/* ========================================================
           8. FEATURES SECTIONS (Efecto SPOTLIGHT y 3D)
           ======================================================== */
.section-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-inline: auto;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 25px;
}

.section-header p {
  font-size: 1.15rem;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

/* Contenedor Spotlight para agrupar tarjetas y compartir coordendas del mouse */
#spotlight-grid {
  position: relative;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 50px 40px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
}

/* Spotlight Effect Background */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
  pointer-events: none;
}

/* Spotlight Effect Border Glow */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 240, 255, 0.4), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.feature-card:hover::before,
.feature-card:hover::after {
  opacity: 1;
}

.feature-card>* {
  position: relative;
  z-index: 1;
}

.feature-icon {
  width: 75px;
  height: 75px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 30px;
  transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: #000;
  transform: scale(1.1) rotate(5deg) translateY(-10px);
  box-shadow: 0 15px 30px var(--primary-glow);
  border-color: transparent;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 1rem;
  color: #94a3b8;
  transition: 0.5s;
}

/* Flecha indicadora oculta */
.card-arrow {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0) rotate(-45deg);
  transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
}

.feature-card:hover .card-arrow {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* ========================================================
           9. PRICING SECTION (Tablas Premium)
           ======================================================== */
.pricing-section {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 100px;
  background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.05), transparent 70%);
}

.pricing-note {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 60px;
  background: rgba(255, 255, 255, 0.02);
  padding: 25px 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-block;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.pricing-card {
  background: linear-gradient(180deg, rgba(20, 20, 25, 0.8) 0%, rgba(10, 10, 15, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 50px 40px;
  border-radius: 30px;
  transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(20px);
}

/* Sombra estática premium */
.pricing-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 31px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
  z-index: -1;
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-15px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.05);
}

/* Plan destacado */
.pricing-card.highlight {
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.9) 0%, rgba(10, 10, 20, 0.9) 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.pricing-card.highlight::before {
  background: linear-gradient(180deg, var(--secondary), transparent);
}

.pricing-card.highlight:hover {
  border-color: var(--secondary);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 50px var(--secondary-glow);
}

.tag-popular {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, var(--secondary), #a855f7);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px var(--secondary-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.pricing-card.highlight .pricing-icon {
  color: var(--secondary);
  text-shadow: 0 0 20px var(--secondary-glow);
}

.pricing-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #fff;
}

.pricing-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 30px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 15px;
}

.price-tier {
  font-weight: 600;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.price-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.price-value span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-top: 30px;
  margin-bottom: 40px;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 18px;
  font-size: 0.95rem;
  display: flex;
  gap: 15px;
  align-items: start;
  color: #cbd5e1;
}

.pricing-features i {
  color: #fff;
  margin-top: 4px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding: 4px;
}

.pricing-card.highlight .pricing-features i {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 0 10px var(--secondary-glow);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: auto;
}

.pricing-card.highlight .btn-primary {
  background: linear-gradient(135deg, var(--secondary), #a855f7);
  color: #fff;
  box-shadow: 0 10px 20px var(--secondary-glow);
}

.cat-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}

/* ========================================================
           10. CONTACT SECTION (Split Layout)
           ======================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  padding: 80px;
  overflow: hidden;
  position: relative;
}

.contact-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.contact-info h2 {
  font-size: 3.5rem;
  margin-bottom: 25px;
  line-height: 1.1;
}

.contact-info p {
  margin-bottom: 40px;
  font-size: 1.15rem;
  color: #cbd5e1;
}

.info-cards {
  display: grid;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 25px;
  background: rgba(0, 0, 0, 0.3);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.4s;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(10px);
  border-color: rgba(255, 255, 255, 0.1);
}

.info-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.input-group {
  margin-bottom: 25px;
  position: relative;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  border-radius: 16px;
  color: white;
  outline: none;
  transition: 0.4s;
  font-size: 1.05rem;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.input-group input:focus+label,
.input-group textarea:focus+label {
  color: #fff;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.legal-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.legal-checkbox-container input[type="checkbox"] {
  margin-top: 5px;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.legal-checkbox-container input[type="checkbox"]:checked {
  background: #fff;
  border-color: #fff;
}

.legal-checkbox-container input[type="checkbox"]:checked::after {
  content: '\f00c';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
}

.legal-checkbox-container a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: 0.3s;
}

.legal-checkbox-container a:hover {
  border-color: #fff;
}

/* ========================================================
           11. FOOTER MINIMALISTA
           ======================================================== */
footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 120px 5% 40px;
  position: relative;
  z-index: 2;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto 80px;
}

.footer-about p {
  margin-top: 25px;
  font-size: 1.05rem;
  max-width: 400px;
  color: var(--text-muted);
}

.company-legal-info {
  margin-top: 30px;
  font-size: 0.95rem;
  color: #94a3b8;
  display: grid;
  gap: 12px;
}

.company-legal-info p {
  display: flex;
  align-items: center;
  gap: 15px;
}

.company-legal-info i {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
}

.footer-grid h4 {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 18px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.3s;
  font-size: 1rem;
  position: relative;
  padding-bottom: 2px;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: #fff;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 1300px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 30px;
}

.payment-badges {
  display: flex;
  gap: 20px;
  font-size: 2rem;
  color: #fff;
}

.payment-badges i {
  opacity: 0.5;
  transition: 0.4s;
}

.payment-badges i:hover {
  opacity: 1;
  transform: scale(1.1);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: 0.4s;
  font-size: 1.2rem;
}

.social-icons a:hover {
  background: #fff;
  color: #000;
  transform: translateY(-5px);
}

/* ========================================================
           12. MODALES ULTRA FLUIDOS & CARRITO
           ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(25px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30000;
  opacity: 0;
  pointer-events: none;
  transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px;
  border-radius: 30px;
  max-width: 550px;
  width: 95%;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  transition: 0.4s;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: #fff;
  color: #000;
  transform: rotate(90deg);
}

.toggle-link {
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: 30px;
  display: block;
  text-align: center;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
  transition: 0.3s;
}

.toggle-link:hover {
  text-decoration-color: #fff;
}

/* Botón Carrito Flotante Magnético */
.cart-float-wrapper {
  position: fixed;
  top: 120px;
  right: 40px;
  z-index: 15000;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-float {
  background: #fff;
  color: #000;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
  transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform: scale(0);
}

.cart-float.active {
  transform: scale(1);
}

.cart-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #ef4444;
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid #000;
}

/* Lista del Carrito Estilizada */
#cartPreview {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 30px;
}

#cartPreview h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#cartList li {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

#cartList li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.btn-trash {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.btn-trash:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

/* ========================================================
           13. RESPONSIVE MASTER
           ======================================================== */
@media (max-width: 1200px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-mockups {
    height: 500px;
    margin-top: 60px;
  }

  .mockup-desktop {
    right: auto;
    transform: rotateY(0) rotateX(0);
    animation: floatDeskMob 8s ease-in-out infinite;
    max-width: 90%;
    width: 90%;
    left: 50%;
    margin-left: -45%;
  }

  .mockup-mobile {
    left: 50%;
    margin-left: -120px;
    bottom: -10%;
    transform: translateZ(100px);
    animation: floatMobMob 9s ease-in-out infinite alternate;
  }

  @keyframes floatDeskMob {

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

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

  @keyframes floatMobMob {
    0% {
      transform: translateZ(100px) translateY(0px);
    }

    100% {
      transform: translateZ(100px) translateY(-30px);
    }
  }

  .contact-container {
    grid-template-columns: 1fr;
    padding: 50px;
    border-radius: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .footer-about {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .company-legal-info p {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 100px 5%;
  }

  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-mockups {
    height: 350px;
  }

  .mockup-mobile {
    width: 150px;
    margin-left: -75px;
  }

  .grid-features,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 40px 30px;
  }

  .pricing-card {
    padding: 40px 30px;
    border-radius: 24px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .contact-container {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .info-item {
    flex-direction: column;
    text-align: center;
  }

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

  .contact-form {
    padding: 40px 20px;
    border-radius: 20px;
  }

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

  .footer-about {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .modal-box {
    padding: 40px 20px;
  }

  .cart-float-wrapper {
    top: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
  }

  .cart-float {
    width: 55px;
    height: 55px;
    font-size: 1.2rem;
  }
}
