/* =============================================================
   1. TOKENS — Custom properties
   ============================================================= */
:root {
  /* Paleta: Navy profundo + Teal moderno */
  --bg:          #0d1b2a;
  --bg-2:        #132236;
  --bg-card:     #192d42;
  --bg-card-2:   #1e3450;
  --ink:         #e8f1fc;
  --ink-soft:    #b8cfe8;
  --ink-mute:    #6a90b4;
  --accent:      #00c9a7;
  --accent-dark: #009b82;
  --accent-glow: rgba(0, 201, 167, 0.18);
  --accent-2:    #3d9be9;
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  /* Tipografía */
  --sans:   'Inter', system-ui, -apple-system, sans-serif;
  --display:'Inter', system-ui, sans-serif;

  /* Espaciado */
  --gutter:  clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 10vw, 8rem);

  /* Radios */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Sombras */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
  --shadow-btn:  0 4px 20px rgba(0, 201, 167, 0.35);
  --shadow-btn-hover: 0 8px 32px rgba(0, 201, 167, 0.5);
}


/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
ol, ul { list-style: none; padding: 0; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}


/* =============================================================
   3. UTILIDADES
   ============================================================= */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  padding: .6rem 1.2rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .875rem;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}


/* =============================================================
   4. TIPOGRAFÍA
   ============================================================= */
h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
}
h2 em {
  font-style: normal;
  color: var(--accent);
}
h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.section-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-top: .75rem;
}
.section-header {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}


/* =============================================================
   5. BOTONES
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem 1.5rem;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s, color .2s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 0;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: #00ddb8;
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-nav {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: .55rem 1.2rem;
  font-size: .875rem;
  display: none;
}
.btn-nav:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: #20c05b;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

/* Estados del botón del formulario */
#form-submit .btn-label-sending,
#form-submit .btn-label-sent { display: none; }
#form-submit.is-sending .btn-label-default,
#form-submit.is-sending .btn-label-sent { display: none; }
#form-submit.is-sending .btn-label-sending { display: inline; }
#form-submit.is-sent .btn-label-default,
#form-submit.is-sent .btn-label-sending { display: none; }
#form-submit.is-sent .btn-label-sent { display: inline; }
#form-submit.is-sent { background: #25d366; box-shadow: none; pointer-events: none; }


/* =============================================================
   6. NAVEGACIÓN
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding-block: .9rem;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.03em;
}
.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.nav-links {
  display: none;
  gap: 1.6rem;
  margin-inline: auto;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* Hamburger */
.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
  cursor: pointer;
  border-radius: var(--r-sm);
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.nav-mobile {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 450;
  background: rgba(13, 27, 42, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out);
}
.nav-mobile.is-open { opacity: 1; pointer-events: all; }
.nav-mobile nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.nav-mobile a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  transition: color .2s;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .btn { min-width: 220px; }


/* =============================================================
   7. HERO
   ============================================================= */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: clip;
  padding-top: 100px;
  padding-bottom: 4rem;
}

/* Gradiente reactivo al ratón */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb-1 {
  width: 700px; height: 700px;
  top: -10%; left: -15%;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.25) 0%, transparent 65%);
  animation: orbDrift1 20s ease-in-out infinite;
}
.orb-2 {
  width: 600px; height: 600px;
  top: 20%; right: -10%;
  background: radial-gradient(circle, rgba(61, 155, 233, 0.2) 0%, transparent 65%);
  animation: orbDrift2 25s ease-in-out infinite;
}
.orb-3 {
  width: 400px; height: 400px;
  bottom: 5%; left: 30%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 65%);
  animation: orbDrift3 18s ease-in-out infinite;
}
@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-40px, 60px) scale(1.08); }
}
@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(30px, -30px) scale(1.15); }
}

/* Ruido sutil */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 150px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(0, 201, 167, 0.1);
  border: 1px solid rgba(0, 201, 167, 0.25);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: 100px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(0.7); }
}

.hero-title { max-width: 16ch; }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
}

/* Proof bar */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-top: .5rem;
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.proof-item strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
}
.proof-item span {
  font-size: .78rem;
  color: var(--ink-mute);
}
.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--line-strong);
  display: none;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  display: block;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  margin: 0 auto;
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50%       { opacity: 1; transform: translateY(8px); }
}


/* =============================================================
   8. SECCIONES — base
   ============================================================= */
.section {
  padding-block: var(--section);
  position: relative;
}
.section:nth-child(even) { background: var(--bg-2); }


/* =============================================================
   9. SERVICIOS
   ============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 2rem;
  position: relative;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease-out);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 201, 167, 0.07), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover {
  border-color: rgba(0, 201, 167, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 201, 167, 0.15), var(--shadow-card);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

.service-card--future {
  border-color: rgba(61, 155, 233, 0.2);
  background: linear-gradient(135deg, var(--bg-card) 80%, rgba(61, 155, 233, 0.08));
}
.service-card--future .card-badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(61, 155, 233, 0.12);
  border: 1px solid rgba(61, 155, 233, 0.25);
  padding: .25rem .7rem;
  border-radius: 100px;
}

.card-icon {
  width: 52px; height: 52px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 201, 167, 0.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.service-card--future .card-icon {
  background: rgba(61, 155, 233, 0.1);
  border-color: rgba(61, 155, 233, 0.2);
  color: var(--accent-2);
}

.service-card h3 { margin-bottom: .6rem; }
.service-card > p {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.card-features li {
  font-size: .875rem;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.card-features li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}


/* =============================================================
   10. POR QUÉ CUIDAWEB
   ============================================================= */
.why { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.why-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background .3s;
}
.why-card:hover { background: var(--bg-card); }

.why-num {
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(0, 201, 167, 0.1);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  transition: color .3s;
}
.why-card:hover .why-num { color: rgba(0, 201, 167, 0.2); }

.why-card h3 { margin-bottom: .6rem; }
.why-card p {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}


/* =============================================================
   11. PROCESO
   ============================================================= */
.process { background: var(--bg-2); }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
}

.process-step {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 2.5rem;
}

.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-connector {
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.3;
}

.step-content { padding-top: .65rem; }
.step-content h3 { margin-bottom: .5rem; }
.step-content p {
  font-size: .95rem;
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.65;
}

.process-cta { text-align: center; }


/* =============================================================
   12. CONTACTO
   ============================================================= */
.contact {
  background: var(--bg);
  overflow: clip;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(0, 201, 167, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 70% at 85% 50%, rgba(61, 155, 233, 0.06), transparent 60%);
  pointer-events: none;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-left h2 { margin-bottom: 0; }
.contact-left > p {
  color: var(--ink-soft);
  max-width: 38ch;
  line-height: 1.65;
}
.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}
.contact-hint {
  font-size: .875rem;
  color: var(--ink-mute);
  margin-top: -.5rem;
}
.contact-zone {
  font-size: .8rem;
  color: var(--ink-mute);
}

/* Formulario */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-group input,
.form-group textarea {
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: .8rem 1rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-mute); }
.form-group textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: .8rem;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.5;
}


/* =============================================================
   12b. FRANJA DE CONFIANZA (RGPD · España · 24h · Garantía)
   ============================================================= */
.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 1.5rem;
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 600;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

@media (min-width: 720px) {
  .trust-strip-inner { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}


/* =============================================================
   12c. PORTFOLIO / CASOS DE ÉXITO
   ============================================================= */
.portfolio-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .3s;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.portfolio-mock {
  padding: 1rem 1rem 1.5rem;
  background: linear-gradient(160deg, var(--bg-card-2), var(--bg-2));
}
.portfolio-mock[data-tone="a"] .mock-block { background: linear-gradient(135deg, var(--accent-glow), transparent); }
.portfolio-mock[data-tone="b"] .mock-block { background: linear-gradient(135deg, rgba(61,155,233,0.22), transparent); }
.portfolio-mock[data-tone="c"] .mock-block { background: linear-gradient(135deg, rgba(0,201,167,0.14), rgba(61,155,233,0.14)); }
.mock-chrome {
  display: flex;
  gap: 5px;
  margin-bottom: .85rem;
}
.mock-chrome span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mock-body {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 1rem;
}
.mock-line { height: 8px; border-radius: 4px; background: var(--line-strong); margin-bottom: .5rem; }
.mock-line--lg { width: 70%; }
.mock-line--md { width: 45%; }
.mock-block { height: 60px; border-radius: var(--r-sm); margin-top: .75rem; }
.portfolio-info { padding: 1.5rem; }
.portfolio-sector {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .4rem;
}
.portfolio-info h3 { margin-bottom: .5rem; }
.portfolio-desc { font-size: .9rem; color: var(--ink-soft); margin-bottom: .9rem; }
.portfolio-metric {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-glow);
  border: 1px solid rgba(0, 201, 167, 0.3);
  padding: .35rem .75rem;
  border-radius: 100px;
}
.portfolio-note {
  margin-top: 2.5rem;
  text-align: center;
  font-size: .9rem;
  color: var(--ink-mute);
}

@media (min-width: 720px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}


/* =============================================================
   12d. OPINIONES / TESTIMONIOS
   ============================================================= */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testimonial-card blockquote p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.testimonial-card blockquote p::before { content: none; }
.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.testimonial-card figcaption strong { display: block; font-size: .9rem; color: var(--ink); }
.testimonial-card figcaption div span { font-size: .8rem; color: var(--ink-mute); }

@media (min-width: 720px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}


/* =============================================================
   12e. EQUIPO / TRATO DIRECTO
   ============================================================= */
.founder { background: var(--bg-2); }
.founder-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}
.founder-photo { display: flex; justify-content: center; }
.founder-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}
.founder-text {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 56ch;
}

@media (min-width: 720px) {
  .founder-inner { grid-template-columns: auto 1fr; text-align: left; }
}
@media (max-width: 719px) {
  .founder-content { text-align: center; }
  .founder-text { margin-inline: auto; }
}


/* =============================================================
   12f. PRECIOS
   ============================================================= */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 780px;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
}
.pricing-card--highlight {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--bg-card-2), var(--bg-card));
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 2rem;
  background: var(--accent);
  color: var(--bg);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .3rem .75rem;
  border-radius: 100px;
}
.pricing-label { font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .5rem; }
.pricing-price { font-size: 2.2rem; font-weight: 800; color: var(--ink); margin-bottom: 1.25rem; }
.pricing-price strong { color: var(--accent); }
.pricing-price span { font-size: .95rem; font-weight: 500; color: var(--ink-mute); }
.pricing-features { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.5rem; }
.pricing-features li {
  font-size: .9rem;
  color: var(--ink-soft);
  padding-left: 1.5rem;
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0; top: .45em;
  width: 14px; height: 14px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; max-width: none; }
}


/* =============================================================
   12g. PREGUNTAS FRECUENTES (FAQ)
   ============================================================= */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  text-align: left;
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease-out);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.65;
}


/* =============================================================
   12h. ARTÍCULOS DE BLOG
   ============================================================= */
.article-meta {
  font-size: .85rem;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
}
.article-body {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}
.article-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul { margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.article-body ul li { padding-left: 1.5rem; position: relative; }
.article-body ul li::before {
  content: '';
  position: absolute; left: 0; top: .6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
}
.article-cta p { color: var(--ink-soft); margin-bottom: 1.25rem; }


/* =============================================================
   13. FOOTER
   ============================================================= */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-block: 3rem 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.footer-brand p {
  font-size: .875rem;
  color: var(--ink-mute);
  margin-top: .6rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-nav a {
  font-size: .9rem;
  color: var(--ink-soft);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--ink); }
.footer-nav-sectors { flex-direction: column; gap: .65rem; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  align-items: flex-start;
}
.footer-contact a {
  font-size: .9rem;
  color: var(--ink-mute);
  transition: color .2s;
}
.footer-contact a:hover { color: var(--accent); }
.footer-zone { font-size: .8rem; color: var(--ink-mute); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}
.footer-bottom p {
  font-size: .8rem;
  color: var(--ink-mute);
}
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.footer-legal-links span {
  color: var(--ink-mute);
  font-size: .75rem;
  opacity: .5;
}
.link-btn {
  font-size: .8rem;
  color: var(--ink-mute);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
  padding: 0;
}
.link-btn:hover { color: var(--ink); }

.legal-panel {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.legal-panel-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 .75rem;
}
.legal-panel p {
  font-size: .8rem;
  color: var(--ink-mute);
  line-height: 1.65;
  margin: 0 0 .5rem;
}
.legal-panel p:last-child { margin-bottom: 0; }

/* ── Banner de cookies ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8999;
  background: #0d1f35;
  border-top: 1px solid rgba(0,201,167,0.2);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  padding: 14px 20px;
  transform: translateY(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-banner.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-text {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 220px;
}
.cookie-more-btn {
  font-size: .82rem;
  color: var(--accent);
  margin-left: .4rem;
  white-space: nowrap;
}
.cookie-more-btn:hover { color: var(--ink); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--accent);
  color: #0d1b2a;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--sans);
}
.btn-cookie-accept:hover { background: var(--accent-dark); transform: scale(1.03); }


/* =============================================================
   14. BOTÓN FLOTANTE WHATSAPP
   ============================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 600;
  width: 58px; height: 58px;
  min-width: 58px;
  aspect-ratio: 1;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform .25s var(--ease-bounce), box-shadow .25s;
  color: #fff;
  overflow: visible;
  padding: 0;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* Tooltip */
.wa-tooltip {
  position: absolute;
  right: calc(100% + .75rem);
  background: var(--bg-card);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: .45rem .85rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .25s, transform .25s var(--ease-out);
  pointer-events: none;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 9px; height: 9px;
  background: var(--bg-card);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

/* Anillo pulsante */
.wa-pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 58px; height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: waPulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.8); opacity: 0; }
}


/* =============================================================
   14b. CTA FIJO MÓVIL
   ============================================================= */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 550;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform .3s var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }

@media (min-width: 960px) {
  .sticky-cta { display: none; }
}


/* =============================================================
   15. EFECTOS DE REVEAL (scroll)
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
/* Defensa: si el elemento tiene data-split, no lo ocultamos */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Delays escalonados */
.reveal[data-delay="0"] { transition-delay: 0s; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }


/* =============================================================
   16. RESPONSIVE — mobile-first
   ============================================================= */
@media (min-width: 540px) {
  .hero-proof { flex-wrap: nowrap; }
  .proof-divider { display: block; }
}

@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-step { gap: 2.5rem; }
  .contact-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .btn-nav   { display: inline-flex; }
  .nav-burger { display: none; }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .contact-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
  }
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .hero-inner { gap: 2rem; }
}


/* =============================================================
   17. REDUCED MOTION — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .orb-1, .orb-2, .orb-3 { animation: none; }
  .badge-dot { animation: none; }
  .scroll-line { animation: none; }
  .wa-pulse { animation: none; }
  /* NO desactivamos: reveals, hovers, transiciones de botones */
}

/* =============================================================
   CHATBOT — Asistente virtual CuidaWeb
   ============================================================= */

/* ── Botón flotante (izquierda) ─────────────────────────────── */
.cw-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #0d1b2a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 201, 167, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s;
}
.cw-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 201, 167, 0.6);
}

/* Icono abierto vs cerrado */
.cw-ico { transition: opacity 0.2s, transform 0.2s; position: absolute; }
.cw-ico-close { opacity: 0; transform: rotate(-45deg) scale(0.7); }
.cw-trigger.is-open .cw-ico-chat  { opacity: 0; transform: rotate(45deg) scale(0.7); }
.cw-trigger.is-open .cw-ico-close { opacity: 1; transform: rotate(0deg) scale(1); }

/* Badge de notificación */
.cw-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  animation: cwPop 0.4s ease;
}
@keyframes cwPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ── Ventana del chat ───────────────────────────────────────── */
.cw-win {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 9001;
  width: 340px;
  max-height: 520px;
  background: #0f2137;
  border: 1px solid rgba(0, 201, 167, 0.18);
  border-radius: 16px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cw-win.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ── Cabecera ───────────────────────────────────────────────── */
.cw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0d2540 0%, #0f2d4a 100%);
  border-bottom: 1px solid rgba(0, 201, 167, 0.12);
  flex-shrink: 0;
}
.cw-header-info { display: flex; align-items: center; gap: 10px; }
.cw-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.cw-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
}
.cw-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0d2540;
}
.cw-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.cw-status {
  font-size: 11px;
  color: var(--accent);
  margin: 0;
  line-height: 1.4;
}
.cw-close-btn {
  background: none;
  border: none;
  color: var(--ink-mute);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.cw-close-btn:hover { color: var(--ink); background: rgba(255,255,255,0.07); }

/* ── Área de mensajes ───────────────────────────────────────── */
.cw-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,201,167,0.2) transparent;
}
.cw-msgs::-webkit-scrollbar { width: 4px; }
.cw-msgs::-webkit-scrollbar-thumb { background: rgba(0,201,167,0.25); border-radius: 4px; }

/* Wrapper de mensaje */
.cw-msg-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: cwSlideIn 0.22s ease;
}
@keyframes cwSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cw-msg-bot  { align-items: flex-start; }
.cw-msg-user { align-items: flex-end; }

/* Burbujas */
.cw-bubble {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.cw-bot {
  background: #1a3352;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.cw-user {
  background: var(--accent);
  color: #0d1b2a;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

/* Typing dots */
.cw-typing {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}
.cw-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-mute);
  display: block;
  animation: cwDot 1.2s infinite ease-in-out both;
}
.cw-typing span:nth-child(1) { animation-delay: -0.32s; }
.cw-typing span:nth-child(2) { animation-delay: -0.16s; }
@keyframes cwDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1;   }
}

/* CTA WhatsApp dentro del chat */
.cw-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #0d1b2a;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.cw-cta:hover { background: #1ebe5c; transform: translateY(-1px); }

/* Quick replies */
.cw-quick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  animation: cwSlideIn 0.3s ease;
}
.cw-qr {
  background: rgba(0, 201, 167, 0.1);
  border: 1px solid rgba(0, 201, 167, 0.25);
  color: var(--accent);
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: 20px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  line-height: 1.4;
}
.cw-qr:hover {
  background: rgba(0, 201, 167, 0.2);
  border-color: var(--accent);
  transform: translateX(2px);
}

/* ── Input ──────────────────────────────────────────────────── */
.cw-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 10px 12px 8px;
  flex-shrink: 0;
  background: #0d1f35;
}
.cw-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cw-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-family: var(--sans);
}
.cw-input::placeholder { color: var(--ink-mute); }
.cw-input:focus {
  border-color: rgba(0, 201, 167, 0.4);
  background: rgba(255,255,255,0.09);
}
.cw-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #0d1b2a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.cw-send-btn:hover { background: var(--accent-dark); transform: scale(1.05); }
.cw-note {
  font-size: 10.5px;
  color: var(--ink-mute);
  margin: 6px 0 0;
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────── */
/* En móvil dejamos hueco para el CTA fijo (.sticky-cta) en la parte baja */
@media (max-width: 959px) {
  .cw-trigger { bottom: calc(24px + 64px + env(safe-area-inset-bottom)); }
  .cw-win { bottom: calc(96px + 64px + env(safe-area-inset-bottom)); }
}

@media (max-width: 400px) {
  .cw-win {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: calc(80px + 64px + env(safe-area-inset-bottom));
  }
  .cw-trigger { right: 16px; bottom: calc(16px + 64px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .cw-win { transition: none; }
  .cw-trigger { transition: none; }
  .cw-typing span { animation: none; opacity: 0.6; }
  .cw-badge { animation: none; }
}
