/* ============================================================
   Spain4Compute — Styles
   ============================================================ */

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

:root {
  --c-bg:          #0a0e1a;
  --c-bg-light:    #111827;
  --c-bg-card:     #161d2e;
  --c-border:      rgba(255,255,255,.08);
  --c-text:        #e2e8f0;
  --c-text-muted:  #94a3b8;
  --c-accent:      #f97316;   /* orange */
  --c-accent2:     #6366f1;   /* indigo */
  --c-green:       #22c55e;
  --c-yellow:      #eab308;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 4px 24px rgba(0,0,0,.4);
  --font:          'Inter', system-ui, sans-serif;
  --nav-h:         64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 680px; }

.section { padding: 96px 0; }
.section-light { background: var(--c-bg-light); }
.section-dark  { background: #07090f; }
.section-cta   { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); }

/* ---- Typography ---- */
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.section-label.centered { text-align: center; }

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #f1f5f9;
}
.section-title.centered { text-align: center; }

.section-intro {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--c-text-muted);
  font-size: 1.05rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all .2s;
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.btn-primary:hover { background: #ea6c0a; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(249,115,22,.35); }

.btn-outline {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}
.btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent); }

.btn-ghost {
  background: rgba(255,255,255,.07);
  color: var(--c-text);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---- Nav ---- */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,14,26,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  height: var(--nav-h);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-text);
  font-size: 1.15rem;
}
.logo-icon { font-size: 1.4rem; }
.logo-text strong { color: var(--c-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--c-text-muted);
  font-size: .9rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--c-text); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: .3s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 60% 40%, rgba(99,102,241,.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(249,115,22,.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 80px;
}
.hero-badge {
  display: inline-block;
  background: rgba(249,115,22,.15);
  color: var(--c-accent);
  border: 1px solid rgba(249,115,22,.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  max-width: 780px;
  margin-bottom: 24px;
  color: #f8fafc;
}
.hero-subtitle {
  font-size: 1.15rem;
  max-width: 600px;
  color: var(--c-text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--c-border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-accent);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  color: var(--c-text-muted);
  max-width: 140px;
}

/* ---- Two-col ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col-text p { color: var(--c-text-muted); margin-bottom: 16px; }
.two-col-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.visual-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, transform .2s;
}
.visual-card:hover { border-color: rgba(249,115,22,.4); transform: translateY(-2px); }
.visual-icon { font-size: 1.8rem; }
.visual-card p { font-size: .88rem; color: var(--c-text-muted); }

/* ---- Cards grid ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s, transform .25s, box-shadow .25s;
}
.card:hover {
  border-color: rgba(99,102,241,.5);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-icon { font-size: 2.2rem; }
.card h3 { font-size: 1.2rem; font-weight: 700; color: #f1f5f9; }
.card p { font-size: .9rem; color: var(--c-text-muted); flex: 1; }
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.card-tags li {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: .75rem;
  color: var(--c-text-muted);
}
.card-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  align-self: flex-start;
}
.status-wip {
  background: rgba(234,179,8,.15);
  color: var(--c-yellow);
  border: 1px solid rgba(234,179,8,.3);
}
.status-live {
  background: rgba(34,197,94,.15);
  color: var(--c-green);
  border: 1px solid rgba(34,197,94,.3);
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-accent), var(--c-accent2));
  opacity: .4;
}
.timeline-item {
  position: relative;
  padding: 0 0 40px 28px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -1px;
  top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 3px solid var(--c-bg);
  box-shadow: 0 0 0 2px var(--c-accent);
}
.timeline-content h4 { font-size: 1rem; font-weight: 700; color: #f1f5f9; margin-bottom: 6px; }
.timeline-content p  { font-size: .9rem; color: var(--c-text-muted); }

/* ---- CTA ---- */
.cta-box {
  text-align: center;
  padding: 64px 48px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.cta-icon { font-size: 2.8rem; margin-bottom: 20px; }
.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 16px; color: #f8fafc; }
.cta-box > p { color: var(--c-text-muted); margin-bottom: 32px; }
.cta-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto 16px;
}
.form-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text);
  font-size: .95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}
.form-input:focus { border-color: var(--c-accent); }
.form-input::placeholder { color: var(--c-text-muted); }
.cta-fine { font-size: .8rem; color: var(--c-text-muted); }
.form-success {
  margin-top: 16px;
  color: var(--c-green);
  font-weight: 600;
}
.hidden { display: none; }

/* ---- Footer ---- */
.footer {
  background: #07090f;
  border-top: 1px solid var(--c-border);
  padding: 56px 0 32px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 260px;
}
.footer-brand .logo-text { font-size: 1.1rem; }
.footer-brand p { font-size: .85rem; color: var(--c-text-muted); }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h5 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: .88rem; color: var(--c-text-muted); transition: color .15s; }
.footer-col a:hover { color: var(--c-text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  font-size: .82rem;
  color: var(--c-text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col-visual { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 28px; }
  .cta-form { flex-direction: column; }
  .cta-box { padding: 40px 24px; }
  .footer-inner { flex-direction: column; gap: 32px; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(10,14,26,.97); border-bottom: 1px solid var(--c-border); padding: 16px 0; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 24px; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 480px) {
  .two-col-visual { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
}
