@import url("./tokens.css");

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--c-blanco-mate);
  background: var(--c-acero-oscuro);
  overflow-x: hidden;
  min-height: 100vh;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ========== GRID BRUTALIST OVERLAY ========== */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(to right, rgba(74, 85, 96, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74, 85, 96, 0.08) 1px, transparent 1px);
  background-size: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 80px);
  z-index: 0;
}
body > * { position: relative; z-index: 2; }

/* ========== TIPOGRAFÍA ========== */
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-blanco-mate);
}
h1 { font-size: clamp(3rem, 12vw, var(--fs-5xl)); }
h2 { font-size: clamp(2.25rem, 7vw, var(--fs-4xl)); }
h3 { font-size: clamp(1.5rem, 4vw, var(--fs-2xl)); }
.mono { font-family: var(--f-mono); }
.muted { color: var(--c-acero-light); }

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  padding: var(--s-3) var(--gutter);
  background: rgba(20, 24, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-divisor);
  transition: padding 0.3s var(--ease-brutal);
}
.nav.scrolled { padding: var(--s-2) var(--gutter); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
}
.nav-brand {
  font-family: var(--f-display);
  font-size: var(--fs-md);
  letter-spacing: 0.02em;
  color: var(--c-blanco-mate);
  display: flex; align-items: center; gap: var(--s-2);
}
.nav-brand .accent { color: var(--c-turquesa); }
.nav-brand-tag {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-acero-light);
  border-left: 1px solid var(--c-acero-claro);
  padding-left: var(--s-2);
  margin-left: var(--s-2);
}
.nav-links {
  display: flex; gap: var(--s-4); align-items: center;
  font-size: var(--fs-sm); font-family: var(--f-mono);
}
.nav-links a:not(.nav-cta) { color: var(--c-acero-light); transition: color 0.25s; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; }
.nav-links a:not(.nav-cta):hover { color: var(--c-turquesa); }
.nav-cta {
  background: var(--c-turquesa);
  color: var(--c-acero-oscuro);
  padding: var(--s-2) var(--s-4);
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease-brutal);
  border-radius: 0;
}
.nav-cta:hover { background: var(--c-turquesa-glow); box-shadow: var(--sh-glow-turq); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-brand-tag { display: none; }
}

/* ========== TICKER NOCTURNO ========== */
.ticker {
  background: var(--c-acero-medio);
  color: var(--c-turquesa-glow);
  padding: var(--s-2) 0;
  overflow: hidden;
  border-top: 1px solid var(--c-divisor);
  border-bottom: 1px solid var(--c-divisor);
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.ticker-track {
  display: flex; gap: var(--s-7);
  white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
}
.ticker-track span { display: inline-flex; align-items: center; gap: var(--s-3); }
.ticker-track span::after {
  content: "▌";
  color: var(--c-dorado);
  margin-left: var(--s-3);
}
.ticker-status {
  color: var(--c-dorado);
  font-weight: 700;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ========== HERO BRUTALIST ========== */
.hero {
  min-height: 100vh;
  padding: calc(var(--s-7) + 100px) var(--gutter) var(--s-8);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(0, 184, 176, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(200, 166, 84, 0.05), transparent 50%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  color: var(--c-dorado);
  border: 1px solid var(--c-dorado);
  padding: var(--s-2) var(--s-3);
  text-transform: uppercase;
  width: fit-content;
}
.hero-eyebrow::before {
  content: ""; width: 8px; height: 8px;
  background: var(--c-rojo-urgencia);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 {
  margin: var(--s-4) 0;
  position: relative;
}
.hero h1 .word { display: inline-block; }
.hero h1 .word.turq { color: var(--c-turquesa-glow); -webkit-text-stroke: 1px var(--c-turquesa); }
.hero h1 .word.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--c-blanco-mate);
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--c-divisor);
  margin-top: var(--s-7);
}
.hero-meta-cell {
  padding: var(--s-4);
  border-right: 1px solid var(--c-divisor);
  border-bottom: 1px solid var(--c-divisor);
}
.hero-meta-cell:last-child { border-right: 0; }
.hero-meta-label {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-acero-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--s-2);
}
.hero-meta-value {
  font-family: var(--f-display);
  font-size: var(--fs-2xl);
  color: var(--c-blanco-mate);
  line-height: 1;
}
.hero-meta-value.turq { color: var(--c-turquesa); }
.hero-meta-value.dorado { color: var(--c-dorado); }
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; margin-top: var(--s-5); }

/* ========== BTN ========== */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-family: var(--f-display);
  font-size: var(--fs-base);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.25s var(--ease-brutal);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--c-turquesa);
  color: var(--c-acero-oscuro);
}
.btn-primary:hover {
  background: var(--c-turquesa-glow);
  box-shadow: var(--sh-glow-turq);
  transform: translate(-2px, -2px);
}
.btn-ghost {
  border: 2px solid var(--c-blanco-mate);
  color: var(--c-blanco-mate);
}
.btn-ghost:hover {
  background: var(--c-blanco-mate);
  color: var(--c-acero-oscuro);
}
.btn-urgencia {
  background: var(--c-rojo-urgencia);
  color: var(--c-blanco-mate);
}
.btn-urgencia:hover { background: #FF5A5E; box-shadow: 0 0 24px rgba(229, 72, 77, 0.5); }

/* ========== SECTION ========== */
.section {
  padding: var(--s-9) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  color: var(--c-turquesa);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.section-eyebrow::before {
  content: ""; width: 32px; height: 1px;
  background: var(--c-turquesa);
}
.section-title { margin-bottom: var(--s-3); }
.section-lead {
  font-size: var(--fs-md);
  color: var(--c-acero-light);
  max-width: 720px;
  margin-bottom: var(--s-7);
  line-height: 1.6;
}

/* ========== STATS BLOQUES ========== */
.stats-block {
  background: var(--c-acero-medio);
  border-top: 1px solid var(--c-divisor);
  border-bottom: 1px solid var(--c-divisor);
}
.stats-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.stat-cell {
  padding: var(--s-7) var(--s-5);
  border-right: 1px solid var(--c-divisor);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.stat-cell:last-child { border-right: 0; }
.stat-cell::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: var(--c-turquesa);
  transition: width 0.6s var(--ease-brutal);
}
.stat-cell:hover::before { width: 100%; }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--c-turquesa-glow);
  line-height: 1;
}
.stat-label {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-acero-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: var(--s-3);
}

/* ========== SERVICIOS GRID ========== */
.servicios-tabs {
  display: flex; gap: 0; flex-wrap: wrap;
  margin-bottom: var(--s-6);
  border: 1px solid var(--c-divisor);
}
.servicios-tab {
  flex: 1; min-width: 140px;
  padding: var(--s-3) var(--s-4);
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-acero-light);
  background: var(--c-acero-medio);
  border-right: 1px solid var(--c-divisor);
  transition: all 0.25s var(--ease-brutal);
  border-radius: 0;
}
.servicios-tab:last-child { border-right: 0; }
.servicios-tab:hover { background: var(--c-acero-claro); color: var(--c-blanco-mate); }
.servicios-tab.active {
  background: var(--c-turquesa);
  color: var(--c-acero-oscuro);
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  border-left: 1px solid var(--c-divisor);
  border-top: 1px solid var(--c-divisor);
}
.servicio-card {
  background: var(--c-acero-medio);
  padding: var(--s-5);
  border-right: 1px solid var(--c-divisor);
  border-bottom: 1px solid var(--c-divisor);
  position: relative;
  transition: background 0.3s var(--ease-brutal);
}
.servicio-card:hover { background: var(--c-acero-claro); }
.servicio-card::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 0;
  background: var(--c-turquesa);
  transition: height 0.3s var(--ease-brutal);
}
.servicio-card:hover::after { height: 4px; }
.servicio-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s-3); margin-bottom: var(--s-3);
  border-bottom: 1px dashed var(--c-divisor);
  padding-bottom: var(--s-3);
}
.servicio-name {
  font-family: var(--f-display);
  font-size: var(--fs-md);
  letter-spacing: 0.02em;
  color: var(--c-blanco-mate);
  text-transform: uppercase;
}
.servicio-price {
  font-family: var(--f-mono);
  font-size: var(--fs-lg);
  color: var(--c-turquesa);
  font-weight: 700;
  white-space: nowrap;
}
.servicio-desc {
  font-size: var(--fs-sm);
  color: var(--c-acero-light);
  line-height: 1.6;
}

/* ========== BANDA NOCTURNA ========== */
.banda-noche {
  background:
    linear-gradient(135deg, rgba(20, 24, 28, 0.95), rgba(42, 49, 56, 0.85)),
    radial-gradient(circle at 20% 50%, rgba(0, 184, 176, 0.15), transparent 40%);
  padding: var(--s-9) var(--gutter);
  border-top: 1px solid var(--c-divisor);
  border-bottom: 1px solid var(--c-divisor);
  position: relative;
  overflow: hidden;
}
.banda-noche::before {
  content: "12 AM";
  position: absolute;
  font-family: var(--f-display);
  font-size: clamp(8rem, 25vw, 22rem);
  color: var(--c-acero-medio);
  opacity: 0.15;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  pointer-events: none;
  line-height: 0.8;
}
.banda-noche-inner {
  max-width: var(--max-w); margin: 0 auto;
  position: relative;
  display: grid; grid-template-columns: 2fr 1fr;
  gap: var(--s-6); align-items: center;
}
.banda-noche h2 {
  color: var(--c-blanco-mate);
  margin-bottom: var(--s-4);
}
.banda-noche h2 .accent { color: var(--c-dorado); }
.banda-noche-text {
  font-size: var(--fs-md);
  color: var(--c-acero-light);
  margin-bottom: var(--s-5);
  line-height: 1.6;
  max-width: 580px;
}
.banda-noche-stat {
  border: 2px solid var(--c-dorado);
  padding: var(--s-5);
  text-align: center;
}
.banda-noche-stat .num {
  font-family: var(--f-display);
  font-size: clamp(4rem, 10vw, 7rem);
  color: var(--c-dorado);
  line-height: 1;
}
.banda-noche-stat .label {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-blanco-mate);
  margin-top: var(--s-2);
}
@media (max-width: 720px) {
  .banda-noche-inner { grid-template-columns: 1fr; }
}

/* ========== GALERÍA BENTO ========== */
.galeria { padding: var(--s-9) var(--gutter); max-width: var(--max-w); margin: 0 auto; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1px;
  background: var(--c-divisor);
  border: 1px solid var(--c-divisor);
}
.bento-cell {
  position: relative; overflow: hidden;
  background: var(--c-acero-medio);
}
.bento-cell img, .bento-cell video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out-soft);
  filter: grayscale(0.15) contrast(1.05);
}
.bento-cell:hover img, .bento-cell:hover video {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.1);
}
.bento-cell::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(45deg, rgba(0, 184, 176, 0) 60%, rgba(0, 184, 176, 0.4));
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.bento-cell:hover::after { opacity: 1; }
.bento-cell.large { grid-column: span 2; grid-row: span 2; }
.bento-cell.tall { grid-row: span 2; }
.bento-cell.wide { grid-column: span 2; }
@media (max-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .bento-cell.large, .bento-cell.wide { grid-column: span 2; }
  .bento-cell.tall { grid-row: span 1; }
}

/* ========== UBICACIÓN ========== */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-6);
}
.ubicacion-info {
  background: var(--c-acero-medio);
  padding: var(--s-6);
  border: 1px solid var(--c-divisor);
}
.ubicacion-info h3 { color: var(--c-turquesa); margin-bottom: var(--s-4); }
.ubi-row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px dashed var(--c-divisor);
  font-size: var(--fs-sm);
}
.ubi-row:last-child { border-bottom: 0; }
.ubi-label {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-acero-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.ubi-value { color: var(--c-blanco-mate); }
.map-pin {
  background: var(--c-acero-medio);
  border: 1px solid var(--c-divisor);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  min-height: 320px;
}
.map-pin-dot {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c-turquesa);
  display: flex; align-items: center; justify-content: center;
  font-size: 2em;
  position: relative;
  box-shadow: var(--sh-glow-turq);
}
.map-pin-dot::after {
  content: ""; position: absolute; inset: -16px;
  border: 2px solid var(--c-turquesa);
  border-radius: 50%;
  animation: pinPulse 2.5s ease-out infinite;
}
@keyframes pinPulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 720px) {
  .ubicacion-grid { grid-template-columns: 1fr; }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--c-tinta);
  color: var(--c-acero-light);
  padding: var(--s-8) var(--gutter) var(--s-5);
  border-top: 1px solid var(--c-divisor);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--s-6);
}
.footer h4 {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-turquesa);
  margin-bottom: var(--s-3);
}
.footer ul { list-style: none; display: grid; gap: var(--s-2); }
.footer a { color: var(--c-acero-light); transition: color 0.25s; font-size: var(--fs-sm); }
.footer a:hover { color: var(--c-turquesa); }
.footer-brand {
  font-family: var(--f-display);
  font-size: var(--fs-2xl);
  color: var(--c-blanco-mate);
  margin-bottom: var(--s-3);
}
.footer-brand .accent { color: var(--c-turquesa); }
.footer-tag { color: var(--c-dorado); font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; }
.footer-bottom {
  max-width: var(--max-w); margin: var(--s-7) auto 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-divisor);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-acero-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap; gap: var(--s-3);
}
.footer-bottom a { color: var(--c-turquesa); }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ========== CHATBOT BUBBLE ========== */
.chat-bubble {
  position: fixed; bottom: var(--s-4); right: var(--s-4); z-index: 900;
  width: 64px; height: 64px;
  background: var(--c-turquesa);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-glow-turq), var(--sh-md);
  color: var(--c-acero-oscuro);
  font-size: 1.8em;
  cursor: pointer;
  transition: transform 0.3s var(--ease-brutal);
  animation: bubbleBounce 3s ease-in-out infinite;
}
.chat-bubble:hover { transform: scale(1.1); animation: none; }
@keyframes bubbleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.chat-bubble::before {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid var(--c-turquesa);
  opacity: 0.5;
  animation: pinPulse 2.5s ease-out infinite;
}

/* ========== CHAT MODAL ========== */
.chat-modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(10, 13, 16, 0.7); backdrop-filter: blur(8px);
  display: none; align-items: flex-end; justify-content: flex-end;
  padding: var(--s-3);
}
.chat-modal.open { display: flex; }
.chat-window {
  width: 100%; max-width: 420px;
  height: min(640px, 90vh);
  background: var(--c-acero-medio);
  border: 1px solid var(--c-turquesa);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--sh-lg), var(--sh-glow-turq);
  animation: chatSlide 0.4s var(--ease-brutal);
}
@keyframes chatSlide {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.chat-header {
  background: var(--c-acero-oscuro);
  color: var(--c-blanco-mate);
  padding: var(--s-3) var(--s-4);
  display: flex; align-items: center; gap: var(--s-3);
  border-bottom: 1px solid var(--c-divisor);
}
.chat-avatar {
  width: 44px; height: 44px;
  background: var(--c-turquesa);
  color: var(--c-acero-oscuro);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5em; flex-shrink: 0;
}
.chat-header-info { flex: 1; }
.chat-header-name {
  font-family: var(--f-display);
  font-size: var(--fs-md);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.chat-header-status {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-acero-light);
  display: flex; align-items: center; gap: var(--s-1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.chat-header-status::before {
  content: ""; width: 7px; height: 7px;
  background: var(--c-turquesa-glow);
  animation: pulse 1.5s ease-in-out infinite;
}
.chat-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2em;
  transition: background 0.25s;
}
.chat-close:hover { background: rgba(240, 242, 245, 0.1); }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-4);
  background: var(--c-acero-oscuro);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.chat-msg {
  max-width: 84%;
  padding: var(--s-2) var(--s-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
  animation: msgIn 0.35s var(--ease-out-soft);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  background: var(--c-acero-medio);
  border-left: 3px solid var(--c-turquesa);
  color: var(--c-blanco-mate);
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--c-turquesa);
  color: var(--c-acero-oscuro);
  font-weight: 600;
  align-self: flex-end;
}
.chat-msg strong { color: var(--c-turquesa-glow); }
.chat-msg.user strong { color: var(--c-acero-oscuro); }
.chat-typing {
  align-self: flex-start;
  display: flex; gap: 4px;
  padding: var(--s-3);
  background: var(--c-acero-medio);
  border-left: 3px solid var(--c-turquesa);
}
.chat-typing span {
  width: 6px; height: 6px; background: var(--c-acero-light);
  animation: typingDot 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
.chat-input-wrap {
  border-top: 1px solid var(--c-divisor);
  padding: var(--s-3);
  display: flex; gap: var(--s-2);
  background: var(--c-acero-medio);
}
.chat-input {
  flex: 1;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-acero-claro);
  border-radius: 0;
  font-size: var(--fs-sm);
  font-family: var(--f-body);
  background: var(--c-acero-oscuro);
  color: var(--c-blanco-mate);
  outline: none;
  transition: border-color 0.25s;
}
.chat-input:focus { border-color: var(--c-turquesa); }
.chat-send {
  background: var(--c-turquesa);
  color: var(--c-acero-oscuro);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s;
}
.chat-send:hover { background: var(--c-turquesa-glow); }

/* ========== UTILS ========== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-soft), transform 0.7s var(--ease-out-soft);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}
