/* ==========================================================================
   Tidev.cl - Modern Design System & Stylesheet
   Architecture: Vanilla CSS with custom properties, glassmorphism & dark/light theme
   ========================================================================== */

:root {
  /* Brand Palette (Derived from official Tidev.cl identity) */
  --color-brand-navy: #0a225c;
  --color-brand-blue: #0084ff;
  --color-brand-cyan: #00d2ff;
  --color-brand-indigo: #4338ca;
  --color-brand-purple: #8b5cf6;
  --color-brand-emerald: #10b981;
  --color-whatsapp: #25d366;

  /* Dark Theme (Default) */
  --bg-body: #060913;
  --bg-surface: #0c1122;
  --bg-surface-elevated: #131b34;
  --bg-surface-glass: rgba(12, 17, 34, 0.75);
  --bg-surface-glass-border: rgba(255, 255, 255, 0.08);
  --bg-card: rgba(16, 23, 46, 0.7);
  --bg-card-hover: rgba(22, 32, 64, 0.85);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(0, 132, 255, 0.4);

  --gradient-brand: linear-gradient(135deg, #0084ff 0%, #00d2ff 100%);
  --gradient-ai: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #00d2ff 100%);
  --gradient-dark: linear-gradient(180deg, rgba(12, 17, 34, 0.9) 0%, rgba(6, 9, 19, 0.95) 100%);
  --glow-primary: 0 0 35px rgba(0, 132, 255, 0.28);
  --glow-cyan: 0 0 35px rgba(0, 210, 255, 0.35);

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

  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-hover: 0 24px 48px -12px rgba(0, 132, 255, 0.25), 0 0 1px 1px rgba(0, 210, 255, 0.3);

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Mode */
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-glass: rgba(255, 255, 255, 0.85);
  --bg-surface-glass-border: rgba(15, 23, 42, 0.08);
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-active: rgba(0, 132, 255, 0.6);

  --glow-primary: 0 10px 30px rgba(0, 132, 255, 0.15);
  --glow-cyan: 0 10px 30px rgba(0, 210, 255, 0.2);
  --shadow-card: 0 10px 30px -8px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 40px -10px rgba(0, 132, 255, 0.2);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* Background Ambient Lighting (Glow Orbs) */
.ambient-lighting {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

[data-theme="light"] .glow-orb {
  opacity: 0.18;
  filter: blur(140px);
}

.glow-orb-1 {
  top: -15%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-brand-blue) 0%, transparent 70%);
}

.glow-orb-2 {
  top: 40%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--color-brand-cyan) 0%, transparent 70%);
}

.glow-orb-3 {
  bottom: 10%;
  left: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--color-brand-purple) 0%, transparent 75%);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

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

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

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(0, 132, 255, 0.12);
  color: var(--color-brand-cyan);
  border: 1px solid rgba(0, 210, 255, 0.25);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.badge-realmenu {
  background: rgba(225, 29, 72, 0.12);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.3);
}

.badge-ai {
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  margin-bottom: 1.1rem;
}

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

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

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

/* ==========================================================================
   Navigation Bar (Header)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-smooth);
  padding: 1.1rem 0;
}

.site-header.scrolled {
  padding: 0.65rem 0;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-surface-glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-main);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 132, 255, 0.4));
  transition: transform var(--transition-bounce);
}

.logo-brand:hover .logo-img {
  transform: rotate(-5deg) scale(1.08);
}

.brand-name {
  color: var(--text-main);
  display: flex;
  align-items: baseline;
}

.brand-dot {
  color: var(--color-brand-cyan);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

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

.nav-pill-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.theme-toggle-btn:hover {
  border-color: var(--color-brand-cyan);
  transform: rotate(20deg);
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 132, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(0, 132, 255, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(0, 132, 255, 0.1);
  border-color: var(--color-brand-cyan);
  color: var(--color-brand-cyan);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 10.5rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

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

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

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  letter-spacing: -0.035em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.trust-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(0, 132, 255, 0.12);
  color: var(--color-brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.trust-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

/* Hero Visual Box */
.hero-visual {
  position: relative;
  perspective: 1000px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--bg-surface-glass-border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card), var(--glow-primary);
  transform: rotateY(-3deg) rotateX(2deg);
  transition: transform var(--transition-smooth);
}

.hero-image-wrapper:hover {
  transform: rotateY(0) rotateX(0) scale(1.01);
}

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

/* Floating Badges on Hero Visual */
.floating-chip {
  position: absolute;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-surface-glass-border);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatUpDown 4s ease-in-out infinite;
  z-index: 3;
}

.chip-1 {
  top: 8%;
  left: -8%;
}

.chip-2 {
  bottom: 8%;
  right: -5%;
  animation-delay: -2s;
}

.chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-brand-emerald);
  box-shadow: 0 0 10px var(--color-brand-emerald);
}

.chip-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

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

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

/* ==========================================================================
   Metrics & Proof Strip
   ========================================================================== */
.stats-strip {
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.25rem 0;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 0.5rem;
}

.stat-number {
  font-family: var(--font-main);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

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

/* ==========================================================================
   RealMenu Product Spotlight Showcase
   ========================================================================== */
.realmenu-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(244, 63, 94, 0.08) 0%, transparent 60%);
}

.realmenu-hero-card {
  background: var(--bg-card);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-card), 0 0 45px rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.realmenu-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.realmenu-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 3.5rem;
}

.realmenu-info h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.realmenu-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.realmenu-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 2.25rem;
}

.rm-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rm-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.rm-feature-text strong {
  display: block;
  color: var(--text-main);
  font-size: 0.9rem;
}

.rm-feature-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.realmenu-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.realmenu-preview-box {
  position: relative;
}

.realmenu-mockup-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-smooth);
}

.realmenu-mockup-frame:hover {
  transform: scale(1.02);
}

.realmenu-mockup-img {
  width: 100%;
  height: auto;
  display: block;
}

.realmenu-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(12, 17, 34, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  box-shadow: var(--shadow-hover);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(0, 132, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--color-brand-cyan);
  margin-bottom: 1.5rem;
  transition: all var(--transition-bounce);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(4deg);
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.service-card.ai-card .service-icon-box {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(192, 132, 252, 0.3);
  color: #c084fc;
}

.service-card.ai-card:hover .service-icon-box {
  background: var(--gradient-ai);
}

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

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

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

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

/* ==========================================================================
   Interactive Project Calculator / Estimator
   ========================================================================== */
.calculator-section {
  background: radial-gradient(circle at 20% 50%, rgba(0, 132, 255, 0.08) 0%, transparent 60%);
}

.calculator-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.calc-step {
  margin-bottom: 2.25rem;
}

.calc-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.calc-step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 132, 255, 0.15);
  color: var(--color-brand-cyan);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.calc-option {
  position: relative;
}

.calc-option input[type="radio"],
.calc-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-option-label {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all var(--transition-fast);
  height: 100%;
}

.calc-option-label:hover {
  border-color: rgba(0, 132, 255, 0.4);
  background: rgba(0, 132, 255, 0.04);
}

.calc-option input:checked + .calc-option-label {
  border-color: var(--color-brand-cyan);
  background: rgba(0, 132, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.2);
}

.calc-opt-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-opt-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc-summary-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.calc-result-info h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.calc-config-summary {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.calc-summary-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-brand-blue);
  background: rgba(0, 132, 255, 0.1);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 132, 255, 0.25);
}

.calc-summary-details {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
}

[data-theme="light"] .calc-option-label {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .calc-option-label:hover {
  border-color: var(--color-brand-blue);
  background: rgba(0, 132, 255, 0.04);
}

[data-theme="light"] .calc-option input:checked + .calc-option-label {
  border-color: var(--color-brand-blue);
  background: rgba(0, 132, 255, 0.08);
  box-shadow: 0 0 0 1px var(--color-brand-blue);
}

[data-theme="light"] .calc-summary-card {
  background: #ffffff;
  border: 1px solid rgba(0, 132, 255, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.calc-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Work Methodology (Process)
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all var(--transition-smooth);
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
}

.step-num {
  font-family: var(--font-main);
  font-size: 2.25rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  margin-bottom: 1rem;
}

.process-step:hover .step-num {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.process-step h4 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.process-step p {
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ==========================================================================
   Tech Stack Section
   ========================================================================== */
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.tech-pill:hover {
  border-color: var(--color-brand-cyan);
  background: rgba(0, 132, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 132, 255, 0.15);
}

.tech-pill i {
  color: var(--color-brand-cyan);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info-col h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info-col p {
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
}

.contact-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-card-item:hover {
  border-color: var(--color-brand-cyan);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 132, 255, 0.12);
  color: var(--color-brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-card-icon.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: var(--color-whatsapp);
}

.contact-card-details strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.contact-card-details a, .contact-card-details span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.contact-card-details a:hover {
  color: var(--color-brand-cyan);
}

/* Contact Form */
.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.form-group {
  margin-bottom: 1.35rem;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

[data-theme="light"] .form-control {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand-cyan);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

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

/* Hidden Honeypot */
.trap-field {
  display: none !important;
  visibility: hidden !important;
}

/* Status Alert */
.alert-feedback {
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: none;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
  position: relative;
  z-index: 1;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

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

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

.footer-links a:hover {
  color: var(--color-brand-cyan);
  padding-left: 4px;
}

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

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.wa-pulse-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  position: relative;
  transition: transform var(--transition-bounce);
}

.wa-pulse-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-whatsapp);
  animation: radarWave 2s infinite ease-out;
  pointer-events: none;
}

@keyframes radarWave {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-floating:hover .wa-pulse-btn {
  transform: scale(1.12);
}

.wa-tooltip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  animation: fadeIn 0.4s ease;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-trust-badges {
    justify-content: center;
  }

  .chip-1 {
    left: 2%;
  }

  .chip-2 {
    right: 2%;
  }

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

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

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

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

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

@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
  }

  .nav-menu.open {
    transform: translateY(0);
  }

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

  .realmenu-hero-card {
    padding: 2rem 1.5rem;
  }

  .realmenu-features-list {
    grid-template-columns: 1fr;
  }

  .calculator-wrapper {
    padding: 1.75rem 1.25rem;
  }

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

  .contact-form-box {
    padding: 1.75rem 1.25rem;
  }

  .wa-tooltip {
    display: none;
  }

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

/* ==========================================================================
   Footer Legal Links
   ========================================================================== */
.footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

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

.footer-legal-links span {
  color: var(--text-light);
  opacity: 0.6;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 0 1px 1px rgba(0, 132, 255, 0.15);
  z-index: 9998;
  animation: slideUpCookie 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="light"] .cookie-banner {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 132, 255, 0.2);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}

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

.cookie-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cookie-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 132, 255, 0.12);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cookie-text {
  flex-grow: 1;
}

.cookie-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.cookie-text p {
  font-size: 0.825rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.cookie-text a {
  color: var(--color-brand-blue);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Legal Modals (Políticas de Privacidad & Términos de Uso)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 19, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.95) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

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

[data-theme="light"] .modal-dialog {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header h3 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.modal-body h4 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-body ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.4rem;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  font-size: 0.85rem;
}

[data-theme="light"] .modal-footer {
  background: #f8fafc;
}

