/* ==========================================================================
   SISTEMA DE ESTILOS PREMIUM - DESARROLLOS WEB (SAAS FACTORY)
   ========================================================================== */

/* 1. VARIABLES Y DISEÑO DEL SISTEMA */
:root {
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* HSL Tailored Colors - Adaptados al Logo Dw Original */
  --bg-dark: 224 71% 4%;            /* #020813 */
  --card-bg: 222 47% 7%;            /* #060e22 */
  --border-color: 217 33% 17%;      /* #1e293b */
  
  --primary-blue: 168 100% 41%;     /* Verde Menta #00D4AA */
  --primary-cyan: 38 96% 50%;       /* Amarillo Oro #F59E0B */
  --primary-emerald: 16 94% 53%;    /* Naranja Rojizo #F97316 */
  
  --text-primary: 210 40% 98%;      /* #f8fafc */
  --text-secondary: 215 20% 65%;    /* #94a3b8 */
  --text-muted: 215 16% 47%;       /* #64748b */
}

/* 2. RESET GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--bg-dark));
  color: hsl(var(--text-primary));
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font-family: inherit;
  outline: none;
}

/* 3. AURORA BACKGROUNDS (Gradientes radiales fluidos) */
.aurora-bg {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  mix-blend-mode: screen;
  animation: float-aurora 25s infinite alternate ease-in-out;
}

.aurora-1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsl(var(--primary-blue)) 0%, transparent 80%);
}

.aurora-2 {
  bottom: 20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, hsl(var(--primary-cyan)) 0%, transparent 80%);
  animation-delay: -5s;
  animation-duration: 30s;
}

.aurora-3 {
  top: 40%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsl(var(--primary-emerald)) 0%, transparent 80%);
  opacity: 0.08;
  animation-delay: -10s;
  animation-duration: 20s;
}

@keyframes float-aurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 40px) scale(1.1); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* 4. NAVBAR (HEADER) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(2, 8, 19, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-b: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(2, 8, 19, 0.9);
  padding: 4px 0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  max-w: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO DESIGN */
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.brand-logo-img {
  height: 72px;
  width: auto;
  display: block;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .brand-logo-img {
  transform: scale(1.03);
}

header.scrolled .brand-logo-img {
  height: 72px;
}

.logo-box {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, hsl(var(--primary-blue)) 0%, hsl(var(--primary-cyan)) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.logo-italic {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  font-style: italic;
}

.logo-corners {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: rgba(255, 255, 255, 0.5);
  border-style: solid;
  pointer-events: none;
}

.logo-top-left {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.logo-bottom-right {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: white;
}

.logo-highlight {
  color: hsl(var(--primary-cyan));
}

nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: hsl(var(--text-secondary));
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, hsl(var(--primary-blue)), hsl(var(--primary-cyan)));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after {
  width: 100%;
}

.header-btn {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* 5. HERO SECTION */
.hero {
  position: relative;
  z-index: 10;
  padding-top: 10rem;
  padding-bottom: 8rem;
  overflow: hidden;
}

.hero-container {
  max-w: 1350px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.92fr 0.92fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 9999px;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.tag-dot {
  width: 6px;
  height: 6px;
  background-color: hsl(var(--primary-blue));
  border-radius: 50%;
  box-shadow: 0 0 10px hsl(var(--primary-blue));
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px hsl(var(--primary-blue)); }
  100% { transform: scale(1); opacity: 0.8; }
}

.tag-text {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: hsl(var(--primary-blue));
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: hsl(var(--text-secondary));
  max-w: 600px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.btn-primary {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(90deg, hsl(var(--primary-blue)) 0%, hsl(var(--primary-cyan)) 100%);
  border: none;
  box-shadow: 0 10px 25px -10px rgba(59, 130, 246, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px rgba(59, 130, 246, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--text-secondary));
  background: rgba(6, 14, 34, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(6, 14, 34, 0.7);
  transform: translateY(-1px);
}

/* 3D CARDS WRAPPER */
.hero-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  perspective: 1500px;
  padding: 1.5rem 0;
  width: 100%;
}

/* Adaptación de Product Card en Layout 3D */
.hero .product-card {
  width: 100%;
  max-width: 440px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
}

/* Card 1: Stockya (Plana a la Derecha) */
#card-stockya {
  align-self: flex-start;
  margin-top: 0;
  transform: none;
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5),
              0 0 15px rgba(59, 130, 246, 0.1);
}

/* Card 2: Clinicya (Plana en el Centro) */
#card-clinicya {
  align-self: flex-start;
  margin-top: 0;
  transform: none;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5),
              0 0 15px rgba(16, 185, 129, 0.1);
}

/* Responsividad para el Split Hero Layout */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-top: 7rem;
    padding-bottom: 4rem;
  }
  
  .hero-text {
    text-align: center;
    align-items: center;
    min-height: auto !important;
    order: 1;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cards {
    align-items: center;
    perspective: none;
    padding: 0;
  }
  
  #card-stockya, #card-clinicya {
    transform: none !important;
    align-self: center;
    max-width: 480px;
  }
  
  #card-stockya {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
    order: 2;
  }
  
  #card-clinicya {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
    margin-top: 2.5rem !important;
    order: 3;
  }
}

/* 6. SECCION DE PRODUCTOS (SAAS HUB) */
.products-section {
  position: relative;
  z-index: 10;
  max-w: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: hsl(var(--primary-cyan));
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8rem;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 0.95rem;
  color: hsl(var(--text-secondary));
  max-w: 520px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
}

/* PRODUCT CARD DESIGN */
.product-card {
  position: relative;
  background: rgba(6, 14, 34, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}



/* FLOATING 3D DASHBOARDS SYSTEM (STOCKYA SCREENS) */
.card-floating-screens {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  display: block;
}

@media (min-width: 993px) {
  #card-stockya {
    overflow: visible !important;
  }
}

.floating-screen {
  position: absolute;
  width: 70%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 
              0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.8s ease;
}

/* 1. Ventana de Estadísticas (Dashboard - Derecha Centro) */
.screen-dashboard {
  bottom: 25%;
  right: -25%;
  opacity: 0.40;
  transform: rotate(8deg) rotateY(-15deg) scale(0.65) translate(0, 0);
  transform-origin: bottom right;
}

#card-stockya:hover .screen-dashboard {
  opacity: 0.70;
  transform: rotate(12deg) rotateY(-5deg) scale(0.72) translate(35px, -15px);
  box-shadow: 0 25px 55px rgba(59, 130, 246, 0.25), 
              0 0 2px rgba(59, 130, 246, 0.4);
}

/* 2. Ventana de Productos (Izquierda Arriba - Cerca de "Sin Tarjeta") */
.screen-productos {
  top: 5%;
  left: -22%;
  opacity: 0.48;
  transform: rotate(-8deg) rotateY(15deg) scale(0.65) translate(0, 0);
  transform-origin: top left;
}

#card-stockya:hover .screen-productos {
  opacity: 0.80;
  transform: rotate(-12deg) rotateY(5deg) scale(0.72) translate(-40px, -20px);
  box-shadow: 0 25px 55px rgba(59, 130, 246, 0.25), 
              0 0 2px rgba(59, 130, 246, 0.4);
}

/* 3. Ventana de Ventas (Abajo Derecha) */
.screen-ventas {
  bottom: -5%;
  right: -15%;
  opacity: 0.36;
  transform: rotate(-5deg) rotateY(12deg) scale(0.6) translate(0, 0);
  transform-origin: bottom right;
}

#card-stockya:hover .screen-ventas {
  opacity: 0.60;
  transform: rotate(-8deg) rotateY(4deg) scale(0.68) translate(30px, 25px);
  box-shadow: 0 25px 55px rgba(59, 130, 246, 0.2), 
              0 0 2px rgba(59, 130, 246, 0.35);
}

.card-content {
  position: relative;
  z-index: 10;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.status-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.active-badge {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.pending-badge {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.trial-badge {
  background: rgba(245, 158, 11, 0.08);
  border: 1.5px solid #f59e0b;
  color: #ffb020;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
  text-shadow: none;
}

.text-orange-logo {
  color: #ff9100;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.blue-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

.emerald-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

.turquesa-icon {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.card-description {
  font-size: 0.9rem;
  color: hsl(var(--text-secondary));
  line-height: 1.6;
  margin-bottom: 2rem;
  min-height: 100px; /* Alineación perfecta y flexible */
}

.card-description strong {
  color: #ffffff;
  font-weight: 900;
}

.card-features {
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
}

.card-features li {
  font-size: 0.85rem;
  color: hsl(var(--text-secondary));
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.card-features li span {
  font-weight: 700;
  margin-top: 2px;
}

#card-stockya .card-features li span { color: #60a5fa; }
#card-clinicya .card-features li span { color: #34d399; }

.card-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.arrow {
  transition: transform 0.3s ease;
}

.card-btn:hover .arrow {
  transform: translateX(4px);
}

.btn-blue {
  background: rgba(249, 115, 22, 0.05);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: white;
  animation: glowPulseOrange 3s infinite ease-in-out;
}

.btn-blue:hover {
  background: hsl(var(--primary-emerald));
  border-color: transparent;
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(249, 115, 22, 0.7),
              0 0 20px rgba(249, 115, 22, 0.4);
}

@keyframes glowPulseOrange {
  0% {
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.1),
                0 0 0 0 rgba(249, 115, 22, 0.15);
  }
  50% {
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15),
                0 0 0 8px rgba(249, 115, 22, 0);
  }
  100% {
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.1),
                0 0 0 0 rgba(249, 115, 22, 0);
  }
}

.btn-emerald {
  background: rgba(0, 212, 170, 0.05);
  border: 1px solid rgba(0, 212, 170, 0.15);
  color: white;
}

.btn-emerald:hover {
  background: hsl(var(--primary-blue));
  border-color: transparent;
  box-shadow: 0 10px 20px -10px rgba(0, 212, 170, 0.5);
}

/* 7. SECCION AMEDIDA */
.amedida-section {
  position: relative;
  z-index: 10;
  max-w: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.amedida-card {
  position: relative;
  background: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    radial-gradient(1200px circle at 0% 0%, rgba(6, 14, 34, 0.5), rgba(6, 14, 34, 0.2));
  background-size: 40px 40px, 40px 40px, auto;
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  overflow: hidden;
  padding: 4rem;
}

.amedida-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at top left, rgba(59, 130, 246, 0.04), transparent 60%);
  pointer-events: none;
}

.amedida-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .amedida-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.amedida-content {
  position: relative;
  z-index: 10;
}

.amedida-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary-cyan));
  margin-bottom: 1.2rem;
}

.amedida-content h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.amedida-content p {
  color: hsl(var(--text-secondary));
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.amedida-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem 1.8rem;
  margin-bottom: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 2.5rem;
}

@media (max-width: 576px) {
  .amedida-features {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

.amedida-feat {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.amedida-feat:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(0, 212, 170, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -15px rgba(0, 212, 170, 0.15);
}

.feat-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 12px;
  flex-shrink: 0;
}

.feat-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.amedida-feat strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
}

.amedida-feat p {
  font-size: 0.8rem;
  color: hsl(var(--text-secondary));
  line-height: 1.5;
  margin: 0;
}

/* Columna Visual Derecha */
.amedida-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 480px;
  perspective: 1200px;
}

.visual-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, rgba(236, 72, 153, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: float-glow 8s infinite alternate ease-in-out;
}

@keyframes float-glow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15px, -15px) scale(1.08); }
}

/* Web Mockup (Navegador Esmerilado en Perspectiva de Fondo) */
.web-mockup {
  position: absolute;
  width: 310px;
  height: 220px;
  background: rgba(6, 14, 34, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(236, 72, 153, 0.06);
  z-index: 1; /* Detrás del teléfono */
  overflow: hidden;
  left: -15%;
  top: 10%;
  transform: rotate(-10deg) rotateY(22deg) translate3d(0, 0, 0);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: float-web 7s infinite alternate ease-in-out;
}

@keyframes float-web {
  0% { transform: rotate(-10deg) rotateY(22deg) translateY(0); }
  100% { transform: rotate(-10deg) rotateY(22deg) translateY(10px); }
}

.web-header {
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 15px;
}

.web-dots {
  display: flex;
  gap: 4px;
}

.web-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.web-address {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 1px 16px;
  font-family: monospace;
  letter-spacing: 0.02em;
}

.web-body {
  padding: 12px 14px;
  height: calc(100% - 24px);
  position: relative;
  background: 
    radial-gradient(circle at top right, rgba(0, 212, 170, 0.25) 0%, transparent 60%),
    radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.25) 0%, transparent 60%),
    #050b18;
}

.web-landing-container {
  display: flex;
  gap: 12px;
  align-items: center;
  height: 100%;
}

.web-landing-hero {
  flex: 1.15;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.web-mini-badge {
  display: inline-block;
  font-size: 0.45rem;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: #00d4aa;
  border-radius: 99px;
  padding: 1px 6px;
  width: fit-content;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.web-landing-hero h4 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.15;
  color: white;
  margin: 2px 0;
}

.web-landing-hero p {
  font-size: 0.55rem;
  color: hsl(var(--text-secondary));
  line-height: 1.3;
  margin: 0;
}

/* Formulario de Conversión Real (Punch) */
.web-landing-form {
  flex: 0.85;
  background: rgba(6, 14, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.form-title {
  font-size: 0.55rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #f97316;
  text-align: center;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.form-input-sim {
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  font-size: 0.45rem;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  padding-left: 6px;
  font-weight: 500;
}

.form-btn-sim {
  height: 18px;
  background: linear-gradient(90deg, #ff7a00 0%, #ff5c00 100%);
  color: white;
  border-radius: 4px;
  font-size: 0.48rem;
  font-weight: 900;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}

/* Phone Mockup (CSS Puro - Superpuesto al Frente) */
.phone-mockup {
  position: relative;
  width: 230px;
  height: 440px;
  background: #020813;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
              0 0 20px rgba(0, 212, 170, 0.08);
  padding: 10px;
  z-index: 3; /* Adelante de la ventana web */
  overflow: hidden;
  margin-left: 20%; /* Desplazado a la derecha */
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: float-phone 6s infinite alternate ease-in-out;
}

/* Hover coordinado en toda la columna visual */
.amedida-visual:hover .phone-mockup {
  transform: translateY(-8px) rotate(1deg) scale(1.02);
  border-color: rgba(0, 212, 170, 0.35);
  box-shadow: 0 35px 60px -10px rgba(0, 0, 0, 0.9),
              0 0 25px rgba(0, 212, 170, 0.2);
}

.amedida-visual:hover .web-mockup {
  transform: rotate(-6deg) rotateY(12deg) translate3d(-30px, -15px, 60px) scale(1.03);
  border-color: rgba(236, 72, 153, 0.25);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.7),
              0 0 35px rgba(236, 72, 153, 0.18);
}

@keyframes float-phone {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(-0.5deg); }
}

.phone-header {
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.phone-camera {
  width: 6px;
  height: 6px;
  background: #1e293b;
  border-radius: 50%;
}

.phone-speaker {
  width: 40px;
  height: 4px;
  background: #1e293b;
  border-radius: 2px;
}

.phone-screen {
  position: relative;
  background: rgba(6, 14, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 26px;
  height: calc(100% - 28px);
  width: 100%;
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.app-logo {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.app-logo-img {
  width: 26px;
  height: auto;
}

.app-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 0.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #00d4aa;
  border-radius: 50%;
  box-shadow: 0 0 8px #00d4aa;
  animation: pulse-dot-app 1.5s infinite;
}

@keyframes pulse-dot-app {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

.status-text {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #00d4aa;
}

.app-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 80px;
  width: 100%;
  margin: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 5px;
}

.chart-bar {
  width: 16px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #00d4aa 0%, rgba(0, 212, 170, 0.2) 100%);
  animation: grow-bar 1.5s ease-out forwards;
  transform-origin: bottom;
}

@keyframes grow-bar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.bar-1 { height: 40px; animation-delay: 0.1s; }
.bar-2 { height: 65px; animation-delay: 0.3s; }
.bar-3 { height: 50px; animation-delay: 0.2s; }
.bar-4 { height: 75px; animation-delay: 0.4s; }

.app-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}

.app-card-title {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: hsl(var(--text-secondary));
  letter-spacing: 0.05em;
}

.app-card-value {
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
}

.app-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(90deg, #00d4aa 0%, #00bc96 100%);
  color: white;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* 8. SECCION CTA REDISEÑADA */
.cta-section {
  position: relative;
  z-index: 10;
  max-w: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 8rem;
}

.cta-card-wrapper {
  position: relative;
  background: radial-gradient(1200px circle at top right, rgba(6, 14, 34, 0.4), rgba(6, 14, 34, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  overflow: hidden;
  padding: 4rem;
}

/* Reutilizar cuadrícula blueprint sutil para coherencia visual */
.cta-card-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .cta-card-wrapper {
    padding: 2.5rem 1.5rem;
  }
}

.cta-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.cta-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff7a00; /* Naranja StockYa */
  margin-bottom: 1.2rem;
}

.cta-info h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.cta-info p {
  color: hsl(var(--text-secondary));
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0;
}

.cta-trust-list li {
  font-size: 0.85rem;
  color: hsl(var(--text-secondary));
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  line-height: 1.5;
}

.trust-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.cta-trust-list li strong {
  color: white;
  font-weight: 700;
}

/* Formulario Integrado */
.cta-form-card {
  background: rgba(6, 14, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 576px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.form-group-sim {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group-sim label {
  font-size: 0.75rem;
  font-weight: 700;
  color: hsl(var(--text-secondary));
}

.form-group-sim input,
.form-group-sim textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: white;
  transition: all 0.3s ease;
  width: 100%;
}

.form-group-sim input:focus,
.form-group-sim textarea:focus {
  border-color: rgba(255, 122, 0, 0.5); /* Foco en naranja StockYa */
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.1);
  outline: none;
}

.btn-glow-submit {
  width: 100%;
  padding: 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  border: none;
  background: linear-gradient(90deg, #ff7a00 0%, #ff5c00 100%);
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px -8px rgba(255, 92, 0, 0.6);
}

.btn-glow-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -6px rgba(255, 92, 0, 0.75);
}

.btn-glow-submit:active {
  transform: translateY(0);
}

/* 9. MODAL INTERACTIVO (GLASSMORPHISM) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 16, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 10;
  background: rgba(6, 14, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  width: 100%;
  max-w: 600px;
  padding: 3rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  animation: modal-appear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
}

@keyframes modal-appear {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.close {
  font-size: 1.8rem;
  font-weight: 300;
  color: hsl(var(--text-secondary));
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: white;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: hsl(var(--text-secondary));
  text-transform: uppercase;
}

.form-group input, .form-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: white;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: hsl(var(--primary-blue));
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: hsl(var(--text-secondary));
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.03);
  color: white;
}

.btn-accept {
  background: linear-gradient(90deg, hsl(var(--primary-blue)) 0%, hsl(var(--primary-cyan)) 100%);
  border: none;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-accept:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.4);
}

/* 10. BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(6, 14, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 90;
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: hsl(var(--primary-blue));
  border-color: transparent;
  transform: translateY(-2px);
}

/* 11. FOOTER (OPTIMIZADO PARA SEO LOCAL) */
footer {
  position: relative;
  z-index: 10;
  background-color: rgba(2, 6, 16, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 6rem 0 4rem;
}

.footer-container {
  max-w: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand-desc {
  font-size: 0.85rem;
  color: hsl(var(--text-secondary));
  line-height: 1.7;
  max-w: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
}

.footer-links a {
  font-size: 0.8rem;
  color: hsl(var(--text-secondary));
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: hsl(var(--primary-cyan));
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
}

.footer-localdesc {
  max-w: 900px;
  line-height: 1.7;
}

.footer-localdesc strong {
  color: hsl(var(--text-secondary));
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDAD PREMIUM)
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  header {
    background: rgba(2, 8, 19, 0.95);
  }
  
  .header-container {
    padding: 1.2rem 1.5rem;
  }
  
  nav {
    display: none; /* Se puede implementar un menú móvil si es necesario */
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .card-content {
    padding: 2rem;
  }
  
  .amedida-card {
    padding: 2rem;
  }
  
  .amedida-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .modal-content {
    padding: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
