/* ========================================
   Quality SIP - Modern Website Styles
   ======================================== */

/* --- CSS CUSTOM PROPERTIES --- */
:root {
  /* Colors */
  --color-bg-primary: #0B1426;
  --color-bg-secondary: #111D33;
  --color-bg-tertiary: #162040;
  --color-accent: #F91FB0;
  --color-accent-light: #FF6BD6;
  --color-accent-glow: rgba(249, 31, 176, 0.3);
  /* Text-safe brand tone that meets WCAG AA (>= 4.5:1) on light backgrounds.
     In dark mode we keep the vivid accent as body-text color remains readable.
     Light mode overrides this to a darker magenta below. */
  --brand-text: var(--color-accent);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A0AEC0;
  --color-text-muted: #6B7A90;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-surface-hover: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-active: rgba(249, 31, 176, 0.4);
  --color-success: #48BB78;
  --color-warning: #ECC94B;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0B1426 0%, #1A2744 50%, #0F1B30 100%);
  --gradient-accent: linear-gradient(135deg, #F91FB0, #7B2FFF);
  --gradient-accent-soft: linear-gradient(135deg, rgba(249,31,176,0.15), rgba(123,47,255,0.15));
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1280px;
  --header-height: 100px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(249, 31, 176, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.text-accent {
  color: var(--brand-text);
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--gradient-accent-soft);
  border: 1px solid var(--color-border-active);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-badge-new {
  background: var(--gradient-accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* --- GRID SYSTEM --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Ensure .cards-grid is a grid even when used without the .grid helper
   (used by "Contenido relacionado" sections across the site) */
.cards-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-base);
  background: rgba(11, 20, 38, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header.scrolled {
  background: rgba(11, 20, 38, 0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-primary);
  z-index: 1001;
}

.logo-img {
  height: 55px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.logo svg {
  width: 40px;
  height: 40px;
}

.logo span {
  color: var(--color-accent);
}

/* --- NAVIGATION --- */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
  background: var(--color-surface);
}

.nav-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown / Megamenu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 100;
}

.nav-item:hover .nav-dropdown,
.nav-item.menu-open .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-dropdown a:hover {
  color: var(--color-text-primary);
  background: var(--color-surface);
  padding-left: calc(var(--space-md) + 4px);
}

.nav-dropdown a .dropdown-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent-soft);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-dropdown a .dropdown-icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.nav-dropdown-label {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.header-phone svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(249, 31, 176, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 31, 176, 0.4);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-active);
}

.btn-outline {
  background: transparent;
  color: var(--brand-text);
  border: 1px solid var(--color-accent);
}

.btn-outline:hover {
  background: rgba(249, 31, 176, 0.1);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding-top: calc(var(--header-height) + 4rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249, 31, 176, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 31, 176, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.hero-glow-1 {
  top: -200px;
  right: -100px;
  background: var(--color-accent);
}

.hero-glow-2 {
  bottom: -200px;
  left: -100px;
  background: #7B2FFF;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: var(--gradient-accent-soft);
  border: 1px solid var(--color-border-active);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease forwards;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
  padding: var(--space-3xl) 0 var(--space-4xl);
  border-top: 1px solid var(--color-border);
  animation: fadeInUp 0.8s ease 0.5s both;
  justify-content: center;
}

.hero-stat {
  text-align: center;
}

/* Hero highlight cards (horizontal strip) */
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-highlight-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: linear-gradient(145deg, rgba(22, 32, 64, 0.7) 0%, rgba(11, 20, 38, 0.8) 100%);
  border: 1px solid rgba(249, 31, 176, 0.12);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.hero-highlight-card:hover {
  border-color: rgba(249, 31, 176, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(249, 31, 176, 0.1);
}

.highlight-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(249, 31, 176, 0.3);
}

.highlight-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.highlight-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.highlight-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .hero-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-highlights {
    grid-template-columns: 1fr;
  }
}

.hero-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Hero visual (hidden - replaced by horizontal highlights) */
.hero-visual {
  display: none;
}

.hero-visual-graphic {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 450px;
}

.hero-float-card {
  position: absolute;
  background: linear-gradient(145deg, rgba(22, 32, 64, 0.9) 0%, rgba(11, 20, 38, 0.95) 100%);
  border: 1px solid rgba(249, 31, 176, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(249, 31, 176, 0.05);
  animation: float 6s ease-in-out infinite;
  backdrop-filter: blur(16px);
  min-width: 240px;
  transition: all var(--transition-base);
}

.hero-float-card:hover {
  border-color: rgba(249, 31, 176, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(249, 31, 176, 0.15);
  transform: translateY(-4px);
}

.hero-float-card:nth-child(1) {
  top: 10px;
  right: 20px;
  animation-delay: 0s;
}

.hero-float-card:nth-child(2) {
  top: 160px;
  left: 0;
  animation-delay: 2s;
}

.hero-float-card:nth-child(3) {
  top: 310px;
  right: 40px;
  animation-delay: 4s;
}

.float-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  box-shadow: 0 4px 12px rgba(249, 31, 176, 0.25);
}

.float-card-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.float-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.float-card-value {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- SUB-HERO (Interior Pages) --- */
.sub-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-3xl);
  background: var(--gradient-hero);
  overflow: hidden;
}

.sub-hero .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249, 31, 176, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 31, 176, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.sub-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.sub-hero h1 {
  margin-bottom: var(--space-md);
}

.sub-hero p {
  font-size: 1.15rem;
  max-width: 650px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-text);
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

/* --- CARDS --- */
.card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(249,31,176,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 31, 176, 0.2);
  box-shadow: var(--shadow-glow);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent-soft);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-text);
  transition: all var(--transition-fast);
  position: relative;
  z-index: 2;
}

.card-link:hover {
  gap: var(--space-md);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* Card with "NEW" badge */
.card-new {
  border-color: rgba(249, 31, 176, 0.3);
}

.card-new::after {
  content: 'NUEVO';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 2px 10px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

/* Only show the NUEVO badge on cards that link to an IA service,
   or when we are inside an IA page (body.is-ia-page).
   Everywhere else the "card-new" class is treated as a no-op badge-wise. */
.card-new::after {
  content: none;
}
.card-new:has(a[href*="ia/"])::after,
body.is-ia-page .card-new::after {
  content: 'NUEVO';
}
/* Also remove the pink hover border for non-IA cards so they look neutral */
.card-new:not(:has(a[href*="ia/"])) {
  border-color: var(--color-border);
}
body.is-ia-page .card-new,
.card-new:has(a[href*="ia/"]) {
  border-color: rgba(249, 31, 176, 0.3);
}

/* Feature cards (horizontal) */
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(249, 31, 176, 0.2);
  background: var(--color-surface-hover);
  transform: translateY(-4px);
}

.feature-card .card-icon {
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
}

.feature-card .feature-icon {
  margin-bottom: var(--space-lg);
  width: 56px;
  height: 56px;
}

.feature-card .feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- TRUST BAR --- */
.trust-bar {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-xl) 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.trust-item strong {
  color: var(--color-text-primary);
  font-weight: 700;
}

/* --- STEPS / HOW IT WORKS --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  counter-reset: step;
}

.step {
  position: relative;
  padding: var(--space-xl);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gradient-accent);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.step h4 {
  margin-bottom: var(--space-sm);
}

/* --- WHY US / FEATURES --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent-soft);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.feature-text h4 {
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 700;
}

.feature-text p {
  font-size: 0.88rem;
}

/* --- CTA SECTION --- */
.cta-section {
  position: relative;
  padding: var(--space-4xl) 0;
  background: var(--gradient-accent-soft);
  border-top: 1px solid var(--color-border-active);
  border-bottom: 1px solid var(--color-border-active);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(249,31,176,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
}

.cta-block {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-block h2 {
  margin-bottom: var(--space-md);
}

.cta-block p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--gradient-accent-soft);
  border-color: var(--color-border-active);
  color: var(--brand-text);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--brand-text);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a:hover {
  color: var(--brand-text);
}

/* --- FORMS --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A0AEC0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option,
.form-select optgroup {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  padding: 8px 12px;
}

.form-select optgroup {
  font-weight: 700;
  color: var(--brand-text);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(249, 31, 176, 0.15);
}

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

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

/* --- TAGS --- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.tag-accent {
  background: var(--gradient-accent-soft);
  border-color: var(--color-border-active);
  color: var(--color-accent-light);
}

/* --- INTEGRATIONS LOGOS --- */
.integrations-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  padding: var(--space-xl) 0;
}

.integration-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.integration-logo:hover {
  border-color: var(--color-border-active);
  color: var(--color-text-secondary);
}

/* --- BLOG CARDS --- */
.blog-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  background: var(--color-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img svg {
  width: 48px;
  height: 48px;
  color: var(--color-text-muted);
}

.blog-card-body {
  padding: var(--space-xl);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.blog-card-body h3 a:hover {
  color: var(--brand-text);
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- KEYFRAMES --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- DETAIL PAGE CONTENT --- */
.page-content {
  padding: var(--space-3xl) 0;
}

.content-block {
  margin-bottom: var(--space-3xl);
}

.content-block h2 {
  margin-bottom: var(--space-lg);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.content-block p + p {
  margin-top: var(--space-md);
}

/* ===== LEGAL PAGES - PRO STYLES ===== */
.legal-hero { position: relative; padding: calc(var(--header-height) + 3rem) 0 3rem; overflow: hidden; background: radial-gradient(ellipse at top left, rgba(249,31,176,0.10), transparent 55%), radial-gradient(ellipse at bottom right, rgba(123,47,255,0.10), transparent 55%), var(--color-bg-primary); }
.legal-hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; pointer-events: none; }
.legal-hero-orb-1 { width: 450px; height: 450px; top: -150px; right: -80px; background: radial-gradient(circle, rgba(249,31,176,0.35), transparent 70%); }
.legal-hero-orb-2 { width: 350px; height: 350px; bottom: -100px; left: -60px; background: radial-gradient(circle, rgba(123,47,255,0.3), transparent 70%); }
.legal-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(249,31,176,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(249,31,176,0.05) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, black, transparent 70%); pointer-events: none; }
.legal-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 780px; margin: 0 auto; }
.legal-hero-icon { display: inline-flex; width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(135deg, #F91FB0, #7B2FFF); align-items: center; justify-content: center; color: white; margin-bottom: 1.5rem; box-shadow: 0 20px 50px -15px rgba(249,31,176,0.5); }
.legal-hero-icon svg { width: 36px; height: 36px; }
.legal-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 1rem; }
.legal-hero-desc { font-size: 1.1rem; line-height: 1.6; color: var(--color-text-secondary); margin-bottom: 1.5rem; }
.legal-hero-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.6rem 1.25rem; background: linear-gradient(135deg, rgba(249,31,176,0.10), rgba(123,47,255,0.06)); border: 1px solid rgba(249,31,176,0.25); border-radius: 999px; font-size: 0.85rem; }
.legal-hero-meta strong { color: var(--color-text-primary); font-weight: 700; }
.legal-hero-meta span { color: var(--color-text-secondary); }
.legal-hero-meta svg { width: 14px; height: 14px; color: #F91FB0; }

.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; padding: 3rem 0 5rem; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 2rem; } }
.legal-toc { position: sticky; top: calc(var(--header-height) + 1.5rem); align-self: start; padding: 1.5rem; background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border: 1px solid var(--color-border); border-radius: 16px; }
@media (max-width: 900px) { .legal-toc { position: static; } }
.legal-toc-title { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-secondary); margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; margin: 0; }
.legal-toc a { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.55rem 0.5rem; font-size: 0.88rem; line-height: 1.35; color: var(--color-text-secondary); text-decoration: none; border-radius: 8px; transition: all 0.2s ease; border-left: 2px solid transparent; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-size: 0.72rem; font-weight: 800; color: #F91FB0; opacity: 0.7; flex-shrink: 0; margin-top: 1px; }
.legal-toc a:hover { background: rgba(249,31,176,0.06); color: var(--color-text-primary); border-left-color: rgba(249,31,176,0.4); }
.legal-toc a.active { background: linear-gradient(90deg, rgba(249,31,176,0.10), transparent); color: var(--color-text-primary); border-left-color: #F91FB0; }
.legal-toc a.active::before { opacity: 1; }

.legal-content { min-width: 0; }
.legal-section { position: relative; margin-bottom: 2.5rem; padding: 2rem; background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border: 1px solid var(--color-border); border-radius: 20px; scroll-margin-top: calc(var(--header-height) + 1rem); transition: border-color 0.3s ease; }
.legal-section:hover { border-color: rgba(249,31,176,0.25); }
.legal-section-num { position: absolute; top: -18px; left: 24px; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border-radius: 999px; background: linear-gradient(135deg, #F91FB0, #7B2FFF); color: white; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em; box-shadow: 0 10px 24px -6px rgba(249,31,176,0.5); }
.legal-section h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; margin: 0.5rem 0 1rem; color: var(--color-text-primary); }
.legal-section p { font-size: 0.95rem; line-height: 1.7; color: var(--color-text-secondary); margin: 0 0 1rem; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: #F91FB0; text-decoration: none; border-bottom: 1px solid rgba(249,31,176,0.3); transition: border-color 0.2s ease; }
.legal-section a:hover { border-bottom-color: #F91FB0; }
.legal-section ul, .legal-section ol { margin: 0 0 1rem; padding-left: 1.5rem; color: var(--color-text-secondary); line-height: 1.65; }
.legal-section li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.legal-section li::marker { color: #F91FB0; }
.legal-section strong { color: var(--color-text-primary); font-weight: 700; }
.legal-section .spec-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9rem; }
.legal-section .spec-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
.legal-section .spec-table td { padding: 0.75rem 0.5rem; color: var(--color-text-secondary); vertical-align: top; }
.legal-section .spec-table td:first-child { font-weight: 700; color: var(--color-text-primary); width: 35%; }
.legal-section .cookie-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.88rem; }
.legal-section .cookie-table th { text-align: left; padding: 0.75rem 0.6rem; background: rgba(249,31,176,0.06); color: var(--color-text-primary); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid rgba(249,31,176,0.2); }
.legal-section .cookie-table td { padding: 0.7rem 0.6rem; color: var(--color-text-secondary); border-bottom: 1px solid rgba(255,255,255,0.05); }
.legal-updated { display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem; padding: 0.4rem 0.85rem; background: rgba(249,31,176,0.06); border: 1px solid rgba(249,31,176,0.2); border-radius: 999px; font-size: 0.78rem; color: var(--color-text-secondary); }
.legal-updated svg { width: 14px; height: 14px; color: #F91FB0; }

.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 768px) {
  .content-two-col {
    grid-template-columns: 1fr;
  }
}

.content-visual {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.content-visual svg {
  width: 120px;
  height: 120px;
  color: var(--color-accent);
  opacity: 0.6;
}

/* Pricing / specs table */
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 41, 0.06);
  border: 1px solid var(--color-border);
}

.spec-table thead th {
  background: linear-gradient(135deg, #F91FB0, #7B2FFF);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px var(--space-lg);
  text-align: left;
}

.spec-table thead th:first-child { text-align: left; }

.spec-table tr {
  border-bottom: 1px solid var(--color-border);
}

.spec-table tbody tr:nth-child(even) td {
  background: rgba(249, 31, 176, 0.03);
}

.spec-table tbody tr:hover td {
  background: rgba(249, 31, 176, 0.07);
}

.spec-table tbody tr:last-child td {
  border-bottom: none;
}

.spec-table td {
  padding: 14px var(--space-lg);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--color-text-primary);
  width: 45%;
  position: relative;
}

.spec-table td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: linear-gradient(180deg, #F91FB0, #7B2FFF);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.spec-table tbody tr:hover td:first-child::before {
  opacity: 1;
}

.spec-table td:last-child {
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Checklist */
.check-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.check-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #F91FB0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  box-shadow: 0 2px 6px rgba(249, 31, 176, 0.35);
}

.check-list li::after { content: none; }

.check-list li svg {
  /* Hidden: the pink ::before circle already provides the checkmark; the inline SVG was redundant */
  display: none;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.check-item:hover {
  border-color: rgba(249, 31, 176, 0.2);
  background: var(--color-surface-hover);
}

.check-item > svg {
  width: 24px;
  height: 24px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 4px;
}

.check-item h4 {
  margin: 0 0 var(--space-xs) 0;
  color: var(--color-text-primary);
  font-size: 1.05rem;
}

.check-item p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- PRICING CARDS --- */
.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  min-height: 180px;
}

.pricing-card:hover {
  border-color: rgba(249, 31, 176, 0.3);
  background: var(--color-surface-hover);
  transform: translateY(-4px);
}

.pricing-card-highlight {
  border-color: rgba(249, 31, 176, 0.35);
  background: linear-gradient(135deg, rgba(249, 31, 176, 0.08), rgba(123, 47, 255, 0.05));
}

.pricing-card-highlight:hover {
  border-color: var(--color-accent);
}

.pricing-tier {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.pricing-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.pricing-amount {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.pricing-unit {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.pricing-unit-prefix {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.pricing-note {
  margin-top: var(--space-sm);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* --- WHATSAPP / CHAT FLOAT BUTTON (disabled: Yeastar live chat is used instead) --- */
.float-btn {
  display: none !important;
}
.float-btn-legacy {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(249, 31, 176, 0.4);
  transition: all var(--transition-base);
  color: #fff;
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(249, 31, 176, 0.5);
}

.float-btn svg {
  width: 28px;
  height: 28px;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  flex: 1;
}

.cookie-banner p a {
  color: var(--brand-text);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .header-phone,
  .header-cta .btn-secondary {
    display: none;
  }

  .header-cta {
    gap: var(--space-sm);
    margin-left: auto;
  }

  .mobile-toggle {
    display: flex;
    flex: 0 0 auto;
    margin-left: var(--space-sm);
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
  }

  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--color-bg-primary);
    padding: var(--space-md) var(--space-xl) var(--space-2xl);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 999;
    gap: 0;
  }

  .nav.mobile-open .nav-item {
    width: 100%;
  }

  .nav.mobile-open .nav-link {
    padding: var(--space-md);
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .nav.mobile-open .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: rgba(255,255,255,0.03);
    border: none;
    border-radius: 0;
    padding: 0;
    display: none;
  }

  .nav.mobile-open .nav-item.dropdown-open .nav-dropdown {
    display: block;
  }

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

  .hero-stats {
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 var(--space-md);
  }

  .header-cta .btn-primary {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }

  .trust-bar-inner {
    gap: var(--space-xl);
  }

  .content-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 1.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }

/* ==========================================================================
   LIGHT MODE
   ========================================================================== */
body.light-mode {
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #FDFBFE;
  --color-bg-tertiary: #FAF6FB;
  --color-text-primary: #0F1729;
  --color-text-secondary: #4C5573;
  --color-text-muted: #5B6478; /* WCAG AA >= 4.5:1 on #FFFFFF (was #8890A8, only ~3.3:1) */
  --brand-text: #B01586; /* WCAG AA magenta on light bg (~5.8:1); replaces #F91FB0 which was ~2.9:1 */
  --color-surface: rgba(15, 23, 41, 0.025);
  --color-surface-hover: rgba(15, 23, 41, 0.05);
  --color-border: rgba(15, 23, 41, 0.07);
  --color-border-active: rgba(249, 31, 176, 0.5);
  --gradient-hero: radial-gradient(ellipse at top left, #FFE8F5 0%, transparent 55%), radial-gradient(ellipse at bottom right, #F0EAFF 0%, transparent 60%), linear-gradient(180deg, #FFFFFF 0%, #FDFBFE 100%);
  --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #FDFBFE 100%);
  --shadow-sm: 0 1px 3px rgba(15,23,41,0.04);
  --shadow-md: 0 4px 12px rgba(15,23,41,0.06);
  --shadow-lg: 0 12px 32px rgba(15,23,41,0.08);
  --shadow-glow: 0 8px 32px rgba(249,31,176,0.15);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
}
body.light-mode .header { background: rgba(255,255,255,0.75); border-bottom-color: rgba(15,23,41,0.06); padding: 1rem 0; }
body.light-mode .header.scrolled { background: rgba(255,255,255,0.95); box-shadow: 0 4px 20px rgba(15,23,41,0.06); }
body.light-mode .header-inner { min-height: 84px; }
body.light-mode .logo-img { height: 84px; max-width: 340px; }
body.light-mode .nav-link, body.light-mode .header-phone { color: var(--color-text-primary); font-weight: 600; }
body.light-mode .nav-link:hover, body.light-mode .header-phone:hover { color: var(--brand-text); }
body.light-mode .nav-dropdown { background: #FFFFFF; border: 1px solid rgba(15,23,41,0.06); box-shadow: 0 20px 60px rgba(15,23,41,0.12); }
body.light-mode .nav-dropdown-label { color: var(--color-text-muted); }
body.light-mode .nav-dropdown a { color: var(--color-text-primary); }
body.light-mode .nav-dropdown a:hover { background: rgba(249,31,176,0.06); color: var(--brand-text); }
body.light-mode .dropdown-icon { background: rgba(249,31,176,0.08); color: var(--color-accent); }
body.light-mode .hero-grid { background-image: linear-gradient(rgba(249,31,176,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(249,31,176,0.05) 1px, transparent 1px); background-size: 60px 60px; opacity: 0.6; }
body.light-mode .hero-glow-1 { background: radial-gradient(circle, rgba(249,31,176,0.15) 0%, transparent 70%); }
body.light-mode .hero-glow-2 { background: radial-gradient(circle, rgba(123,47,255,0.12) 0%, transparent 70%); }
body.light-mode .card { background: #FFFFFF; border: 1px solid rgba(15,23,41,0.06); box-shadow: 0 1px 3px rgba(15,23,41,0.04); }
body.light-mode .card:hover { transform: translateY(-4px); border-color: rgba(249,31,176,0.25); box-shadow: 0 12px 32px rgba(249,31,176,0.1); }
body.light-mode .card h3, body.light-mode .card h4 { color: var(--color-text-primary); }
body.light-mode .card p { color: var(--color-text-secondary); }
body.light-mode .card-icon { background: linear-gradient(135deg, rgba(249,31,176,0.1), rgba(123,47,255,0.08)); color: var(--color-accent); }
body.light-mode .hero-highlight-card { background: #FFFFFF !important; border: 1px solid rgba(15,23,41,0.08) !important; backdrop-filter: none; box-shadow: 0 4px 16px rgba(15,23,41,0.06); }
body.light-mode .hero-highlight-card:hover { border-color: rgba(249,31,176,0.3) !important; transform: translateY(-2px); }
body.light-mode .highlight-title { color: var(--color-text-primary); }
body.light-mode .highlight-desc { color: var(--color-text-secondary); }
body.light-mode .hero-float-card { background: #FFFFFF !important; border-color: rgba(15,23,41,0.08) !important; box-shadow: 0 12px 40px rgba(15,23,41,0.1); }
body.light-mode .section-badge, body.light-mode .hero-badge { background: rgba(249,31,176,0.08); color: var(--brand-text); border: 1px solid rgba(249,31,176,0.2); }
body.light-mode .trust-bar { background: #FFFFFF; border-color: rgba(15,23,41,0.05); }
body.light-mode .btn-secondary { background: #FFFFFF; color: var(--color-text-primary); border: 1px solid rgba(15,23,41,0.12); box-shadow: 0 1px 3px rgba(15,23,41,0.04); }
body.light-mode .btn-secondary:hover { border-color: var(--color-accent); color: var(--brand-text); box-shadow: 0 4px 12px rgba(249,31,176,0.15); }
body.light-mode .cta-section { background: linear-gradient(135deg, #FFE8F5 0%, #FFF 50%, #F0EAFF 100%); border-top: 1px solid rgba(249,31,176,0.2); border-bottom: 1px solid rgba(249,31,176,0.2); }
body.light-mode .cta-section h2 { color: var(--color-text-primary); }
body.light-mode .cta-section p { color: var(--color-text-secondary); }
body.light-mode .footer { background: #FAF6FB; border-top: 1px solid rgba(15,23,41,0.06); }
body.light-mode .footer h4 { color: var(--color-text-primary); font-weight: 700; }
body.light-mode .footer a, body.light-mode .footer span, body.light-mode .footer-brand p { color: var(--color-text-secondary); }
body.light-mode .footer a:hover { color: var(--brand-text); }
body.light-mode .footer-social a { background: #FFFFFF; color: var(--color-text-secondary); border: 1px solid rgba(15,23,41,0.08); }
body.light-mode .footer-social a:hover { background: var(--color-accent); color: #FFFFFF; border-color: var(--color-accent); }
body.light-mode .footer-bottom { border-top-color: rgba(15,23,41,0.06); }
body.light-mode .cookie-banner { background: #FFFFFF; border: 1px solid rgba(15,23,41,0.08); box-shadow: 0 -8px 32px rgba(15,23,41,0.08); color: var(--color-text-primary); }
body.light-mode section[style*="var(--color-bg-secondary)"] { background: #FDFBFE !important; }
body.light-mode .mobile-toggle span { background: var(--color-text-primary); }
body.light-mode .float-btn { box-shadow: 0 8px 24px rgba(249,31,176,0.35); }
body.light-mode .sub-hero h1 { color: var(--color-text-primary); }
body.light-mode .sub-hero p { color: var(--color-text-secondary); }
body.light-mode .spec-table { background: #FFFFFF; border: 1px solid rgba(15,23,41,0.06); }
body.light-mode .spec-table th, body.light-mode .spec-table td { color: var(--color-text-primary); border-color: rgba(15,23,41,0.06); }
body.light-mode .step-card, body.light-mode .step { background: #FFFFFF !important; border-color: rgba(15,23,41,0.08) !important; }
body.light-mode .step-card h4, body.light-mode .step-card h3, body.light-mode .step h3, body.light-mode .step-content h3 { color: var(--color-text-primary) !important; }
body.light-mode .step-card p, body.light-mode .step p, body.light-mode .step-content p { color: var(--color-text-secondary) !important; }
body.light-mode .bono-card, body.light-mode .bono-card-featured, body.light-mode .bono-card-custom { background: #FFFFFF !important; border-color: rgba(15,23,41,0.08) !important; }
body.light-mode .bono-card h3, body.light-mode .bono-card-featured h3, body.light-mode .bono-card-custom h3, body.light-mode .bono-card h4 { color: var(--color-text-primary) !important; }
body.light-mode .bono-card p, body.light-mode .bono-card-featured p, body.light-mode .bono-card-custom p { color: var(--color-text-secondary) !important; }
body.light-mode .horario-card { background: #FFFFFF !important; border-color: rgba(15,23,41,0.08) !important; }
body.light-mode .horario-card h4 { color: var(--color-text-primary) !important; }
body.light-mode .horario-card p { color: var(--color-text-secondary) !important; }
body.light-mode .timeline-week { background: linear-gradient(135deg, rgba(249,31,176,0.03), rgba(123,47,255,0.03)); border-color: rgba(15,23,41,0.08); }
body.light-mode .timeline-week h3 { color: var(--color-text-primary); }
body.light-mode .timeline-bar { background: rgba(15,23,41,0.03); }
body.light-mode .slot-fuera { background: rgba(15,23,41,0.05) !important; border-color: rgba(15,23,41,0.15) !important; color: var(--color-text-muted); }
body.light-mode .timeline-day-label, body.light-mode .legend-item { color: var(--color-text-secondary); }
body.light-mode .price-card { background: #FFFFFF !important; border-color: rgba(15,23,41,0.08) !important; }
body.light-mode .price-card .price-title { color: var(--color-text-primary) !important; }
body.light-mode .price-card .price-period { color: var(--color-text-secondary) !important; -webkit-text-fill-color: var(--color-text-secondary) !important; }
body.light-mode .ivr-node { background: #FFFFFF !important; border-color: rgba(15,23,41,0.08) !important; }
body.light-mode .ivr-node.ivr-root { background: linear-gradient(135deg, #F91FB0, #7B2FFF) !important; border: none !important; box-shadow: 0 16px 40px rgba(249,31,176,0.30) !important; }
body.light-mode .ivr-node.ivr-root .ivr-label { color: #FFFFFF !important; }
body.light-mode .ivr-node .ivr-label { color: var(--color-text-primary) !important; }
body.light-mode .ivr-branch-target { background: #FFFFFF !important; border-color: rgba(15,23,41,0.12) !important; color: var(--color-text-secondary) !important; }
body.light-mode [style*="color: white"], body.light-mode [style*="color:white"] { color: var(--color-text-primary) !important; }
body.light-mode .caso-card, body.light-mode .use-case-card { background: #FFFFFF !important; border-color: rgba(15,23,41,0.08) !important; }
body.light-mode .caso-card h4, body.light-mode .use-case-card h4 { color: var(--color-text-primary) !important; }
body.light-mode .caso-card p, body.light-mode .use-case-card p { color: var(--color-text-secondary) !important; }
body.light-mode .diferencial-content h3, body.light-mode .diferencial-list li, body.light-mode .bono-card .bono-title { color: var(--color-text-primary) !important; }
body.light-mode .diferencial-list li svg { color: var(--color-accent) !important; }

/* ================================================
   FAQ Section (schema.org/FAQPage)
   ================================================ */
.faq-section { padding: 5rem 0; }
.faq-list {
  max-width: 820px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: #FFFFFF;
  border: 1px solid rgba(15,23,41,0.08);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(15,23,41,0.04);
}
.faq-item:hover { border-color: rgba(249,31,176,0.35); box-shadow: 0 8px 24px rgba(15,23,41,0.06); }
.faq-item[open] { border-color: rgba(249,31,176,0.4); box-shadow: 0 12px 32px rgba(15,23,41,0.08); }
.faq-item summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  list-style: none;
  padding-right: 2rem;
  position: relative;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F91FB0 0%, #7B2FFF 100%);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.2rem; font-weight: 400;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { content: "−"; transform: translateY(-50%) rotate(180deg); }
.faq-item p {
  margin: 1rem 0 0.25rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  font-size: 0.98rem;
}
@media (max-width: 640px) {
  .faq-section { padding: 3rem 0; }
  .faq-item { padding: 1rem 1.15rem; }
  .faq-item summary { font-size: 0.98rem; }
  .faq-item p { font-size: 0.94rem; }
}

/* --- ACCESSIBILITY: SKIP LINK (WCAG 2.1 AA) --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* --- ACCESSIBILITY: Universal :focus-visible outline (WCAG 2.4.7) --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Suppress default browser outline when :focus-visible is not matched (mouse) */
:focus:not(:focus-visible) {
  outline: none;
}
/* Light-mode focus ring uses the darker WCAG-safe magenta for contrast on white */
body.light-mode :focus-visible {
  outline-color: var(--brand-text);
}

