*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #080808;
  --surface:      #111111;
  --surface-2:    #1a1a1a;
  --surface-3:    #222222;
  --border:       #2a2a2a;
  --border-light: #3a3a3a;
  --text:         #f0f0f0;
  --text-muted:   #888888;
  --text-dim:     #555555;
  --accent:       #ffffff;
  --accent-dim:   #cccccc;
  --gold:         #d4af37;
  --gold-dim:     #a8892b;
  --font-display: 'Bebas Neue', 'Impact', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius:    3px;
  --radius-md: 6px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #4FE3D0;
  text-shadow: 0 0 10px rgba(79,227,208,.45);
}

a { color: inherit; }

.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: none; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

.section h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 14px; text-transform: uppercase; }
.section-sub { color: var(--text-muted); font-size: 1rem; max-width: 520px; margin-bottom: 40px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.24s ease;
}
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--bg); }

/* ─── Banner de oferta ─── */
.offer-banner {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Nav ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.24s ease;
}
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,.9);
  backdrop-filter: blur(12px);
  z-index: -1;
}
nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.08em; text-decoration: none; color: var(--accent); }
.logo span { color: var(--text-muted); font-size: 0.8em; }
.logo-img { height: 48px; width: auto; object-fit: contain; }
.logo-fade {
  -webkit-mask-image: radial-gradient(ellipse 58% 58% at center, black 45%, transparent 88%);
  mask-image: radial-gradient(ellipse 58% 58% at center, black 45%, transparent 88%);
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--text-muted); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.16s ease; }
.nav-links a:not(.btn):hover, .nav-links a.active:not(.btn) { color: var(--accent); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--accent); display: block; }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 68px 0 0 0;
    background: rgba(8,8,8,.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: calc(100vh - 68px); }
  .nav-links a:not(.btn) { font-size: 1.4rem; }
}

/* ─── Hero ─── */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; border-top: none; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(ellipse at 20% 40%, rgba(255,255,255,.035) 0%, transparent 60%),
                     radial-gradient(ellipse at 80% 15%, rgba(255,255,255,.025) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 78%);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; padding: 40px 24px; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: .96; letter-spacing: -.005em; text-transform: uppercase; }
.hero-title .outline { display: block; -webkit-text-stroke: 2px #4FE3D0; color: transparent; text-shadow: none; }
.hero-line { display: block; height: 2px; width: 80px; background: var(--accent); margin: 28px auto; }
.hero-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 60ch; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stat { color: var(--text-dim); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 48px; }

.violeta-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  font-family: var(--font-body);
  font-size: 14px;
  min-height: 150px;
}
.violeta-demo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.violeta-demo-head-label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.violeta-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.violeta-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.violeta-demo-body { display: flex; flex-direction: column; gap: 10px; }
.violeta-line { padding: 10px 14px; border-radius: var(--radius-md); line-height: 1.5; max-width: 82%; white-space: pre-wrap; word-break: break-word; }
.violeta-violeta { background: var(--surface-2); border: 1px solid var(--border); align-self: flex-start; color: var(--text); }
.violeta-cliente { background: var(--accent); color: var(--bg); align-self: flex-end; font-weight: 500; }
.violeta-sistema { background: transparent; border: 1px dashed var(--gold); color: var(--gold); align-self: center; font-size: 12px; text-align: center; max-width: 100%; }

.hero-contact-cards { justify-content: center !important; margin-top: 36px !important; }

/* ─── Página de inicio: menú de secciones ─── */
.home-menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.home-menu-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 28px 24px; text-decoration: none; color: var(--text);
  transition: transform .24s ease, background .24s ease, box-shadow .24s ease;
}
.home-menu-card:hover { transform: translateY(-4px); background: var(--surface-3); box-shadow: 0 4px 16px rgba(0,0,0,.6); }
.home-menu-card h3 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .04em; }
.home-menu-card p { color: var(--text-muted); font-size: 14px; }
.home-menu-card .home-menu-arrow { color: var(--text-dim); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: auto; }

/* ─── Cabecera de página interior ─── */
.page-header { padding: 56px 0 40px; text-align: center; border-top: none; }
.page-header h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); text-transform: uppercase; margin-bottom: 12px; }
.page-header p { color: var(--text-muted); max-width: 60ch; margin: 0 auto; }

/* ─── Servicios ─── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.service-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: transform .24s ease, background .24s ease, box-shadow .24s ease;
}
.service-card-more { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.service-card:hover { transform: translateY(-4px); background: var(--surface-3); box-shadow: 0 4px 16px rgba(0,0,0,.6); }
.service-img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; display: block; filter: grayscale(25%); }
.service-card h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .04em; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; }

/* ─── Cómo trabajamos (diagrama de flujo) ─── */
.flow-diagram { display: flex; flex-direction: column; gap: 28px; margin-bottom: 48px; }
.flow-step { display: flex; gap: 16px; }
.flow-num { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-display); font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flow-content h3 { font-family: var(--font-body); font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.flow-content p { color: var(--text-muted); font-size: 14px; }

@media (min-width: 860px) {
  .flow-diagram { flex-direction: row; position: relative; gap: 0; }
  .flow-diagram::before { content: ''; position: absolute; top: 17px; left: calc(12.5% + 17px); right: calc(12.5% + 17px); height: 1px; background: var(--border); }
  .flow-step { flex: 1; flex-direction: column; align-items: center; text-align: center; gap: 12px; position: relative; padding: 0 12px; }
  .flow-num { background: var(--bg); z-index: 1; }
  .flow-content p { max-width: 220px; }
}
.trust-block { padding-top: 32px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 15px; }
.trust-block p { margin-bottom: 8px; }
.trust-block strong { color: var(--text); }
.trust-rating { display: inline-flex; align-items: baseline; gap: 8px; }
.trust-rating-score { font-family: var(--font-display); font-size: 2rem; color: var(--accent); }
.trust-stars { color: var(--gold); letter-spacing: 2px; }

/* ─── Por qué Aurabot ─── */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1.1fr 1fr; } }
.why-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.why-list li { padding-left: 22px; position: relative; color: var(--text-muted); font-size: 15px; }
.why-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); }
.metrics-block { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md); padding: 28px; }
.metrics-brand { text-align: right; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 20px; }
.metric-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.metric-row:last-child { border-bottom: none; }
.metric-icon { color: var(--accent); flex-shrink: 0; }
.metric-text { display: flex; flex-direction: column; gap: 2px; }
.metric-label { font-size: 13.5px; color: var(--text-muted); }
.metric-value { font-family: var(--font-display); font-size: 1.3rem; color: var(--text); letter-spacing: .02em; }

/* ─── Planes (tabla comparativa) ─── */
.plan-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.plan-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.plan-table th, .plan-table td { padding: 18px 22px; text-align: center; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.plan-table thead th { background: var(--surface); vertical-align: top; padding-top: 26px; padding-bottom: 26px; }
.plan-table .plan-name { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .06em; color: var(--text); text-transform: uppercase; }
.plan-table .plan-price { font-family: var(--font-display); font-size: 2rem; letter-spacing: .02em; margin-top: 8px; color: var(--accent); }
.plan-table .plan-price span { font-family: var(--font-body); font-size: 12px; color: var(--text-dim); text-transform: none; letter-spacing: normal; }
.plan-feature-col { text-align: left !important; color: var(--text) !important; white-space: nowrap; position: sticky; left: 0; background: var(--bg); }
.plan-table thead .plan-feature-col { background: var(--surface); }
.plan-table .featured-col { background: var(--surface-3); border-left: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.plan-table .featured-col .plan-name { color: var(--gold); text-shadow: 0 0 8px rgba(212,175,55,.8), 0 0 18px rgba(212,175,55,.4); }
.plan-table .plan-col-red .plan-name { color: #4FE3D0; text-shadow: 0 0 8px rgba(79,227,208,.8), 0 0 18px rgba(79,227,208,.4); }
.plan-table .plan-col-green .plan-name { color: #39ff6a; text-shadow: 0 0 8px rgba(57,255,106,.8), 0 0 18px rgba(57,255,106,.4); }
.plan-table tbody tr:last-child td { border-bottom: none; }
.plan-table .check { display: inline-block; color: #4FE3D0; font-size: 1.15rem; font-weight: 700; text-shadow: 0 0 8px rgba(79,227,208,.85), 0 0 18px rgba(79,227,208,.45); }

/* ─── Carrusel de sectores ─── */
.clients-carousel { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 4px; scrollbar-width: thin; scrollbar-color: #4FE3D0 var(--surface); }
.clients-carousel::-webkit-scrollbar { height: 5px; }
.clients-carousel::-webkit-scrollbar-thumb { background: #4FE3D0; border-radius: 6px; }
.clients-carousel::-webkit-scrollbar-track { background: var(--surface); }
.clients-track { display: flex; gap: 10px; width: max-content; }
.client-slide {
  position: relative; scroll-snap-align: start; width: 160px; flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease;
}
.client-slide:hover { border-color: #4FE3D0; box-shadow: 0 0 14px rgba(79,227,208,.3); }
.client-slide img { width: 100%; height: 100px; object-fit: cover; display: block; filter: saturate(.92); transition: transform .35s ease, filter .35s ease; }
.client-slide:hover img { transform: scale(1.05); filter: saturate(1.08); }
.client-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,.88), transparent);
  font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase;
  font-size: .68rem; color: #4FE3D0; text-shadow: 0 0 6px rgba(79,227,208,.75);
}

/* ─── Tira de marcas (marquee) ─── */
.logos-marquee-section { border-top: 1px solid var(--border); padding-top: 40px; padding-bottom: 40px; }
.logos-marquee {
  overflow: hidden; width: 100%; margin-top: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.logos-track { display: flex; align-items: center; width: max-content; gap: 36px; animation: logos-scroll 32s linear infinite; }
.logos-track img { height: 68px; width: auto; object-fit: contain; border-radius: var(--radius); flex-shrink: 0; }
@keyframes logos-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; } }

/* ─── Calculadora ─── */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 860px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.calc-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.calc-item:hover { border-color: #4FE3D0; box-shadow: 0 0 14px rgba(79,227,208,.22); transform: translateY(-2px); }
.calc-item:has(.calc-check:checked) {
  border-left-color: #4FE3D0; border-color: #4FE3D0; background: var(--surface-3);
  box-shadow: 0 0 18px rgba(79,227,208,.4), inset 0 0 22px rgba(79,227,208,.07);
}
.calc-label { display: flex; flex-direction: column; gap: 10px; cursor: pointer; height: 100%; }
.calc-icon { color: #4FE3D0; filter: drop-shadow(0 0 6px rgba(79,227,208,.65)); }
.calc-icon svg { width: 26px; height: 26px; display: block; }
.calc-label-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.calc-check { width: 16px; height: 16px; accent-color: #4FE3D0; flex-shrink: 0; margin-top: 2px; }
.calc-name { font-size: 14.5px; font-weight: 600; }
.calc-desc { font-size: 12px; color: var(--text-muted); flex-grow: 1; }
.calc-price { font-family: var(--font-display); font-size: 15px; letter-spacing: .02em; color: #4FE3D0; text-shadow: 0 0 6px rgba(79,227,208,.5); white-space: nowrap; }
#calc-summary { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
#calc-summary .label { margin-bottom: 20px; display: block; }
.calc-row-selected { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-muted); padding: 4px 0; }
#calc-empty { color: var(--text-dim); font-size: 13.5px; text-align: center; padding: 16px 0; }
.calc-line { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-muted); }
.calc-total-box { text-align: center; border: 1px solid #4FE3D0; border-radius: var(--radius); padding: 20px; margin: 16px 0 20px; box-shadow: 0 0 16px rgba(79,227,208,.25), inset 0 0 20px rgba(79,227,208,.05); }
.calc-total-box p:first-child { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
#calc-total { font-family: var(--font-display); font-size: 2.4rem; color: #4FE3D0; text-shadow: 0 0 10px rgba(79,227,208,.8), 0 0 22px rgba(79,227,208,.4); }

/* ─── FAQ ─── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; background: var(--surface-2); }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.faq-item[open] summary { margin-bottom: 10px; }
.faq-item p { color: var(--text-muted); font-size: 14.5px; }

/* ─── Contacto ─── */
.contact-phone-big { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 4.5rem); color: var(--accent); display: block; margin: 18px 0; text-decoration: none; transition: opacity .16s ease; }
.contact-phone-big:hover { opacity: .7; }
.contact-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 40px auto; text-align: left; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--font-body);
  resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-dim); }
.privacy-row { display: flex; align-items: flex-start; gap: 10px; }
.privacy-row label { font-size: 12.5px; color: var(--text-muted); }
.privacy-row a { color: var(--accent); }
#formMsg { display: none; padding: 13px 16px; border-radius: var(--radius); font-size: 14.5px; text-align: center; }
.contact-cards { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.contact-card {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 28px;
  background: var(--surface); border: 1px solid #4FE3D0; border-radius: var(--radius);
  text-decoration: none; color: var(--text); min-width: 220px;
  box-shadow: 0 0 10px rgba(79,227,208,.35), inset 0 0 18px rgba(79,227,208,.06);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.contact-card:hover { border-color: #4FE3D0; box-shadow: 0 0 22px rgba(79,227,208,.65), inset 0 0 24px rgba(79,227,208,.1); transform: translateY(-2px); }
.contact-card .label { color: #9df5e9; }
.contact-card .value { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .02em; color: #4FE3D0; text-shadow: 0 0 8px rgba(79,227,208,.8), 0 0 18px rgba(79,227,208,.4); }

footer { border-top: 1px solid var(--border); padding: 48px 0 24px; background: var(--surface); }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.footer-logo { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: .08em; color: var(--accent); text-decoration: none; }
.footer-links { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--text-muted); font-size: 13.5px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: var(--text-dim); text-decoration: none; }
.footer-legal a:hover { color: var(--text-muted); }

/* ─── Cookie banner ─── */
#cookieBanner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text { font-size: 13px; color: var(--text-muted); max-width: 640px; }
.cookie-text a { color: var(--accent); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btns button { padding: 10px 18px; border-radius: var(--radius); font-size: 13px; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--text); }
.cookie-btn-accept { background: var(--accent) !important; color: var(--bg) !important; border-color: var(--accent) !important; }

/* ─── Demo interactiva (chat / llamada / cita) ─── */
.demo-panel { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md); padding: 28px; margin-top: 24px; }
.demo-mode-tabs { margin-top: 16px; }

.chat-window { display: flex; flex-direction: column; gap: 14px; max-width: 540px; }
.chat-messages { display: flex; flex-direction: column; gap: 10px; min-height: 160px; max-height: 320px; overflow-y: auto; padding: 4px; }
.chat-msg { padding: 10px 14px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.5; max-width: 82%; }
.chat-msg.bot { background: var(--surface-2); border: 1px solid var(--border); align-self: flex-start; }
.chat-msg.user { background: var(--accent); color: var(--bg); align-self: flex-end; }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input {
  flex-grow: 1; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: var(--radius); font-family: var(--font-body); font-size: 14px;
}

.booking-step { margin-bottom: 24px; }
.booking-confirm { border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 18px 20px; color: var(--text); font-size: 14.5px; }
.booking-confirm strong { color: var(--gold); }
.demo-call-btn { margin-bottom: 20px; }

/* ─── Modal de servicio ─── */
.service-modal-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
}
.service-modal-img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; filter: grayscale(25%); }
.service-modal-box h3 { font-size: 1.8rem; text-transform: uppercase; margin-bottom: 12px; }
.service-modal-desc { color: var(--text-muted); font-size: 14.5px; margin-bottom: 24px; line-height: 1.6; }
.niche-label { margin-bottom: 10px; display: block; }
.niche-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.niche-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .16s ease;
}
.niche-tab:hover { border-color: var(--border-light); color: var(--text); }
.niche-tab.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.niche-usage-box { border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; }
.niche-usage-label { color: var(--gold); margin-bottom: 8px; display: block; }
.niche-usage-text { color: var(--text); font-size: 14.5px; line-height: 1.6; }

/* ─── Widget de chat propio (Aurabot) ─── */
#aurabotChatBtn {
  position: fixed; bottom: 24px; right: 24px; z-index: 250;
  width: 58px; height: 58px; border-radius: 50%;
  background: #4FE3D0; color: #04211c; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 22px rgba(79,227,208,.55), 0 4px 20px rgba(0,0,0,.5);
  transition: transform .2s ease;
}
#aurabotChatBtn:hover { transform: scale(1.06); }
#aurabotChatBtn svg { width: 26px; height: 26px; }

#aurabotChatPanel {
  position: fixed; bottom: 96px; right: 24px; z-index: 250;
  width: 360px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 140px);
  background: var(--surface-2); border: 1px solid rgba(79,227,208,.4); border-radius: var(--radius-lg);
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 30px rgba(79,227,208,.15);
}
#aurabotChatPanel.open { display: flex; }
.aurabot-chat-head {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 14px 18px; display: flex; align-items: center; gap: 10px; justify-content: space-between;
}
.aurabot-chat-head-left { display: flex; align-items: center; gap: 10px; }
.aurabot-chat-logo { height: 32px; width: auto; border-radius: 6px; }
.aurabot-chat-head-title { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .04em; color: #4FE3D0; text-shadow: 0 0 10px rgba(79,227,208,.5); }
.aurabot-chat-head-sub { font-size: 11px; color: var(--text-dim); letter-spacing: .05em; }
.aurabot-chat-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 4px; }
.aurabot-chat-close:hover { color: var(--text); }
.aurabot-chat-body { flex-grow: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.aurabot-chat-msg { padding: 10px 14px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.5; max-width: 85%; }
.aurabot-chat-msg.bot { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; }
.aurabot-chat-msg.user { background: #4FE3D0; color: #04211c; align-self: flex-end; font-weight: 500; }
.aurabot-chat-msg.typing { color: var(--text-dim); font-style: italic; }
.aurabot-chat-foot { border-top: 1px solid var(--border); padding: 12px; display: flex; gap: 8px; }
.aurabot-chat-foot input {
  flex-grow: 1; background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: var(--radius); font-family: var(--font-body); font-size: 14px;
}
.aurabot-chat-foot button {
  background: #4FE3D0; color: #04211c; border: none; border-radius: var(--radius);
  padding: 0 16px; cursor: pointer; font-weight: 700;
}

/* ─── Popup oferta ─── */
.popup-overlay { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.8); align-items: center; justify-content: center; padding: 20px; }
.popup-overlay.open { display: flex; }
.popup-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; max-width: 420px; width: 100%; position: relative; }
.popup-close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 4px; }
.popup-close:hover { color: var(--text); }
.popup-box h3 { font-size: 2rem; text-transform: uppercase; margin: 12px 0 14px; }
.popup-desc { color: var(--text-muted); font-size: 14.5px; margin-bottom: 24px; line-height: 1.5; }

/* ─── Scroll reveal ─── */
.service-card, .flow-step, .faq-item, .home-menu-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.service-card.is-visible, .flow-step.is-visible, .faq-item.is-visible, .home-menu-card.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .service-card, .flow-step, .faq-item, .home-menu-card { opacity: 1 !important; transform: none !important; }
}
