:root {
  --ink: #152536;
  --ink-soft: #4a5d6e;
  --muted: #6d8090;
  --line: #d5e0e8;
  --paper: #f3f7fa;
  --surface: #ffffff;
  --accent: #1f5f82;
  --accent-deep: #174a66;
  --ok: #1f6b4a;
  --radius: 8px;
  --max: 1120px;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.logo {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.logo:hover {
  color: var(--ink);
  text-decoration: none;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-menu {
  display: none;
}

.nav-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}

.nav-menu summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.topbar nav a {
  color: inherit;
  text-decoration: none;
}

.topbar nav a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.95rem;
  border: 1px solid #b9c9d5;
  border-radius: var(--radius);
  color: var(--ink) !important;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.65);
}

.nav-cta:hover {
  background: #fff;
  text-decoration: none !important;
}

.hero {
  position: relative;
  min-height: min(90vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("/titan-hero.svg?v=20260718a") center / cover no-repeat;
  animation: settle 1.15s ease both;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(34rem, 48%);
  padding: 8rem 0 4.75rem;
  animation: rise 0.9s ease both;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.8vw, 3.45rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 32ch;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-deep); }

.btn-quiet {
  background: rgba(255, 255, 255, 0.8);
  border-color: #c2d0db;
  color: var(--ink);
}

.btn-quiet:hover {
  background: #fff;
  border-color: #aebfcd;
}

.band { padding: 4.75rem 0; }

.band-soft {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.band-head p,
.split-lead {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.products {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr) 12.75rem;
  column-gap: 1.75rem;
  row-gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--line);
}

/* Una sola rejilla para las 3 filas: columnas perfectamente alineadas */
.product {
  display: contents;
}

.product-meta,
.product-copy,
.product-actions {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  min-height: 6.75rem;
  box-sizing: border-box;
}

.product-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
}

.product h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}

.product-copy {
  margin: 0;
  display: flex;
  align-items: center;
  color: var(--ink-soft);
  width: 100%;
  line-height: 1.45;
}

.product-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0.55rem;
}

.product-actions .btn {
  width: 100%;
  min-height: 42px;
}

.product-actions .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #e5f3eb;
  color: var(--ok);
  font-size: 0.75rem;
  font-weight: 700;
}

.text-link {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

.text-link:hover { color: var(--accent); }

.split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: start;
}

.split ul {
  margin: 1.25rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.split li + li { margin-top: 0.55rem; }

.aside {
  padding: 1.45rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.band-soft .aside { background: #f7fafc; }

.aside p {
  margin: 0;
  color: var(--ink-soft);
}

.aside .btn { margin-top: 1.15rem; }

.aside-meta {
  margin-top: 0.9rem !important;
  font-size: 0.9rem;
  color: var(--muted);
}

.aside-meta a {
  color: var(--muted);
  font-weight: 600;
}

.aside-meta a:hover { color: var(--accent); }

.footer {
  padding: 2.35rem 0;
  background: #163247;
  color: rgba(236, 243, 248, 0.88);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer p {
  margin: 0;
  color: rgba(214, 227, 236, 0.8);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-links a {
  color: rgba(236, 243, 248, 0.92);
  font-weight: 500;
}

.footer-links a:hover { color: #fff; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes settle {
  from { transform: scale(1.035); opacity: 0.92; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 980px) {
  .topbar {
    background: linear-gradient(180deg, rgba(243, 247, 250, 0.96), rgba(243, 247, 250, 0.82));
    border-bottom: 1px solid rgba(213, 224, 232, 0.85);
  }

  .hero { min-height: auto; }
  .hero-copy {
    width: min(36rem, 100%);
    padding: 7rem 0 3.4rem;
    background: linear-gradient(180deg, rgba(243, 247, 250, 0.9), rgba(243, 247, 250, 0.72));
  }
  .products {
    grid-template-columns: 1fr;
  }
  .product {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
  }
  .product-meta,
  .product-copy,
  .product-actions {
    min-height: 0;
    padding: 0;
    border-bottom: 0;
  }
  .product h3 { min-height: 0; }
  .product-actions { max-width: 100%; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar .shell {
    min-height: 64px;
    gap: 0.65rem;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    line-height: 1.25;
    flex: 1 1 12rem;
    min-width: 0;
  }

  .topbar nav {
    gap: 0.65rem;
    font-size: 0.84rem;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .topbar nav > a:not(.nav-cta) {
    display: none;
  }

  .nav-menu {
    display: block;
    position: relative;
  }

  .nav-cta {
    min-height: 34px;
    padding: 0 0.6rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-media { animation: none; }
  .btn:hover { transform: none; }
}
