:root {
  --primary-color: #ff5e00;
  /* Vibrant Neon Orange */
  --primary-glow: rgba(255, 94, 0, 0.5);
  --secondary-color: #0f172a;
  /* Deep Navy / Slate 900 */
  --surface-color: #1e293b;
  /* Slate 800 */
  --surface-glass: rgba(30, 41, 59, 0.6);
  --dark-color: #020617;
  /* Very Dark / Slate 950 */
  --light-color: #ffffff;
  --text-color: #94a3b8;
  /* Muted Slate 400 */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --border-radius: 16px;
  --glass-border: rgba(255, 255, 255, 0.08);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--dark-color);
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--dark-color);
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  overflow-wrap: break-word;
  word-wrap: break-word;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
  font-family: var(--font-heading);
  color: var(--light-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.header {
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
  background: #fff;
  padding: 2px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--light-color);
  cursor: pointer;
  z-index: 101;
}

.hamburger svg {
  width: 32px;
  height: 32px;
}

.hamburger rect {
  transition:
    transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.3s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 1.2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  box-shadow: 0 0 8px var(--primary-glow);
}

.nav-links a:hover {
  color: var(--light-color);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #ff5e00, #ff3d00);
  color: #fff;
  box-shadow: 0 8px 24px var(--primary-glow);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--primary-glow);
  background: linear-gradient(135deg, #ff6a00, #ff4500);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-color);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Estilos unificados para botones del Header */
.nav-menu .btn, 
.btn-secondary-header {
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: var(--transition);
  height: 42px; /* Altura fija para asegurar simetría total */
}

.btn-secondary-header {
  background: transparent;
  color: var(--light-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
  text-decoration: none;
}

.btn-secondary-header:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--light-color);
}

/* Hero Section */
.hero {
  padding: 7.5rem 0 8rem;
  min-height: 100vh;
  min-height: 100dvh; /* dynamic viewport height - fix for mobile browsers */
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  text-align: left;
  position: relative;
  color: var(--light-color);
  background: var(--dark-color);
  background-image:
    radial-gradient(
      circle at top left,
      rgba(255, 94, 0, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at top right,
      rgba(255, 94, 0, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(14, 165, 233, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(14, 165, 233, 0.15) 0%,
      transparent 50%
    );
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.tagline {
  display: inline-block;
  background: rgba(255, 94, 0, 0.1);
  color: var(--primary-color);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 94, 0, 0.2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--light-color);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(135deg, #ff5e00, #ff3d00);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 20px var(--primary-glow);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-color);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-visual {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 50%;
}

.hero-img-motorizado {
  width: 100%;
  max-width: 500px;
  /* Imagen más grande y protagónica */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
  animation: floating 6s ease-in-out infinite;
  transform-origin: center bottom;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  z-index: 1;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-card {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--light-color);
  padding: 1.2rem 2.2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition:
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.float-card {
  position: absolute;
  bottom: 5%;
  right: -2%;
  z-index: 5;
  min-width: max-content;
}

.hero-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 94, 0, 0.3);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 94, 0, 0.1);
}

.hero-card p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.2rem 0;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-card p .hero-counter {
  display: inline;
  color: inherit;
}

.hero-card > span {
  /* Fluid typography para el subtitulo */
  font-size: clamp(0.7rem, 0.6rem + 0.5vw, 0.85rem);
  color: var(--primary-color);
  font-weight: 500;
  display: block;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-benefits {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  font-weight: 500;
  color: var(--text-color);
  display: flex;
  align-items: center;
}

.hero-benefits span {
  margin: 0 1rem;
}

.hero-benefits span:first-child {
  margin-left: 0;
}

.hero-benefits span:nth-child(even) {
  color: rgba(255, 255, 255, 0.2);
}

/* General Section Styling */
.feature-section,
.services-section,
.how-it-works-section,
.coverage-section,
.faq-section,
.contact-section {
  padding: 7.5rem 0;
}

.services-section {
  background-color: var(--secondary-color);
  position: relative;
}

.how-it-works-section {
  background-color: var(--dark-color);
  position: relative;
}

.coverage-section {
  background-color: var(--secondary-color);
  position: relative;
}

.faq-section {
  background-color: var(--dark-color);
  position: relative;
}

.contact-section {
  background-color: var(--secondary-color);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-header h2 {
  font-size: 3rem;
  margin-top: 1rem;
  letter-spacing: -0.5px;
}

/* Features Section (Nuestra Promesa) */
.feature-section {
  background: var(--dark-color);
  position: relative;
  overflow: hidden;
}

.feature-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 94, 0, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.feature-section .container {
  position: relative;
  z-index: 1;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 3rem 2.2rem;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature:hover {
  transform: translateY(-8px);
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 94, 0, 0.4);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(255, 94, 0, 0.15);
}

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

.feature-icon-container {
  background: rgba(255, 94, 0, 0.08);
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.8rem;
  border: 1px solid rgba(255, 94, 0, 0.25);
  position: relative;
  z-index: 1;
  transition: all 0.35s ease;
  box-shadow: 0 4px 15px rgba(255, 94, 0, 0.1);
}

.feature-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: all 0.35s ease;
}

.feature:hover .feature-icon-container {
  background: linear-gradient(135deg, #ff5e00 0%, #ff8c00 100%);
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 94, 0, 0.45);
}

.feature:hover .feature-icon {
  filter: brightness(0) invert(1);
  transform: scale(1.08);
}

.feature h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--light-color);
  margin-bottom: 0.8rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.feature p {
  color: var(--text-color);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Services Section */
.services-section {
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(37, 99, 235, 0.04) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.services-section .container {
  position: relative;
  z-index: 1;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 94, 0, 0.4);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(255, 94, 0, 0.15);
}

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

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 94, 0, 0.08);
  border: 1px solid rgba(255, 94, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  transition: all 0.35s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(255, 94, 0, 0.1);
}

.service-card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: all 0.35s ease;
}

.service-card:hover .service-card-icon {
  background: linear-gradient(135deg, #ff5e00 0%, #ff8c00 100%);
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 94, 0, 0.45);
}

.service-card:hover .service-card-icon img {
  transform: scale(1.08);
  filter: brightness(0) invert(1);
}

.service-card-content {
  padding: 0;
  background: transparent;
  width: 100%;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--light-color);
  margin-bottom: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-card p {
  color: var(--text-color);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
  opacity: 0.9;
}

.service-card ul {
  list-style: none;
  margin-top: 1.5rem;
}

.service-card ul li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.service-card ul li::before {
  content: "→";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* How It Works Section */
.how-it-works-section {
  padding: 7.5rem 0;
  background: var(--dark-color);
  position: relative;
  overflow: hidden;
}

.how-it-works-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 94, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 4rem;
}

@media (min-width: 1101px) {
  .steps-grid::before {
    content: "";
    position: absolute;
    top: 62px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 94, 0, 0.4) 20%, rgba(255, 94, 0, 0.4) 80%, transparent 100%);
    z-index: 1;
    pointer-events: none;
  }
}

@media (max-width: 1100px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.step-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 94, 0, 0.4);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(255, 94, 0, 0.15);
}

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

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.step-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
  background: rgba(255, 94, 0, 0.08);
  border: 1px solid rgba(255, 94, 0, 0.25);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
  box-shadow: 0 4px 15px rgba(255, 94, 0, 0.1);
}

.step-card:hover .step-number {
  background: linear-gradient(135deg, #ff5e00 0%, #ff8c00 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(255, 94, 0, 0.45);
  transform: scale(1.1);
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 94, 0, 0.06);
  border: 1px solid rgba(255, 94, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: all 0.35s ease;
}

.step-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary-color);
  transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
  background: rgba(255, 94, 0, 0.15);
  border-color: rgba(255, 94, 0, 0.35);
}

.step-card:hover .step-icon svg {
  transform: scale(1.12);
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--light-color);
  margin-bottom: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.step-card p {
  color: var(--text-color);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
  opacity: 0.9;
}

/* Coverage Section */
.coverage-section {
  background-color: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.coverage-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

.coverage-content {
  flex: 1;
}

.coverage-content h2 {
  font-size: 3rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.1;
}

.coverage-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.coverage-list {
  list-style: none;
}

.coverage-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--light-color);
  font-weight: 500;
}

.coverage-list img {
  filter: drop-shadow(0 0 5px var(--primary-glow));
}

.coverage-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.lima-map-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.zone {
  fill: var(--surface-color);
  stroke: var(--primary-color);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: var(--transition);
  cursor: pointer;
}

.zone:hover,
.zone.active {
  fill: url(#mapGradient);
  filter: drop-shadow(0 0 15px var(--primary-color));
  stroke-width: 4;
  transform: translateY(-5px);
}

.map-marker {
  fill: var(--light-color);
  filter: drop-shadow(0 0 8px #fff);
  animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    filter: drop-shadow(0 0 15px #fff);
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.map-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary-color);
  color: var(--light-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -150%);
  transition: opacity 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.map-tooltip.visible {
  opacity: 1;
}

.map-card {
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  bottom: auto;
  z-index: 15;
}

.map-card p {
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  background: linear-gradient(135deg, #ff5e00, #ff3d00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* FAQ Section (Preguntas Frecuentes) */
.faq-section {
  background: var(--dark-color);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 94, 0, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.faq-section .container {
  position: relative;
  z-index: 1;
}

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

.faq-item {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.faq-item:hover,
.faq-item.active {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 94, 0, 0.4);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(255, 94, 0, 0.12);
}

.faq-item:hover::before,
.faq-item.active::before {
  opacity: 1;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.8rem;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--light-color);
  cursor: pointer;
  text-align: left;
  gap: 1.2rem;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #ffffff;
}

.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 94, 0, 0.08);
  border: 1px solid rgba(255, 94, 0, 0.25);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  background: linear-gradient(135deg, #ff5e00 0%, #ff8c00 100%);
  color: #ffffff;
  border-color: transparent;
  transform: rotate(45deg);
  box-shadow: 0 4px 15px rgba(255, 94, 0, 0.4);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
  padding: 0 1.8rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.8rem 1.6rem 1.8rem;
  transition: max-height 0.4s cubic-bezier(0.5, 0, 0.1, 1), padding 0.35s ease;
}

.faq-answer p {
  color: var(--text-color);
  font-size: 0.98rem;
  line-height: 1.68;
  margin: 0;
  opacity: 0.92;
}

/* Contact Section */
.contact-section {
  background-color: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(37, 99, 235, 0.04) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.contact-content {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  box-sizing: border-box;
}

.contact-form {
  width: 100%;
  padding: 3.5rem 3rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.8;
  transition: opacity 0.35s ease;
}

.contact-form:hover {
  border-color: rgba(255, 94, 0, 0.4);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(255, 94, 0, 0.15);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.4rem;
  text-align: left;
}

.contact-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--light-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.optional-tag {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-color);
  opacity: 0.75;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 1.1rem 1.4rem;
  margin-bottom: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-body);
  background-color: rgba(2, 6, 23, 0.6);
  color: var(--light-color);
  transition: all 0.3s ease;
  font-size: 0.98rem;
}

.contact-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(2, 6, 23, 0.85);
  box-shadow: 0 0 20px rgba(255, 94, 0, 0.25);
}

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

.contact-form button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1.1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff5e00 0%, #ff8c00 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 94, 0, 0.4);
  transition: all 0.35s ease;
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 94, 0, 0.55);
}

/* Footer */
.footer {
  background-color: #01030d;
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.3fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

/* System Status Badge in Footer */
.system-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 1.1rem;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #25D366;
  margin-top: 1.4rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.1);
  transition: all 0.3s ease;
}

.system-status-badge:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 0 10px #25D366;
  animation: statusPulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes statusPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer h3,
.footer h4 {
  margin-bottom: 1.5rem;
}

.footer-about h3 {
  font-size: 1.8rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.8rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-color);
  font-size: 0.92rem;
  line-height: 1.45;
}

.footer-contact-list li svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-color);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-hours {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-top: 2px;
}

.footer-contact-list a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact-list a:hover {
  color: var(--primary-color);
}

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

.footer-legal a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 2rem;
  transition: var(--transition);
}

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

/* --- COVERAGE SECTION & MAPA ANIMADO --- */
.coverage-section {
  padding: 7rem 0;
  position: relative;
  background-color: var(--secondary-color);
  overflow: hidden;
}

.coverage-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.coverage-content {
  flex: 1;
  max-width: 550px;
}

.coverage-content h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

.coverage-content h2 span {
  color: var(--primary-color);
}

.coverage-list {
  list-style: none;
  margin-top: 2rem;
}

.coverage-stat {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--primary-color);
  border-radius: 12px;
  padding: 0.8rem 1.4rem;
}

.coverage-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.coverage-stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.3;
}

.coverage-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  color: var(--text-color);
  text-align: left;
}

.coverage-list li img {
  flex-shrink: 0;
  margin-top: 2px;
}

.coverage-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 0 20px rgba(255, 94, 0, 0.15));
}

.lima-map-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 94, 0, 0.1));
}

.lima-map-svg .zone {
  fill: var(--surface-color);
  stroke: var(--primary-color);
  stroke-width: 2px;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition:
    fill 0.3s ease,
    stroke 0.3s ease,
    stroke-width 0.3s ease,
    filter 0.3s ease;
  cursor: pointer;
}

.lima-map-svg .zone:hover,
.lima-map-svg .zone.zone-highlighted,
.lima-map-svg .zone.active,
.map-active-overlay {
  fill: rgba(255, 94, 0, 0.85) !important;
  stroke: #ffffff !important;
  stroke-width: 3.5px !important;
  stroke-linejoin: round !important;
  stroke-linecap: round !important;
  filter: drop-shadow(0 0 20px rgba(255, 94, 0, 0.95)) !important;
}

.map-active-overlay {
  pointer-events: none;
  display: none;
}

/* Tooltip interactivo - EL FIX DEL PARPADEO AQUÍ */
.map-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid var(--primary-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  /* ESTO DETIENE EL PARPADEO: El tooltip es "fantasma" para el mouse */
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -150%);
  transition:
    opacity 0.2s ease,
    transform 0.1s ease-out;
  box-shadow: 0 10px 25px rgba(255, 94, 0, 0.3);
  z-index: 100;
  white-space: nowrap;
}

.map-tooltip.visible {
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    margin-bottom: 2rem;
  }

  .hero {
    padding-top: 9rem; /* Espacio extra para el header fixed */
    padding-bottom: 4rem;
    min-height: auto;
    justify-content: flex-start;
  }

  .hero-content,
  .footer-content,
  .coverage-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 2rem;
  }

  .hero-text {
    width: 100%;
    margin-bottom: 3rem;
  }

  .hero-text .tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .coverage-visual {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 2rem auto 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .map-container {
    width: 90% !important;
    max-width: 460px !important;
    margin: 0 auto !important;
  }

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

  .hero-buttons {
    justify-content: center;
  }

  .hero-benefits {
    justify-content: center;
  }

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

  .coverage-list {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 320px;
    margin: 1.5rem auto 0;
  }

  .coverage-list li {
    font-size: 1rem;
    gap: 0.75rem;
  }

  /* Arreglo: hero-visual debe tomar todo el ancho y no quedar chico en la columna */
  .hero-visual {
    max-width: 80%;
    margin-top: 2rem;
    flex: none;
  }

  .float-card {
    right: 0%;
    bottom: 5%;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    gap: 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-menu .nav-links a {
    font-size: 1.25rem;
  }

  .nav-menu .btn {
    margin-top: 3rem;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    white-space: nowrap;
  }

  /* Hamburger Animation */
  .hamburger.active .top-line {
    transform: translateY(5px) rotate(45deg);
  }
  .hamburger.active .mid-line {
    opacity: 0;
  }
  .hamburger.active .bot-line {
    transform: translateY(-5px) rotate(-45deg);
  }

  .logo img {
    width: 130px;
    height: auto;
    padding: 0;
  }

  .tagline {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: auto;
    justify-content: flex-start;
  }

  .hero-visual {
    max-width: 90%;
    margin-top: 1.5rem;
  }

  .hero-img-motorizado {
    max-width: 85%;
  }

  /* Ajuste del hero en móvil */
  .hero h1 {
    font-size: 2rem;
  }

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

  .hero-buttons .btn {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }

  .feature {
    padding: 2rem 1.5rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .service-card-content {
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal a {
    margin: 0 1rem;
  }

  .contact-info,
  .contact-form {
    padding: 1.5rem 1rem;
  }

  .contact-info p {
    flex-direction: column;
    gap: 5px;
    font-size: 1rem;
    word-break: break-word; /* Previene que el correo se desborde si o si */
  }

  .contact-info h3,
  .contact-form h3 {
    font-size: 1.5rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    padding: 1rem;
    font-size: 0.95rem;
  }

  /* Eliminados los overrides destructivos de .hero-card para mantener la tarjeta como un "badge" pequeño elegante en móvil también */
  .float-card {
    bottom: 0%;
    right: 0%;
    min-width: 60%;
    /* Ajuste a la pantalla pequeña */
  }
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366; /* WhatsApp Green */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 2000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 2;
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: white;
  color: #333;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  /* Pequeña cola de la burbuja */
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid white;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #20b358;
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #25d366;
  border-radius: 50%;
  z-index: -1;
  animation: waPulse 2s infinite;
}

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

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* --- PRELOADER --- */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  /* Máscara para el efecto de apertura desde el centro */
  -webkit-mask-image: radial-gradient(circle, transparent var(--mask-p, 0%), black var(--mask-p, 0%));
  mask-image: radial-gradient(circle, transparent var(--mask-p, 0%), black var(--mask-p, 0%));
}

.loader-visual {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
}

.loader-ring-outer {
  width: 260px;
  height: 260px;
  border-top-color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  filter: drop-shadow(0 0 15px rgba(255, 94, 0, 0.4));
}

.loader-ring-inner {
  width: 200px;
  height: 200px;
  border-left-color: #0ea5e9;
  border-right-color: #0ea5e9;
  filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.4));
}

.loader-center {
  position: relative;
  z-index: 10;
}

.loader-logo {
  height: clamp(90px, 14vw, 130px);
  width: auto;
  background: white;
  padding: 12px;
  border-radius: 15px;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* --- BUSCADOR RÁPIDO DE COBERTURA POR DISTRITO --- */
.district-search-wrapper {
  margin-top: 2rem;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.district-search-label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--light-color);
  margin-bottom: 0.8rem;
}

.district-search-box {
  display: flex;
  gap: 10px;
  position: relative;
}

.district-input-container,
.district-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.district-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 0.8rem 2.6rem 0.8rem 1.4rem;
  color: var(--light-color);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.district-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-glow);
}

.district-clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.district-clear-btn:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.btn-search-district {
  padding: 0.8rem 1.5rem;
  white-space: nowrap;
  font-size: 0.95rem;
}

.district-search-results {
  position: absolute;
  top: 100%;
  left: 1.5rem;
  right: 1.5rem;
  background: #0f172a;
  border: 1px solid var(--primary-color);
  border-radius: 12px;
  margin-top: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.district-search-item {
  padding: 10px 16px;
  color: var(--light-color);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.district-search-item:last-child {
  border-bottom: none;
}

.district-search-item:hover,
.district-search-item.active {
  background: var(--primary-color);
  color: #fff;
}

.district-status-badge {
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInBadge 0.3s ease forwards;
}

.district-status-badge.covered {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
}

.district-status-badge.not-covered {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
}

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

/* Efecto de resaltado de zonas en el Mapa SVG */

/* --- SECCIÓN FAQ (PREGUNTAS FRECUENTES) --- */
.faq-section {
  padding: 6rem 0;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.4) 0%, var(--dark-color) 100%);
  position: relative;
}

.faq-accordion {
  max-width: 850px;
  margin: 3rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 94, 0, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.faq-question {
  width: 100%;
  padding: 1.4rem 1.8rem;
  background: transparent;
  border: none;
  color: var(--light-color);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.4s ease;
  padding: 0 1.8rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.8rem 1.5rem 1.8rem;
}

.faq-answer p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-answer strong {
  color: var(--light-color);
}

/* ==========================================================================
   PÁGINAS LEGALES (TÉRMINOS Y CONDICIONES)
   ========================================================================== */
.legal-hero-section {
  padding: 140px 0 60px;
  background: radial-gradient(circle at 50% 20%, rgba(255, 94, 0, 0.12) 0%, transparent 60%);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-hero-section .tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: rgba(255, 94, 0, 0.15);
  border: 1px solid var(--primary-color);
  border-radius: 50px;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
}

.legal-hero-section h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--light-color);
  margin-bottom: 1rem;
}

.legal-hero-section p {
  color: var(--text-color);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

.legal-body-section {
  padding: 60px 0 100px;
  background: var(--bg-color);
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
  min-width: 0;
}

.legal-sidebar {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  min-width: 0;
}

.legal-sidebar nav {
  min-width: 0;
  width: 100%;
}

.legal-sidebar h4 {
  font-family: var(--font-heading);
  color: var(--light-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 94, 0, 0.3);
}

.legal-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.legal-sidebar-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  transition: var(--transition);
  display: block;
}

.legal-sidebar-nav a:hover,
.legal-sidebar-nav a.active {
  background: rgba(255, 94, 0, 0.15);
  color: var(--primary-color);
  padding-left: 1.1rem;
}

@media (min-width: 993px) {
  .legal-sidebar {
    position: sticky;
    position: -webkit-sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    z-index: 10;
  }
}

@media (max-width: 992px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-width: 0 !important;
  }

  .legal-sidebar {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 70px !important;
    z-index: 990 !important;
    background: rgba(2, 6, 23, 0.92) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    margin-bottom: 1.2rem;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .legal-sidebar nav {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .legal-sidebar h4 {
    display: none !important;
  }

  .legal-sidebar-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    padding: 0.3rem 0.2rem 0.6rem 0.2rem !important;
    cursor: grab;
  }

  .legal-sidebar-nav::-webkit-scrollbar {
    display: none !important;
  }

  .legal-sidebar-nav li {
    flex: 0 0 auto !important;
  }

  .legal-sidebar-nav a {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.25rem !important;
    text-align: center;
    background: var(--surface-color) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 50px !important;
    white-space: nowrap !important;
    color: var(--text-color) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
  }

  .legal-sidebar-nav a:hover,
  .legal-sidebar-nav a.active {
    padding-left: 1.25rem !important;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 6px 20px rgba(255, 94, 0, 0.45) !important;
  }
}

.legal-main-content {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 576px) {
  .legal-main-content {
    padding: 1.5rem;
  }
}

.legal-article {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  scroll-margin-top: 100px;
}

.legal-tab-pane {
  display: none;
}

.legal-tab-pane.active {
  display: block;
  animation: fadeInLegalTab 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.legal-article h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--light-color);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-article h2 span.number {
  color: var(--primary-color);
  font-weight: 800;
}

.sub-article {
  margin-top: 1.4rem;
  margin-bottom: 1rem;
}

.sub-article h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--light-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.legal-article p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-article ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-article li {
  color: var(--text-color);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.legal-article strong {
  color: var(--light-color);
}

.legal-alert-box {
  background: rgba(255, 94, 0, 0.08);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.legal-alert-box svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-alert-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-color);
}

/* --- MODAL DE ÉXITO (NETLIFY FORM) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem;
}

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

.modal-card {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-glow);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--light-color);
  transform: scale(1.1);
}

.modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
}

.modal-icon.error-state {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.modal-icon svg {
  width: 38px;
  height: 38px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--light-color);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.modal-message {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* --- WIDGET POPUP FLOTANTE DE WHATSAPP --- */
.wa-widget-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9990;
}

.wa-popup-box {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 2rem);
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.65), 0 0 25px rgba(37, 211, 102, 0.2);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.wa-popup-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-popup-header {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  padding: 1.3rem 1.4rem 1.1rem;
  position: relative;
  text-align: left;
}

.wa-popup-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.wa-popup-close-btn:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.wa-header-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
  padding-right: 1.5rem;
}

.wa-header-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-header-icon svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.wa-header-title-row h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.wa-popup-header p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
  margin: 0;
}

.wa-popup-body {
  padding: 1.1rem 1.2rem;
  background: var(--surface-color);
  text-align: left;
}

.wa-status-online {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  padding-left: 0.1rem;
}

.wa-online-dot {
  width: 8px;
  height: 8px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 0 10px #25D366;
  animation: onlinePulse 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes onlinePulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 14px #25D366; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.wa-advisor-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--dark-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #25D366;
  border-radius: 14px;
  padding: 1.1rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.wa-advisor-card:hover {
  background: rgba(2, 6, 23, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  border-left-color: #25D366;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 15px rgba(37, 211, 102, 0.15);
  transform: translateY(-2px);
}

.wa-advisor-top {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.wa-advisor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.3);
}

.wa-advisor-avatar svg {
  width: 26px;
  height: 26px;
}

.wa-advisor-info {
  flex: 1;
}

.wa-advisor-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--light-color);
  margin: 0 0 3px 0;
  line-height: 1.2;
}

.wa-advisor-info p {
  font-size: 0.85rem;
  color: var(--text-color);
  margin: 0;
  line-height: 1.3;
}

.wa-chat-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #1dbe57 100%);
  color: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.wa-advisor-card:hover .wa-chat-cta-btn {
  background: linear-gradient(135deg, #20b358 0%, #189b47 100%);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.wa-chat-cta-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.wa-advisor-card:hover .wa-chat-cta-btn svg {
  transform: translateX(4px);
}

.wa-advisor-chat-icon {
  color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.wa-advisor-card:hover .wa-advisor-chat-icon {
  transform: scale(1.15);
}

.wa-advisor-chat-icon svg {
  width: 22px;
  height: 22px;
}

.whatsapp-float {
  border: none;
  cursor: pointer;
  outline: none;
}

.wa-icon-close {
  display: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #ffffff;
}

.wa-widget-wrapper.active .wa-icon-whatsapp {
  display: none;
}

.wa-widget-wrapper.active .wa-icon-close {
  display: block;
}

.wa-widget-wrapper.active .whatsapp-tooltip {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 576px) {
  .wa-widget-wrapper {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .wa-popup-box {
    right: 0;
    width: calc(100vw - 3rem);
    bottom: 70px;
  }
}
