/* ==========================================================================
   GRUPO VILLANET - COMPONENTES Y NAVEGACIÓN (FLATMODERN DE ALTA GAMA)
   ========================================================================== */

/* 1. HEADER Y NAVEGACIÓN MULTIPÁGINA */
.header-site {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-site.scrolled {
  padding: 10px 0;
  background: rgba(11, 15, 25, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(124, 189, 0, 0.3);
}

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

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

.brand-logo img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(124, 189, 0, 0.3));
}

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

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--color-silver-mid);
  padding: 8px 12px;
  position: relative;
  transition: var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-green-primary), var(--color-orange-primary));
  transition: var(--transition-fast);
  transform: translateX(-50%);
  border-radius: 2px;
}

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

/* Submenús Dropdown para Atención al Cliente / Transparencia */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: var(--bg-dark-card);
  border: 1px solid rgba(124, 189, 0, 0.3);
  border-radius: 16px;
  padding: 12px;
  list-style: none;
  box-shadow: var(--shadow-3d);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transition: var(--transition-bounce);
  backdrop-filter: blur(20px);
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(8px) scale(1);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--color-silver-mid);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: var(--transition-fast);
}

.dropdown-link:hover {
  background: rgba(124, 189, 0, 0.15);
  color: var(--color-green-light);
  transform: translateX(5px);
}

/* Hamburger Menú para Móvil */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.8rem;
  cursor: pointer;
}

/* 2. HERO PRINCIPAL CON SLIDER & VELOCIDAD */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--bg-dark-deep);
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 0;
}

.hero-bg-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(to right, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.8) 40%, rgba(11, 15, 25, 0.4) 100%);
  pointer-events: none;
}

/* Canvas / Overlay de Partículas y Fibra Óptica */
.hero-fiber-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.hero-slider-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-title {
  margin: 20px 0;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 36px;
  max-width: 580px;
}

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

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

/* Velocímetro y Gráficos 3D en Hero Visual */
.hero-card-3d {
  width: 100%;
  max-width: 440px;
  background: rgba(20, 28, 46, 0.85);
  border: 1px solid rgba(124, 189, 0, 0.4);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-3d);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transition: var(--transition-smooth);
}

.hero-card-3d:hover {
  transform: perspective(1000px) rotateY(-8deg) rotateX(6deg) translateY(-6deg);
  border-color: var(--color-orange-primary);
  box-shadow: 0 30px 60px rgba(255, 121, 0, 0.3);
}

.hero-speed-display {
  text-align: center;
  padding: 20px 0;
}

.speed-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 4.5rem;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF, var(--color-green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.speed-unit {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-orange-primary);
}

/* Controls del Slider Hero */
.slider-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  width: 32px;
  border-radius: 12px;
  background: var(--color-green-primary);
}

/* 3. SECCIÓN 2: ICON CARDS (4 BENEFICIOS) */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.icon-card-3d {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.icon-card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-green-primary), var(--color-orange-primary));
  opacity: 0;
  transition: var(--transition-fast);
}

.icon-card-3d:hover {
  transform: translateY(-12px) perspective(800px) rotateX(4deg);
  border-color: rgba(124, 189, 0, 0.4);
  box-shadow: var(--shadow-3d);
}

.icon-card-3d:hover::before {
  opacity: 1;
}

.card-icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 189, 0, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(124, 189, 0, 0.3);
}

/* 4. SECCIÓN 3: PLANES DE INTERNET (DESTACADA CON NEÓN Y BOTONES 100PX) */
.plans-section {
  background: radial-gradient(ellipse at 50% 0%, #172642 0%, var(--bg-dark-deep) 70%);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.plan-card-3d {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-bounce);
  backdrop-filter: blur(10px);
}

.plan-card-3d.featured {
  border: 2px solid var(--color-green-primary);
  box-shadow: var(--shadow-green);
  background: linear-gradient(180deg, rgba(20, 28, 46, 0.95), rgba(124, 189, 0, 0.08));
}

.plan-card-3d:hover {
  transform: translateY(-14px) scale(1.02);
  border-color: var(--color-orange-primary);
  box-shadow: 0 25px 50px rgba(255, 121, 0, 0.3);
}

.plan-badge-top {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-orange-primary), var(--color-orange-dark));
  color: #FFFFFF;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  box-shadow: var(--shadow-orange);
  white-space: nowrap;
}

.plan-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-name {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.plan-speed {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--color-green-light);
  line-height: 1;
  margin: 14px 0;
}

.plan-price-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.plan-price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-orange-primary);
}

.plan-price-val {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: #FFFFFF;
}

.plan-features-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-silver-mid);
}

.plan-feature-item svg {
  width: 20px;
  height: 20px;
  fill: var(--color-green-primary);
  flex-shrink: 0;
}

/* 5. SECCIÓN 4: CTA BANNER CONVERSIÓN */
.cta-banner-box {
  background: linear-gradient(135deg, rgba(20, 28, 46, 0.9), rgba(124, 189, 0, 0.15));
  border: 1px solid rgba(124, 189, 0, 0.4);
  border-radius: 30px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-3d);
}

.cta-banner-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 121, 0, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* 6. SECCIÓN 5: RESEÑA EMPRESA (HISTORIA CERCANA) */
.history-preview-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background-image: 
    linear-gradient(135deg, rgba(20, 28, 46, 0.92), rgba(20, 28, 46, 0.75)),
    url('../assets/images/history_card_bg.jpg');
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-3d);
  overflow: hidden;
}

/* 7. SECCIÓN 6: NORMATIVA ECUADOR Y COBERTURA */
.normativa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.normativa-card {
  background: var(--bg-dark-card);
  border-left: 5px solid var(--color-orange-primary);
  border-radius: var(--radius-card);
  padding: 30px;
}

/* 8. SPEED TEST WIDGET (PÁGINA SPEEDTEST) */
.speedtest-wrapper {
  max-width: 600px;
  margin: 40px auto;
  background: var(--bg-dark-card);
  border: 1px solid rgba(124, 189, 0, 0.4);
  border-radius: 30px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-3d);
}

.gauge-meter {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}

.gauge-svg {
  width: 100%;
  height: 100%;
}

.gauge-needle {
  transform-origin: 130px 130px;
  transition: transform 0.2s ease-out;
}

/* 9. BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-float-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.whatsapp-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition-bounce);
  border: none;
  padding: 0;
  outline: none;
}

.whatsapp-btn svg {
  display: block;
  margin: 0;
  padding: 0;
}

.whatsapp-btn:hover {
  transform: scale(1.12) rotate(10deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-modal {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background: var(--bg-dark-card);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-3d);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-bounce);
}

.whatsapp-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  margin-top: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-light);
  font-size: 0.9rem;
}

.whatsapp-option-item:hover {
  background: rgba(37, 211, 102, 0.2);
  color: #25D366;
}

/* 10. POPUP TRATAMIENTO DE DATOS LOPDP ECUADOR */
.cookie-banner-lopdp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 460px;
  background: rgba(20, 28, 46, 0.95);
  border: 1px solid rgba(124, 189, 0, 0.4);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 1001;
  backdrop-filter: blur(16px);
  transform: translateY(150%);
  transition: var(--transition-smooth);
}

.cookie-banner-lopdp.show {
  transform: translateY(0);
}

/* 11. FOOTER GLOBAL */
.footer-site {
  background: #070A12;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 30px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

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

/* MEDIA QUERIES RESPONSIVAS */
@media (max-width: 992px) {
  .hero-grid, .history-preview-card, .normativa-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark-deep);
    flex-direction: column;
    padding: 100px 30px 40px;
    transition: var(--transition-smooth);
    border-left: 1px solid rgba(124, 189, 0, 0.3);
  }

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

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .whatsapp-float-container {
    bottom: 15px;
    right: 15px;
  }
  .whatsapp-btn {
    width: 55px;
    height: 55px;
  }
  .whatsapp-modal {
    width: calc(100vw - 30px);
    max-width: 300px;
    bottom: 70px;
  }
}
