/* ============================================================
   HAIR DOCTOR BARBERÍA & SPA — styles.css
   Paleta oficial de marca:
   Negro  #000000 · Blanco #FFFFFF · Rojo #B50000
   ============================================================ */

:root {
  --black:      #000000;
  --white:      #FFFFFF;
  --red:        #B50000;
  --red-dim:    rgba(181,0,0,0.10);
  --red-border: rgba(181,0,0,0.30);
  --red-glow:   rgba(181,0,0,0.20);
  --surface:    #0D0D0D;
  --surface2:   #161616;
  --muted:      #7A7A7A;
  --green:      #25D366;
  --border:     rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.13);
  --radius:     0.75rem;
  --radius-sm:  0.375rem;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --shadow:     0 24px 64px rgba(0,0,0,0.9);

  /* aliases semánticos */
  --bg:    var(--black);
  --text:  var(--white);
  --accent: var(--red);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p  { color: var(--muted); }

.gradient-text {
  background: linear-gradient(135deg, #FF2020, #B50000, #7A0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout helpers ──────────────────────────────────────── */
.section { padding: 6rem 1.5rem; }
.section-dark { background: var(--surface); }
.container { max-width: 1100px; margin: 0 auto; }
.text-center { text-align: center; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.85rem;
}
.section-title { margin-bottom: 1rem; color: var(--white); }
.section-subtitle {
  max-width: 580px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--red-border);
  background: var(--red-dim);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}
/* CTA principal — rojo sólido */
.btn-gold {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--red-glow);
}
.btn-gold:hover {
  background: #D40000;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--red-glow);
}
/* Secundario — borde blanco */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--red-border);
  color: var(--red);
  background: var(--red-dim);
}
/* WhatsApp */
.btn-wa { background: var(--green); color: white; }
.btn-wa:hover { background: #20B858; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.3); }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(181,0,0,0.15);
  padding: 0.75rem 1.5rem;
}
.navbar-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.logo-name { font-weight: 900; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--white); }
.logo-sub { font-size: 0.65rem; color: var(--red); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

.navbar-links { display: flex; align-items: center; gap: 2rem; }
.navbar-links a { font-size: 0.88rem; font-weight: 500; color: var(--muted); transition: color 0.2s; letter-spacing: 0.01em; }
.navbar-links a:hover { color: var(--white); }

.navbar-cta { display: flex; align-items: center; gap: 0.75rem; }
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.navbar-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: var(--transition); border-radius: 1px; }

@media(max-width: 768px) {
  .navbar-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    flex-direction: column;
    justify-content: center; align-items: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .navbar-links a { font-size: 1.4rem; color: var(--white); font-weight: 700; }
  .navbar-links a:hover { color: var(--red); }
  .navbar-links.open { display: flex; }
  .navbar-toggle { display: block; z-index: 100; }
  .navbar-cta .btn { display: none; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 1.5rem 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(181,0,0,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 85% 85%, rgba(181,0,0,0.08) 0%, transparent 60%),
    #000;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(181,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,0,0,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
/* línea roja decorativa horizontal */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.4;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 820px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid var(--red-border);
  background: var(--red-dim);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-title { margin-bottom: 1.5rem; color: var(--white); }
.hero-subtitle { font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; color: var(--muted); }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid rgba(181,0,0,0.15);
  border-bottom: 1px solid rgba(181,0,0,0.15);
  padding: 2.5rem 1.5rem;
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media(max-width: 600px) { .stats-inner { grid-template-columns: repeat(2,1fr); gap: 2rem; } }

/* ── Services ────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}
.service-card:hover { border-color: var(--red-border); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.6); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--white); }
.service-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.55; }
.service-price { font-size: 1.5rem; font-weight: 900; color: var(--white); letter-spacing: -0.02em; }
.service-price span { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 700;
  cursor: pointer;
  transition: gap 0.2s;
  letter-spacing: 0.02em;
}
.service-cta:hover { gap: 0.65rem; }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 0.625rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  display: block;
  cursor: pointer;
}
.gallery-item--large { grid-column: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  filter: brightness(0.9);
}
.gallery-item:hover img { transform: scale(1.07); filter: brightness(1); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(181,0,0,0.6) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery-item--large { grid-column: span 2; }
}
@media (max-width: 479px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .gallery-item--large { grid-column: span 1; }
}

/* ── Booking ─────────────────────────────────────────────── */
.booking-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.booking-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}
.booking-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--white); }
.booking-subtitle { color: var(--muted); font-size: 0.88rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 0.4rem; letter-spacing: 0.06em; text-transform: uppercase; }
.form-group input, .form-group select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group select { color: var(--white); }
.form-group select option { background: #1a1a1a; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }
.form-group input::placeholder { color: #444; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.75rem; }

/* ── Products ────────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.product-card:hover { border-color: var(--red-border); transform: translateY(-3px); background: var(--surface2); }
.product-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.product-name { font-weight: 700; color: var(--white); font-size: 0.95rem; }
.product-desc { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

/* ── Schedule ────────────────────────────────────────────── */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.schedule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.schedule-card.special {
  border-color: var(--red-border);
  background: var(--red-dim);
  position: relative;
}
.schedule-card.special::after {
  content: 'HOY';
  position: absolute;
  top: -1px; right: 1rem;
  background: var(--red);
  color: white;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 0 0 4px 4px;
}
.schedule-day { font-weight: 700; font-size: 0.9rem; color: var(--white); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.05em; }
.schedule-hours { font-size: 1.3rem; font-weight: 900; color: var(--red); letter-spacing: -0.02em; }
.schedule-tag { font-size: 0.7rem; color: var(--muted); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Payment ─────────────────────────────────────────────── */
.payment-list { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.payment-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  color: var(--white);
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-size: 4rem;
  color: var(--red);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card:hover { border-color: var(--red-border); transform: translateY(-3px); }
.stars { color: #FFD700; font-size: 0.88rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text { font-size: 0.88rem; color: var(--muted); font-style: italic; line-height: 1.75; margin-bottom: 1.25rem; }
.testimonial-author { font-weight: 700; font-size: 0.9rem; color: var(--white); }
.testimonial-role { font-size: 0.75rem; color: var(--red); font-weight: 600; margin-top: 2px; }

/* ── Location ────────────────────────────────────────────── */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media(max-width: 700px) { .location-grid { grid-template-columns: 1fr; } }
.location-info { display: flex; flex-direction: column; gap: 1.25rem; }
.location-item { display: flex; gap: 1rem; align-items: flex-start; }
.location-item-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.location-item-label { font-size: 0.72rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.location-item-value { font-size: 0.92rem; color: var(--white); margin-top: 0.2rem; line-height: 1.5; }
.map-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
}
.map-placeholder iframe { width: 100%; height: 100%; border: none; filter: grayscale(1) contrast(0.85); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: #030303;
  border-top: 1px solid rgba(181,0,0,0.12);
  padding: 3.5rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media(max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand p { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; max-width: 280px; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul a { font-size: 0.88rem; color: var(--muted); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: var(--transition);
}
.social-btn:hover { border-color: var(--red-border); color: var(--white); background: var(--red-dim); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
.footer-brand-made { font-size: 0.7rem; color: #2a2a2a; margin-top: 0.5rem; }

/* ── WhatsApp flotante ───────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 2rem; right: 1.5rem;
  z-index: 999;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,0.35);
  transition: var(--transition);
  cursor: pointer;
  animation: waFloat 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(37,211,102,0.5); }
@keyframes waFloat {
  0%,100% { box-shadow: 0 8px 30px rgba(37,211,102,0.35); }
  50%      { box-shadow: 0 8px 30px rgba(37,211,102,0.35), 0 0 0 8px rgba(37,211,102,0.08); }
}
@media(max-width:479px) { .wa-float { bottom: 1.25rem; right: 1rem; width: 52px; height: 52px; } }

/* ── AI Chat Widget ──────────────────────────────────────── */
.chat-btn {
  position: fixed;
  bottom: 7rem; right: 1.5rem;
  z-index: 199;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px var(--red-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-btn:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(181,0,0,0.4); }
.chat-notif {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: var(--red);
  border: 2px solid var(--black);
}
.chat-panel {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 1000;
  width: 345px;
  border-radius: var(--radius);
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow), 0 0 0 1px rgba(181,0,0,0.2);
  max-height: 90vh;
  border: 1px solid rgba(181,0,0,0.18);
}
@media(min-width:480px) { .chat-panel { width: 370px; } }
@media(max-width:479px) {
  .chat-panel { bottom:0; right:0; left:0; width:100%; border-radius: var(--radius) var(--radius) 0 0; max-height:92vh; }
  .chat-btn { bottom:5rem; right:1rem; }
  .chat-messages { max-height:calc(92vh - 200px); }
}
.chat-header {
  background: var(--red);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.chat-agent { display: flex; align-items: center; gap: 0.75rem; }
.agent-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.agent-name { font-weight: 800; font-size: 0.9rem; color: var(--white); }
.agent-status {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.75);
  display: flex; align-items: center; gap: 0.35rem;
  margin-top: 1px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7FFF7F; display: inline-block; }
.chat-close { background: rgba(255,255,255,0.15); border: none; color: var(--white); cursor: pointer; font-size: 1rem; padding: 0.35rem 0.6rem; border-radius: var(--radius-sm); transition: background 0.2s; }
.chat-close:hover { background: rgba(255,255,255,0.25); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 160px;
  max-height: 260px;
  background: #050505;
}
.chat-msg { max-width: 85%; padding: 0.65rem 0.95rem; border-radius: 1rem; font-size: 0.83rem; line-height: 1.55; white-space: pre-wrap; }
.chat-msg.bot { background: var(--surface2); color: var(--white); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.chat-msg.user { background: var(--red); color: var(--white); font-weight: 600; border-bottom-right-radius: 3px; align-self: flex-end; }
.chat-typing { display: flex; gap: 4px; padding: 0.65rem 0.95rem; background: var(--surface2); border-radius: 1rem; border-bottom-left-radius: 3px; align-self: flex-start; max-width: 72px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: chatBlink 1s ease infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
.chat-quick {
  padding: 0.75rem;
  background: #050505;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button {
  flex-shrink: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(181,0,0,0.35);
  background: none;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.chat-quick button:hover, .chat-quick button:active { background: var(--red); color: white; }
.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input-row input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  font-family: inherit;
  -webkit-appearance: none;
}
.chat-input-row input:focus { outline: none; border-color: var(--red); }
.chat-input-row input::placeholder { color: #3a3a3a; }
.chat-send {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--red);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.chat-send:hover { background: #D40000; }
.chat-send svg { color: white; }
@keyframes chatBlink { 0%,80%,100%{opacity:0.3} 40%{opacity:1} }

/* ── Scroll animations ───────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── Blog cards ──────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { border-color: var(--red-border); transform: translateY(-4px); }
.blog-card-body { padding: 1.5rem; }
.blog-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); margin-bottom: 0.5rem; }
.blog-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; line-height: 1.4; }
.blog-excerpt { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }
.blog-read-more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; font-size: 0.8rem; color: var(--red); font-weight: 700; letter-spacing: 0.02em; }

/* ── Decorative red divider ──────────────────────────────── */
.red-line {
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ── Utility ─────────────────────────────────────────────── */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.pulse { animation: pulse-ring 2s ease-in-out infinite; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ── Selection ───────────────────────────────────────────── */
::selection { background: var(--red); color: white; }
