/* =============================================================
   CLIMELECTRIC — styles.css
   Archetype: 08 Liquid Wave Backgrounds (adaptado a la paleta real
   de marca — azul y blanco — confianza y profesionalidad)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:         #071a2e;   /* azul marino oscuro, casi negro pero con tinte azul */
  --bg-2:       #0c2440;
  --bg-3:       #11304f;   /* cards */
  --bg-4:       #163b5e;
  --ink:        #eaf3fc;   /* azul muy claro — nunca #fff puro */
  --ink-soft:   #cfe0f0;
  --ink-mute:   #7f9cba;
  --accent:     #2f8fea;   /* azul de marca — CTA principal */
  --accent-2:   #22d3ee;   /* cian — secundario, confianza */
  --gold:       #f2c879;   /* acento cálido puntual (rating, iconos) */
  --line:       rgba(234,243,252,0.12);
  --line-soft:  rgba(234,243,252,0.07);

  --serif: "Manrope", "Inter", sans-serif;
  --sans:  "Inter", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink-soft);
  -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.05; letter-spacing: -0.02em; font-family: var(--serif); color: var(--ink); font-weight: 700; }
ul, ol { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

em { font-style: normal; color: var(--accent); }

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
.reveal.is-revealed { opacity: 1; transform: none; }

.link-btn {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* =============================================================
   4. Typography
   ============================================================= */
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  max-width: 20ch;
}
.section-title-sm {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  max-width: 22ch;
}

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0,0,0,0.28), 0 8px 20px rgba(47,143,234,0.18); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04182c; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; background: rgba(47,143,234,0.08); }

/* Cards base */
.card-surface {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,26,46,0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(7,26,46,0.92); }
.nav-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: 1rem;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--serif); font-weight: 800; font-size: 1.15rem; color: var(--ink);
  margin-right: auto;
}
.nav-logo-mark { color: var(--accent); display: inline-flex; }
.nav-links { display: none; gap: 1.75rem; }
.nav-links a { position: relative; padding: .25rem 0; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
}
.nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-mobile {
  display: grid; gap: .25rem;
  max-height: 0; overflow: hidden;
  padding-inline: 1.25rem;
  transition: max-height .4s var(--ease-soft), padding .4s var(--ease-soft);
}
.nav-mobile.is-open { max-height: 420px; padding-block: .5rem 1.25rem; }
.nav-mobile a { padding: .7rem .25rem; border-bottom: 1px solid var(--line-soft); font-weight: 500; }
.nav-mobile .btn { margin-top: .75rem; width: 100%; }

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

/* Accordion (FAQ) */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0; text-align: left;
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--ink);
}
.faq-plus {
  position: relative; flex: none; width: 22px; height: 22px;
}
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; background: var(--accent);
  transition: transform .35s var(--ease-soft);
}
.faq-plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-plus::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-question[aria-expanded="true"] .faq-plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease-soft);
}
.faq-answer p { overflow: hidden; padding-right: 2.5rem; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > p { min-height: 0; }
.faq-answer { overflow: hidden; }
.faq-item.is-open .faq-answer p { padding-bottom: 1.3rem; }

/* Forms */
.calc-form label, .contacto-form label {
  display: grid; gap: .4rem;
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 1rem;
}
.calc-form input, .calc-form select, .contacto-form input, .contacto-form textarea {
  padding: .8rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.calc-form input:focus, .calc-form select:focus, .contacto-form input:focus, .contacto-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,143,234,0.18);
  outline: none;
}
.calc-optional { font-weight: 400; color: var(--ink-mute); text-transform: none; }

/* =============================================================
   6. Sections — shared
   ============================================================= */
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-halo {
  position: absolute; inset: -30% -10% -30% -10%;
  background: radial-gradient(45% 40% at 30% 30%, rgba(47,143,234,0.14), transparent 70%),
              radial-gradient(40% 35% at 80% 70%, rgba(34,211,238,0.12), transparent 70%);
  filter: blur(80px);
  pointer-events: none; z-index: 0;
}
.section-halo-2 {
  background: radial-gradient(45% 40% at 70% 30%, rgba(34,211,238,0.14), transparent 70%),
              radial-gradient(40% 35% at 20% 70%, rgba(47,143,234,0.12), transparent 70%);
}
.section > .container { position: relative; z-index: 1; }

/* ---- HERO ---- */
.hero {
  position: relative;
  padding-block: clamp(6rem, 12vw, 9rem) clamp(4rem, 8vw, 6rem);
  overflow: clip;
  background: radial-gradient(120% 90% at 50% -10%, #11304f 0%, var(--bg) 55%);
}
.hero-waves { position: absolute; inset: auto 0 0 0; height: 40%; z-index: 0; pointer-events: none; }
.hero-waves .wave { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--bg-2); opacity: .6; }
.hero-waves .wave-2 { fill: var(--bg-3); opacity: .5; animation: waveDrift 18s ease-in-out infinite alternate; }
.hero-waves .wave-1 { animation: waveDrift 22s ease-in-out infinite alternate-reverse; }
@keyframes waveDrift {
  from { transform: translateX(-2%) translateY(0); }
  to   { transform: translateX(2%) translateY(-1.5%); }
}
.hero-blob {
  position: absolute; border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  filter: blur(70px); opacity: .35; z-index: 0; pointer-events: none;
  animation: blobMorph 16s ease-in-out infinite alternate;
}
.hero-blob-1 { width: 420px; height: 420px; top: -8%; right: -8%; background: var(--accent); }
.hero-blob-2 { width: 340px; height: 340px; bottom: -12%; left: -10%; background: var(--accent-2); animation-delay: -6s; }
@keyframes blobMorph {
  0%   { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; transform: scale(1) rotate(0deg); }
  50%  { border-radius: 55% 45% 40% 60% / 55% 40% 60% 45%; transform: scale(1.08) rotate(8deg); }
  100% { border-radius: 45% 55% 55% 45% / 35% 60% 40% 65%; transform: scale(1) rotate(-4deg); }
}

.hero-grid {
  display: grid; gap: 3rem;
  align-items: center;
}
.hero-title { font-size: clamp(2.4rem, 6.4vw, 4.4rem); max-width: 14ch; margin-bottom: 1.3rem; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 46ch; margin-bottom: 2rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.75rem; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 520px; }
.hero-stat { display: grid; gap: .3rem; }
.hero-stat-num { font-family: var(--serif); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); }
.hero-stat-label { font-size: .78rem; color: var(--ink-mute); line-height: 1.35; }

.hero-visual { position: relative; }
.hero-product {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.4);
}
.hero-visual-card {
  position: absolute; display: grid; gap: .1rem;
  background: rgba(10,46,42,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  animation: floatY 5s ease-in-out infinite;
}
.hero-visual-card strong { font-family: var(--serif); font-size: 1.3rem; color: var(--accent); }
.hero-visual-card span { font-size: .74rem; color: var(--ink-mute); max-width: 16ch; }
.hero-visual-card-1 { top: 8%; left: -6%; animation-delay: -1s; }
.hero-visual-card-2 { bottom: 10%; right: -6%; animation-delay: -3s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---- VENTAJAS ---- */
.ventajas-grid { display: grid; gap: 1.25rem; margin-top: 3rem; }
.ventaja-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform .4s var(--ease-soft), border-color .4s var(--ease-out), box-shadow .4s var(--ease-soft);
}
.ventaja-card:hover { transform: translateY(-6px); border-color: rgba(47,143,234,0.4); box-shadow: 0 24px 50px rgba(0,0,0,0.3); }
.ventaja-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(47,143,234,0.18), rgba(34,211,238,0.14));
  color: var(--accent); margin-bottom: 1.1rem;
}
.ventaja-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.ventaja-card p { font-size: .92rem; color: var(--ink-mute); }

@media (min-width: 720px) { .ventajas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .ventajas-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- WAVE DIVIDERS ---- */
.wave-divider { position: absolute; left: 0; right: 0; height: 70px; overflow: hidden; line-height: 0; z-index: 1; }
.wave-divider svg { width: 100%; height: 100%; }
.wave-divider path { fill: var(--bg-2); }
.wave-divider-top { top: -1px; }
.wave-divider-bottom { bottom: -1px; }

/* ---- COMO FUNCIONA ---- */
.como-funciona { background: var(--bg-2); }
.como-funciona-head { display: grid; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.como-funciona-img {
  width: 100%; max-width: 340px; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  justify-self: start;
}
.como-funciona-intro { max-width: 60ch; font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: 0; }
@media (min-width: 860px) {
  .como-funciona-head { grid-template-columns: 1fr auto; }
  .como-funciona-img { justify-self: end; }
}
.pasos-list { display: grid; gap: 1.5rem; }
.paso { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.paso-num {
  font-family: var(--serif); font-weight: 800; font-size: 1.6rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
  line-height: 1;
}
.paso-body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.paso-body p { font-size: .92rem; color: var(--ink-mute); max-width: 60ch; }

@media (min-width: 720px) {
  .pasos-list { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
}

/* ---- ASISTENTE TEASER ---- */
.asistente-teaser { padding-block: clamp(3.5rem, 6vw, 5rem); }
.asistente-teaser-inner {
  display: grid; gap: 1.75rem; align-items: center;
  background: linear-gradient(135deg, rgba(47,143,234,0.1), rgba(34,211,238,0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.asistente-teaser-text p:last-child { color: var(--ink-mute); max-width: 60ch; }
@media (min-width: 860px) { .asistente-teaser-inner { grid-template-columns: 1fr auto; } }

/* ---- CALCULADORA ---- */
.calculadora-intro { max-width: 62ch; font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: 2.5rem; }
.calculadora-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 720px;
}
.calc-step { display: none; }
.calc-step.is-active { display: block; }

.calc-dropzone {
  display: grid; justify-items: center; gap: .6rem; text-align: center;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 3rem 1.5rem;
  color: var(--accent);
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.calc-dropzone:hover, .calc-dropzone.is-dragover { border-color: var(--accent); background: rgba(47,143,234,0.06); }
.calc-dropzone p { color: var(--ink); font-size: .95rem; }
.calc-dropzone-hint { color: var(--ink-mute); font-size: .78rem; }
.calc-step-note { margin-top: 1rem; font-size: .85rem; color: var(--ink-mute); text-align: center; }

.calc-loading { display: grid; justify-items: center; gap: 1rem; padding: 3rem 0; }
.calc-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.calc-form-grid { display: grid; gap: 0; }
@media (min-width: 640px) { .calc-form-grid { grid-template-columns: repeat(2, 1fr); gap: 0 1rem; } }
.calc-field-wide { grid-column: 1 / -1; }
.calc-form-note { font-size: .82rem; color: var(--ink-mute); margin-bottom: 1.25rem; }
.calc-step-title { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); margin-bottom: .6rem; }
.calc-email-form p { color: var(--ink-mute); margin-bottom: 1.25rem; }
.calc-legal { font-size: .76rem; color: var(--ink-mute); margin-top: .9rem; }

.calc-resultado-grid { display: grid; gap: 1rem; margin-block: 1.5rem; }
@media (min-width: 640px) { .calc-resultado-grid { grid-template-columns: repeat(3, 1fr); } }
.calc-resultado-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.5rem; text-align: center; display: grid; gap: .4rem;
}
.calc-resultado-num { font-family: var(--serif); font-weight: 800; font-size: 1.9rem; color: var(--accent); }
.calc-resultado-label { font-size: .8rem; color: var(--ink-mute); }
.calc-disclaimer { font-size: .85rem; color: var(--ink-mute); margin-bottom: 1.5rem; }

.calc-fallback { text-align: center; padding: 2rem 0; display: grid; gap: .75rem; justify-items: center; }
.calc-fallback p:first-child { font-size: 1.1rem; color: var(--ink); }

/* ---- OPINIONES ---- */
.opiniones { background: var(--bg-2); }
.opiniones-demo-note { font-size: .82rem; color: var(--ink-mute); margin-top: 1.5rem; margin-bottom: 2.5rem; }
.opiniones-grid { display: grid; gap: 1.25rem; }
.opinion-card {
  position: relative;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem;
}
.opinion-rating { color: var(--gold); letter-spacing: .12em; margin-bottom: 1rem; font-size: .9rem; }
.opinion-texto { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.opinion-autor { display: flex; align-items: center; gap: .75rem; }
.opinion-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--serif); font-weight: 700; font-size: .82rem; color: #04182c;
  flex: none;
}
.opinion-autor strong { display: block; font-size: .9rem; color: var(--ink); }
.opinion-autor span { font-size: .78rem; color: var(--ink-mute); }
.opinion-demo-tag {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-mute); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem;
}
@media (min-width: 860px) { .opiniones-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- FAQ ---- */
.faq-list { margin-top: 2.5rem; max-width: 800px; }

/* ---- CONTACTO ---- */
.contacto-grid { display: grid; gap: 3rem; }
.contacto-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contacto-list li { display: grid; gap: .15rem; }
.contacto-list strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute); }
.contacto-list a, .contacto-list span { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.contacto-list a:hover { color: var(--accent); }
.contacto-form { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); }
.form-row { display: grid; gap: 0; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; gap: 0 1rem; } }

@media (min-width: 960px) { .contacto-grid { grid-template-columns: 0.9fr 1.1fr; } }

/* ---- FOOTER ---- */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.footer-inner { display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.footer-tagline { color: var(--ink-mute); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.footer-links a { font-size: .85rem; color: var(--ink-mute); }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: .9rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-mute);
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-copy { font-size: .76rem; color: var(--ink-mute); opacity: .7; margin-top: .5rem; }

/* =============================================================
   7. Chat widget (asistente Sol)
   ============================================================= */
.chat-widget { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 300; }
.chat-fab {
  position: relative;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04182c;
  display: grid; place-items: center;
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
  transition: transform .35s var(--ease-soft);
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab-icon-close { display: none; }
.chat-widget.is-open .chat-fab-icon-open { display: none; }
.chat-widget.is-open .chat-fab-icon-close { display: block; }

.chat-panel {
  position: absolute; right: 0; bottom: calc(100% + 1rem);
  width: min(370px, calc(100vw - 2.5rem));
  max-height: min(560px, calc(100vh - 8rem));
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-panel-head {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, rgba(47,143,234,0.14), rgba(34,211,238,0.1));
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2); font-size: 1.1rem; flex: none;
}
.chat-panel-head strong { display: block; font-family: var(--serif); font-size: .95rem; color: var(--ink); }
.chat-panel-head span { font-size: .74rem; color: var(--ink-mute); }

.chat-messages { padding: 1.1rem 1.25rem; overflow-y: auto; display: grid; gap: .85rem; align-content: start; }
.chat-msg { max-width: 88%; padding: .7rem .95rem; border-radius: 14px; font-size: .88rem; line-height: 1.5; }
.chat-msg-bot { background: var(--bg-2); color: var(--ink-soft); border-bottom-left-radius: 4px; justify-self: start; }
.chat-msg-user { background: var(--accent); color: #04182c; border-bottom-right-radius: 4px; justify-self: end; font-weight: 500; }
.chat-msg-error { background: rgba(248,113,113,0.14); color: #fca5a5; border-bottom-left-radius: 4px; justify-self: start; }
.chat-typing { display: inline-flex; gap: 4px; padding: .5rem .2rem; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); animation: chatTyping 1.1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTyping { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-suggestions { display: grid; gap: .5rem; }
.chat-suggestion {
  text-align: left; padding: .6rem .85rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  font-size: .82rem; color: var(--ink-soft);
  transition: border-color .25s var(--ease-out);
}
.chat-suggestion:hover { border-color: var(--accent); color: var(--ink); }

.chat-form { display: flex; gap: .6rem; padding: 1rem 1.1rem; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; padding: .7rem .9rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: .85rem;
}
.chat-form input:focus { border-color: var(--accent); outline: none; }
.chat-form button {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--accent); color: #04182c; display: grid; place-items: center;
}

@media (max-width: 539px) {
  .chat-widget { right: .75rem; bottom: .75rem; }
  .chat-panel { position: fixed; right: .75rem; left: .75rem; bottom: 5.25rem; width: auto; }
}

/* =============================================================
   8. Responsive — extra tweaks
   ============================================================= */
@media (max-width: 539px) {
  .hero-visual { order: -1; max-width: 320px; margin-inline: auto; }
  .hero-visual-card { display: none; }
  .hero-stats { grid-template-columns: 1fr; gap: .75rem; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-blob, .hero-waves .wave { animation: none; }
  .hero-visual-card { animation: none; }
  /* Do NOT disable: reveal fades, hover tilts, accordion, count-up */
}
