/* ================================================================
   VARIABLES
================================================================ */
:root {
  --color-dark:       #0d0d0d;
  --color-dark-2:     #1a1a1a;
  --color-dark-3:     #242424;
  --color-light:      #f5f2ed;
  --color-white:      #ffffff;
  --color-accent:     #c9a96e;
  --color-accent-dark:#a8813e;
  --color-text:       #2a2a2a;
  --color-text-muted: #6b6b6b;
  --color-border:     #e5e0d8;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 50px rgba(0,0,0,.14);
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ================================================================
   RESET
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }

/* ================================================================
   UTILIDADES
================================================================ */
.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-tag.light { color: var(--color-accent); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-dark);
  margin-bottom: 20px;
}
.section-title.light { color: var(--color-white); }

/* ================================================================
   NAVBAR
================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
  padding: 0 5%;
}
.navbar.scrolled {
  background: rgba(13,13,13,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 40px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-white);
  letter-spacing: .04em;
}
.logo-text strong { color: var(--color-accent); font-weight: 700; }

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  letter-spacing: .03em;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--color-accent);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--color-white); }
.nav-links a:hover::after { width: 100%; }

/* Botón Contáctame */
.btn-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  background: var(--color-accent);
  color: var(--color-dark) !important;
  font-size: .84rem;
  font-weight: 600;
  border-radius: 40px;
  letter-spacing: .04em;
  transition: background .2s, transform .15s;
}
.btn-cta:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

/* Botón CRM en navbar — oculto en PC, visible solo en menú hamburguesa */
.btn-crm-nav {
  display: none;
  flex-shrink: 0;
  padding: 9px 18px;
  background: transparent;
  color: var(--color-accent);
  font-size: .82rem;
  font-weight: 600;
  border-radius: 40px;
  border: 1.5px solid var(--color-accent);
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background .2s, color .2s, transform .15s;
}
.btn-crm-nav:hover {
  background: var(--color-accent);
  color: var(--color-dark);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: .3s;
}

/* ================================================================
   HERO
================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(201,169,110,.13) 0%, transparent 60%),
    radial-gradient(ellipse 40% 80% at 20% 80%, rgba(201,169,110,.06) 0%, transparent 55%),
    url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1600&q=60') center/cover no-repeat;
  opacity: .35;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,.92) 0%, rgba(13,13,13,.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  padding-top: 100px;
  animation: heroIn .9s var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: 22px;
  max-width: 680px;
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 700;
  font-size: .92rem;
  border-radius: 40px;
  letter-spacing: .04em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 6px 24px rgba(201,169,110,.35);
}
.btn-hero:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201,169,110,.45);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}

/* ================================================================
   ABOUT
================================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 5%;
}
.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: .97rem;
  max-width: 500px;
}
.btn-outline {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 28px;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 600;
  font-size: .88rem;
  border-radius: 40px;
  letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-dark);
}
.about-image { position: relative; }
.about-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 20px 26px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.4;
  box-shadow: var(--shadow);
}
.about-badge strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

/* ================================================================
   SERVICIOS
================================================================ */
.services {
  background: var(--color-dark);
  padding: 120px 5%;
  text-align: center;
}
.services-header { max-width: 600px; margin: 0 auto 64px; }
.services-sub { color: rgba(255,255,255,.5); font-size: .95rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: var(--color-dark-2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: left;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,169,110,.3);
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.service-icon { width: 52px; height: 52px; color: var(--color-accent); margin-bottom: 24px; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-family: var(--font-display); font-size: 1.18rem; color: var(--color-white); margin-bottom: 10px; }
.service-card p  { color: rgba(255,255,255,.5); font-size: .88rem; line-height: 1.65; }

/* ================================================================
   PROCESO
================================================================ */
.process {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 5%;
  text-align: center;
}
.process-sub { color: var(--color-text-muted); margin-bottom: 64px; font-size: .97rem; }
.process-steps { display: flex; flex-direction: column; gap: 0; margin-bottom: 56px; text-align: left; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.step.visible { opacity: 1; transform: translateY(0); }
.step:last-child { border-bottom: none; }
.step-number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: .4;
  line-height: 1;
  padding-top: 4px;
  transition: opacity .3s;
}
.step:hover .step-number { opacity: 1; }
.step-content h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--color-dark); margin-bottom: 10px; }
.step-content p  { color: var(--color-text-muted); font-size: .92rem; line-height: 1.7; }
.btn-cta-dark {
  display: inline-flex;
  align-items: center;
  padding: 14px 34px;
  background: var(--color-dark);
  color: var(--color-white);
  font-weight: 600;
  font-size: .9rem;
  border-radius: 40px;
  letter-spacing: .04em;
  border: 1.5px solid var(--color-dark);
  transition: background .2s, color .2s, transform .15s;
}
.btn-cta-dark:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-dark);
  transform: translateY(-2px);
}

/* ================================================================
   FAQ
================================================================ */
.faq { background: var(--color-light); padding: 120px 5%; }
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: left;
  transition: color .2s;
}
.faq-question:hover,
.faq-question.active { color: var(--color-accent); }
.faq-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-accent);
  width: 28px; height: 28px;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: transform .3s var(--ease), background .2s;
}
.faq-question.active .faq-icon {
  transform: rotate(45deg);
  background: var(--color-accent);
  color: var(--color-dark);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), padding .3s; }
.faq-answer.open { max-height: 300px; padding-bottom: 20px; }
.faq-answer p { color: var(--color-text-muted); font-size: .92rem; line-height: 1.7; }

/* ================================================================
   REGISTRO / FORMULARIO
================================================================ */
.register {
  background: var(--color-light);
  padding: 120px 5%;
  position: relative;
  overflow: hidden;
}
.register::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.12) 0%, transparent 70%);
  pointer-events: none;
}
.register-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.register-left .section-title { margin-bottom: 16px; }
.register-intro {
  color: var(--color-text-muted);
  font-size: .97rem;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 420px;
}
.register-perks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.register-perks li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; color: var(--color-text); }
.perk-icon {
  width: 24px; height: 24px;
  background: var(--color-accent);
  color: var(--color-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Formulario */
.reg-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--color-text); letter-spacing: .02em; }
.required { color: var(--color-accent); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--color-text);
  background: #fafaf8;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b0aca5; }

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.select-wrap { position: relative; }
.select-wrap select { cursor: pointer; padding-right: 40px; }
.select-arrow {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: .85rem;
  pointer-events: none;
}

.field-error { font-size: .76rem; color: #e53e3e; min-height: 16px; display: block; }

.btn-register {
  margin-top: 6px;
  padding: 14px 32px;
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .05em;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(0,0,0,.15);
  width: 100%;
}
.btn-register:hover:not(:disabled) {
  background: var(--color-accent);
  color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,169,110,.4);
}
.btn-register:disabled { opacity: .65; cursor: not-allowed; }

.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-spinner.visible { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Éxito */
.reg-success {
  display: none;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: fadeUp .5s var(--ease) both;
}
.reg-success.visible { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.success-icon {
  width: 64px; height: 64px;
  background: #48bb78;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 auto 20px;
}
.reg-success h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-dark); margin-bottom: 10px; }
.reg-success p  { color: var(--color-text-muted); font-size: .9rem; line-height: 1.65; margin-bottom: 24px; }

/* Acciones del éxito */
.success-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.btn-crm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  border-radius: 40px;
  letter-spacing: .04em;
  width: 100%;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(0,0,0,.15);
}
.btn-crm:hover {
  background: var(--color-accent);
  color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,169,110,.4);
}

/* Error general */
.reg-error-msg {
  display: none;
  background: #fff5f5;
  border: 1.5px solid #fed7d7;
  color: #c53030;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .86rem;
  margin-top: 12px;
  animation: fadeUp .3s var(--ease) both;
}
.reg-error-msg.visible { display: block; }

/* ================================================================
   FOOTER
================================================================ */
.footer { background: var(--color-dark); padding: 80px 5% 0; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { color: rgba(255,255,255,.4); font-size: .88rem; margin-top: 14px; max-width: 280px; line-height: 1.6; }
.footer-links, .footer-social { display: flex; flex-direction: column; }
.footer-links h4, .footer-social h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 20px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .88rem; margin-bottom: 10px; transition: color .2s; }
.footer-links a:hover { color: var(--color-accent); }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: border-color .2s, color .2s, background .2s;
}
.social-icons a svg { width: 16px; height: 16px; }
.social-icons a:hover { border-color: var(--color-accent); color: var(--color-accent); background: rgba(201,169,110,.1); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 24px 0; }
.footer-bottom p { color: rgba(255,255,255,.25); font-size: .8rem; }

/* ================================================================
   BOTÓN FLOTANTE WHATSAPP
================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  width: 54px; height: 54px;
  background: #25d366;
  color: var(--color-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,.5); }

/* ================================================================
   CHATBOT WIDGET
================================================================ */
.chat-widget {
  position: fixed;
  bottom: 96px; right: 28px;
  z-index: 1100;
  width: 58px; height: 58px;
}
.chat-toggle {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  cursor: pointer;
  background: var(--color-dark);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  transition: transform .25s var(--ease), box-shadow .25s, background .2s;
  overflow: visible;
}
.chat-toggle:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(201,169,110,.4); }
.chat-icon-robot svg,
.chat-icon-close svg { width: 32px; height: 32px; display: block; }
.chat-icon-close { display: none; }
.chat-widget.open .chat-icon-robot { display: none; }
.chat-widget.open .chat-icon-close { display: flex; }
.chat-widget.open .chat-toggle { background: var(--color-dark-2); }

.chat-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  background: #e53e3e;
  color: white;
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
  animation: pulse-badge 2s infinite;
}
.chat-badge.hidden { display: none; }
@keyframes pulse-badge { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.chat-window {
  position: absolute;
  bottom: calc(100% + 12px); right: 0;
  width: 340px; max-height: 520px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  transform-origin: bottom right;
}
.chat-widget.open .chat-window { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.chat-header { background: var(--color-dark); padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.chat-header-avatar { width: 44px; height: 44px; background: rgba(201,169,110,.2); border: 1.5px solid rgba(201,169,110,.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-header-avatar svg { width: 28px; height: 28px; }
.chat-header-info { flex: 1; display: flex; flex-direction: column; }
.chat-header-info strong { color: var(--color-white); font-size: .95rem; font-family: var(--font-display); }
.chat-status { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.5); font-size: .73rem; }
.status-dot { width: 7px; height: 7px; background: #48bb78; border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.chat-close-btn { background: none; border: none; cursor: pointer; color: rgba(255,255,255,.5); display: flex; padding: 4px; border-radius: 6px; transition: color .2s, background .2s; }
.chat-close-btn svg { width: 18px; height: 18px; }
.chat-close-btn:hover { color: var(--color-white); background: rgba(255,255,255,.1); }

.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; background: #fafaf8; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

.chat-msg { display: flex; gap: 8px; align-items: flex-end; animation: msgIn .25s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--color-dark); border: 1.5px solid var(--color-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-accent); }
.msg-avatar svg { width: 16px; height: 16px; }
.msg-bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: .86rem; line-height: 1.55; }
.chat-msg.bot .msg-bubble { background: var(--color-white); color: var(--color-text); border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.07); border: 1px solid var(--color-border); }
.chat-msg.user .msg-bubble { background: var(--color-dark); color: var(--color-white); border-bottom-right-radius: 4px; }
.msg-bubble a { color: var(--color-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.typing-indicator { display: flex; gap: 4px; padding: 10px 14px; background: var(--color-white); border-radius: 16px; border-bottom-left-radius: 4px; border: 1px solid var(--color-border); box-shadow: 0 2px 8px rgba(0,0,0,.07); width: fit-content; }
.typing-indicator span { width: 6px; height: 6px; background: var(--color-text-muted); border-radius: 50%; animation: typing .9s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-chips { padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--color-border); background: var(--color-white); }
.chat-chips:empty { padding: 0; border-top: none; }
.chip { background: none; border: 1.5px solid var(--color-accent); color: var(--color-accent); font-family: var(--font-body); font-size: .77rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; cursor: pointer; transition: background .18s, color .18s, transform .15s; white-space: nowrap; }
.chip:hover { background: var(--color-accent); color: var(--color-dark); transform: translateY(-1px); }

.chat-input-row { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--color-border); background: var(--color-white); flex-shrink: 0; }
.chat-input { flex: 1; border: 1.5px solid var(--color-border); border-radius: 24px; padding: 9px 14px; font-family: var(--font-body); font-size: .86rem; color: var(--color-text); background: #fafaf8; outline: none; transition: border-color .2s; }
.chat-input:focus { border-color: var(--color-accent); background: var(--color-white); }
.chat-input::placeholder { color: var(--color-text-muted); }
.chat-send { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--color-accent); color: var(--color-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background .2s, transform .15s; }
.chat-send svg { width: 16px; height: 16px; }
.chat-send:hover { background: var(--color-accent-dark); transform: scale(1.08); }
.chat-send:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 50px; padding: 80px 5%; }
  .about-image img { height: 380px; }
  .about-badge { bottom: -16px; left: 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .register-inner { grid-template-columns: 1fr; gap: 48px; }
  .register-left .section-title { font-size: 1.8rem; }
}

@media (max-width: 680px) {
  /* Navbar */
  .nav-inner { height: 64px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(13,13,13,.97);
    backdrop-filter: blur(12px);
    padding: 24px 5%;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 999;
    align-items: flex-start;
  }
  .nav-links.open a { font-size: 1rem; }
  .btn-cta { display: none; }
  .burger { display: flex; }

  /* Botón CRM — se oculta del navbar pero aparece en menú hamburguesa */
  .btn-crm-nav { display: none; }
  .nav-links.open .btn-crm-nav {
    display: inline-flex;
    width: fit-content;
    margin-top: 4px;
  }

  /* Servicios */
  .services-grid { grid-template-columns: 1fr; }

  /* Proceso */
  .step { grid-template-columns: 60px 1fr; gap: 20px; }
  .step-number { font-size: 2.2rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }

  /* Formulario */
  .reg-form { padding: 30px 22px; }
  .form-row { grid-template-columns: 1fr; }

  /* Chat */
  .chat-widget { right: 12px; bottom: 88px; }
  .chat-window { width: calc(100vw - 24px); right: 0; }
}

@media (max-width: 560px) {
  .reg-form { padding: 24px 16px; }
}