/* =========================
   VARIABLES GLOBALES
========================= */
:root {
  --primary: #00c3ff;
  --secondary: #22c55e;
  --secondary-dark: #16a34a;
  --dark: #020617;
  --card: #0f172a;
  --border: #1e293b;
  --text-soft: #94a3b8;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
  animation: pageFade 0.6s ease;
}

/* =========================================
   FONDO GLOBAL TECNOLÓGICO
========================================= */
html,
body {
  min-height: 100%;
  background: linear-gradient(180deg, #000000 0%, #01040d 50%, #000000 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

section {
  position: relative;

  padding: 72px 40px;
}

header,
section,
footer,
.mobile-menu {
  position: relative;
  z-index: 2;
}

.chat-container {
  position: fixed;
  z-index: 99998;
}

.chatbot-box {
  z-index: 99999;
}

/* DIVISOR SUAVE ENTRE SECCIONES */

section::after {
  display: none;
}
/* =========================
   NAVBAR
========================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: none;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.logo svg {
  width: 40px;
}

.logo span {
  color: #ffffff;
  font-weight: 700;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6);
}

nav a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  margin-left: 20px;
  transition: 0.3s;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6);
}

nav a:hover {
  color: var(--secondary);
}

/* =========================
   HERO
========================= */
.hero {
  height: 100vh;
  background: transparent !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: none;
}

.hero::after {
  content: none;
}

.hero h2 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -1px;
}

.hero span {
  color: var(--secondary);
}

/* =========================================================
   SERVICIOS
========================================================= */
.section-servicios {
  padding: 72px 20px;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.titulo-seccion {
  font-size: 32px;
  margin-bottom: 10px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.subtitulo {
  color: var(--text-soft);
  margin-bottom: 50px;
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.8;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card-servicio {
  isolation: isolate;
  background: linear-gradient(145deg, #0f172a, #020617);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 20px;

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;

  backdrop-filter: blur(10px);
}

.card-servicio::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(34, 197, 94, 0.35);
  opacity: 0;
  transition: 0.35s;
  pointer-events: none;
}

/* HOVER */
.card-servicio:hover {
  transform: translateY(-6px) scale(1.015) !important;
  background: rgba(34, 197, 94, 0.04) !important;
  border-color: rgba(34, 197, 94, 0.22) !important;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.08) !important;
  z-index: 999 !important;
}

.card-servicio:hover::before {
  opacity: 1;
}

/* ICONO */
.icono {
  font-size: 42px;
  color: #22c55e;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.16));

  transition:
    transform 0.3s ease,
    color 0.3s ease,
    filter 0.3s ease;

  animation: iconFloat 4s ease-in-out infinite;
}

.card-servicio:hover .icono {
  transform: translateY(-4px) scale(1.18) rotate(-2deg);
  color: #4ade80;
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.5));
}

/* TITULO */
.card-servicio h3 {
  margin-bottom: 10px;
  transition: 0.3s;
}

.card-servicio:hover h3 {
  color: #4ade80;
}

/* TEXTO */
.card-servicio p {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 20px;
}

.card-servicio:hover .btn-servicio {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

/* =========================================
   SECTION INFO
========================================= */

.section-info {
  text-align: center;
  max-width: 1000px;
  margin: auto;
  padding-bottom: 200px;
}

.info-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.info-badge {
  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.18);
  color: #4ade80;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  backdrop-filter: blur(12px);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;

  cursor: default;
}

/* HOVER */

.info-badge:hover {
  transform: translateY(-3px) scale(1.04);
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.18);
}

.section-info h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 800px;
}

.section-info p {
  max-width: 720px;
  color: #94a3b8;
  line-height: 1.8;
  font-size: 1.05rem;
}

.info-features {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.info-pill {
  position: relative;
  overflow: hidden;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;

  cursor: default;
  backdrop-filter: blur(10px);
}

.info-pill:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.1);
}

.info-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );

  transition: left 0.6s ease;
}

.info-pill:hover::before {
  left: 120%;
}

.info-features:hover .info-pill {
  opacity: 0.55;
  transform: scale(0.98);
}

.info-features .info-pill:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.03);
  z-index: 10;
}

.info-pill i {
  color: #4ade80;
  margin-right: 8px;

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.info-pill:hover i {
  transform: scale(1.18);
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.25));
}

/* =========================================
   STATS PREMIUM
========================================= */

.section-stats {
  padding: 200px 20px;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* CARD */

.stat-card {
  position: relative;
  overflow: hidden;
  width: 280px;
  padding: 38px 24px;
  border-radius: 22px;

  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.92),
    rgba(2, 6, 23, 0.96)
  );

  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* ICONOS */

.stat-card i {
  font-size: 48px;
  color: #22c55e;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.18));

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

/* NUMEROS */

.stat-card h3 {
  font-size: 3rem;
  color: #4ade80;
  margin-bottom: 10px;
  font-weight: 800;
}

/* TEXTO */

.stat-card p {
  color: #cbd5e1;
  font-size: 15px;
}

/* HOVER */

.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: rgba(34, 197, 94, 0.22);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.1);
}

/* ICON HOVER */

.stat-card:hover i {
  transform: scale(1.08);
  filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.25));
}

/* SHINE */

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 58%
  );

  transform: translateX(-140%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.stat-card:hover::after {
  transform: translateX(140%);
}

/* GROUP EFFECT */

.stats-grid:has(.stat-card:hover) .stat-card:not(:hover) {
  opacity: 0.45;
  transform: scale(0.97);
}

/* =========================================================
   PLANES
========================================================= */
.section-planes {
  padding: 100px 0px;
  text-align: center;
}

.grid-planes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card-plan {
  isolation: isolate;
  background: linear-gradient(145deg, #0f172a, #020617);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 55px 20px 30px;

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;

  backdrop-filter: blur(10px);
}

/* =====================================================
   CLEAN PREMIUM SHINE
===================================================== */
/* HOVER */
.card-plan:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.08) !important;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.08);
}

.card-plan:hover::before {
  opacity: 1;
}

.card-plan:hover h4 {
  font-size: 20px;
  color: #4ade80;
}

/* DESTACADO */
.card-plan.destacado {
  border: 2px solid var(--secondary);
  padding-top: 55px;
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.1);
  animation: pulse 2s infinite;
}

.card-plan.destacado:hover {
  animation: stop;
  transform: scale(1);
  background: rgba(34, 197, 94, 0.08) !important;

  box-shadow:
    0 0 20px rgba(34, 197, 94, 0.45),
    0 0 38px rgba(34, 197, 94, 0.16);
}

/* BADGE DESTACADO*/
.badge-destacado {
  position: absolute;
  top: 4px;
  right: 6px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  transform: translateY(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  z-index: 20;
  animation: pulse 2s infinite;
}

/* BADGE PAQUETES*/
.badge-normal {
  position: absolute;
  top: 6px;
  right: 14px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  z-index: 20;
  animation: pulse 2s infinite;
}

/* FUEGO */
.fire {
  display: inline-block;
  transform-origin: center bottom;
  filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.7));
  animation: fireMove 0.9s infinite ease-in-out;
}

@keyframes fireMove {
  0% {
    transform: rotate(-8deg) scale(1);
  }

  25% {
    transform: rotate(6deg) scale(1.08);
  }

  50% {
    transform: rotate(-4deg) scale(0.96);
  }

  75% {
    transform: rotate(5deg) scale(1.05);
  }

  100% {
    transform: rotate(-8deg) scale(1);
  }
}

/* VELOCIDAD */
.card-plan h3,
h4 {
  margin-bottom: 12px;
  transition: 0.3s;
}

/* PRECIO */
.precio {
  font-size: 28px;
  font-weight: 700;
  margin: 15px 0;

  transition: 0.3s;
}

.precio span {
  font-size: 14px;
  color: var(--text-soft);
}

.card-plan:hover .precio {
  transform: scale(1.1);
  font-size: 28px;
  color: #f5a733;
  transition: 0.3s;
}

.card-plan:hover .btn-plan {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

/* =========================
   COBERTURA
========================= */
.section-cobertura {
  padding: 72px 20px;
  text-align: center;
}

.contenido-cobertura {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.cobertura-box {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.cobertura-box p {
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   LISTA INTERACTIVA COBERTURA
========================================= */
.lista-cobertura li {
  color: #cbd5e1;
  cursor: pointer;

  transition:
    color 0.25s ease,
    transform 0.25s ease,
    text-shadow 0.25s ease;

  margin-bottom: 4px;
  line-height: 1.35;
}

/* HOVER */

.lista-cobertura li:hover {
  color: #4ade80;
  transform: translateX(4px);
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.18);
}

/* SECTORES PRINCIPALES */

.lista-cobertura li[data-sector="Navojoa"],
.lista-cobertura li[data-sector="Nachuquis"],
.lista-cobertura li[data-sector="Comisaria Rosales"],
.lista-cobertura li[data-sector="Tesia"],
.lista-cobertura li[data-sector="Tierra Blanca Tesia"],
.lista-cobertura li[data-sector="Jijiri Tesia"],
.lista-cobertura li[data-sector="Mezquital Tesia"],
.lista-cobertura li[data-sector="Sibacobe Tesia"],
.lista-cobertura li[data-sector="Chibucu"],
.lista-cobertura li[data-sector="Capohuiza"],
.lista-cobertura li[data-sector="Rancho del Padre"],
.lista-cobertura li[data-sector="Aquisahuali"],
.lista-cobertura li[data-sector="Rancho Camargo"],
.lista-cobertura li[data-sector="Siviral"],
.lista-cobertura li[data-sector="Aquichopos"],
.lista-cobertura li[data-sector="Punta de la Laguna"],
.lista-cobertura li[data-sector="El Jopo"],
.lista-cobertura li[data-sector="Buiyacusi"],
.lista-cobertura li[data-sector="Mezquital de Buiyacusi"],
.lista-cobertura li[data-sector="Laguna de Tesia"],
.lista-cobertura li[data-sector="Los Limones Tesia"],
.lista-cobertura li[data-sector="Las Pilas Tesia"],
.lista-cobertura li[data-sector="El Recodo"],
.lista-cobertura li[data-sector="Bemelabampo"],
.lista-cobertura li[data-sector="Chihuahuita"],
.lista-cobertura li[data-sector="El Dátil"],
.lista-cobertura li[data-sector="Tecoripa"],
.lista-cobertura li[data-sector="Huatabampo"] {
  font-weight: 700;
}

/* =========================
   TABS
========================= */
.tabs {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
}

.tab {
  padding: 10px 22px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.2);
  color: #ffffff;
}

.tab.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* =========================
   MAPA
========================= */
.mapa-real {
  display: flex;
  justify-content: center;
  align-items: center;
}

#mapaLeaflet {
  width: 100%;
  height: 400px;
  min-height: 300px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.map-svg {
  width: 100%;
  max-width: 500px;
}

/* =========================
   MAPA SVG (LEGACY)
========================= */
.mexico {
  fill: #1e293b;
  stroke: #334155;
}

.estado {
  opacity: 0.7;
  transition: 0.3s;
}

.estado.sonora {
  fill: #3b82f6;
}

.estado.sinaloa {
  fill: #22c55e;
}

.estado:hover {
  opacity: 1;
  cursor: pointer;
  filter: brightness(1.3);
}

/* =========================
   INFO COBERTURA
========================= */
.info-cobertura {
  width: 100%;
  max-width: 620px;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px 35px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: left;
}

/* TITULO */
.info-cobertura h3 {
  font-size: 26px;
  margin-bottom: 18px;
  text-align: left;
  color: #ffffff;
}

/* LISTA */
.info-cobertura ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 35px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ITEMS */
.info-cobertura li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  line-height: 1.6;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

/* PUNTO */
.info-cobertura li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #94a3b8;
}

.info-cobertura li:hover {
  color: #4ade80;
  transform: translateX(4px);
}

/* =========================
   FORMULARIO
========================= */
#contacto {
  padding: 80px 20px;
  text-align: center;
}

.titulo-contacto {
  font-size: 32px;
  margin-bottom: 40px;
}

.form-wrapper {
  display: flex;
  justify-content: center;
}

.form-card {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.92),
    rgba(2, 6, 23, 0.95)
  );
  overflow: hidden;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 30px;
  border-radius: 20px;
  box-shadow:
    0 0 35px rgba(34, 197, 94, 0.08),
    0 0 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: 0.3s;
}

.form-card.active {
  box-shadow: 0 0 25px var(--secondary);
  transform: scale(1.03);
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  color: #111827;
  font-size: 15px;
  outline: none;
  transition: 0.25s ease;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: #6b7280;
}

.form-card input:focus,
.form-card textarea:focus {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.12);
  background: #fff;
}

.form-card textarea {
  min-height: 120px;
  resize: none;
  line-height: 1.7;
}

.input-error {
  border-color: rgba(239, 68, 68, 0.75) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
  animation: shake 0.3s;
}

/* =========================
   CHAT FLOTANTE
========================= */
.chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.btn-chat {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.45);
  transition: 0.3s;
  animation: pulse 2s infinite;
}

.btn-chat:hover {
  transform: scale(1.1);
}

.chat-bubble {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.35);
}

.chat-bubble.mostrar {
  opacity: 1;
  visibility: visible;
}

.chat-container:hover .chat-bubble {
  opacity: 1;
  visibility: visible;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 20px;
  background: #000;
}

/* =========================
   BOTONES FACTORIZADOS
========================= */

/* BASE COMPARTIDA */

.btn,
.btn-hero,
.btn-plan,
.btn-servicio,
.btn-enviar,
.btn-form {
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* HERO */

.btn,
.btn-hero {
  margin-top: 20px;
  padding: 14px 30px;
  transition: 0.3s;
}

.btn:hover,
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(34, 197, 94, 0.5);
}

/* PLANES / SERVICIOS */

.btn-plan,
.btn-servicio {
  width: 100%;
  padding: 12px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-plan:hover,
.btn-servicio:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
}

/* FORMULARIO */

.btn-enviar,
.btn-form {
  width: 100%;
  padding: 14px;
  margin-top: 15px;
  font-size: 15px;
  transition: 0.25s;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-enviar:hover,
.btn-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.btn-enviar:active {
  transform: scale(0.98);
}

.btn-enviar:disabled {
  background: #555;
  cursor: not-allowed;
  box-shadow: none;
}

/* ==========================
SHINE FACTORIZADO
NO MODIFICA NADA
========================== */

.card-servicio::after,
.card-plan::after,
.beneficio::after,
.req-card::after,
.instalacion-box::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    115deg,
    transparent 50%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 68%
  );

  transform: translateX(-140%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

/* ACTIVACIÓN SHINE */

.card-servicio:hover::after,
.card-plan:hover::after,
.beneficio:hover::after,
.req-card:hover::after,
.instalacion-box:hover::after {
  transform: translateX(140%);
}

/* ==========================
BASE COMPARTIDA DE TARJETAS
SOLO REPETICIÓN ELIMINADA
========================== */

.card-servicio,
.card-plan,
.req-card,
.beneficio {
  position: relative;
  overflow: hidden;
}

/* ==========================
TRANSICIONES REPETIDAS
NO CAMBIA NADA
========================== */

.card-servicio,
.card-plan {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ==========================
TAP HIGHLIGHT GLOBAL
========================== */

button,
.card-plan,
.card-servicio {
  -webkit-tap-highlight-color: transparent;
}

/* ==========================
SCROLLBAR
========================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#22c55e, #16a34a);
  border-radius: 999px;
}

/* ==========================
HOVER DE BOTONES DENTRO DE TARJETAS
========================== */

.card-servicio:hover .btn-servicio,
.card-plan:hover .btn-plan {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

/* ==========================
ICONOS ACTIVOS
========================== */

.card-plan.mobile-active i,
.card-servicio.mobile-active i {
  transform: scale(1.05);
  color: #4ade80;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.3));
}

/* ==========================
MOBILE FACTORIZADO
NO MODIFICA NADA
========================== */

@media (max-width: 768px) {
  /* GRID */

  .grid-servicios,
  .grid-planes {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* CARDS */

  .card-servicio,
  .card-plan {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* BOTONES */

  .btn-plan,
  .btn-servicio,
  .btn-enviar {
    min-height: 52px;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
  }

  /* TITULOS */

  .titulo-seccion,
  .hero h1 {
    font-size: 34px;
    line-height: 1.1;
  }

  /* CHAT */

  .btn-chat {
    width: 62px;
    height: 62px;
    font-size: 24px;
  }

  /* INFO COBERTURA */

  .info-cobertura {
    padding: 20px;
  }

  .info-cobertura ul {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  /* ESPACIADOS */

  .section-servicios,
  .section-planes,
  .section-cobertura,
  #contacto {
    padding: 70px 18px;
  }
}

/* ==========================
TOUCH EFFECT GLOBAL
========================== */

.touch-active {
  transform: scale(0.97) !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.35) !important;
}

button:active,
li:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* ==========================
FLEX COMPARTIDOS
SOLO FACTORIZACIÓN
========================== */

.logo,
.info-content,
.chat-input-area,
.intti-icon,
.intti-emoji {
  display: flex;
}

/* CENTRADOS COMPARTIDOS */

.logo,
.icono,
.intti-icon,
.intti-emoji,
.btn-chat {
  align-items: center;
  justify-content: center;
}

/* ==========================
CHAT SCROLL
========================== */
.chat-messages {
  flex: 1;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #22c55e transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 999px;
}

/* ==========================
MENSAJES CHAT MEJORADOS
========================== */

.bot-msg,
.user-msg {
  max-width: 88%;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: 0.2px;
  word-break: break-word;
  animation: pageFade 0.25s ease;
}

/* BOT */
.bot-msg {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* USUARIO */
.user-msg {
  margin-left: auto;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.2);
}

/* LINKS */

.bot-msg a {
  color: #4ade80;
  text-decoration: none;
}

.bot-msg a:hover {
  text-decoration: underline;
}

/* ==========================
MENSAJE INICIAL CHAT
========================== */
.bot-welcome {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 14px;
  padding: 4px;
}

.bot-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
}

.bot-subtitle {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
}

.bot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bot-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: #f1f5f9;

  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.bot-list li:hover {
  transform: translateX(5px);
  color: #4ade80;
}
/* ==========================
POSICIONES ABSOLUTAS
========================== */

.chat-bubble,
.chatbot-box {
  z-index: 99999;
}

/* =========================
   ANIMACIONES
========================= */
@keyframes heroGlow {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }

  100% {
    opacity: 0.45;
    transform: scale(1);
  }
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes iconFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .contenido-cobertura {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 72px 20px;
  }

  header {
    padding: 15px 20px;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .tabs {
    flex-direction: column;
  }

  .info-cobertura ul {
    columns: 1;
  }

  .form-card {
    width: 95%;
    padding: 20px;
  }

  .btn-chat {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }

  .chat-bubble {
    right: 65px;
    font-size: 13px;
  }
}

.beneficios-internet {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 1px;
}

.beneficio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.92),
    rgba(2, 6, 23, 0.96)
  );

  border: 1px solid rgba(34, 197, 94, 0.12);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.06);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease;
}

/* HOVER */

.beneficio:hover {
  transform: translateY(-4px) scale(1.02);

  border-color: rgba(34, 197, 94, 0.22);

  background: rgba(34, 197, 94, 0.04) !important;

  box-shadow: 0 0 18px rgba(34, 197, 94, 0.1);
}

/* ACTIVE GROUP */
.beneficios-internet:has(.beneficio:hover) .beneficio:not(:hover) {
  opacity: 0.45;
  transform: scale(0.97);
}

.descripcion-plan {
  list-style: none;
  padding: 0;
  margin: 18px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 90px;
  width: 100%;
}

.descripcion-plan li {
  font-size: 0.95rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  margin: 0 auto;
  line-height: 1.4;
}

.requisitos {
  padding: 0px 20px;
  text-align: center;
}

.requisitos-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;

  margin-top: 40px;
}

.req-card {
  padding: 20px 30px;
  border-radius: 16px;

  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.92),
    rgba(2, 6, 23, 0.96)
  );

  border: 1px solid rgba(34, 197, 94, 0.12);
  color: #fff;
  font-weight: 600;

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease;
}

/* HOVER */

.req-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.04) !important;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.1);
}

/* ACTIVE GROUP */

.requisitos-grid:has(.req-card:hover) .req-card:not(:hover) {
  opacity: 0.45;
  transform: scale(0.97);
}

.instalacion-box {
  margin: 40px auto;
  width: fit-content;
  padding: 18px 28px;
  border-radius: 18px;
  background: rgba(4, 12, 30, 0.55);

  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.02),
    0 0 12px rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #fff;
  font-size: 20px;
  transition: 0.3s;
}

.instalacion-box {
  position: relative;
  overflow: hidden;
}

.instalacion-box:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.08) !important;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.1);
}

.instalacion-box > * {
  position: relative;
  z-index: 1;
}

.instalacion-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.01);
  pointer-events: none;
  z-index: 0;
}

.instalacion-box strong {
  color: #22c55e;
}

/* =========================================================
   MOBILE INTERACTIVE PRO
========================================================= */

@media (max-width: 768px) {
  /* =====================
     CARDS MOBILE
  ===================== */

  .card-servicio,
  .card-plan {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;

    transition:
      transform 0.28s ease,
      box-shadow 0.28s ease,
      border-color 0.28s ease,
      background 0.28s ease;
  }

  /* TOUCH EFFECT */
  .card-servicio:active,
  .card-plan:active {
    transform: scale(0.97);
    border-color: #22c55e;
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.35);
  }

  /* =====================
     BOTONES
  ===================== */

  .btn-plan,
  .btn-servicio,
  .btn-enviar {
    min-height: 52px;
    font-size: 16px;

    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;

    -webkit-tap-highlight-color: transparent;
  }

  .btn-plan:active,
  .btn-servicio:active,
  .btn-enviar:active {
    transform: scale(0.96);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.4);
  }

  /* =====================
     MAPA
  ===================== */

  #map {
    height: 320px;
    border-radius: 18px;
  }

  /* =====================
     TITULOS
  ===================== */

  .titulo-seccion,
  .hero h1 {
    font-size: 34px;
    line-height: 1.1;
  }

  /* =====================
     ESPACIADOS
  ===================== */

  .section-servicios,
  .section-planes,
  .section-cobertura,
  #contacto {
    padding: 70px 18px;
  }

  /* =====================
     GRID MOBILE
  ===================== */

  .grid-servicios,
  .grid-planes {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* =====================
     BADGES
  ===================== */

  .badge-normal,
  .badge-destacado {
    transform: scale(0.92);
  }

  /* =====================
     CHAT FLOAT
  ===================== */

  .btn-chat {
    width: 62px;
    height: 62px;
    font-size: 24px;
  }
}

/* =========================================================
   TOUCH EFFECT GLOBAL
========================================================= */

.touch-active {
  transform: scale(0.97) !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.35) !important;
}

/* =========================================================
   MOBILE SCROLL INTERACTIVE
========================================================= */

@media (max-width: 768px) {
  .card-plan,
  .card-servicio {
    opacity: 0;
    transform: translateY(35px) scale(0.98);

    transition:
      transform 0.55s ease,
      opacity 0.55s ease,
      box-shadow 0.45s ease,
      border-color 0.45s ease,
      background 0.45s ease;
  }

  /* CARD ACTIVA */
  .card-visible {
    opacity: 1;
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(34, 197, 94, 0.95);

    box-shadow:
      0 0 22px rgba(34, 197, 94, 0.35),
      0 0 38px rgba(34, 197, 94, 0.16);

    background: linear-gradient(145deg, #132646, #020617);
    z-index: 50;
  }

  /* ICONOS */
  .card-visible .icono {
    transform: scale(1.12);
    color: #4ade80;
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.55));
  }

  /* BOTONES */
  .card-visible .btn-plan,
  .card-visible .btn-servicio {
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
  }
}

/* =========================================================
   HOVER DESKTOP
========================================================= */

@media (min-width: 769px) {
  /* =====================================================
   ACTIVE PLAN EFFECT
===================================================== */

  .grid-planes:hover .card-plan {
    opacity: 0.72;
    transform: scale(0.98);

    transition:
      opacity 0.35s ease,
      transform 0.35s ease;
  }

  /* CARD ACTIVA */

  .grid-planes .card-plan:hover {
    opacity: 1 !important;
    transform: translateY(-10px) scale(1.03) !important;
    z-index: 20;
  }

  /* DESTACADO SE APAGA AL HOVER */

  .grid-planes:hover .card-plan.destacado {
    opacity: 0.65;
    transform: scale(0.99);
    animation: none;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.08);
  }

  .card-plan:hover,
  .card-servicio:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(34, 197, 94, 0.22);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.08);
    background: rgba(34, 197, 94, 0.04);
  }

  /* =====================================================
   ACTIVE SERVICE EFFECT
===================================================== */

  /* SOLO SI UNA CARD ESTA HOVER */

  .grid-servicios:has(.card-servicio:hover) .card-servicio:not(:hover) {
    opacity: 0.78;
    transform: scale(0.985);
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      box-shadow 0.35s ease;
  }

  /* CARD ACTIVA */

  .grid-servicios .card-servicio:hover {
    opacity: 1 !important;
    transform: translateY(-10px) scale(1.02) !important;
    z-index: 20;
  }
}

/* =======================
MENU MOBILE
======================= */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #020617;
    transition: 0.4s;
    z-index: 999;
  }

  nav.active {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  nav a {
    font-size: 18px;
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  #mapaLeaflet {
    height: 260px;
    border-radius: 18px;
  }
}

@media (hover: none) {
  .card-plan:hover,
  .card-servicio:hover,
  .req-card:hover,
  .stat-card:hover,
  .beneficio:hover {
    transform: none;
    box-shadow: none;
  }
}

button:active,
li:active {
  transform: scale(0.96);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .info-cobertura ul {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .info-cobertura {
    padding: 20px;
  }
}

/* ==========================
MOBILE SPOTLIGHT
========================== */

@media (max-width: 768px) {
  /* SOLO PLANES Y SERVICIOS */

  .card-plan,
  .card-servicio {
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      border-color 0.25s ease,
      box-shadow 0.25s ease,
      filter 0.25s ease;

    will-change: transform, opacity;
  }

  /* ======================
CARDS APAGADAS
====================== */

  .card-plan.mobile-inactive,
  .card-servicio.mobile-inactive {
    opacity: 0.35;
    transform: scale(0.97);
    filter: brightness(0.65);
    box-shadow: none !important;
  }

  /* ======================
CARD ACTIVA
====================== */

  .card-plan.mobile-active,
  .card-servicio.mobile-active {
    opacity: 1 !important;
    transform: translateY(-4px) scale(1);
    filter: none;
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.1);
    z-index: 5;
  }

  /* ======================
ICONOS ACTIVOS
====================== */

  .card-plan.mobile-active i,
  .card-servicio.mobile-active i {
    transform: scale(1.05);
    color: #4ade80;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.3));
  }

  /* ======================
SHINE
====================== */

  .card-plan.mobile-active::after,
  .card-servicio.mobile-active::after {
    opacity: 0.45;
    transform: translateX(100%);
  }

  /* ======================
DETENER ANIMACIONES PESADAS
====================== */
  .card-plan,
  .card-servicio,
  .badge {
    animation: none !important;
    backdrop-filter: none !important;
  }
}

section,
main,
.hero {
  background: transparent !important;
}

/* UNIFICAR TODO EL SITIO */

.hero,
.section-info,
.section-servicios,
.section-planes,
.section-cobertura,
.section-stats,
#contacto,
footer {
  background: transparent !important;
}

/* ==========================
CARDS GLASS TRANSPARENTES
========================== */

.card-servicio,
.info-badge,
.info-pill,
.card-plan,
.stat-card,
.req-card,
.trust-card,
.beneficio,
.form-card {
  background: rgba(4, 12, 30, 0.1) !important;

  /* EFECTO CRISTAL */
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(100px);

  /* BORDE SUAVE */
  border: 1px solid rgba(255, 255, 255, 0.08);

  /* SOMBRA SUTIL */
  box-shadow:
    inset 0 0 15px rgba(255, 255, 255, 0.02),
    0 0 12px rgba(34, 197, 94, 0.04);
}

.chatbot-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 500px;
  min-height: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 99999;
  border: 1px solid rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.15);
}

.chat-header {
  padding: 15px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.chat-input-area {
  padding: 10px;
  gap: 10px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.04);
  outline: none;
}

.intti-emoji {
  font-size: 38px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: radial-gradient(circle, #0f172a, #020617);
  border: 2px solid #22c55e;

  box-shadow:
    0 0 15px rgba(34, 197, 94, 0.45),
    0 0 25px rgba(0, 195, 255, 0.25);

  animation: inttiPulse 2s infinite;
}

@keyframes inttiPulse {
  50% {
    transform: scale(1.08);
  }
}

/* ==========================
INTTI BOT FINAL
========================== */

.btn-chat {
  width: 68px !important;
  height: 68px !important;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle, #111827, #020617) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid rgba(34, 197, 94, 0.9);

  box-shadow:
    0 0 10px rgba(34, 197, 94, 0.55),
    0 0 25px rgba(34, 197, 94, 0.25);

  animation: inttiGlow 2s infinite;
  transition: transform 0.35s ease;
}

/* ICONO */

.intti-icon {
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 5px rgba(0, 195, 255, 0.7));
}

/* HOVER */

.btn-chat:hover {
  transform: scale(1.1);
}

/* GLOW */

@keyframes inttiGlow {
  0% {
    box-shadow:
      0 0 8px rgba(34, 197, 94, 0.4),
      0 0 18px rgba(34, 197, 94, 0.2);
  }

  50% {
    box-shadow:
      0 0 18px rgba(34, 197, 94, 0.9),
      0 0 35px rgba(34, 197, 94, 0.45);
  }

  100% {
    box-shadow:
      0 0 8px rgba(34, 197, 94, 0.4),
      0 0 18px rgba(34, 197, 94, 0.2);
  }
}

/* ==========================
CHAT RESPONSIVE MÓVIL
========================== */
@media (max-width: 768px) {
  .chatbot-box {
    width: calc(100vw - 24px);
    max-width: 370px;
    height: 70vh;
    max-height: 600px;
    right: 12px;
    bottom: 95px;
    border-radius: 22px;
  }

  .chat-messages {
    padding: 14px;
  }

  .chat-input-area {
    padding: 10px;
    gap: 8px;
    flex-shrink: 0;
  }

  .chat-input-area input {
    min-width: 0;
  }

  .chat-input-area button {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .bot-msg,
  .user-msg {
    max-width: 92%;
    font-size: 13px;
    padding: 10px 12px;
  }
}

/* ==========================
BOTON WHATSAPP CHAT
========================== */
.chat-wa-btn {
  margin-top: 12px;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: #25d366;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.chat-wa-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ==========================
TRUST PILLS ESTILO TARJETA
========================== */
.trust-pills {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 1px;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.92),
    rgba(2, 6, 23, 0.96)
  );

  border: 1px solid rgba(34, 197, 94, 0.12);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.06);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease;
}

/* HOVER */

.trust-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.04) !important;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.1);
}

/* ACTIVE GROUP */
.trust-pills:has(.trust-card:hover) .trust-card:not(:hover) {
  opacity: 0.45;
  transform: scale(0.97);
}

.response-time {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 12px;
  text-align: center;
}

/* ==========================
OPCIONES RAPIDAS CHAT
========================== */
.quick-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.quick-options button {
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.plan-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 16px;
  padding: 16px;
  margin-top: 10px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 15px rgba(34, 197, 94, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.plan-price {
  font-size: 28px;
  font-weight: 700;
  color: #4ade80;
}

.plan-btn {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 10px;
  background: #22c55e;
  color: white;
  cursor: pointer;
}

.quick-options button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.plan-title {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
}

.plan-speed {
  font-size: 28px;
  font-weight: 700;
  color: #4ade80;
  margin: 6px 0;
}

.plan-list {
  margin: 0;
  padding-left: 18px;
}

.plan-list li {
  margin-bottom: 6px;
  color: #e2e8f0;
}

.plan-price {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 700;
  color: #4ade80;
}

/* ==========================
PROGRESS BAR
========================== */
#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: #22c55e;
  z-index: 99999;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  transition: width 0.15s linear;
}

/* ==========================
CHAT STATUS
========================== */

.chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

/* ==========================
HORA MENSAJES
========================== */
.msg-time {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  opacity: 0.6;
  text-align: right;
}

/* ==========================
TYPING
========================== */
.typing-msg {
  opacity: 0.7;
  font-style: italic;
  animation: typingFade 1s infinite;
}

@keyframes typingFade {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

/* ==========================
ACCIONES HEADER CHAT
========================== */
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 24px;
}

.chat-reset {
  cursor: pointer;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.chat-reset:hover {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* ==========================
TOOLTIP CHAT
========================== */
.chat-tooltip-container {
  position: relative;
  display: flex;
  align-items: center;
}

.chat-tooltip {
  position: absolute;
  top: 38px;
  right: 0;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: nowrap;
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;

  z-index: 999999;
}

.chat-tooltip-container:hover .chat-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================
INTTECSA STARS PREMIUM
========================== */
#stars-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ==========================
ESTRELLAS PREMIUM INTTECSA
========================== */
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #00c3ff;
  color: #00c3ff;
  border-radius: 50%;
  opacity: 1;
  box-shadow: 0 0 1px rgba(0, 195, 255, 0.9);
  animation-name: twinkle, starFloat;
  animation-timing-function: ease-in-out, linear;
  animation-iteration-count: infinite, infinite;
  will-change: opacity, transform;
}

.star-green {
  background: #22c55e;
  box-shadow: 0 0 1px rgba(34, 197, 94, 0.9);
}

.star-big {
  width: 5px;
  height: 5px;
  opacity: 1;
  box-shadow: 0 0 2px currentColor;
}

.star,
.star-big,
.star-green {
  filter: none;
  image-rendering: pixelated;
}

@keyframes twinkle {
  0% {
    opacity: 0.25;
  }

  25% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }

  75% {
    opacity: 0.55;
  }

  100% {
    opacity: 0.25;
  }
}

@keyframes starFloat {
  from {
    transform: translate3d(0, -120px, 0);
  }

  to {
    transform: translate3d(12px, 110vh, 0);
  }
}
