:root {
  --bg:           #05080f;
  --bg2:          #070d1a;
  --surface:      #0d1629;
  --surface2:     #111e38;
  --primary:      #38bdf8;
  --primary-dark: #0ea5e9;
  --primary-glow: rgba(56, 189, 248, 0.22);
  --accent:       #d4af37;
  --text:         #e2e8f0;
  --muted:        #64748b;
  --border:       rgba(56, 189, 248, 0.14);
  --border-soft:  rgba(255, 255, 255, 0.07);
  --shadow:       0 24px 80px rgba(0, 0, 0, 0.6);
  --glow:         0 0 40px rgba(56, 189, 248, 0.18);
  /* Fiverr branding */
  --fiverr-purple:    #222ef5;
  --fiverr-green:     #1dbf73;
  --fiverr-gradient:  linear-gradient(135deg, #222ef5 0%, #1dbf73 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ─── HEADER ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand:hover { color: var(--primary); }

.logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 5px;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: all 0.25s;
}

/* ─── HERO ─── */
.hero {
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.85rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 52ch;
  margin: 1.75rem 0 2.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.6rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), #7dd3fc);
  color: #05080f;
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(56, 189, 248, 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-soft);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ─── HERO CARD ─── */
.hero-image { display: grid; place-items: center; }

.hero-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 2rem 2.25rem;
  box-shadow: var(--shadow), var(--glow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.hero-card h2 {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.hero-card li {
  color: var(--text);
  font-size: 0.97rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-card li:last-child { border-bottom: none; }

.hero-card li::before {
  content: '▹';
  color: var(--primary);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ─── SECTIONS ─── */
.section { padding: 5rem 0; }

.section-alt {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--primary);
  opacity: 0.6;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.section-description {
  margin: 1rem auto 0;
  max-width: 660px;
  color: var(--muted);
  line-height: 1.75;
}

/* ─── SERVICE CARDS ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), var(--glow);
  transform: translateY(-4px);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1.1rem;
  display: block;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ─── WHY CARDS ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border-soft);
  transition: border-color 0.3s, transform 0.25s;
}

.why-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

.why-card-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  display: block;
}

.why-card h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1.05rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3.5rem;
}

.about-grid h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0.5rem 0 1.25rem;
}

.about-grid > div > p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.stats-grid {
  display: grid;
  gap: 1.25rem;
}

.stat-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

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

.stat-card strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ─── CONTACT ─── */
.contact-section { padding-bottom: 6rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 3.5rem;
}

.contact-grid h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0.5rem 0 1rem;
}

.contact-grid > div > p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 1.5rem;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.contact-info li strong {
  color: var(--text);
  min-width: 90px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #374151;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* ─── SOCIAL LINKS ─── */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--border-soft);
  margin-left: 0.25rem;
}

.social-link, .social-link--fiverr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-soft);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.social-link--fiverr {
  background: rgba(34, 46, 245, 0.12);
  border-color: rgba(34, 46, 245, 0.3);
  color: var(--fiverr-purple);
}

.social-link--fiverr:hover {
  background: var(--fiverr-gradient);
  border-color: var(--fiverr-purple);
  color: white;
  box-shadow: 0 4px 16px rgba(34, 46, 245, 0.4);
}

.social-link:hover {
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--border);
}

.contact-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-soft);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.contact-social-btn:hover {
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--border);
}

/* ─── LOGO ─── */
.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ─── FOOTER ─── */
.footer {
  padding: 1.75rem 0 2.25rem;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
  font-size: 0.88rem;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

/* ─── CHAT WIDGET ─── */
.chat-widget {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.chat-trigger {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary-dark), #7dd3fc);
  color: #05080f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(56,189,248,0.45), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(56,189,248,0.6), 0 2px 8px rgba(0,0,0,0.4);
}

.chat-trigger-icon { display: flex; align-items: center; justify-content: center; }

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  transition: opacity 0.2s, transform 0.2s;
}

.chat-badge.hidden {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.chat-panel {
  width: 360px;
  max-height: 540px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 40px rgba(56,189,248,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.85) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.chat-panel.chat-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface2);
  position: relative;
}

.chat-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(56,189,248,0.12);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-online-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--surface2);
}

.chat-bot-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.2;
}

.chat-bot-status {
  margin: 0;
  font-size: 0.75rem;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.chat-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  display: flex;
  transition: color 0.2s, background 0.2s;
}

.chat-close-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-soft) transparent;
}

.chat-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  max-width: 90%;
}

.chat-msg-bot { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; flex-direction: row-reverse; }

.chat-msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(56,189,248,0.12);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-bubble {
  background: var(--surface2);
  border: 1px solid var(--border-soft);
  border-radius: 16px 16px 16px 4px;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 100%;
}

.chat-msg-user .chat-bubble {
  background: linear-gradient(135deg, var(--primary-dark), #7dd3fc);
  color: #05080f;
  border-color: transparent;
  border-radius: 16px 16px 4px 16px;
  font-weight: 500;
}

.chat-typing .chat-bubble {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.75rem 0.9rem;
}

.chat-typing .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-dot 1.2s infinite;
}

.chat-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
  0%, 80%, 100% { transform: scale(1); opacity: 0.5; }
  40% { transform: scale(1.3); opacity: 1; }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 1rem 0.75rem;
  border-top: 1px solid var(--border-soft);
}

.chat-suggestion-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.chat-suggestion-btn:hover {
  background: rgba(56,189,248,0.1);
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.88rem;
  transition: border-color 0.2s;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-input::placeholder { color: #374151; }

.chat-send-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--primary-dark), #7dd3fc);
  color: #05080f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.2s;
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 12px rgba(56,189,248,0.4);
}

@media (max-width: 480px) {
  .chat-panel { width: calc(100vw - 2rem); }
  .chat-widget { right: 1rem; bottom: 1rem; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .hero-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero::before { width: 450px; height: 450px; top: -100px; right: -80px; }
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    display: none;
  }

  .nav.nav-open { display: flex; }

  .nav-toggle {
    display: inline-flex;
  }

  .cards-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   NUEVOS ESTILOS v2 — Avatar foto · Quick replies · Estado cerrado
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Avatar foto (Fede) ──────────────────────────────────────────────────── */

/* Foto circular en el header del chat (40×40) */
.chat-avatar .chat-avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Foto circular en los mini-avatares de cada mensaje (28×28) */
.chat-msg-avatar .chat-avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ─── Quick Reply Buttons (Sí / No) ──────────────────────────────────────── */

/* Contenedor de los botones rápidos debajo de la burbuja de seguimiento */
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

/* Base */
.quick-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, background 0.2s;
  border: 1px solid;
}

.quick-reply-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.quick-reply-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Botón positivo — verde */
.quick-reply-yes {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}
.quick-reply-yes:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.2);
}

/* Botón negativo — rojo tenue */
.quick-reply-no {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}
.quick-reply-no:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.16);
}

/* ─── Estado cerrado del chat ─────────────────────────────────────────────── */

/* Barra que aparece cuando la conversación fue cerrada */
.chat-closed-bar {
  padding: 0.9rem 1.1rem;
  background: rgba(239, 68, 68, 0.07);
  border-top: 1px solid rgba(239, 68, 68, 0.18);
  text-align: center;
  flex-shrink: 0;
}

.chat-closed-label {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Botón para iniciar una nueva conversación */
.chat-new-conv-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.chat-new-conv-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--primary);
}

/* Input deshabilitado cuando la conversación está cerrada */
.chat-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chat-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Estilos de error en formulario de contacto ─────────────────────────── */

.form-error {
  display: block;
  color: #ef4444;
  font-size: 0.78rem;
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18) !important;
}

.input-error:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}
