/*
 * Taxi Sol - San Luis Potosí
 * Estilos con modo claro/oscuro, mega menú, sección equípate y chatbot mejorado
 */

:root {
  --primary: #2d7f4e;
  --primaryLine: rgba(45, 127, 78, 0.45);
  --bg: #000000;
  --alt: #0f141c;
  --card: #121a26;
  --text: #ffffff;
  --muted: #f2f2f2;
  --line: rgba(255,255,255,0.12);
}

:root[data-theme="light"] {
  --primary: #2d7f4e;
  --primaryLine: rgba(45, 127, 78, 0.35);
  --bg: #ffffff;
  --alt: #f2fff5;
  --card: #ffffff;
  --text: #000000;
  --muted: #2d7f4e;
  --line: rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 900; letter-spacing: 0.2px; }
.brand-city {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ===== Hamburger Icon ===== */
.nav-toggle {
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover {
  background: rgba(45,127,78,0.15);
  border-color: var(--primary);
}
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.hamburger-icon span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active .hamburger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .hamburger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mega Menu ===== */
.mega-menu {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--line);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.3);
  overflow-y: auto;
}
.mega-menu.open {
  right: 0;
}
.mega-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  backdrop-filter: blur(4px);
}
.mega-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mega-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--primary);
  color: #fff;
}
.mega-menu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mega-menu-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  padding: 4px;
}
.mega-menu-title {
  font-weight: 900;
  font-size: 16px;
  display: block;
}
.mega-menu-subtitle {
  font-size: 11px;
  opacity: 0.8;
  display: block;
}
.mega-menu-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mega-menu-close:hover {
  background: rgba(255,255,255,0.3);
}

.mega-menu-body {
  padding: 16px 20px;
  flex: 1;
}
.mega-menu-section {
  margin-bottom: 20px;
}
.mega-menu-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 10px;
  padding-left: 4px;
}
.mega-menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.mega-menu-link:hover {
  background: rgba(45,127,78,0.1);
  border-color: var(--primaryLine);
  transform: translateX(4px);
}
.mega-menu-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45,127,78,0.1);
  border-radius: 12px;
  flex-shrink: 0;
}
.mega-menu-link strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}
.mega-menu-link small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
  margin-top: 2px;
}

.mega-menu-actions {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.mega-menu-actions .btn {
  margin-bottom: 8px;
  text-align: center;
}

/* Theme toggle pill inside menu */
.mega-menu-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 0;
}
.mega-menu-theme-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.theme-toggle-pill {
  position: relative;
  display: flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  cursor: pointer;
  overflow: hidden;
  width: 160px;
  height: 38px;
}
.pill-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  z-index: 2;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
}
.pill-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--primary);
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
/* Dark mode active - slider on right */
:root[data-theme="dark"] .pill-slider,
:root:not([data-theme="light"]) .pill-slider {
  transform: translateX(100%);
}
:root[data-theme="light"] .pill-slider {
  transform: translateX(0);
}
:root[data-theme="light"] .pill-light {
  color: #fff;
}
:root[data-theme="dark"] .pill-dark,
:root:not([data-theme="light"]) .pill-dark {
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 56px 0 0;
  background: var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(45,127,78,0.30) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(45,127,78,0.20) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 80%, rgba(45,127,78,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 40% 30%, rgba(34,180,90,0.12) 0%, transparent 40%);
  background-size: 100% 100%;
  animation: auroraFlow 20s ease-in-out infinite;
  z-index: 0;
  filter: blur(40px);
}
.hero::after {
  content: "";
  position: absolute;
  top: -30%; left: -30%;
  width: 160%; height: 160%;
  background:
    radial-gradient(ellipse at 70% 60%, rgba(45,127,78,0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(34,180,90,0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 20%, rgba(45,127,78,0.10) 0%, transparent 55%);
  background-size: 100% 100%;
  animation: auroraFlow2 25s ease-in-out infinite;
  z-index: 0;
  filter: blur(60px);
}
@keyframes auroraFlow {
  0% { transform: translate(0%, 0%) scale(1); }
  25% { transform: translate(5%, -3%) scale(1.05); }
  50% { transform: translate(-3%, 5%) scale(1.02); }
  75% { transform: translate(4%, 2%) scale(0.98); }
  100% { transform: translate(0%, 0%) scale(1); }
}
@keyframes auroraFlow2 {
  0% { transform: translate(0%, 0%) scale(1); }
  33% { transform: translate(-4%, 3%) scale(1.03); }
  66% { transform: translate(3%, -4%) scale(0.97); }
  100% { transform: translate(0%, 0%) scale(1); }
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
}
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-logo {
  width: 340px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  animation: floatLogo 4s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-content h1 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 50px); }
.hero-content .lead { color: var(--muted); margin: 0 0 20px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.badges span {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Hero taxi carousel */
.hero-taxi-carousel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: 28px;
  padding-bottom: 28px;
}
.hero-taxi-track {
  display: flex;
  width: max-content;
  animation: scrollTaxis 35s linear infinite;
}
.hero-taxi-img {
  flex: 0 0 auto;
  height: 180px;
  width: auto;
  margin: 0 12px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
@keyframes scrollTaxis {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.section { padding: 44px 0; }
.section.alt {
  background: var(--alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
h2 { margin: 0 0 6px; font-size: 24px; }
.muted { color: var(--muted); font-size: 15px; }
.tiny { font-size: 12px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ===== Cards & Forms ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
:root[data-theme="dark"] .card {
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.form label {
  display: block;
  margin: 14px 0 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  outline: none;
  font-size: 16px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(45,127,78,0.25);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.list { margin: 0 0 10px 18px; color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--primary); border-color: var(--primaryLine); color: #fff; }
.btn.ghost { color: var(--muted); }
.full { width: 100%; }
.buttons-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ===== Equípate con Nosotros ===== */
.equipate-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.benefit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(45,127,78,0.3));
  opacity: 0;
  transition: opacity 0.3s;
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(45,127,78,0.2);
  border-color: var(--primaryLine);
}
.benefit-card:hover::before {
  opacity: 1;
}
.benefit-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}
.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--primary);
}
.benefit-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.equipate-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.equipate-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.equipate-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.equipate-img-wrap:hover .equipate-img {
  transform: scale(1.05);
}

.equipate-cta {
  background: linear-gradient(135deg, rgba(45,127,78,0.15), rgba(45,127,78,0.05));
  border: 1px solid var(--primaryLine);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  margin-top: 20px;
}
.equipate-cta-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}
.equipate-btn {
  font-size: 16px;
  padding: 14px 20px;
  max-width: 400px;
  margin: 0 auto;
}

/* ===== Trabaja banner ===== */
.trabaja-hero-img {
  margin: 16px 0;
  border-radius: 16px;
  overflow: hidden;
}
.section-banner {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* ===== Quiénes somos gallery ===== */
.quienes-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.quienes-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

/* ===== Contact taxi img ===== */
.contact-taxi-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 12px;
}

/* ===== FAQs ===== */
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0;
}
.faq-list details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  outline: none;
}
.faq-list details p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* ===== Familia Taxi Sol Grid ===== */
.familia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.familia-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.familia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(45,127,78,0.2);
}
.familia-logo-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.familia-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.familia-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.familia-phone {
  margin: 4px 0;
  font-size: 15px;
  font-weight: 700;
}
.familia-phone a {
  color: var(--primary);
}
.familia-type {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.familia-type a {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== Logos Carousel ===== */
.logos-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
}
.logos-track {
  display: flex;
  width: max-content;
  animation: scroll-logos 30s linear infinite;
}
.logo-item {
  flex: 0 0 auto;
  height: 80px;
  margin: 0 32px;
  object-fit: contain;
}
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Taxi Club Gallery ===== */
.taxiclub-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.taxiclub-gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}
.taxiclub-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.taxiclub-gallery-item:hover .taxiclub-img {
  transform: scale(1.05);
}
.taxiclub-caption {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* ===== Photo Carousel ===== */
.photo-carousel {
  margin-top: 24px;
  overflow: hidden;
  position: relative;
}
.photo-track {
  display: flex;
  width: max-content;
  animation: scroll-photos 45s linear infinite;
}
.photo-item {
  flex: 0 0 auto;
  height: 200px;
  width: auto;
  margin: 0 16px;
  object-fit: cover;
  border-radius: 12px;
  overflow: hidden;
}
@keyframes scroll-photos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Reviews ===== */
.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 14px;
}
.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-author { font-weight: 700; }
.review-rating { font-size: 14px; color: var(--primary); }
.review-text { font-size: 14px; line-height: 1.4; color: var(--text); }

/* ===== Map ===== */
.map-container { border-radius: 12px; overflow: hidden; line-height: 0; }

/* ===== Status dot ===== */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: blink 1.6s infinite;
  margin-left: 6px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== Footer ===== */
.footer {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.social-links { display: flex; gap: 12px; margin-top: 8px; justify-content: center; }
.social-links a { color: var(--primary); font-size: 14px; font-weight: 600; }
.social-links a:hover { text-decoration: underline; }

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { display: block; }

/* ===== Chatbot ===== */
.chatbot-toggle {
  position: fixed;
  bottom: 84px;
  right: 16px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(45,127,78,0.4);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s;
  animation: chatPulse 3s ease-in-out infinite;
}
.chatbot-toggle:hover { transform: scale(1.1); }
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(45,127,78,0.4); }
  50% { box-shadow: 0 4px 28px rgba(45,127,78,0.7); }
}
.chatbot-toggle-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.chatbot {
  position: fixed;
  bottom: 160px;
  right: 16px;
  width: 370px;
  max-height: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  overflow: hidden;
  animation: chatSlideIn 0.3s ease-out;
}
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chatbot.open { display: flex; }

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--primary);
  color: #fff;
}
.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,0.2);
  padding: 2px;
}
.chatbot-name {
  font-weight: 700;
  font-size: 14px;
  display: block;
}
.chatbot-status {
  font-size: 11px;
  opacity: 0.85;
  display: block;
}
.chatbot-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
}

/* Chatbot messages area */
.chatbot-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 14px;
  min-height: 180px;
  position: relative;
  background:
    linear-gradient(135deg,
      rgba(45,127,78,0.12) 0%,
      rgba(45,127,78,0.04) 30%,
      transparent 50%,
      rgba(45,127,78,0.08) 70%,
      rgba(45,127,78,0.15) 100%
    );
  background-size: 300% 300%;
  animation: chatBgMove 8s ease-in-out infinite;
}
@keyframes chatBgMove {
  0% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}
.chatbot-messages::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(45,127,78,0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(45,127,78,0.15) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(45,127,78,0.08) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: chatParticles 12s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes chatParticles {
  0% { background-position: 0% 0%; opacity: 0.6; }
  50% { background-position: 100% 100%; opacity: 1; }
  100% { background-position: 0% 100%; opacity: 0.7; }
}

/* Quick action buttons */
.chatbot-quick-actions {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: var(--bg);
  scrollbar-width: none;
}
.chatbot-quick-actions::-webkit-scrollbar { display: none; }
.quick-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--primaryLine);
  background: rgba(45,127,78,0.1);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.quick-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.chatbot-form {
  display: flex;
  border-top: 1px solid var(--line);
}
.chatbot-form input {
  flex-grow: 1;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  margin: 0;
  border-radius: 0;
}
.chatbot-form button {
  padding: 0 16px;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.chatbot-msg {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
  animation: msgFadeIn 0.3s ease-out;
  white-space: pre-line;
}
@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chatbot-msg.user {
  background: var(--primary);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.chatbot-msg.bot {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

/* Bot message with HTML content */
.chatbot-msg.bot a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Chatbot inline form */
.chat-inline-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.chat-inline-form input,
.chat-inline-form select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  margin: 0;
  width: 100%;
}
.chat-inline-form .btn {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
}

/* ===== Responsive ===== */
@media (min-width: 901px) {
  .hide-desktop { display: none !important; }
}
@media (max-width: 900px) {
  .hide-mobile { display: none !important; }
  .grid-2 { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-image { order: -1; }
  .hero-logo { width: 200px; }
  .hero-actions { justify-content: center; }
  .badges { justify-content: center; }
  .quienes-gallery { grid-template-columns: 1fr; }
  .quienes-img { height: 180px; }
  .taxiclub-gallery { grid-template-columns: 1fr 1fr; }
  .taxiclub-img { height: 180px; }
  .section-banner { height: 200px; }
  .familia-grid { grid-template-columns: repeat(2, 1fr); }
  .equipate-benefits { grid-template-columns: 1fr 1fr; }
  .equipate-gallery { grid-template-columns: 1fr; }
  .equipate-img { height: 220px; }
  .chatbot { width: calc(100vw - 32px); right: 16px; bottom: 160px; max-height: 70vh; }
}

@media (max-width: 600px) {
  .topbar-row { gap: 8px; padding: 10px 0; }
  .brand-city { display: none; }
  .hero { padding: 32px 0 0; }
  .hero-content h1 { font-size: 26px; }
  .hero-taxi-img { height: 130px; }
  .section { padding: 32px 0; }
  .taxiclub-gallery { grid-template-columns: 1fr; }
  .taxiclub-img { height: 200px; }
  .familia-grid { grid-template-columns: 1fr; }
  .equipate-benefits { grid-template-columns: 1fr; }
  .equipate-img { height: 200px; }
  .photo-item { height: 150px; }
  .mega-menu { width: 100%; max-width: 100vw; }
}

/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  .wa-float { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .chatbot-toggle { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
