/* ============================================
   David Asencio — Landing Page Custom Styles
   Dark Tech · Midnight Blue + Matte Gold
   ============================================ */

:root {
  --midnight: #0A192F;
  --midnight-light: #112240;
  --midnight-lighter: #1B2D4F;
  --gold: #C5A059;
  --gold-light: #D4B574;
  --gold-dark: #A88643;
  --offwhite: #E6E8EC;
  --slate: #8892B0;
}

* {
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 80px;
}

body {
  background: var(--midnight);
  color: var(--offwhite);
  overflow-x: hidden;
}

/* ============ Custom Scrollbar ============ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--midnight);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ============ Selection ============ */
::selection {
  background: var(--gold);
  color: var(--midnight);
}

/* ============ Navigation ============ */
#navbar {
  background: transparent;
  backdrop-filter: blur(0);
}

#navbar.scrolled {
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
  color: var(--offwhite);
  transition: color 0.3s ease;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--gold);
}

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

.mobile-link {
  color: var(--offwhite);
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: var(--gold);
}

/* ============ Hero Grid Background ============ */
.hero-grid {
  background-image:
    linear-gradient(rgba(197, 160, 89, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ============ Buttons ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: var(--gold);
  color: var(--midnight);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: transparent;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background: rgba(197, 160, 89, 0.1);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15);
  transform: translateY(-2px);
}

.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-amazon:hover {
  background: var(--gold);
  color: var(--midnight);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.25);
}

/* ============ Trust Logos (legacy) ============ */
.trust-logo {
  text-align: center;
  font-size: 22px;
  color: var(--slate);
  opacity: 0.7;
  transition: all 0.4s ease;
  filter: grayscale(100%);
  font-weight: 500;
}

.trust-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  color: var(--gold);
  transform: scale(1.05);
}

/* ============ Certifications Block ============ */
.cert-block {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(197, 160, 89, 0.18);
}

.cert-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.cert-heading h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  white-space: normal;
  text-align: center;
}

.cert-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(197, 160, 89, 0.45) 50%, transparent 100%);
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .cert-grid { grid-template-columns: 1fr 1fr; }
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(17, 34, 64, 0.35);
  border: 1px solid rgba(197, 160, 89, 0.12);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cert-item:hover {
  border-color: rgba(197, 160, 89, 0.45);
  background: rgba(17, 34, 64, 0.55);
  transform: translateX(3px);
}

.cert-check {
  color: var(--gold);
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.cert-topic {
  color: var(--offwhite);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.cert-inst {
  color: var(--slate);
  font-size: 12px;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* ============ Recognition Cards ============ */
.recognition-card {
  text-align: center;
  padding: 22px 14px;
  background: rgba(17, 34, 64, 0.35);
  border: 1px solid rgba(197, 160, 89, 0.18);
  border-radius: 10px;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 150px;
}

.recognition-card:hover {
  border-color: rgba(197, 160, 89, 0.55);
  background: rgba(17, 34, 64, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.recognition-icon {
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 6px;
  line-height: 1;
}

.recognition-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--offwhite);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.recognition-sub {
  font-size: 11px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 2px;
}

@media (min-width: 1024px) {
  .recognition-title { font-size: 14px; }
}

/* ============ Credential Cards (Bio) ============ */
.credential-card {
  padding: 28px 24px;
  background: rgba(17, 34, 64, 0.4);
  border: 1px solid rgba(197, 160, 89, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.credential-card:hover {
  border-color: var(--gold);
  background: rgba(17, 34, 64, 0.7);
  transform: translateY(-4px);
}

/* ============ Conference Cards ============ */
.conference-card {
  position: relative;
  padding: 40px 32px;
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid rgba(197, 160, 89, 0.15);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}

.conference-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.conference-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(197, 160, 89, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.conference-card:hover {
  transform: translateY(-8px);
  border-color: rgba(197, 160, 89, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.conference-card:hover::before {
  transform: scaleX(1);
}

.conference-card:hover::after {
  opacity: 1;
}

.card-icon-wrap {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.3);
  margin-bottom: 28px;
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
}

.card-icon-wrap i {
  font-size: 28px;
  color: var(--gold);
  transition: transform 0.5s ease;
}

.conference-card:hover .card-icon-wrap {
  background: var(--gold);
  border-color: var(--gold);
}

.conference-card:hover .card-icon-wrap i {
  color: var(--midnight);
  transform: scale(1.1);
}

.card-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  position: relative;
  z-index: 1;
}

/* ============ Book Cards ============ */
.book-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.book-cover-link {
  display: block;
  position: relative;
  perspective: 1200px;
}

.book-cover-img {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #0A192F;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.book-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.book-cover-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
  z-index: 2;
}

.book-cover-img::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 6px;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 3;
}

.book-cover-shine {
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(197, 160, 89, 0.18) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 4;
  transition: left 0.7s ease;
}

.book-cover-link:hover .book-cover-img {
  transform: translateY(-10px) rotateY(-6deg) rotateX(2deg);
  box-shadow:
    0 30px 60px rgba(197, 160, 89, 0.22),
    0 20px 50px rgba(0, 0, 0, 0.7);
}

.book-cover-link:hover .book-cover-shine {
  left: 125%;
}

.book-card .btn-amazon {
  margin-top: auto;
  align-self: center;
}

.book-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(197, 160, 89, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.book-cover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
  z-index: 2;
}

.book-cover-inner {
  position: absolute;
  inset: 0;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}

.book-cover:hover {
  transform: translateY(-12px) rotateY(-5deg);
  box-shadow: 0 30px 60px rgba(197, 160, 89, 0.2), 0 20px 50px rgba(0, 0, 0, 0.7);
}

/* ============ Testimonial Cards ============ */
.testimonial-card {
  padding: 40px 36px;
  background: rgba(10, 25, 47, 0.7);
  border: 1px solid rgba(197, 160, 89, 0.15);
  transition: all 0.4s ease;
  position: relative;
}

.testimonial-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ============ Form ============ */
.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 25, 47, 0.5);
  border: 1px solid rgba(197, 160, 89, 0.2);
  color: var(--offwhite);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  background: rgba(10, 25, 47, 0.8);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.form-input::placeholder {
  color: rgba(136, 146, 176, 0.6);
}

.form-input.error {
  border-color: #e74c3c;
}

.form-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #e74c3c;
  min-height: 16px;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23C5A059'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

select.form-input option {
  background: var(--midnight-light);
  color: var(--offwhite);
}

/* ============ Footer Social Row ============ */
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

/* ============ Social Links ============ */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: var(--gold);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--gold);
  color: var(--midnight);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.25);
}

/* ============ ScrollReveal Initial States ============ */
.reveal-up,
.reveal-fade,
.reveal-left,
.reveal-right {
  visibility: hidden;
}

/* ============ Responsive — Mobile Fixes ============ */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  /* Prevent any horizontal overflow */
  section {
    overflow-x: hidden;
  }

  /* Reduce large display headings on mobile */
  .font-display {
    word-break: break-word;
  }

  h1.font-display,
  h2.font-display {
    font-size: 2rem !important;
    line-height: 1.15 !important;
  }

  /* Hero: show decorative borders on mobile with safe offsets */
  #hero {
    overflow-x: hidden;
  }

  #hero .absolute.-top-6.-right-6 {
    display: block !important;
    top: -5px !important;
    right: -5px !important;
  }

  #hero .absolute.-bottom-6.-left-6 {
    display: block !important;
    bottom: 44px !important;
    left: -5px !important;
  }

  /* Add bottom padding so badge doesn't get cut off */
  #hero .max-w-md {
    padding-bottom: 56px;
  }

  /* Hero badge: keep absolute at bottom right */
  #hero .absolute.-bottom-8.-right-4 {
    position: absolute !important;
    bottom: 8px !important;
    right: 8px !important;
    margin-top: 0 !important;
    display: inline-flex !important;
    padding: 10px 14px !important;
    font-size: 13px;
  }

  /* Bio section: no sticky sidebar on mobile */
  #bio .lg\:sticky {
    position: static !important;
  }

  /* Bio section: full width, no overflow */
  #bio {
    overflow-x: hidden;
  }

  #bio .grid {
    grid-template-columns: 1fr !important;
  }

  /* Bio paragraphs: ensure text stays within bounds */
  #bio p, #bio h2, #bio h3 {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Credential cards: single column on mobile */
  #bio .grid.sm\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  /* Cert heading: stack vertically on mobile */
  .cert-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cert-heading .cert-line {
    display: none;
  }

  .cert-heading h3 {
    font-size: 16px;
    text-align: left;
  }

  /* Cert grid: single column on mobile */
  .cert-grid {
    grid-template-columns: 1fr !important;
  }

  /* Stats bar: 3-per-row wrap on mobile */
  #statsBar {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2rem 0 !important;
  }

  #statsBar .stat-item {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
  }

  #statsBar .stat-chevron {
    display: none !important;
  }

  #statsBar .font-display {
    font-size: 1.5rem !important;
  }

  #statsBar .stat-label {
    font-size: 8px !important;
    letter-spacing: 0.12em !important;
    line-height: 1.5 !important;
  }

  /* Footer social: all 6 icons in one row, smaller on mobile */
  .footer-social {
    gap: 6px;
  }

  .footer-social .social-link {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  /* Cert items: prevent overflow */
  .cert-item {
    min-width: 0;
    overflow: hidden;
  }

  .cert-topic, .cert-inst {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Conference cards: full padding reduction */
  .conference-card {
    padding: 28px 20px;
  }

  /* Form: reduce padding on mobile */
  #contactForm {
    padding: 24px 16px !important;
  }

  /* Buttons: full width on very small screens */
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  /* Presencia geográfica: ensure grid wraps */
  #presencia .grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Footer social icons: wrap if needed */
  footer .flex.gap-6 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  /* Book grid: 2 columns max on mobile */
  #libros .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Chatbot box: safe width on small screens */
  #chatbotBox {
    width: calc(100vw - 24px);
  }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
#whatsappBtn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9990;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
#whatsappBtn i { color: #fff; font-size: 1.6rem; }
#whatsappBtn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}
#whatsappBtn .wa-tooltip {
  position: absolute;
  left: 68px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.72rem;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
}
#whatsappBtn:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   LANGUAGE TOGGLE BUTTON
   ============================================ */
#langToggle {
  padding: 5px 12px;
  border: 1px solid rgba(197,160,89,0.5);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Inter', sans-serif;
}
#langToggle:hover {
  background: var(--gold);
  color: var(--midnight);
  border-color: var(--gold);
}

/* ============================================
   CHATBOT WIDGET
   ============================================ */
#chatbotWidget { position: fixed; bottom: 28px; right: 28px; z-index: 9999; font-family: 'Inter', sans-serif; }

#chatbotBtn {
  width: 56px; height: 56px;
  background: var(--gold);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(197,160,89,0.45);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
#chatbotBtn i { color: var(--midnight); font-size: 1.45rem; }
#chatbotBtn:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 8px 28px rgba(197,160,89,0.55); }
#chatDot {
  position: absolute; top: 4px; right: 4px;
  width: 11px; height: 11px; background: #ef4444;
  border-radius: 50%; border: 2px solid var(--midnight);
  display: none; animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot { 0%,100%{transform:scale(1)}50%{transform:scale(1.3)} }

#chatbotBox {
  position: absolute; bottom: 70px; right: 0;
  width: 340px; background: #0e2040;
  border: 1px solid rgba(197,160,89,0.3);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  transition: opacity 0.25s, transform 0.25s;
  opacity: 1; transform: translateY(0);
  max-height: 520px;
}
#chatbotBox.cb-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

#chatHeader {
  background: linear-gradient(135deg, #0A192F 0%, #112240 100%);
  border-bottom: 1px solid rgba(197,160,89,0.2);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.ch-left { display: flex; align-items: center; gap: 10px; }
.ch-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(197,160,89,0.15); border: 1px solid rgba(197,160,89,0.4);
  display: flex; align-items: center; justify-content: center;
}
.ch-avatar i { color: var(--gold); font-size: 1rem; }
.ch-title { color: #E6E8EC; font-size: 0.88rem; font-weight: 600; }
.ch-sub   { color: #25D366; font-size: 0.7rem; margin-top: 1px; }
#chatClose {
  background: transparent; border: none; color: #8892B0;
  cursor: pointer; font-size: 1rem; padding: 4px;
  transition: color 0.2s;
}
#chatClose:hover { color: #E6E8EC; }

#chatMessages {
  flex: 1; overflow-y: auto; padding: 14px 14px 8px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(197,160,89,0.2) transparent;
  max-height: 300px;
}
.cb-msg {
  max-width: 88%; font-size: 0.82rem; line-height: 1.5;
  padding: 9px 12px; border-radius: 12px; word-break: break-word;
}
.cb-bot {
  background: rgba(255,255,255,0.06); color: #E6E8EC;
  border-radius: 4px 12px 12px 12px; align-self: flex-start;
}
.cb-user {
  background: var(--gold); color: #0A192F; font-weight: 500;
  border-radius: 12px 12px 4px 12px; align-self: flex-end; text-align: right;
}
.chat-link { color: var(--gold); text-decoration: underline; }
.chat-link:hover { opacity: 0.8; }

#chatQuick {
  padding: 4px 12px 8px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cb-quick {
  background: transparent; border: 1px solid rgba(197,160,89,0.35);
  color: var(--gold); font-size: 0.72rem; padding: 5px 10px;
  border-radius: 20px; cursor: pointer; white-space: nowrap;
  transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.cb-quick:hover { background: rgba(197,160,89,0.12); border-color: var(--gold); }

#chatInputRow {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(197,160,89,0.15);
  background: rgba(0,0,0,0.2);
}
#chatInput {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(197,160,89,0.2);
  color: #E6E8EC; padding: 8px 12px; border-radius: 20px; font-size: 0.8rem;
  outline: none; font-family: 'Inter', sans-serif;
}
#chatInput::placeholder { color: #8892B0; }
#chatInput:focus { border-color: rgba(197,160,89,0.5); }
#chatSendBtn {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--gold); border: none; border-radius: 50%;
  color: var(--midnight); cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
}
#chatSendBtn:hover { transform: scale(1.1); opacity: 0.9; }

@media (max-width: 640px) {
  #chatbotBox { width: calc(100vw - 32px); right: 0; }
  #chatbotWidget { right: 16px; bottom: 16px; }
  #whatsappBtn { left: 16px; bottom: 16px; }
}

/* ============================================
   GEOGRAPHIC PRESENCE
   ============================================ */
.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  animation: livePulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(34,197,94,0.7);
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.65); }
}
.country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.5rem;
  border: 1px solid rgba(197,160,89,0.12);
  background: rgba(197,160,89,0.03);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.25s ease;
  cursor: default;
}
.country-card:hover {
  border-color: rgba(197,160,89,0.4);
  background: rgba(197,160,89,0.08);
  transform: translateY(-2px);
}
.country-flag { font-size: 2rem; line-height: 1; }
.country-name {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #8892a4;
  text-align: center;
  line-height: 1.2;
}
.country-count {
  font-size: 0.65rem;
  font-weight: 700;
  color: #0A192F;
  background: #C5A059;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  min-width: 2.2rem;
  text-align: center;
  letter-spacing: 0.03em;
}
