/* IA+ Tech — Webs institucionales (compartido) */

/* Reset mínimo */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'General Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografía */
h1, h2, h3, h4 { font-family: 'Satoshi', system-ui, sans-serif; line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; }
p { color: var(--text-muted); }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }

/* Layout */
.iaweb-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: var(--gap-3) var(--gap-4);
}
.iaweb-nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-4);
}
.iaweb-brand {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  text-decoration: none;
  color: var(--text);
}
.iaweb-brand-mark {
  background: var(--gradient);
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: 'Satoshi', sans-serif;
  color: var(--bg);
  font-size: var(--fs-sm);
}
.iaweb-brand-text {
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: var(--fs-md);
}
.iaweb-nav-links {
  display: flex;
  gap: var(--gap-4);
  align-items: center;
}
.iaweb-nav-links a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.iaweb-nav-links a:hover { color: var(--text); }
.iaweb-nav-cta {
  background: var(--gradient);
  color: var(--bg) !important;
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
}
.iaweb-nav-cta:hover { color: var(--bg) !important; opacity: 0.9; }

@media (max-width: 720px) {
  .iaweb-nav-links a:not(.iaweb-nav-cta) { display: none; }
}

/* Hero */
.iaweb-hero {
  padding: clamp(4rem, 10vw, 8rem) var(--gap-4) clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.iaweb-hero-inner {
  max-width: 920px;
  margin: 0 auto;
}
.iaweb-hero h1 {
  margin-bottom: var(--gap-3);
}
.iaweb-hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.iaweb-hero p.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto var(--gap-6);
}
.iaweb-hero-cta {
  display: flex;
  gap: var(--gap-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Botones (extiende components.css) */
.iaweb-btn-hero {
  background: var(--gradient);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--fs-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--gap-1);
  transition: transform .15s, box-shadow .15s;
}
.iaweb-btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(103, 232, 249, 0.4);
  color: var(--bg);
}
.iaweb-btn-ghost-lg {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 27px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: var(--fs-md);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.iaweb-btn-ghost-lg:hover {
  border-color: var(--cyan);
  background: var(--surface-1);
  color: var(--text);
}

/* Secciones */
.iaweb-section {
  padding: clamp(3rem, 6vw, 5rem) var(--gap-4);
}
.iaweb-section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.iaweb-section-head {
  text-align: center;
  margin-bottom: var(--gap-8);
}
.iaweb-section-head h2 { margin-bottom: var(--gap-2); }
.iaweb-section-head p { font-size: var(--fs-lg); max-width: 640px; margin: 0 auto; }

.iaweb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-4);
}

.iaweb-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--gap-4);
  transition: border-color .2s, transform .2s;
}
.iaweb-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.iaweb-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: var(--gap-3);
}
.iaweb-card h3 {
  margin: 0 0 var(--gap-2) 0;
  font-size: var(--fs-lg);
}
.iaweb-card p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.iaweb-card a.learn-more {
  display: inline-block;
  margin-top: var(--gap-3);
  color: var(--cyan);
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* Footer */
.iaweb-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: var(--gap-6) var(--gap-4) var(--gap-4);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.iaweb-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap-6);
}
.iaweb-footer h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--gap-2);
}
.iaweb-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.iaweb-footer li { margin-bottom: var(--gap-1); }
.iaweb-footer a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.iaweb-footer a:hover { color: var(--text); }
.iaweb-footer-bottom {
  max-width: var(--maxw);
  margin: var(--gap-6) auto 0;
  padding-top: var(--gap-4);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: var(--fs-xs);
}

@media (max-width: 720px) {
  .iaweb-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .iaweb-footer-inner { grid-template-columns: 1fr; }
}

/* Disclaimer (Quants) */
.iaweb-disclaimer {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--r-md);
  padding: var(--gap-4);
  margin: var(--gap-4) auto;
  max-width: 920px;
  font-size: var(--fs-sm);
  color: var(--amber);
}
.iaweb-disclaimer strong { color: var(--amber); }

/* ─── "Próximamente" — productos en desarrollo ─────────────────────── */
.iaweb-card-proximamente {
  position: relative;
  opacity: 0.85;
  background: linear-gradient(135deg,
    rgba(103, 232, 249, 0.04) 0%,
    rgba(59, 130, 246, 0.04) 100%);
  border: 1px dashed rgba(103, 232, 249, 0.35);
}
.iaweb-card-proximamente:hover {
  transform: none;
  box-shadow: none;
  cursor: default;
}
.iaweb-badge-proximamente {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--bg);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.learn-more-disabled {
  display: inline-block;
  margin-top: var(--gap-3);
  font-size: var(--fs-sm);
  color: var(--cyan);
  opacity: 0.7;
  font-weight: 500;
}

/* ─── Flow horizontal (sub-sitio Real Estate, agrupa los 4 productos) ── */
.iaweb-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: var(--gap-3);
  align-items: stretch;
  margin-top: var(--gap-5);
}

.iaweb-flow-step {
  background: var(--surface-2, rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--gap-4);
}

.iaweb-flow-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--bg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--gap-2);
}

.iaweb-flow-step h4 {
  font-size: 1rem;
  margin-bottom: var(--gap-1);
}

.iaweb-flow-step p {
  color: var(--on-surface-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.iaweb-flow-arrow {
  align-self: center;
  font-size: 1.5rem;
  color: var(--cyan);
  opacity: 0.6;
}

@media (max-width: 980px) {
  .iaweb-flow {
    grid-template-columns: 1fr;
  }
  .iaweb-flow-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }
}

.iaweb-card-status {
  margin-top: var(--gap-2);
  font-weight: 500;
}

.iaweb-muted-text {
  color: var(--on-surface-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
