/* ===========================================================
   Clicnexa · estilos
   Paleta: blanco / azul oscuro / gris + acento turquesa
   =========================================================== */

:root {
  --azul-900: #0b2545;
  --azul-700: #13315c;
  --azul-600: #1b4079;
  --acento:   #16b8a6;
  --acento-700: #0f8a7c;
  --texto:    #1a2433;
  --gris-600: #5b6573;
  --gris-300: #d9dee5;
  --gris-100: #f4f6f9;
  --blanco:   #ffffff;
  --sombra:   0 10px 30px rgba(11, 37, 69, 0.08);
  --sombra-sm: 0 4px 14px rgba(11, 37, 69, 0.07);
  --radio:    16px;
  --radio-sm: 10px;
  --max:      1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.2; color: var(--azul-900); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
p { color: var(--gris-600); }

a { color: inherit; text-decoration: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.98rem; padding: 13px 24px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap; font-family: inherit;
}
.btn-primary { background: var(--acento); color: #04201d; box-shadow: 0 6px 18px rgba(22,184,166,.32); }
.btn-primary:hover { background: var(--acento-700); color:#fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--azul-900); border-color: var(--gris-300); }
.btn-ghost:hover { border-color: var(--azul-900); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--acento-700);
  background: rgba(22,184,166,.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow-light { color: #9ff0e6; background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gris-300);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo {
  font-weight: 800; font-size: 1.35rem; color: var(--azul-900);
  display: inline-flex; align-items: center; gap: 8px; letter-spacing: -0.02em;
}
.logo-name { display: inline; }
.logo-accent { color: var(--acento); }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acento); display: inline-block; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-weight: 500; color: var(--gris-600); font-size: .97rem; }
.nav a:hover { color: var(--azul-900); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Selector de idioma */
.lang-switch { display: inline-flex; border: 1px solid var(--gris-300); border-radius: 999px; overflow: hidden; background: var(--blanco); }
.lang-btn {
  font-family: inherit; font-weight: 700; font-size: .82rem; letter-spacing: .03em;
  padding: 7px 12px; border: 0; background: transparent; color: var(--gris-600); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--gris-300); }
.lang-btn:hover { color: var(--azul-900); }
.lang-btn.active { background: var(--azul-900); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--azul-900); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(22,184,166,.10), transparent 60%),
    linear-gradient(180deg, var(--gris-100), var(--blanco));
  padding: 76px 0 68px;
}
.hero-grid { display: block; }
.hero-text { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-text h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 20px; }
.lead { font-size: 1.18rem; color: var(--gris-600); margin-bottom: 28px; max-width: 52ch; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--gris-600); }

/* Chat demo */
.chat-window {
  background: var(--blanco); border: 1px solid var(--gris-300);
  border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden;
}
.chat-header {
  background: var(--azul-900); color: #cfe4ff; font-size: .85rem; font-weight: 600;
  padding: 12px 18px; display: flex; align-items: center; gap: 8px;
}
.chat-status { width: 9px; height: 9px; border-radius: 50%; background: #2bd99b; box-shadow: 0 0 0 3px rgba(43,217,155,.25); }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { padding: 12px 15px; border-radius: 14px; font-size: .95rem; max-width: 88%; position: relative; color: var(--texto); }
.msg-client { background: var(--gris-100); border: 1px solid var(--gris-300); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-agent { background: var(--azul-900); color: #eaf2ff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-tags { padding: 0 18px 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .76rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: var(--gris-100); color: var(--gris-600); border: 1px solid var(--gris-300);
}
.tag-hot { background: #fff1ec; color: #c2410c; border-color: #ffd9c9; }
.tag-human { background: #eef4ff; color: var(--azul-600); border-color: #d4e2ff; }

/* ---------- Secciones ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--gris-100); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-sub { font-size: 1.08rem; margin-top: 14px; }

/* ---------- Grids / tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--blanco); border: 1px solid var(--gris-300);
  border-radius: var(--radio); padding: 30px 26px; box-shadow: var(--sombra-sm);
  transition: transform .15s ease, box-shadow .15s ease; text-align: center;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .96rem; }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }

/* ---------- Pills (sectores) ---------- */
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill-list li {
  background: var(--blanco); border: 1px solid var(--gris-300); border-radius: 999px;
  padding: 11px 22px; font-weight: 600; color: var(--azul-900); box-shadow: var(--sombra-sm);
}

/* ---------- CTA piloto ---------- */
.section-cta { background: linear-gradient(135deg, var(--azul-900), var(--azul-600)); }
.cta-box { text-align: center; max-width: 760px; margin: 0 auto; }
.cta-box h2 { color: #fff; }
.cta-box p { color: #c3d4ec; font-size: 1.1rem; margin: 16px auto 28px; max-width: 56ch; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-direct { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.contact-line {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--azul-900);
  background: var(--gris-100); border: 1px solid var(--gris-300); border-radius: var(--radio-sm);
  padding: 14px 18px; box-shadow: var(--sombra-sm); transition: transform .15s ease;
  align-self: flex-start;
}
.contact-line:hover { transform: translateY(-2px); }
.contact-ico { font-size: 1.1rem; }

.contact-form { background: var(--blanco); border: 1px solid var(--gris-300); border-radius: var(--radio); padding: 28px; box-shadow: var(--sombra); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--azul-900); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gris-300); border-radius: var(--radio-sm);
  font-family: inherit; font-size: .98rem; color: var(--texto); background: var(--blanco); transition: border .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px rgba(22,184,166,.15); }
.field textarea { resize: vertical; }
.hidden-field { display: none; }
.form-feedback { margin-top: 12px; font-size: .92rem; font-weight: 600; color: var(--acento-700); text-align: center; min-height: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--azul-900); color: #c3d4ec; padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .logo { color: #fff; margin-bottom: 10px; }
.footer-brand p { color: #93a8c7; max-width: 36ch; font-size: .95rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #c3d4ec; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 18px; }
.footer-bottom p { color: #7e94b5; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav, .btn-header { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { gap: 14px; }
  .header-actions { margin-left: auto; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--gris-300); padding: 18px 24px; gap: 16px;
  }
}
@media (max-width: 560px) {
  .hero { padding: 48px 0; }
  .section { padding: 56px 0; }
  .hero-cta .btn { flex: 1 1 100%; }
}
