/* ==========================================================================
   G&D - Components Stylesheet (V3 - Ultra-Clean, Transparent Header & Elegant UI)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header & Navigation (Crystal Clear Transparency)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled {
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 107, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  height: 68px;
}

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

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-symbol {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(31, 39, 53, 0.8) 0%, rgba(16, 21, 31, 0.8) 100%);
  border: 1px solid var(--accent-orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.25);
  transition: all var(--transition-normal);
}

.brand-logo:hover .logo-symbol {
  border-color: var(--accent-orange);
  box-shadow: 0 0 22px rgba(255, 107, 0, 0.55);
  transform: scale(1.05);
}

.logo-symbol svg {
  width: 22px;
  height: 22px;
  color: var(--accent-orange);
  filter: drop-shadow(0 0 6px var(--accent-orange-glow));
}

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

.logo-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

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

.logo-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

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

.nav-link:hover {
  color: #ffffff;
}

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

.nav-link.active {
  color: #ffffff;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.emergency-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid var(--accent-orange-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.emergency-pill:hover {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--accent-orange);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.35);
}

.emergency-pill .tel-number {
  color: var(--accent-orange-bright);
}

/* Mobile Toggle */
/* El glifo &#9776; (U+2630) no existe en todas las fuentes (quedaba un botón
   invisible en móvil). Se sustituye por iconografía SVG data-URI independiente
   de fuentes: hamburguesa en reposo / "X" al estar el menú abierto. */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.07);
  border: none;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  padding: 0;
  border-radius: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='2.6' rx='1.3' fill='%23ffffff'/%3E%3Crect x='3' y='10.7' width='18' height='2.6' rx='1.3' fill='%23ffffff'/%3E%3Crect x='3' y='17.4' width='18' height='2.6' rx='1.3' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.mobile-nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.14);
}
.site-header:has(#navMenu.open) .mobile-nav-toggle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M6 6 L18 18 M18 6 L6 18' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Hero Section (100vh Pure Unobstructed Video Player)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 35px;
}

/* Background Video Player */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: #030406;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: contrast(1.04) saturate(1.08) brightness(0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-video.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Minimalist bottom gradient transition */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to bottom, rgba(3, 4, 6, 0.3) 0%, transparent 15%, transparent 80%, var(--bg-main) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Sparks Canvas */
.hero-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Floating Scroll Indicator */
.hero-scroll-indicator {
  position: relative;
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(10, 14, 22, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all var(--transition-normal);
  animation: bounceSlow 2.5s ease-in-out infinite;
}

.hero-scroll-indicator:hover {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--accent-orange);
  color: var(--accent-orange-bright);
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Floating Cinema Controls Bar */
.hero-controls-bar {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(7, 9, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.video-live-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.video-loop-badge {
  font-size: 0.72rem;
  color: var(--accent-orange-bright);
  font-weight: 600;
}

.video-control-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Tap target 44px */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.video-control-btn:hover {
  color: var(--accent-orange);
  background: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   3. Hero Intro & Command Hub (Editorial Layout Below Video)
   -------------------------------------------------------------------------- */
.hero-intro-section {
  padding: 80px 0 60px 0;
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-surface) 100%);
}

.intro-content-wrap {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.intro-headline {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  /* "Telecomunicaciones" (palabra larga) desbordaba 27px en móvil: permitir cortar la palabra. */
  overflow-wrap: break-word;
  word-break: break-word;
}

.intro-headline .highlight-orange {
  background: linear-gradient(135deg, #ffffff 0%, #ffae58 40%, #ff6b00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  filter: drop-shadow(0 0 25px rgba(255, 107, 0, 0.45));
}

.intro-subheading {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto 34px auto;
  max-width: 760px;
}

.intro-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

/* 4 Metrics Feature Cards */
.intro-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.intro-metric-card {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: rgba(16, 22, 32, 0.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
}

.intro-metric-card:hover {
  border-color: var(--accent-orange-border);
  transform: translateY(-4px);
  background: rgba(22, 30, 44, 0.8);
}

.intro-metric-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
}

.intro-metric-num span {
  color: var(--accent-orange);
}

.intro-metric-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #cbd5e1;
}

.intro-metric-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   4. Brand & Partner Logos Marquee Ticker
   -------------------------------------------------------------------------- */
.partners-section {
  padding: 24px 0;
  background: rgba(4, 6, 9, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.partners-marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: marqueeScroll 28s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  /* 0.35 -> 0.5 de opacidad de blanco sobre fondo oscuro: pasa WCAG AA (3.08 -> 5.29). */
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  transition: color var(--transition-fast);
}

.marquee-item svg {
  color: var(--accent-orange);
  opacity: 0.5;
}

.marquee-item:hover {
  color: #ffffff;
}

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

/* --------------------------------------------------------------------------
   5. Services Section (Glassmorphic Cards)
   -------------------------------------------------------------------------- */
.service-card {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.14) 0%, rgba(255, 107, 0, 0.02) 100%);
  border: 1px solid var(--accent-orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 1.5rem;
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.15);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: linear-gradient(135deg, #ff7a18 0%, #ff5200 100%);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 107, 0, 0.5);
  transform: scale(1.06) rotate(3deg);
}

.service-number {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.16);
}

.service-card:hover .service-number {
  color: var(--accent-orange-bright);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.service-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-features-list {
  list-style: none;
  margin-top: auto;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features-list li {
  font-size: 0.84rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features-list li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.service-card-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px; /* tap target */
  padding: 11px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-orange-bright);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

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

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

/* --------------------------------------------------------------------------
   6. Interactive Before & After Transformation Slider
   -------------------------------------------------------------------------- */
.transformation-section {
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 0, 0.04) 0%, transparent 70%);
}

.before-after-container {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--accent-orange-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 107, 0, 0.12);
  height: 420px;
}

.ba-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-before {
  z-index: 1;
  width: 50%;
  overflow: hidden;
  border-right: 3px solid #ff6b00;
  box-shadow: 5px 0 20px rgba(0,0,0,0.6);
}

.ba-after {
  z-index: 0;
}

.ba-canvas-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-badge {
  position: absolute;
  top: 18px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  z-index: 5;
}

.ba-before .ba-badge {
  left: 18px;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
}

.ba-after .ba-badge {
  right: 18px;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  margin-left: -20px;
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-handle-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-orange);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   7. Interactive Budget Calculator
   -------------------------------------------------------------------------- */
.calculator-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 38px;
}

.calc-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.calc-label {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-label .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.calc-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.calc-option-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.calc-option-btn.active {
  background: var(--accent-orange-subtle);
  border-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.calc-option-btn svg {
  width: 18px;
  height: 18px;
  color: var(--accent-orange);
  flex-shrink: 0;
}

/* Range Slider */
.calc-range-wrapper {
  padding: 8px 0;
}

.calc-range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calc-range-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-orange-bright);
}

.custom-range-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 7px;
  border-radius: 4px;
  background: #18202d;
  outline: none;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-orange);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-orange-glow);
  border: 2px solid #ffffff;
}

/* Calculator Result Card */
.calc-result-card {
  background: linear-gradient(145deg, #121824 0%, #0a0d14 100%);
  border: 1px solid var(--accent-orange-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.calc-result-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.calc-result-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.calc-estimate-box {
  margin-bottom: 22px;
}

.calc-estimate-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.calc-estimate-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.calc-estimate-price span {
  color: var(--accent-orange);
  font-size: 1.5rem;
}

.calc-estimate-note {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.calc-breakdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.calc-breakdown-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.calc-breakdown-list li span:last-child {
  font-weight: 700;
  color: #ffffff;
}

.calc-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   8. Why Choose Us & Comparison Matrix
   -------------------------------------------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.trust-card {
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-normal);
}

.trust-card:hover {
  border-color: var(--accent-orange-border);
  transform: translateY(-4px);
}

.trust-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid var(--accent-orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.trust-card-title {
  font-size: 1.18rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.trust-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Comparison Matrix */
.comparison-table-wrap {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  overflow-x: auto;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.comparison-table th {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table th.col-highlight {
  background: rgba(255, 107, 0, 0.08);
  border-left: 2px solid var(--accent-orange);
  border-right: 2px solid var(--accent-orange);
  color: var(--accent-orange-bright);
}

.comparison-table td.col-highlight {
  background: rgba(255, 107, 0, 0.03);
  border-left: 2px solid var(--accent-orange);
  border-right: 2px solid var(--accent-orange);
  font-weight: 700;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   9. Filterable Projects Showcase
   -------------------------------------------------------------------------- */
.project-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 12px 20px;
  min-height: 44px; /* tap target >=44px */
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--accent-orange-glow);
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-orange-border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 107, 0, 0.12);
}

.project-thumb {
  position: relative;
  height: 210px;
  width: 100%;
  overflow: hidden;
  background: #10151f;
}

.project-thumb-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumb-bg {
  transform: scale(1.06);
}

.project-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(7, 9, 13, 0.85);
  backdrop-filter: blur(8px);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-orange-bright);
  border: 1px solid var(--accent-orange-border);
}

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

.project-title {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.55;
}

.project-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.project-meta-tag {
  font-size: 0.78rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: #cbd5e1;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. Interactive FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.faq-item:hover {
  border-color: rgba(255, 107, 0, 0.25);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange-bright);
  font-size: 1.1rem;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-orange);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 280px;
  padding-bottom: 22px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   11. Testimonials & Google Rating
   -------------------------------------------------------------------------- */
.google-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: rgba(12, 16, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 45px;
}

.rating-stars {
  color: #f59e0b;
  display: flex;
  gap: 2px;
}

.testimonial-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 0.92rem;
  font-style: italic;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 22px;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1c2432, #10141e);
  border: 1px solid var(--accent-orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-orange-bright);
}

.client-info h4 {
  font-size: 0.94rem;
  color: #ffffff;
}

.client-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. Contact Section & Native Dialog Modal
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 38px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

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

.contact-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-orange-subtle);
  border: 1px solid var(--accent-orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-content h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 3px;
}

.contact-item-content p, .contact-item-content a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.contact-item-content a:hover {
  color: var(--accent-orange-bright);
}

.contact-form-card {
  padding: 38px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.form-select option {
  background: var(--bg-darkest);
  color: #ffffff;
}

/* Native Dialog Modal */
dialog.custom-modal {
  margin: auto;
  padding: 0;
  border: 1.5px solid var(--accent-orange-border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  color: #ffffff;
  max-width: 580px;
  width: 92%;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 107, 0, 0.18);
}

dialog.custom-modal::backdrop {
  background: rgba(3, 4, 6, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.3rem;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--accent-orange);
}

.modal-body {
  padding: 28px;
}

/* --------------------------------------------------------------------------
   Form responsive rows (2-col -> 1-col en móvil)
   Clase added en index.html a los grids de 2 columnas del formulario.
   -------------------------------------------------------------------------- */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Modal responsive: nunca más alto que el viewport en móvil
   -------------------------------------------------------------------------- */
dialog.custom-modal {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@media (max-width: 560px) {
  dialog.custom-modal {
    width: 96%;
    border-radius: 14px;
  }
  .modal-header { padding: 18px 20px; }
  .modal-body   { padding: 20px; }
  .modal-title  { font-size: 1.14rem; }
}

/* --------------------------------------------------------------------------
   13. Floating Live Emergency Widget
   -------------------------------------------------------------------------- */
.floating-live-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  background: rgba(7, 9, 13, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-orange-border);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  font-size: 0.8rem;
  color: #ffffff;
  transition: all var(--transition-normal);
}

.floating-live-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 107, 0, 0.35);
}

.floating-live-widget .call-action {
  font-weight: 800;
  color: var(--accent-orange-bright);
  padding: 8px 12px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.floating-live-widget .call-action:hover {
  color: #ffffff;
  background: rgba(255, 107, 0, 0.18);
}

/* --------------------------------------------------------------------------
   14. Sleek Dark Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-darkest);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 75px 0 30px 0;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 38px;
  margin-bottom: 55px;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 18px 0 22px 0;
  max-width: 340px;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-cert-badge svg {
  color: var(--accent-orange);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-orange-bright);
  padding-left: 4px;
}

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

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-orange-border);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 0 20px var(--accent-orange-glow);
}

/* --------------------------------------------------------------------------
   15. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .intro-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calculator-wrapper {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: rgba(7, 9, 13, 0.98);
    backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px;
    gap: 22px;
    transition: right var(--transition-normal);
    border-left: 1px solid rgba(255, 107, 0, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
    z-index: 1001;
  }
  .nav-menu.open {
    right: 0;
  }
  /* Tap targets: los enlaces del menú móvil ocupan al menos 44px de altura. */
  .nav-menu .nav-link {
    padding: 13px 8px;
    min-height: 44px;
  }
  .mobile-nav-toggle {
    display: block;
    z-index: 1002;
  }
  /* Solo se oculta la pill del HEADER (para que quepan logo + CTA + toggle).
     Las pills de teléfono del FOOTER siguen visibles en móvil. */
  .site-header .emergency-pill {
    display: none;
  }
  .hero-controls-bar {
    /* En móvil/tablet la barra (abajo-derecha) chocaba con la píldora centrada
       del hero. Se sube bajo el header para no tapar el "Conoce a los Expertos". */
    top: calc(var(--header-height) + 14px);
    bottom: auto;
    right: 16px;
  }
  .floating-live-widget {
    display: none;
  }
}

/* Header en pantallas estrechas: evita desbordamiento horizontal de
   (logo + botón "Pedir Presupuesto" + toggle). La CTA queda igualmente
   accesible en hero / proceso / contacto. */
@media (max-width: 560px) {
  .header-actions .btn-sm { display: none; }
}
@media (max-width: 480px) {
  .logo-title  { font-size: 1.15rem; }
  .logo-subtitle { display: none; }
}

/* Hero controls bar en móvil: ocultar etiquetas para que los 3 botones
   (44px) no desborden el ancho y queden accesibles. */
@media (max-width: 560px) {
  .hero-controls-bar .video-live-tag { display: none; }
}

@media (max-width: 640px) {
  .intro-metrics-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .calc-options-grid {
    grid-template-columns: 1fr;
  }
  .before-after-container {
    height: 290px;
  }
}

/* ============================================================
   Process / "Cómo trabajamos" steps
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-step {
  position: relative;
  padding: 34px 24px 28px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
.process-step:hover {
  transform: translateY(-6px);
  border-color: var(--accent-orange-border);
}
.process-step-num {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: var(--accent-orange-bright);
  background: linear-gradient(135deg, rgba(255,107,0,0.18), rgba(255,107,0,0.02));
  border: 1px solid var(--accent-orange-border);
  margin-bottom: 20px;
  box-shadow: 0 0 16px rgba(255,107,0,0.12);
}
.process-step h3 {
  font-size: 1.14rem; font-weight: 700; color: #fff;
  margin-bottom: 10px; line-height: 1.3;
}
.process-step p {
  font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6;
}
.process-step::after {
  content: ""; position: absolute; top: 48px; right: -10px;
  width: 20px; height: 2px; background: linear-gradient(90deg, rgba(255,107,0,0.6), transparent);
}
.process-step:last-child::after { display: none; }
.process-cta { text-align: center; margin-top: 46px; }
@media (max-width: 992px){ .process-grid{ grid-template-columns: 1fr 1fr; } .process-step::after{display:none;} }
@media (max-width: 620px){ .process-grid{ grid-template-columns: 1fr; } }
