/* ============ Techmind — styles ============ */
:root {
  --bg: #070b14;
  --bg-alt: #0b1120;
  --surface: #101828;
  --border: rgba(148, 163, 184, .14);
  --text: #e6ebf5;
  --muted: #98a4bb;
  --accent-1: #e3a857;
  --accent-2: #f0c584;
  --accent-3: #f0c584;
  --grad: linear-gradient(100deg, #e3a857, #f0c584);
  --radius: 18px;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.grad {
  background: linear-gradient(100deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--grad); color: #221708;
  box-shadow: 0 8px 28px rgba(227, 168, 87, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(227, 168, 87, .4); }
.btn-ghost {
  border: 1px solid var(--border); color: var(--text);
  background: rgba(255, 255, 255, .03);
}
.btn-ghost:hover { border-color: var(--accent-1); background: rgba(227, 168, 87, .08); }
.btn-sm { padding: .55rem 1.2rem; font-size: .92rem; }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(7, 11, 20, .75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; }
.brand-dot { color: var(--accent-1); font-weight: 700; }
.brand-name {
  font-family: 'Space Grotesk', var(--font-head);
  font-weight: 300; font-size: 1.45rem; letter-spacing: 0;
  color: var(--text);
}
.brand-name b { font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; font-size: .95rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 11rem 0 6rem;
  text-align: center;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: .4; pointer-events: none;
}
.hero-glow-1 { width: 560px; height: 560px; background: #e3a857; top: -220px; left: -140px; opacity: .22; }
.hero-glow-2 { width: 520px; height: 520px; background: #64748b; top: -120px; right: -180px; opacity: .28; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 35%, transparent 75%);
}
.hero-inner { position: relative; }
.badge {
  display: inline-block; font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  color: var(--accent-2);
  border: 1px solid rgba(227, 168, 87, .3);
  background: rgba(227, 168, 87, .07);
  padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1.6rem;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
.hero-sub {
  max-width: 620px; margin: 1.4rem auto 2.2rem;
  color: var(--muted); font-size: 1.12rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-points {
  display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap;
  margin-top: 4rem;
}
.hero-points div { display: flex; flex-direction: column; gap: .15rem; }
.hero-points strong { font-family: var(--font-head); font-size: 1rem; }
.hero-points span { color: var(--muted); font-size: .88rem; }

/* ---------- Secciones ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; font-weight: 600; color: var(--accent-1); margin-bottom: .8rem;
}
.section-head h2, .about h2, .cta-final h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: .9rem; }

/* ---------- Servicios ---------- */
.service {
  display: grid; grid-template-columns: 84px 1fr; gap: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem;
  margin-bottom: 1.6rem;
  transition: border-color .25s ease, transform .25s ease;
}
.service:hover { border-color: rgba(227, 168, 87, .45); transform: translateY(-3px); }
.service-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(227, 168, 87, .1);
  color: var(--accent-1);
  display: grid; place-items: center;
}
.service h3 { font-size: 1.45rem; margin-bottom: .7rem; }
.service p { color: var(--muted); max-width: 640px; }
.service ul { list-style: none; margin: 1.2rem 0 1.4rem; display: grid; gap: .55rem; }
.service li { padding-left: 1.6rem; position: relative; color: var(--text); font-size: .98rem; }
.service li::before {
  content: ''; position: absolute; left: 0; top: .52em;
  width: 9px; height: 9px; border-radius: 3px;
  background: var(--grad);
}
.link-cta { font-weight: 600; color: var(--accent-1); font-size: .98rem; transition: color .2s; }
.link-cta:hover { color: var(--accent-3); }

/* ---------- Casos ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: rgba(227, 168, 87, .4); transform: translateY(-4px); }
.card-tag {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-3); margin-bottom: .9rem;
}
.card h4 { font-size: 1.12rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .93rem; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3.5rem; align-items: start; }
.about-text p { color: var(--muted); margin-top: 1.1rem; }
.about-text strong { color: var(--text); }
.about-values { display: grid; gap: 1.1rem; }
.value {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent-1);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  display: flex; flex-direction: column; gap: .2rem;
}
.value strong { font-family: var(--font-head); }
.value span { color: var(--muted); font-size: .92rem; }

/* ---------- CTA final / Contacto ---------- */
.cta-final {
  background:
    radial-gradient(ellipse 60% 90% at 50% 110%, rgba(227,168,87,.14), transparent),
    var(--bg-alt);
  border-top: 1px solid var(--border);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: start; }
.contact-info p { color: var(--muted); margin: 1rem 0 2rem; }
.cta-phone { display: block; margin-top: 1.6rem; color: var(--muted); font-size: .95rem; line-height: 1.8; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid; gap: 1.1rem;
}
.contact-form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 500; }
.contact-form label em { color: var(--muted); font-style: normal; font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem .95rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form select:invalid { color: var(--muted); }
.contact-form textarea { resize: vertical; }
.contact-form ::placeholder { color: #5b6779; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(227, 168, 87, .18);
}
.contact-form button { justify-content: center; border: none; }
.form-status { font-size: .92rem; text-align: center; min-height: 1.2em; margin: 0; }
.form-status.ok { color: #4ade80; }
.form-status.error { color: #f87171; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  color: var(--muted); font-size: .9rem;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .4);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Entrada del hero en cascada */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero .badge,
.hero h1,
.hero-sub,
.hero-cta,
.hero-points { opacity: 0; animation: fadeUp .8s cubic-bezier(.22,.9,.35,1) forwards; }
.hero .badge  { animation-delay: .1s; }
.hero h1      { animation-delay: .25s; }
.hero-sub     { animation-delay: .45s; }
.hero-cta     { animation-delay: .6s; }
.hero-points  { animation-delay: .8s; }

/* Luces del hero en movimiento */
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(70px, 50px) scale(1.15); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-60px, 60px) scale(1.1); }
}
.hero-glow-1 { animation: drift1 13s ease-in-out infinite; }
.hero-glow-2 { animation: drift2 17s ease-in-out infinite; }

/* Brillo que recorre el texto degradado */
.grad { background-size: 200% auto; animation: shine 5s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }

/* Pulso del botón de WhatsApp */
@keyframes waPulse {
  0%   { box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}
.wa-float { animation: waPulse 2.6s ease-out infinite; }

/* Accesibilidad: sin animaciones si el usuario las desactiva */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero .badge, .hero h1, .hero-sub, .hero-cta, .hero-points { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 1.4rem 5%; gap: 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .hero { padding-top: 8.5rem; }
  .service { grid-template-columns: 1fr; padding: 1.8rem; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-points { gap: 1.4rem; flex-direction: column; align-items: center; text-align: center; }
}
