/* ===========================
   ultranube — estilos globales
   =========================== */
:root {
  --bg: #0a0e14;
  --surface: #121826;
  --surface-2: #1a2233;
  --border: #232c40;
  --text: #e6edf6;
  --muted: #8b97ab;
  --accent: #22d3ee;
  --accent-2: #38bdf8;
  --accent-ink: #041016;
  --radius: 14px;
  --maxw: 1160px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.4em;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; color: var(--muted); }

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

img { max-width: 100%; display: block; }

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

section { padding: 88px 0; position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.section-head p { font-size: 1.05rem; margin-bottom: 0; }

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #4be3f5; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-wa { background: #22c55e; color: #04140a; }
.btn-wa:hover { background: #34d977; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
}
.brand b { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 6px; }

/* ===== Hero ===== */
.hero { padding-top: 72px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.16), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead { font-size: 1.15rem; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); }
.hero-trust span { font-size: 0.85rem; color: var(--muted); }

.hero-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-card .row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); margin-bottom: 12px; }
.hero-card .row:last-child { margin-bottom: 0; }
.hero-card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(34,211,238,0.12); color: var(--accent); flex-shrink: 0; }
.hero-card .row b { display: block; font-family: var(--font-head); font-size: 0.98rem; }
.hero-card .row span { font-size: 0.85rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); margin-left: auto; }

/* ===== Grid de cards genérico ===== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.4); }
.card .ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(34,211,238,0.1);
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.2rem; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* ===== Soluciones (tabs) ===== */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.tab {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade 0.35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.solution-item { display: flex; gap: 14px; align-items: flex-start; }
.solution-item .ico { flex-shrink: 0; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34,211,238,0.09);
  border: 1px solid rgba(34,211,238,0.22);
  padding: 3px 9px;
  border-radius: 6px;
  margin-top: 12px;
}

/* ===== Automatización ===== */
.auto-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.auto-item { text-align: left; }
.auto-item .ico { width: 54px; height: 54px; font-size: 1.4rem; }
.auto-item h3 { font-size: 1.25rem; }

/* ===== Pricing ===== */
.pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.badge-pop {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.price-card .sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price .amount { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--text); }
.price .per { color: var(--muted); font-size: 0.95rem; }
.price-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 22px; }
.features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--text); }
.features li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* ===== Tabla comparativa ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
thead th { font-family: var(--font-head); background: var(--surface-2); color: var(--text); }
tbody td:first-child { color: var(--muted); }
tbody tr:last-child td { border-bottom: none; }
.check { color: #22c55e; }
.cross { color: #64748b; }

/* ===== Proceso ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(34,211,238,0.1);
  color: var(--accent);
  border: 1px solid rgba(34,211,238,0.25);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: 0.92rem; margin-bottom: 0; }

/* ===== Testimonios ===== */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.quote-card p { color: var(--text); font-size: 1rem; margin-bottom: 20px; }
.who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.who b { display: block; font-size: 0.95rem; font-family: var(--font-head); }
.who span { font-size: 0.83rem; color: var(--muted); }
.stars { color: #fbbf24; margin-bottom: 14px; display: flex; gap: 2px; }

/* ===== FAQ ===== */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q svg { flex-shrink: 0; transition: transform 0.25s; color: var(--accent); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 20px 18px; margin: 0; font-size: 0.95rem; }

/* ===== Contacto ===== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info .card-lite { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-info .card-lite:last-child { border-bottom: none; }
.contact-info .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,211,238,0.1); color: var(--accent); flex-shrink: 0; }
.contact-info b { font-family: var(--font-head); }
.contact-info span { font-size: 0.9rem; color: var(--muted); }
form { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 30px; background: var(--surface); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-about { max-width: 300px; }
.footer-about p { font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--muted); }

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #22c55e;
  color: #04140a;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(34,197,94,0.4);
  z-index: 60;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  section { padding: 60px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px 18px;
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .grid-3, .grid-2, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .hero-trust { gap: 16px; }
}
