/* ==========================================================================
   RECADITO LANDING PAGE — ESTILOS OFICIALES (DESIGN SYSTEM)
   Paleta oficial extraída de Recadito Theme:
   - Primary: #310065
   - Primary Container: #4A148C
   - Secondary: #8C33B3 / #A855F7
   - Fondo Claro: #FBF9F8 / Superficie: #FFFFFF
   - Dark Theme soporte nativo
   ========================================================================== */

:root {
  /* Paleta Base Light */
  --primary: #310065;
  --primary-light: #4A148C;
  --secondary: #8C33B3;
  --secondary-glow: #A855F7;
  --accent: #FF5E36;
  --accent-gold: #F59E0B;
  --accent-green: #10B981;
  
  --bg-main: #FBF9F8;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F4F0F7;
  --bg-card: #FFFFFF;
  
  --text-main: #1D1A22;
  --text-muted: #5F5968;
  --text-light: #8E8798;
  
  --border-color: #E7E0EC;
  --border-light: #F0EBF5;
  
  --shadow-sm: 0 2px 8px rgba(49, 0, 101, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(49, 0, 101, 0.08), 0 8px 10px -6px rgba(49, 0, 101, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(49, 0, 101, 0.12), 0 10px 15px -5px rgba(49, 0, 101, 0.08);
  --shadow-glow: 0 0 25px rgba(140, 51, 179, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 80px;
}

/* Modo Oscuro */
[data-theme="dark"] {
  --primary: #D0BCFF;
  --primary-light: #4F378B;
  --secondary: #CCC2DC;
  --secondary-glow: #9333EA;
  --accent: #FF7A59;
  
  --bg-main: #131118;
  --bg-surface: #1C1924;
  --bg-surface-alt: #24202E;
  --bg-card: #1E1A27;

  --text-main: #F4EFF4;
  --text-muted: #CAC4D0;
  --text-light: #948F9A;

  --border-color: #352F3F;
  --border-light: #2A2533;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

img, svg {
  display: block;
  max-width: 100%;
}

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

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

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.gradient-text {
  background: linear-gradient(135deg, #310065 0%, #8C33B3 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #E9D5FF 0%, #C084FC 50%, #F472B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= BOTONES ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #4A148C 0%, #310065 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(49, 0, 101, 0.25);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #8C33B3 0%, #4A148C 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 20px rgba(140, 51, 179, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(49, 0, 101, 0.35);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

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

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

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

.btn-block {
  width: 100%;
}

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(140, 51, 179, 0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(140, 51, 179, 0.6);
  }
}

/* ================= HEADER & NAVBAR ================= */
.navbar-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background-color: rgba(251, 249, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
}

[data-theme="dark"] .navbar-wrapper {
  background-color: rgba(19, 17, 24, 0.85);
}

.navbar-wrapper.scrolled {
  height: 70px;
  background-color: rgba(251, 249, 248, 0.96);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navbar-wrapper.scrolled {
  background-color: rgba(19, 17, 24, 0.96);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(49, 0, 101, 0.15);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
}

[data-theme="dark"] .brand-name {
  color: #FFFFFF;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

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

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

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-surface-alt);
  color: var(--secondary);
  transform: rotate(15deg);
}

.icon-sun { display: none; }
.icon-moon { display: inline-block; }

[data-theme="dark"] .icon-sun { display: inline-block; }
[data-theme="dark"] .icon-moon { display: none; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  padding-top: 50px;
  padding-bottom: 90px;
  overflow: hidden;
}

.hero-background-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}

.shape-1 {
  width: 450px;
  height: 450px;
  background: #4A148C;
  top: -100px;
  right: -50px;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: #EC4899;
  bottom: 50px;
  left: -80px;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: #3B82F6;
  top: 40%;
  right: 35%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-description strong {
  color: var(--text-main);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-store-badges {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.store-badge:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.store-badge i {
  font-size: 1.6rem;
  color: var(--primary);
}

[data-theme="dark"] .store-badge i {
  color: var(--primary);
}

.store-badge div {
  display: flex;
  flex-direction: column;
}

.badge-sub {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.badge-main {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--bg-main);
  margin-left: -10px;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.proof-text .stars {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #F59E0B;
  font-size: 0.85rem;
}

.proof-text .stars span {
  font-weight: 700;
  color: var(--text-main);
  margin-left: 6px;
}

.proof-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ================= TELÉFONO SIMULADOR MOCKUP ================= */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup-wrapper {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.phone-frame {
  width: 100%;
  background: #1F1D24;
  border: 10px solid #2B2833;
  border-radius: 46px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: #2B2833;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-notch .speaker {
  width: 38px;
  height: 4px;
  background: #111;
  border-radius: 2px;
}

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

.phone-screen {
  background: #FDFCFF;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  user-select: none;
  font-size: 0.85rem;
}

/* Header interno de la app */
.phone-app-header {
  background: #310065;
  color: #FFFFFF;
  padding: 12px 14px 10px;
}

.app-status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 0.85;
}

.status-icons {
  display: flex;
  gap: 5px;
}

.app-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.app-delivery-address {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.deliver-label {
  font-size: 0.65rem;
  opacity: 0.7;
}

.deliver-loc {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deliver-loc i {
  font-size: 0.65rem;
  margin-left: 2px;
}

.app-header-action {
  font-size: 1rem;
  opacity: 0.85;
}

/* Tabs simulador */
.simulator-tabs {
  display: flex;
  background: #F4F0F7;
  padding: 4px;
  gap: 4px;
  border-bottom: 1px solid #E7E0EC;
}

.sim-tab {
  flex: 1;
  padding: 7px 4px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #5F5968;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sim-tab.active {
  background: #FFFFFF;
  color: #310065;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Contenido de vistas simuladas */
.sim-screen-view {
  display: none;
  flex-direction: column;
  flex-grow: 1;
  padding: 12px;
  animation: fadeIn 0.3s ease;
}

.sim-screen-view.active {
  display: flex;
}

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

/* Vista 1: Pedido Personalizado */
.app-hero-banner {
  background: linear-gradient(135deg, #F4F0F7 0%, #EADDFF 100%);
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.banner-tag {
  display: inline-block;
  background: #4A148C;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.app-hero-banner h4 {
  font-size: 0.88rem;
  color: #1D1A22;
  margin-bottom: 2px;
}

.app-hero-banner p {
  font-size: 0.72rem;
  color: #5F5968;
}

.app-quick-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-bubble {
  background: #FFFFFF;
  border: 1px solid #E7E0EC;
  border-radius: 12px;
  padding: 8px 10px;
}

.form-bubble label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #4A148C;
  margin-bottom: 4px;
}

.sim-input-box {
  font-size: 0.78rem;
  color: #1D1A22;
  background: #F9F7FA;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px dashed #D0BCFF;
}

.app-estimated-preview {
  display: flex;
  justify-content: space-between;
  background: #F4F0F7;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.est-val {
  color: #1D1A22;
}

.est-val.text-primary {
  color: #4A148C;
  font-weight: 800;
}

.app-sim-btn {
  background: #310065;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(49, 0, 101, 0.25);
}

/* Vista 2: Mapa & Rastreo */
.map-simulation-area {
  position: relative;
  height: 200px;
  background: #E8ECEF;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}

.sim-map-grid {
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(#d3dae0 1px, transparent 1px),
    linear-gradient(90deg, #d3dae0 1px, transparent 1px);
  background-size: 24px 24px;
}

.sim-route-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.route-line-bg {
  fill: none;
  stroke: #CBD5E1;
  stroke-width: 5;
  stroke-linecap: round;
}

.route-line-active {
  fill: none;
  stroke: #8C33B3;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 6;
  animation: dashAnimation 1.5s linear infinite;
}

@keyframes dashAnimation {
  to { stroke-dashoffset: -28; }
}

.sim-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
}

.pin-store { background: #F59E0B; }
.pin-home { background: #10B981; }

.sim-driver-marker {
  position: absolute;
  top: 95px;
  left: 145px;
  transform: translate(-50%, -50%);
  animation: driverWiggle 3s ease-in-out infinite;
}

@keyframes driverWiggle {
  0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
  50% { transform: translate(-50%, -50%) translate(10px, -6px); }
}

.driver-pulse {
  position: absolute;
  width: 36px;
  height: 36px;
  background: rgba(140, 51, 179, 0.35);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseMarker 1.8s infinite;
}

@keyframes pulseMarker {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.driver-icon {
  width: 26px;
  height: 26px;
  background: #4A148C;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sim-order-card {
  background: #FFFFFF;
  border: 1px solid #E7E0EC;
  border-radius: 12px;
  padding: 10px;
}

.driver-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.driver-pic img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.driver-info {
  flex-grow: 1;
}

.driver-info h5 {
  font-size: 0.8rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-verified {
  color: #10B981;
  font-size: 0.7rem;
}

.vehicle-info {
  font-size: 0.65rem;
  color: #5F5968;
}

.driver-quick-contact {
  display: flex;
  gap: 4px;
}

.icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #F4F0F7;
  border: none;
  color: #4A148C;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.status-progress-bar {
  width: 100%;
  height: 4px;
  background: #E7E0EC;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8C33B3, #10B981);
}

.eta-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #5F5968;
}

.eta-time {
  font-weight: 800;
  color: #4A148C;
}

/* Vista 3: Catálogo */
.sim-categories-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
}

.cat-pill {
  padding: 4px 8px;
  background: #F4F0F7;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #5F5968;
  white-space: nowrap;
}

.cat-pill.active {
  background: #310065;
  color: #fff;
}

.sim-stores-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-mini-card {
  background: #fff;
  border: 1px solid #E7E0EC;
  border-radius: 10px;
  padding: 8px 10px;
  position: relative;
}

.store-badge-top {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #EADDFF;
  color: #310065;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.store-mini-card h6 {
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.store-tags {
  font-size: 0.66rem;
  color: #5F5968;
  margin-bottom: 2px;
}

.store-rating {
  font-size: 0.66rem;
  font-weight: 700;
  color: #F59E0B;
}

/* Bottom Nav simulada */
.phone-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 4px;
  background: #FFFFFF;
  border-top: 1px solid #E7E0EC;
}

.phone-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.62rem;
  color: #8E8798;
  gap: 2px;
}

.phone-bottom-nav .nav-item i {
  font-size: 0.85rem;
}

.phone-bottom-nav .nav-item.active {
  color: #310065;
  font-weight: 700;
}

.center-action {
  width: 34px;
  height: 34px;
  background: #310065;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(49, 0, 101, 0.3);
}

/* Chips flotantes al lado del teléfono */
.floating-chip {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
  animation: floatChip 4s ease-in-out infinite;
  white-space: nowrap;
}

.chip-driver {
  top: 15%;
  left: -50px;
}

.chip-rating {
  bottom: 12%;
  right: -55px;
  animation-delay: 2s;
}

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

.chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(140, 51, 179, 0.12);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chip-icon.star-icon {
  background: rgba(236, 72, 153, 0.12);
  color: #EC4899;
}

.chip-text {
  display: flex;
  flex-direction: column;
}

.chip-text strong {
  font-size: 0.82rem;
  color: var(--text-main);
}

.chip-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ================= METRICS TICKER ================= */
.metrics-section {
  padding: 40px 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.metric-content {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

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

/* ================= SECTION HEADERS GENÉRICOS ================= */
.section-header {
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  background: var(--bg-surface-alt);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================= CÓMO FUNCIONA ================= */
.how-it-works-section {
  padding: 100px 0;
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.step-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--border-color);
  opacity: 0.6;
}

.step-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(74, 20, 140, 0.1), rgba(140, 51, 179, 0.2));
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.step-hint {
  font-size: 0.78rem;
  color: var(--secondary);
  background: var(--bg-surface-alt);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ================= SERVICIOS ================= */
.services-section {
  padding: 90px 0;
  background-color: var(--bg-surface);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.service-card.highlight-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(140, 51, 179, 0.05) 100%);
  border: 2px solid var(--secondary);
  box-shadow: var(--shadow-md);
}

.service-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.93rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-checklist {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-checklist li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-checklist li i {
  color: var(--accent-green);
  font-size: 0.8rem;
}

/* ================= CALCULADORA / COTIZADOR ================= */
.calculator-section {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-surface-alt) 100%);
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 56px;
  box-shadow: var(--shadow-lg);
}

.calc-info h2 {
  font-size: 2.3rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.calc-info p {
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.calc-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.perk-item i {
  color: var(--accent-green);
}

.payment-methods-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.method-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  color: var(--text-main);
}

.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

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

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

.service-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.opt-btn {
  background: var(--bg-surface-alt);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.opt-btn i {
  font-size: 1.1rem;
}

.opt-btn:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.opt-btn.active {
  background: rgba(74, 20, 140, 0.08);
  border-color: var(--secondary);
  color: var(--primary);
}

[data-theme="dark"] .opt-btn.active {
  background: rgba(208, 188, 255, 0.12);
  color: #FFFFFF;
}

.label-with-val {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-display {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--secondary);
}

.custom-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border-color);
  outline: none;
  margin: 12px 0 6px;
  accent-color: var(--secondary);
  cursor: pointer;
}

.range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
}

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

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input {
  display: none;
}

.checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-surface);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all var(--transition-fast);
}

.custom-checkbox input:checked ~ .checkmark {
  background: var(--secondary);
  border-color: var(--secondary);
}

.custom-checkbox input:checked ~ .checkmark::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  display: flex;
  flex-direction: column;
}

.checkbox-label strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.checkbox-label small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calc-result-box {
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.result-row.total-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  font-size: 1rem;
  color: var(--text-main);
}

.total-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

[data-theme="dark"] .total-price {
  color: #FFFFFF;
}

.calc-disclaimer {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* ================= ECOSISTEMA RECADITO ================= */
.ecosystem-section {
  padding: 100px 0;
  background-color: var(--bg-surface);
}

.ecosystem-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.eco-tab {
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-smooth);
}

.eco-tab:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

.eco-tab.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(49, 0, 101, 0.25);
}

[data-theme="dark"] .eco-tab.active {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.eco-content-card {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 56px;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.4s ease;
}

.eco-content-card.active {
  display: block;
}

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

.eco-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}

.eco-info h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.eco-info p {
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.eco-features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.eco-feat {
  display: flex;
  gap: 16px;
}

.eco-feat i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.eco-feat strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.eco-feat p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

.eco-card-preview {
  background: linear-gradient(135deg, #310065 0%, #4A148C 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.eco-card-preview.driver-theme {
  background: linear-gradient(135deg, #1E1B4B 0%, #4338CA 100%);
}

.eco-card-preview.dashboard-theme {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.eco-main-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.driver-badge-big {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.eco-card-preview h4 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.eco-card-preview p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.p-stat strong {
  display: block;
  font-size: 1.25rem;
  color: #fff;
}

.p-stat span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ================= TESTIMONIOS ================= */
.testimonials-section {
  padding: 100px 0;
  background-color: var(--bg-main);
}

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

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.testi-stars {
  color: #F59E0B;
  font-size: 0.95rem;
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}

.testi-text {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 24px;
  flex-grow: 1;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testi-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.testi-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ================= PREGUNTAS FRECUENTES (FAQ) ================= */
.faq-section {
  padding: 100px 0;
  background-color: var(--bg-surface);
}

.faq-accordion-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.faq-header {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  gap: 16px;
}

.faq-header i {
  font-size: 1rem;
  color: var(--secondary);
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-header i {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.active .faq-body {
  max-height: 300px;
  padding: 0 24px 20px 24px;
}

.faq-body p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.faq-body a {
  color: var(--secondary);
  font-weight: 600;
}

/* ================= DESCARGA (CTA FINAL) ================= */
.download-section {
  padding: 80px 0;
  background: var(--bg-main);
}

.download-box {
  background: linear-gradient(135deg, #310065 0%, #4A148C 50%, #8C33B3 100%);
  border-radius: var(--radius-xl);
  padding: 64px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.light-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.download-content h2 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.download-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.download-buttons-group {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  color: #1D1A22;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: all var(--transition-fast);
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.store-btn i {
  font-size: 1.8rem;
}

.store-btn .sub {
  font-size: 0.65rem;
  color: #5F5968;
  display: block;
}

.store-btn .main {
  font-size: 1rem;
  line-height: 1.1;
  display: block;
}

.qr-download-helper {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.qr-card {
  background: #FFFFFF;
  padding: 10px;
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.qr-img {
  width: 90px;
  height: 90px;
}

.qr-card span {
  font-size: 0.65rem;
  font-weight: 700;
  color: #1D1A22;
}

.direct-apk-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.direct-apk-info p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

.light-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  width: fit-content;
}

.light-outline:hover {
  background: #fff;
  color: #310065;
  border-color: #fff;
}

.download-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-app-icon {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: floatChip 5s ease-in-out infinite;
}

.app-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: #1D1A22;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: floatChip 4s ease-in-out infinite;
}

.card-1 {
  top: 10px;
  left: 0;
}

.card-2 {
  bottom: 10px;
  right: 0;
  animation-delay: 2s;
}

.app-floating-card i {
  font-size: 1.2rem;
  color: var(--primary);
}

.app-floating-card strong {
  display: block;
  font-size: 0.82rem;
}

.app-floating-card span {
  font-size: 0.72rem;
  color: #5F5968;
}

/* ================= FOOTER ================= */
.footer-wrapper {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

[data-theme="dark"] .footer-logo span {
  color: #FFFFFF;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-slogan {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.footer-links-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

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

.footer-links-col ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links-col ul li a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-info-list li i {
  color: var(--secondary);
  font-size: 1rem;
  margin-top: 3px;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-legal-links a {
  color: var(--text-muted);
}

.footer-legal-links a:hover {
  color: var(--secondary);
}

/* ================= FLOATING ACTIONS ================= */
.floating-actions-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 990;
}

.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

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

.back-to-top:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-3px);
}

.whatsapp-float {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  position: relative;
  transition: all var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ================= MODALES ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform var(--transition-smooth);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card.modal-lg {
  max-width: 680px;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 1.6rem;
  color: var(--secondary);
}

.modal-header h3 {
  font-size: 1.35rem;
  margin-bottom: 2px;
}

.modal-header p {
  font-size: 0.85rem;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--secondary);
  background: var(--bg-surface);
}

.payment-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  cursor: pointer;
}

.radio-label input {
  accent-color: var(--secondary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.modal-scroll-content {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 8px;
}

.modal-scroll-content h4 {
  font-size: 1.05rem;
  margin: 16px 0 8px;
  color: var(--primary);
}

[data-theme="dark"] .modal-scroll-content h4 {
  color: #FFFFFF;
}

.modal-scroll-content p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ================= TOAST NOTIFICATION ================= */
.toast-notification {
  position: fixed;
  bottom: 28px;
  left: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--accent-green);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3000;
  transform: translateY(120px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.toast-body {
  display: flex;
  flex-direction: column;
}

.toast-body strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.toast-body span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ================= RESPONSIVE DESIGN (MEDIA QUERIES) ================= */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-cta-group,
  .hero-store-badges {
    justify-content: center;
  }

  .hero-social-proof {
    justify-content: center;
  }

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

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

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

  .calculator-wrapper {
    grid-template-columns: 1fr;
    padding: 36px;
  }

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

  .eco-feat {
    text-align: left;
  }

  .download-box {
    grid-template-columns: 1fr;
    padding: 40px;
    text-align: center;
  }

  .download-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .download-buttons-group,
  .qr-download-helper {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 280px;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-smooth);
    z-index: 1001;
  }

  .nav-links.open {
    left: 0;
  }

  .mobile-drawer-overlay {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
  }

  .mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .floating-chip {
    display: none;
  }

  .steps-grid,
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

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

  .calculator-wrapper {
    padding: 20px;
  }

  .calc-card {
    padding: 20px 16px;
  }

  .store-badge {
    width: 100%;
    justify-content: center;
  }

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

  .download-box {
    padding: 24px 16px;
  }

  .qr-download-helper {
    flex-direction: column;
  }
}

/* ==========================================================================
   SECCIÓN LEGAL — POLÍTICA DE PRIVACIDAD & TÉRMINOS Y CONDICIONES
   ========================================================================== */
.legal-section {
  padding: 100px 0;
  background-color: var(--bg-surface);
  position: relative;
  border-top: 1px solid var(--border-light);
}

.legal-tabs-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-tabs-pill {
  display: inline-flex;
  background: var(--bg-surface-alt);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  gap: 6px;
}

.legal-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.legal-tab-btn:hover {
  color: var(--secondary);
}

.legal-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(49, 0, 101, 0.25);
}

[data-theme="dark"] .legal-tab-btn.active {
  background: var(--primary-light);
}

.legal-quick-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-content-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.legal-content-panel.active {
  display: block;
}

/* Banner superior */
.legal-banner-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(74, 20, 140, 0.08) 0%, rgba(140, 51, 179, 0.12) 100%);
  border: 1px solid var(--border-color);
  border-left: 6px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 36px;
}

.legal-banner-card.legal-banner-terms {
  border-left-color: var(--primary);
  background: linear-gradient(135deg, rgba(49, 0, 101, 0.08) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.legal-banner-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.banner-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.banner-heading-row h3 {
  font-size: 1.45rem;
  color: var(--text-main);
}

.legal-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  background: var(--bg-surface);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.legal-banner-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Highlights Grid */
.legal-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.highlight-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.highlight-item:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.highlight-item i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.highlight-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Lista de Cláusulas */
.legal-clauses-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-clause-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: all var(--transition-fast);
}

.legal-clause-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.clause-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.clause-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

[data-theme="dark"] .clause-num {
  background: var(--primary-light);
}

.clause-header h4 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0;
}

.clause-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.clause-body p:last-child {
  margin-bottom: 0;
}

.clause-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 16px;
  padding-left: 4px;
}

.clause-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.clause-bullets li::before {
  content: '•';
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--secondary);
  font-size: 1.2rem;
  font-weight: bold;
}

.clause-bullets li strong {
  color: var(--text-main);
}

.clause-contact-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface-alt);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: 14px;
}

.clause-contact-box i {
  font-size: 1.4rem;
  color: var(--secondary);
}

.clause-contact-box strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

.clause-contact-box a {
  color: var(--secondary);
  font-weight: 700;
}

.clause-contact-box a:hover {
  text-decoration: underline;
}

/* Responsividad Legal */
@media (max-width: 1024px) {
  .legal-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .legal-tabs-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-tabs-pill {
    width: 100%;
    display: flex;
  }

  .legal-tab-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .legal-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .banner-heading-row {
    flex-direction: column;
    align-items: center;
  }

  .legal-highlights-grid {
    grid-template-columns: 1fr;
  }

  .legal-clause-card {
    padding: 20px 18px;
  }
}

/* ==========================================================================
   PÁGINAS LEGALES DEDICADAS (STANDALONE LEGAL PAGES & TOC SYSTEM)
   ========================================================================== */

.legal-standalone-page {
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Breadcrumb */
.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.legal-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-breadcrumb a:hover {
  color: var(--secondary);
}

.legal-breadcrumb .crumb-separator {
  font-size: 0.75rem;
  color: var(--text-light);
}

.legal-breadcrumb .crumb-current {
  color: var(--primary);
  font-weight: 600;
}

[data-theme="dark"] .legal-breadcrumb .crumb-current {
  color: var(--primary);
}

/* Hero Legal */
.legal-page-hero {
  background: linear-gradient(135deg, rgba(49, 0, 101, 0.06) 0%, rgba(140, 51, 179, 0.08) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .legal-page-hero {
  background: linear-gradient(135deg, rgba(74, 20, 140, 0.25) 0%, rgba(30, 26, 39, 0.6) 100%);
  border-color: var(--border-color);
}

.legal-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.legal-title-group h1 {
  font-size: 2.25rem;
  font-family: var(--font-heading);
  color: var(--text-main);
  margin-top: 10px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.legal-title-group p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.6;
}

.legal-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Meta Bar */
.legal-meta-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-item i {
  color: var(--secondary);
}

.meta-item strong {
  color: var(--text-main);
}

/* Switch banner between legal pages */
.legal-switch-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.switch-banner-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.switch-banner-text i {
  font-size: 1.25rem;
  color: var(--secondary);
}

/* Legal Layout: Sidebar TOC + Main Content */
.legal-document-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: start;
}

/* Sidebar Sticky TOC */
.legal-toc-wrapper {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  max-height: calc(100vh - var(--nav-height) - 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 6px;
}

.legal-toc-wrapper::-webkit-scrollbar {
  width: 5px;
}

.legal-toc-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.legal-toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.toc-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.toc-card-header i {
  color: var(--secondary);
}

/* Search within legal text */
.legal-search-box {
  position: relative;
  margin-bottom: 16px;
}

.legal-search-box input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.legal-search-box input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(140, 51, 179, 0.15);
  background: var(--bg-card);
}

.legal-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.85rem;
  pointer-events: none;
}

.legal-toc-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.legal-toc-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1.35;
}

.legal-toc-item a:hover {
  background: var(--bg-surface-alt);
  color: var(--secondary);
  padding-left: 16px;
}

.legal-toc-item.active a {
  background: rgba(140, 51, 179, 0.12);
  color: var(--secondary);
  font-weight: 700;
  border-left: 3px solid var(--secondary);
}

[data-theme="dark"] .legal-toc-item.active a {
  background: rgba(208, 188, 255, 0.15);
  color: var(--primary);
  border-left-color: var(--primary);
}

.toc-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.legal-toc-item.active .toc-num-badge {
  background: var(--secondary);
  color: #FFFFFF;
}

[data-theme="dark"] .legal-toc-item.active .toc-num-badge {
  background: var(--primary-light);
  color: #FFFFFF;
}

/* Quick support mini card in sidebar */
.toc-support-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 0.85rem;
}

.toc-support-card h5 {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-support-card p {
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Callout Alerts inside Clauses */
.clause-alert {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 18px 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.clause-alert i {
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.clause-alert-info {
  background: rgba(59, 130, 246, 0.08);
  border-left: 4px solid #3B82F6;
  color: var(--text-main);
}
.clause-alert-info i { color: #3B82F6; }

.clause-alert-warning {
  background: rgba(245, 158, 11, 0.09);
  border-left: 4px solid var(--accent-gold);
  color: var(--text-main);
}
.clause-alert-warning i { color: var(--accent-gold); }

.clause-alert-success {
  background: rgba(16, 185, 129, 0.09);
  border-left: 4px solid var(--accent-green);
  color: var(--text-main);
}
.clause-alert-success i { color: var(--accent-green); }

.clause-alert-danger {
  background: rgba(239, 68, 68, 0.09);
  border-left: 4px solid #EF4444;
  color: var(--text-main);
}
.clause-alert-danger i { color: #EF4444; }

/* Subheadings & badges inside clauses */
.clause-subheading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clause-subheading i {
  color: var(--secondary);
  font-size: 0.95rem;
}

.clause-badge-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: rgba(140, 51, 179, 0.12);
  color: var(--secondary);
  margin-bottom: 8px;
}

[data-theme="dark"] .clause-badge-tag {
  background: rgba(208, 188, 255, 0.16);
  color: var(--primary);
}

/* Tables inside legal clauses */
.clause-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.clause-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.clause-table th {
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.clause-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  vertical-align: top;
}

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

.clause-table tr:hover td {
  background: rgba(140, 51, 179, 0.03);
}

/* Numbered process steps */
.clause-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.clause-step-item {
  display: flex;
  gap: 16px;
  background: var(--bg-surface-alt);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.step-number-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

[data-theme="dark"] .step-number-circle {
  background: var(--primary-light);
}

.step-details strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-details p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 !important;
  line-height: 1.5;
}

/* Search highlight effect */
.search-highlight {
  background: #FEF08A;
  color: #1F2937;
  padding: 0 2px;
  border-radius: 2px;
}

[data-theme="dark"] .search-highlight {
  background: #A16207;
  color: #FFFFFF;
}

/* Back to Top / Home Navigation Floating or Sticky */
.legal-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive Standalone Legal */
@media (max-width: 1024px) {
  .legal-document-layout {
    grid-template-columns: 260px 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .legal-document-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc-wrapper {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .legal-page-hero {
    padding: 28px 20px;
  }

  .legal-title-group h1 {
    font-size: 1.85rem;
  }

  .legal-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* PRINT MEDIA QUERY FOR PDF & PRINTING */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 12pt;
  }

  .navbar-wrapper,
  .mobile-drawer-overlay,
  .legal-breadcrumb,
  .legal-header-actions,
  .legal-switch-banner,
  .legal-toc-wrapper,
  .legal-search-box,
  .legal-footer-nav,
  .footer-wrapper,
  .floating-actions-container,
  .toast-notification,
  .theme-toggle,
  .back-to-top {
    display: none !important;
  }

  .legal-standalone-page {
    padding-top: 0 !important;
  }

  .legal-document-layout {
    display: block !important;
  }

  .legal-clause-card {
    border: none !important;
    box-shadow: none !important;
    padding: 15px 0 !important;
    page-break-inside: avoid;
    border-bottom: 1px solid #CCCCCC !important;
  }

  .legal-page-hero {
    background: none !important;
    border: none !important;
    padding: 0 0 20px 0 !important;
    border-bottom: 2px solid #000000 !important;
  }

  .clause-num {
    background: #333333 !important;
    color: #FFFFFF !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }
}


