:root {
  --ink: #09090b;
  --text: #27272a;
  --muted: #52525b;
  --bg: #ffffff;
  --bg-soft: #f4f4f5;
  --bg-dark: #09090b;
  --bg-dark-2: #27272a;
  --accent: #3b82f6;
  --gradient: linear-gradient(135deg, #314edf 0%, #22eaee 100%);
  --content: min(calc(100% - 4rem), 720px);
  --wide: min(calc(100% - 4rem), 1280px);
  --serif: "Cardo", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3rem); text-transform: capitalize; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); text-transform: capitalize; }
h3 { font-size: 1.75rem; }

p { margin: 0 0 1rem; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

.wide { width: var(--wide); margin-inline: auto; }
.narrow { width: var(--content); margin-inline: auto; }

.eyebrow {
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 16px 24px;
  border-radius: 4px;
  background: var(--gradient);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34, 234, 238, .25); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: #fff; }
.brand img { width: 120px; border-radius: 2px; }
.brand-name { font-weight: 700; font-size: 1.125rem; text-transform: uppercase; line-height: 1.3; }
.brand-sub { font-size: .9375rem; }
.nav { display: flex; gap: 1.25rem; }
.nav a { color: #fff; text-decoration: none; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  background: var(--bg-dark) url("img/hero-bg.png") center / cover no-repeat;
  color: #fff;
}
.hero-body {
  text-align: center;
  padding: 3rem 0 7.75rem;
}
.hero h1 { color: #fff; margin: 0 auto 3rem; max-width: 760px; }
.gradient-bar { height: 4px; background: var(--gradient); }

/* Sections */
.section { padding: 6rem 0; }
.section-light { background: var(--bg); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark-2); color: #e4e4e7; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; margin-bottom: 3rem; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3rem 0;
  text-align: center;
}
.features img { width: 72px; margin: 0 auto 1rem; }
.features p { font-size: 1rem; }

/* Media + text rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split + .split { margin-top: 4rem; }
.split img { border-radius: 16px; width: 100%; max-width: 420px; margin-inline: auto; box-shadow: 0 20px 40px rgba(0,0,0,.12); }
.split.reverse .split-media { order: 2; }

/* Cards */
.cards { display: grid; gap: 1.5rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-2 { margin-top: 1.5rem; }
.card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  font-size: 1rem;
}
.card-logo {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
}
.card-logo img { max-height: 180px; max-width: 100%; width: auto; height: auto; border-radius: 12px; }
.card a { text-decoration: underline; text-underline-offset: 2px; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; text-align: center; }
.testimonials img { width: 64px; height: 64px; border-radius: 8px; margin: 0 auto 1.25rem; object-fit: cover; }
.testimonials blockquote { margin: 0 0 1rem; font-size: 1rem; }
.testimonials cite { font-style: normal; font-size: .9375rem; }

/* Article (Origen del Proyecto) */
.article { padding: 4rem 0 6rem; }
.article h1 { text-transform: none; margin-bottom: 2.5rem; }
.article h2 { font-size: 1.5rem; text-transform: none; margin-top: 2.5rem; }
.article ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.article li { margin-bottom: .75rem; }
.article li::marker { color: var(--accent); }

/* Footer */
.site-footer { background: var(--bg-dark); color: #d4d4d8; padding: 4rem 0 2rem; font-size: .9375rem; }
.site-footer h2 { color: #fff; font-size: 1.125rem; text-transform: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid p { margin: 0 0 .5rem; }
.footer-brand { color: #fff; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #27272a;
  font-size: .875rem;
}
.footer-bottom a { text-decoration: none; }

@media (max-width: 900px) {
  .features, .cards-3, .cards-2, .testimonials, .footer-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse .split-media { order: 0; }
  .section { padding: 4rem 0; }
}

@media (max-width: 600px) {
  :root { --content: calc(100% - 2rem); --wide: calc(100% - 2rem); }
  .site-header { flex-direction: column; align-items: flex-start; }
  .brand img { width: 88px; }
  .hero-body { padding: 2.5rem 0 5rem; }
}
