@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

/* ==========================================================================
   SYSTEM DESIGN TOKENS (Variables)
   ========================================================================== */
:root {
  /* Colors */
  --bg-primary: hsl(220, 24%, 4%);
  --bg-secondary: hsl(220, 20%, 8%);
  --bg-card: hsla(220, 15%, 10%, 0.6);
  --bg-card-hover: hsla(220, 15%, 14%, 0.8);
  
  --border-color: hsla(220, 15%, 20%, 0.4);
  --border-color-hover: hsla(260, 85%, 65%, 0.4);
  
  --color-primary: hsl(260, 85%, 65%); /* Violeta eléctrico */
  --color-secondary: hsl(15, 95%, 60%); /* Coral cálido */
  --color-primary-gradient-end: hsl(320, 85%, 60%); /* Magenta/Pink gradient end */
  --color-primary-glow: hsla(260, 85%, 65%, 0.15);
  --color-primary-hover-glow: hsla(260, 85%, 65%, 0.3);
  --color-primary-bg-glow: hsla(260, 85%, 65%, 0.08);
  --color-primary-border-glow: hsla(260, 85%, 65%, 0.2);
  
  --text-main: hsl(220, 10%, 96%);
  --text-muted: hsl(220, 10%, 68%);
  --text-dark: hsl(220, 24%, 3%);
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --border-radius: 16px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Glow Background Orbs */
.orb-1, .orb-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
}
.orb-1 {
  background: var(--color-primary);
  top: -100px;
  right: -100px;
}
.orb-2 {
  background: var(--color-secondary);
  top: 600px;
  left: -200px;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  font-weight: 300;
}

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

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 120px 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-secondary {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-gradient-end));
  color: var(--text-dark);
  box-shadow: 0 8px 30px var(--color-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px var(--color-primary-hover-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--border-radius);
  padding: 40px;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Badge style */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-primary-bg-glow);
  border: 1px solid var(--color-primary-border-glow);
  color: var(--color-primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 10005;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}

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

.nav-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  margin: 6px 0;
  transition: var(--transition);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-badge-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-badge-container .dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-secondary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

.hero-graphic {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ==========================================================================
   INTERACTIVE 3D PARALLAX HERO SCENE
   ========================================================================== */
.parallax-scene {
  position: relative;
  width: 100%;
  height: 480px;
  max-width: 500px;
  margin: 0 auto;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Base grid and glows */
.digital-grid {
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(var(--color-primary-glow) 1px, transparent 1px),
    radial-gradient(var(--color-secondary-glow) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  opacity: 0.15;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.glow-1 {
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  top: 10%;
  left: 10%;
  animation: glow-float-1 8s infinite alternate ease-in-out;
}
.glow-2 {
  width: 260px;
  height: 260px;
  background: var(--color-secondary);
  bottom: 15%;
  right: 15%;
  animation: glow-float-2 6s infinite alternate ease-in-out;
}

@keyframes glow-float-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.2); }
}
@keyframes glow-float-2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-25px, 25px) scale(0.9); }
}

/* Monolith A */
.monolith-a {
  transform: translateZ(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

.img-monolith {
  max-width: 100%;
  width: 320px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
}

.img-entrepreneur {
  max-width: 100%;
  width: 125px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

/* Glassmorphism 3D Floating Cards */
.glass-card-3d {
  position: absolute;
  background: hsla(260, 40%, 8%, 0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: var(--text-main);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  display: flex;
  pointer-events: auto;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.glass-card-3d:hover {
  border-color: var(--color-primary);
  box-shadow: 
    0 20px 45px rgba(124, 77, 255, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Specific Card Layouts and Positions */
/* 1. WhatsApp Card */
.card-whatsapp {
  flex-direction: column;
  gap: 6px;
  width: 170px;
  top: 15%;
  left: -20px;
  transform: translateZ(50px);
  border-left: 3px solid #25D366;
}
.card-wa-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wa-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 8px #25D366;
}
.card-wa-bubble {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.2);
  padding: 8px 10px;
  border-radius: 4px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-wa-bubble p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: #e2fce8;
}
.wa-time {
  align-self: flex-end;
  font-size: 0.55rem;
  opacity: 0.6;
}

/* 2. Metrics Card */
.card-metrics {
  width: 145px;
  flex-direction: column;
  gap: 8px;
  bottom: 12%;
  right: -10px;
  transform: translateZ(70px);
}
.metrics-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.metrics-growth {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.metrics-percentage {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-shadow: 0 0 15px rgba(255, 110, 64, 0.2);
}
.metrics-desc {
  font-size: 0.7rem;
  opacity: 0.8;
}
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 32px;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2px;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(0deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px 2px 0 0;
  animation: bar-grow 2s ease-out forwards;
  transform-origin: bottom;
}
@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* 3. Calendar Card */
.card-calendar {
  flex-direction: column;
  gap: 6px;
  width: 160px;
  top: 8%;
  right: -30px;
  transform: translateZ(90px);
}
.cal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--text-muted);
}
.cal-header svg {
  color: var(--color-secondary);
}
.cal-event {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 8px;
  border-radius: 8px;
}
.event-time {
  font-size: 0.55rem;
  color: var(--color-secondary);
  font-weight: 600;
}
.event-title {
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4. Invoice Card */
.card-invoice {
  width: 155px;
  align-items: center;
  gap: 10px;
  bottom: 8%;
  left: -40px;
  transform: translateZ(100px);
}
.invoice-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.2), transparent);
  border: 1px solid rgba(124, 77, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.invoice-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
}

/* 5. Character */
.character-wrapper {
  position: absolute;
  bottom: 25%;
  right: 60px;
  transform: translateZ(120px);
}

/* Shadow Layer matching element coordinates */
.shadow-element {
  position: absolute;
  background: black;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.3;
}
.shadow-a {
  width: 140px;
  height: 20px;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateZ(-10px);
}
.shadow-whatsapp {
  width: 80px;
  height: 12px;
  top: 35%;
  left: 20px;
  transform: translateZ(-10px);
}
.shadow-calendar {
  width: 80px;
  height: 12px;
  top: 25%;
  right: 10px;
  transform: translateZ(-10px);
}
.shadow-metrics {
  width: 80px;
  height: 12px;
  bottom: 8%;
  right: 20px;
  transform: translateZ(-10px);
}

/* Floating Bob Animations */
.float-bob-1 { animation: bob-1 4s ease-in-out infinite alternate; }
.float-bob-2 { animation: bob-2 5s ease-in-out infinite alternate; }
.float-bob-3 { animation: bob-3 4.5s ease-in-out infinite alternate; }

@keyframes bob-1 {
  0% { transform: translate3d(0, 0, var(--z-depth, 60px)) rotate(0deg); }
  100% { transform: translate3d(0, -12px, var(--z-depth, 60px)) rotate(1deg); }
}
@keyframes bob-2 {
  0% { transform: translate3d(0, 0, var(--z-depth, 80px)) rotate(0deg); }
  100% { transform: translate3d(0, 10px, var(--z-depth, 80px)) rotate(-2deg); }
}
@keyframes bob-3 {
  0% { transform: translate3d(0, 0, var(--z-depth, 100px)); }
  100% { transform: translate3d(0, -8px, var(--z-depth, 100px)); }
}

.card-whatsapp { --z-depth: 50px; }
.card-metrics { --z-depth: 70px; }
.card-calendar { --z-depth: 90px; }
.card-invoice { --z-depth: 100px; }
.character-wrapper { --z-depth: 120px; }

/* ==========================================================================
   SHOWCASE MARQUEE (Galería Deslizante)
   ========================================================================== */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 50px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  z-index: 5;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  gap: 32px;
}

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

.marquee-item {
  display: block;
  width: 380px;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  background: var(--bg-card);
  transition: var(--transition);
  cursor: pointer;
}

.marquee-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--color-primary);
  box-shadow: 0 15px 35px var(--color-primary-glow);
}

.marquee-item img,
.marquee-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.8;
  transition: var(--transition);
}

.marquee-item:hover img,
.marquee-item:hover video {
  opacity: 1;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   QUIÉNES SOMOS SECTION
   ========================================================================== */
.quienes-somos-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.quienes-somos-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.quienes-somos-content p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.val-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.val-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.val-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: var(--transition);
}

.val-item:hover .val-icon {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary-glow);
}

.val-icon svg {
  display: block;
}

.val-text h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.val-text p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.quienes-somos-visual {
  display: flex;
  justify-content: center;
}

.team-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-color: var(--border-color);
  background: var(--bg-card);
}

.team-card:hover {
  border-color: var(--color-primary-border-glow);
}

.team-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-divider {
  height: 1px;
  background: var(--border-color);
  width: 100%;
}

.team-quote {
  font-style: italic;
  position: relative;
}

.team-quote p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.quote-author {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--color-primary-bg-glow);
  border: 1px solid var(--color-primary-border-glow);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--color-primary);
  color: var(--text-dark);
  box-shadow: 0 0 20px var(--color-primary-glow);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-benefit {
  font-size: 0.85rem;
  color: var(--color-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.service-benefit::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
}

/* ==========================================================================
   CASE STUDIES SECTION
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.case-client {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.case-card h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.case-stage {
  border-left: 2px solid var(--border-color);
  padding-left: 16px;
  margin-bottom: 20px;
}

.case-stage:last-of-type {
  border-left-color: var(--color-secondary);
  margin-bottom: 0;
}

.case-stage-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.case-stage-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 300;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.pricing-tabs {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 4px;
  display: inline-flex;
}

.pricing-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.pricing-tab.active {
  background: var(--color-primary);
  color: var(--text-dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card.popular {
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px hsla(260, 85%, 65%, 0.05);
}

.popular-tag {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 1px;
}

.price-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.price-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.price-container {
  margin-bottom: 32px;
}

.price-amount {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-features {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  margin-bottom: 40px;
  flex-grow: 1;
}

.price-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.price-features li svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 3px;
}

.price-features li strong {
  color: var(--text-main);
  font-weight: 500;
}

.price-card .btn {
  width: 100%;
}

/* ==========================================================================
   TRANSPARENCY SECTION
   ========================================================================== */
.transparency {
  position: relative;
  overflow: hidden;
}

.transparency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.transparency-content blockquote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 24px;
  line-height: 1.4;
  border-left: 3px solid var(--color-primary);
  padding-left: 20px;
}

.transparency-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.t-step {
  display: flex;
  gap: 20px;
}

.t-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsla(185, 90%, 50%, 0.1);
  border: 1px solid hsla(185, 90%, 50%, 0.3);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  flex-shrink: 0;
}

.t-step-text h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.t-step-text p {
  font-size: 0.9rem;
}

/* Visual UI simulator for Transparency section */
.visual-simulator {
  position: relative;
  background: #090c10;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  height: 380px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.sim-header {
  height: 40px;
  background: #0d1117;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.sim-dot:nth-child(1) { background: #ff5f56; }
.sim-dot:nth-child(2) { background: #ffbd2e; }
.sim-dot:nth-child(3) { background: #27c93f; }

.sim-title {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.sim-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sim-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sim-metric-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.sim-val {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.sim-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sim-graph {
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  gap: 8px;
  justify-content: space-between;
}

.sim-bar {
  background: linear-gradient(to top, var(--color-secondary), hsla(145, 75%, 45%, 0.4));
  width: 12%;
  border-radius: 4px 4px 0 0;
  animation: grow-bar 2.5s ease-out infinite alternate;
}

@keyframes grow-bar {
  from { height: 10%; }
}

.sim-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.sim-bar:nth-child(2) { height: 60%; animation-delay: 0.3s; }
.sim-bar:nth-child(3) { height: 50%; animation-delay: 0.5s; }
.sim-bar:nth-child(4) { height: 85%; animation-delay: 0.2s; }
.sim-bar:nth-child(5) { height: 70%; animation-delay: 0.4s; }
.sim-bar:nth-child(6) { height: 95%; animation-delay: 0.6s; }

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  animation: fade-in 0.6s ease;
}

.testimonial-slide.active {
  display: block;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-content {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  display: block;
  font-size: 5rem;
  color: var(--color-primary);
  line-height: 0.1;
  margin-bottom: -15px;
  opacity: 0.3;
}

.testimonial-author {
  text-align: center;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-main);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

.slider-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}

.slider-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--bg-card-hover);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

/* ==========================================================================
   CALL TO ACTION FINAL & MODAL
   ========================================================================== */
.cta-final {
  position: relative;
  text-align: center;
}

.cta-final-card {
  max-width: 900px;
  margin: 0 auto;
}

.cta-final h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-final p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.cta-qualifications {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  font-size: 0.9rem;
}

.cta-qualifications span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.cta-qualifications span svg {
  color: var(--color-secondary);
}

/* Modal Form styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 500px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* Step Wizard inside Modal */
.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 12px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.radio-option:hover {
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.04);
}

.radio-option input[type="radio"] {
  accent-color: var(--color-primary);
}

.radio-option-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.input-text {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.input-text:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.progress-indicator {
  display: flex;
  gap: 6px;
  align-items: center;
}

.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-color);
  transition: var(--transition);
}

.progress-dot.active {
  background: var(--color-primary);
  width: 16px;
  border-radius: 3px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

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

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer multi-column layout */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  text-align: left;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

/* Legal bar */
.footer-legal-bar {
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.footer-legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-legal-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.footer-legal-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-legal-sep {
  font-size: 0.78rem;
  color: var(--border-color);
  user-select: none;
}

/* ==========================================================================
   LEGAL MODALS (Privacidad, Cookies, Avisos, Accesibilidad)
   ========================================================================== */
.legal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 30000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.legal-modal-overlay.is-open {
  display: flex;
}

.legal-modal-box {
  background: var(--bg-secondary, #111827);
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.legal-modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: var(--text-muted, #9ca3af);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}

.legal-modal-close:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.legal-modal-body {
  padding: 32px 40px 40px;
  clear: both;
}

.legal-modal-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.legal-modal-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin: 28px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
}

.legal-updated {
  font-size: 0.8rem;
  color: var(--text-muted, #6b7280);
  margin: 0 0 24px;
}

.legal-modal-body p,
.legal-modal-body li {
  font-size: 0.9rem;
  color: var(--text-muted, #9ca3af);
  line-height: 1.75;
}

.legal-modal-body ul {
  padding-left: 20px;
  margin: 8px 0;
}

.legal-modal-body strong {
  color: rgba(255,255,255,0.85);
}

.legal-modal-body a {
  color: var(--color-primary, #6366f1);
  text-decoration: underline;
}

.legal-modal-body a:hover {
  color: #818cf8;
}

.legal-modal-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.07);
  padding: 2px 5px;
  border-radius: 4px;
  color: rgba(255,255,255,0.75);
}

/* Cookies table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.85rem;
}

.legal-table th {
  text-align: left;
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.legal-table td {
  padding: 10px 12px;
  color: var(--text-muted, #9ca3af);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .quienes-somos-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .val-item {
    text-align: left;
  }
  .quienes-somos-visual {
    margin-top: 20px;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badge-container {
    justify-content: center;
  }
  .hero-graphic {
    height: 350px;
    margin-top: 20px;
  }
  .parallax-scene {
    transform: scale(0.75);
    height: 350px;
    margin-top: -30px;
  }
  
  .services-grid, .pricing-grid, .cases-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .pricing-grid .price-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
  
  .transparency-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  /* Footer responsive */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

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

  .footer-links {
    align-items: center;
  }

  .footer-legal-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

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

  .legal-modal-body {
    padding: 24px 20px 32px;
  }

  .hero-graphic {
    height: 280px;
    margin-top: 10px;
  }

  .parallax-scene {
    transform: scale(0.58);
    height: 280px;
    margin-top: -60px;
  }
  html {
    font-size: 15px;
  }
  .section-padding {
    padding: 80px 0;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-primary);
    flex-direction: column;
    padding: 40px 24px;
    gap: 32px;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .services-grid, .pricing-grid, .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid .price-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  
  .cta-qualifications {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

/* ==========================================================================
   WHATSAPP SIMULATOR SECTION STYLES
   ========================================================================== */
.simulator-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.sim-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 24px 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.sim-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.sim-tab:hover {
  border-color: var(--color-primary);
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.sim-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-dark);
}

.sim-info {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.sim-info.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-info h4 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.sim-benefits {
  list-style: none;
  margin-top: 24px;
}

.sim-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.sim-benefits li svg {
  flex-shrink: 0;
  color: var(--color-secondary);
  margin-top: 3px;
}

.sim-benefits li strong {
  color: var(--text-main);
}

/* Phone Mockup Styling */
.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 600px;
  background: hsl(220, 24%, 3%);
  border: 12px solid hsl(220, 15%, 16%);
  border-radius: 40px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 30px rgba(260, 85, 65, 0.05);
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 18px;
  background: hsl(220, 15%, 16%);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 100;
}

.phone-header {
  height: 64px;
  background: hsl(220, 20%, 8%);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 16px 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.phone-back {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.phone-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
}

.phone-contact {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.phone-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.phone-status {
  font-size: 0.75rem;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 6px var(--color-secondary);
}

.phone-actions {
  color: var(--text-muted);
}

/* Chat Body */
.phone-chat-body {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: radial-gradient(circle at center, hsla(260, 85%, 65%, 0.02) 0%, transparent 80%), hsl(220, 24%, 3%);
  scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.phone-chat-body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.phone-chat-body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Bubbles */
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.4;
  word-wrap: break-word;
  animation: fadeInUpBubble 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  display: flex;
  flex-direction: column;
}

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

.chat-bubble.user {
  background: var(--color-primary);
  color: var(--text-dark);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble.system {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* PDF link inside system bubble */
.pdf-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  background: hsla(260, 85%, 65%, 0.1);
  border: 1px solid hsla(260, 85%, 65%, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 8px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.pdf-attachment:hover {
  background: hsla(260, 85%, 65%, 0.2);
}

.pdf-attachment svg {
  flex-shrink: 0;
}

.bubble-time {
  align-self: flex-end;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.chat-bubble.user .bubble-time {
  color: hsla(220, 24%, 3%, 0.6);
}

/* Typing Indicator */
.typing-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  align-self: flex-start;
  padding: 12px 16px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 55px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1s infinite alternate;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

/* Phone Chat Footer */
.phone-chat-footer {
  height: 54px;
  background: hsl(220, 20%, 8%);
  border-top: 1px solid var(--border-color);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-chat-footer input {
  flex-grow: 1;
  height: 36px;
  background: hsl(220, 24%, 4%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0 16px;
  color: var(--text-main);
  font-size: 0.8rem;
  outline: none;
}

.phone-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
}

/* Overlay for Simulation Control */
.phone-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 50;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-btn-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: hsla(260, 85%, 65%, 0.1);
  border: 2px solid hsla(260, 85%, 65%, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.play-btn-wrapper:hover {
  transform: scale(1.05);
  border-color: var(--color-primary);
  background: hsla(260, 85%, 65%, 0.2);
}

.play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px; /* Centering the play icon */
  box-shadow: 0 8px 20px var(--color-primary-glow);
}

.phone-overlay h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.phone-overlay p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 240px;
  margin-bottom: 24px;
}

.phone-overlay .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Responsive adjustments for Simulator */
@media (max-width: 992px) {
  .simulator-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ==========================================================================
   GMAIL APP SIMULATOR STYLES
   ========================================================================== */
.gmail-container {
  display: none;
  width: 100%;
  height: 100%;
  background: #111214; /* Gmail dark background */
  color: #e3e3e3;
  flex-direction: column;
  position: relative;
  font-family: var(--font-body);
}

.phone-mockup.mode-gmail .phone-header,
.phone-mockup.mode-gmail .phone-chat-body,
.phone-mockup.mode-gmail .phone-chat-footer {
  display: none !important;
}

.phone-mockup.mode-gmail .gmail-container {
  display: flex;
}

/* Gmail Header */
.gmail-header {
  height: 44px;
  background: #202124;
  margin: 32px 12px 10px 12px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.gmail-menu-btn {
  color: #9aa0a6;
  display: flex;
  align-items: center;
}

.gmail-search {
  flex-grow: 1;
  color: #9aa0a6;
  font-size: 0.8rem;
  text-align: left;
}

.gmail-profile {
  width: 26px;
  height: 26px;
  background: var(--color-secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.gmail-inbox-title {
  font-size: 0.7rem;
  color: #9aa0a6;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0 16px;
  margin-bottom: 6px;
  text-align: left;
}

/* Gmail Body */
.gmail-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0 2px;
  text-align: left;
}

/* Email Item (in inbox list) */
.gmail-email-item {
  display: flex;
  padding: 12px 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  animation: slideDownEmail 0.4s ease-out forwards;
}

@keyframes slideDownEmail {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gmail-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: #9aa0a6;
}

.gmail-avatar.highlight {
  background: var(--color-primary-bg-glow);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-border-glow);
}

.gmail-email-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.gmail-email-sender-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gmail-sender {
  font-size: 0.8rem;
  font-weight: 500;
  color: #c4c7c5;
}

.gmail-sender.unread {
  font-weight: 700;
  color: white;
}

.gmail-time {
  font-size: 0.65rem;
  color: #9aa0a6;
}

.gmail-subject {
  font-size: 0.78rem;
  font-weight: 500;
  color: #e3e3e3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gmail-subject.unread {
  font-weight: 700;
  color: white;
}

.gmail-preview {
  font-size: 0.72rem;
  color: #9aa0a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compose Button */
.gmail-compose-btn {
  position: absolute;
  bottom: 24px;
  right: 20px;
  background: #3c4043;
  color: #8ab4f8;
  padding: 10px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  pointer-events: none;
}

/* Email Open Thread view */
.gmail-thread-view {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: fadeIn 0.3s ease-in-out forwards;
}

.gmail-thread-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gmail-back-btn {
  color: #e3e3e3;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.gmail-thread-subject {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
  text-align: left;
}

.gmail-thread-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.gmail-thread-sender-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  text-align: left;
}

.gmail-thread-sender {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.gmail-thread-to {
  font-size: 0.65rem;
  color: #9aa0a6;
}

/* Email Body Frame */
.gmail-email-content {
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.email-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  text-align: left;
}
.email-logo span {
  color: var(--color-primary);
}

.gmail-email-content h5 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: white;
  text-align: left;
}

.gmail-email-content p {
  font-size: 0.75rem;
  color: #c4c7c5 !important;
  line-height: 1.4;
  margin-bottom: 6px;
  text-align: left;
}

.email-invoice-card {
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.email-invoice-card span {
  font-size: 0.7rem;
  color: #9aa0a6;
}

.email-invoice-card strong {
  font-size: 0.8rem;
  color: var(--color-secondary);
}

.email-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(124, 77, 255, 0.06);
  border: 1px solid rgba(124, 77, 255, 0.12);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--color-primary);
  text-decoration: none;
}

.email-attachment svg {
  flex-shrink: 0;
}

.email-status-banner {
  background: rgba(40, 167, 69, 0.06);
  border: 1px solid rgba(40, 167, 69, 0.15);
  color: #34d058;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: popIn 0.3s ease-out forwards;
}

/* ==========================================================================
   MOBILE BROWSER SIMULATOR & MOTOS BOOKING STYLES
   ========================================================================== */
.browser-container {
  display: none;
  width: 100%;
  height: 100%;
  background: #0f141c;
  color: #e3e3e3;
  flex-direction: column;
  position: relative;
  font-family: var(--font-body);
}

.phone-mockup.mode-motos .phone-header,
.phone-mockup.mode-motos .phone-chat-body,
.phone-mockup.mode-motos .phone-chat-footer,
.phone-mockup.mode-motos .gmail-container {
  display: none !important;
}

.phone-mockup.mode-motos .browser-container {
  display: flex;
}

.browser-header {
  height: 40px;
  background: #1c222d;
  margin: 32px 12px 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.browser-address-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #8b949e;
}

.browser-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Jet Ski Simulation Screen Subcomponents */
.motos-booking-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.4s ease-out forwards;
  position: relative;
  height: 100%;
}

.motos-booking-form h4 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  text-align: center;
}

.motos-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.motos-form-field label {
  font-size: 0.7rem;
  color: #8b949e;
  text-transform: uppercase;
  font-weight: 600;
}

.motos-input-read {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.motos-price-tag {
  background: rgba(255, 110, 64, 0.08);
  border: 1px solid rgba(255, 110, 64, 0.15);
  color: var(--color-secondary);
  padding: 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.8rem;
  margin-top: 6px;
}

.motos-submit-btn {
  background: var(--color-primary);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  margin-top: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.motos-submit-btn.clicked {
  background: #28a745;
  color: white;
}

/* Cursor click simulation */
.sim-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,0.85);
  border: 2px solid #000;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  top: 90%;
  left: 80%;
  transform: translate(-50%, -50%);
  animation: moveCursor 2.2s ease-in-out forwards;
}

.icon-spin {
  animation: spin 1.5s linear infinite;
  display: inline-block;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes moveCursor {
  0% { top: 90%; left: 80%; opacity: 0; }
  10% { opacity: 1; }
  75% { top: 88%; left: 50%; } /* Coordinates of the booking button */
  85% { top: 88%; left: 50%; transform: translate(-50%, -50%) scale(0.8); }
  90% { transform: translate(-50%, -50%) scale(1.1); }
  100% { top: 88%; left: 50%; opacity: 0; }
}

.sim-click-ripple {
  position: absolute;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  background: transparent;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  top: 88%;
  left: 50%;
  animation: clickRipple 0.6s ease-out 1.7s forwards;
}

@keyframes clickRipple {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Logs and Checklist */
.motos-logs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 10px;
  animation: fadeIn 0.3s ease-out forwards;
}

.motos-log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #8b949e;
  opacity: 0;
  transform: translateY(5px);
  animation: fadeLog 0.4s ease-out forwards;
}

@keyframes fadeLog {
  to { opacity: 1; transform: translateY(0); }
}

.motos-log-item.done {
  color: white;
}

.motos-log-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.motos-log-icon svg {
  color: #8b949e;
}

.motos-log-item.done .motos-log-icon svg {
  color: #28a745;
}

/* Success Card */
.motos-success-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.motos-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(40, 167, 69, 0.1);
  border: 2px solid rgba(40, 167, 69, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #28a745;
  margin-top: 10px;
}

.motos-ticket {
  background: #1c222d;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.motos-ticket-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
}

.motos-ticket-lbl {
  color: #8b949e;
}

.motos-ticket-val {
  color: white;
  font-weight: 500;
}

.motos-wallet-btn {
  background: #000;
  border: 1px solid #333;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  pointer-events: none;
}

/* ==========================================================================
   COOKIE CONSENT BANNER (RGPD / LSSI-CE)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10010;
  padding: 0 24px 24px;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: hsl(220, 20%, 10%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie-banner-text {
  flex: 1;
  min-width: 0;
}

.cookie-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 6px;
}

.cookie-banner-title svg {
  color: var(--color-primary, #6366f1);
  flex-shrink: 0;
}

.cookie-banner-desc {
  font-size: 0.82rem;
  color: var(--text-muted, #9ca3af);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner-link {
  color: var(--color-primary, #6366f1);
  text-decoration: underline;
  margin-left: 4px;
}

.cookie-banner-link:hover {
  color: #818cf8;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Cookie buttons */
.cookie-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.cookie-btn-accept {
  background: var(--color-primary, #6366f1);
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text-muted, #9ca3af);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn-reject:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cookie-btn-settings {
  background: transparent;
  color: var(--text-muted, #9ca3af);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn-settings:hover {
  border-color: var(--color-primary, #6366f1);
  color: var(--color-primary, #6366f1);
}

/* ==========================================================================
   COOKIE SETTINGS PANEL
   ========================================================================== */
.cookie-settings-panel {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 31000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-settings-panel.is-open {
  display: flex;
}

.cookie-settings-box {
  background: hsl(220, 20%, 9%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.cookie-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cookie-settings-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.cookie-settings-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.cookie-settings-intro {
  font-size: 0.82rem;
  color: var(--text-muted, #9ca3af);
  line-height: 1.6;
  margin: 0 0 16px;
}

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-toggle-row:last-child {
  border-bottom: none;
}

.cookie-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.cookie-toggle-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-toggle-desc {
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.5;
}

.cookie-toggle-switch {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toggle switch visual */
.toggle-label-wrap {
  cursor: pointer;
  display: block;
}

.toggle-checkbox {
  display: none;
}

.toggle-track {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  position: relative;
  transition: background 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-track.active,
.toggle-checkbox:checked + .toggle-track {
  background: var(--color-primary, #6366f1);
  border-color: transparent;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.toggle-checkbox:checked + .toggle-track .toggle-thumb {
  transform: translateX(20px);
}

.toggle-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary, #6366f1);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}

.cookie-toggle-locked .toggle-track {
  background: var(--color-primary, #6366f1);
  border-color: transparent;
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-toggle-locked .toggle-thumb {
  transform: translateX(20px);
}

.cookie-settings-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Cookie banner responsive */
@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
  }
}
/* ==========================================================================
   PRICING TABS (Setup / Monthly toggle)
   ========================================================================== */
.pricing-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}

.pricing-tabs {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 5px;
  gap: 4px;
}

.pricing-tab {
  padding: 10px 28px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.pricing-tab:hover {
  color: var(--text-main);
}

.pricing-tab.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-gradient-end));
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

/* ==========================================================================
   PRICING - DOS SERVICIOS SEPARADOS (2026)
   ========================================================================== */

/* Bloque contenedor de cada servicio */
.pricing-service-block {
  margin-bottom: 64px;
}

/* Fila de señales de confianza bajo el header de precios */
.pricing-trust-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pricing-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 6px 16px;
}

.pricing-trust-item svg {
  color: var(--color-secondary);
  flex-shrink: 0;
}


/* Cabecera del bloque de servicio (icono + título + descripción) */
.pricing-service-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  backdrop-filter: blur(12px);
}

.pricing-service-label-text {
  flex: 1;
}

/* Tabs centradas encima del grid (sobre la tarjeta popular) */
.pricing-tabs-above-grid {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

/* Tabs inline dentro del bloque */
.pricing-tabs-inline {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 4px;
  gap: 3px;
  flex-shrink: 0;
}

.pricing-tabs-inline .pricing-tab {
  padding: 8px 22px;
  font-size: 0.83rem;
}

/* Bloque AUTOMATIZACIÓN → activo en morado (por defecto) */
[data-block="auto"] .pricing-tab.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-gradient-end));
  color: var(--text-dark);
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

/* Bloque WEB → activo en teal para coincidir con "La Más Solicitada" */
[data-block="web"] .pricing-tab.active {
  background: linear-gradient(135deg, #0d9488, #2dd4bf);
  color: #041a18;
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.25);
}
.pricing-service-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-primary-bg-glow);
  border: 1px solid var(--color-primary-border-glow);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.pricing-service-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Grid de tarjetas de precio (3 columnas) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Tarjeta de precio base */
.price-card {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.price-card.popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 40px var(--color-primary-glow);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-gradient-end));
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 18px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.price-header {
  margin-bottom: 28px;
}

.price-header h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.price-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.price-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.price-period {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Nota del precio mensual */
.price-monthly-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--color-secondary);
  font-weight: 500;
  padding: 5px 10px;
  background: rgba(255, 110, 64, 0.08);
  border: 1px solid rgba(255, 110, 64, 0.18);
  border-radius: 6px;
  display: inline-block;
}

/* Lista de características */
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-secondary);
}

.price-features li span strong {
  color: var(--text-main);
}

.price-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Separador visual entre los dos bloques de servicios */
.pricing-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 16px 0 56px;
}

.pricing-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.pricing-divider-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-style: italic;
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
}

/* Nota de descuento por combinar servicios */
.pricing-combo-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  background: hsla(260, 85%, 65%, 0.06);
  border: 1px solid hsla(260, 85%, 65%, 0.2);
  border-radius: 12px;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pricing-combo-note svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.pricing-combo-note strong {
  color: var(--text-main);
}

/* Responsive pricing */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pricing-grid .price-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .pricing-service-label {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid .price-card:last-child {
    grid-column: auto;
    max-width: none;
  }
  .price-card {
    padding: 28px 24px;
  }
  .pricing-combo-note {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   WIDGET DE OFERTA LANZAMIENTO (10 Primeros Clientes)
   ========================================================================== */
.promo-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-body);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Permitir eventos de ratón en los elementos interactivos reales */
.promo-tab,
.promo-card {
  pointer-events: auto;
}

/* PESTAÑA COLAPSADA (TAB) */
.promo-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--color-primary-border-glow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  animation: promoPulse 2s infinite alternate;
}

.promo-tab:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--color-primary);
  box-shadow: 0 12px 30px var(--color-primary-glow), 0 0 15px rgba(99, 102, 241, 0.2);
}

.promo-tab-icon {
  font-size: 1.1rem;
  animation: fireShake 0.6s infinite alternate;
  display: inline-block;
}

.promo-tab-text {
  letter-spacing: 0.5px;
}

/* TARJETA EXPANDIDA (CARD / CUADRO PEQUEÑO) */
.promo-card {
  width: 320px;
  background: hsla(220, 18%, 8%, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--color-primary-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  transform-origin: bottom right;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Botón cerrar tarjeta */
.promo-card-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px;
}

.promo-card-close:hover {
  color: var(--text-main);
  transform: scale(1.1);
}

/* Cabecera de la tarjeta */
.promo-card-header {
  margin-bottom: 12px;
}

.promo-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  background: rgba(255, 110, 64, 0.1);
  border: 1px solid rgba(255, 110, 64, 0.25);
  color: var(--color-secondary);
  border-radius: 50px;
  margin-bottom: 8px;
}

.promo-card-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

/* Cuerpo de la tarjeta */
.promo-card-body {
  margin-bottom: 20px;
}

.promo-card-body p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.promo-card-body p strong {
  color: #fff;
}

/* Contenedor de la barra de progreso */
.promo-progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promo-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.promo-progress-header strong {
  color: var(--text-main);
}

.promo-pulsing-tag {
  color: var(--color-secondary);
  font-weight: 600;
  animation: textPulse 1s infinite alternate;
}

.promo-progress-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  overflow: hidden;
}

.promo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

/* Relleno con brillo animado */
.promo-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shineProgress 2.5s infinite linear;
  background-size: 200% 100%;
}

/* Footer de la tarjeta */
.promo-card-footer .btn {
  width: 100%;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

/* ESTADOS DEL WIDGET (COLLAPSED / EXPANDED) */
.promo-widget.collapsed .promo-tab {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.promo-widget.collapsed .promo-card {
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  pointer-events: none;
  visibility: hidden;
  height: 0;
  padding: 0;
  overflow: hidden;
  margin: 0;
  border-color: transparent;
  box-shadow: none;
}

.promo-widget.expanded .promo-tab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  visibility: hidden;
}

.promo-widget.expanded .promo-card {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  visibility: visible;
}

/* ANIMACIONES */
@keyframes promoPulse {
  0% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--color-primary-border-glow);
  }
  100% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 12px var(--color-primary-border-glow), 0 0 0 4px rgba(99, 102, 241, 0.15);
  }
}

@keyframes textPulse {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 110, 64, 0.3);
  }
}

@keyframes fireShake {
  0% { transform: rotate(-5deg) scale(1); }
  100% { transform: rotate(5deg) scale(1.1); }
}

@keyframes shineProgress {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Responsividad para móviles */
@media (max-width: 480px) {
  .promo-widget {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  .promo-card {
    width: auto;
    max-width: 100%;
  }
}
