/* ───────────────────────────────────────────────────────────────
   Cultura en Línea — Landing styles
   Tipografía: Instrument Serif (display) + Geist (sans) + Geist Mono
   Paleta: crema + tinta + acento terracota
   ─────────────────────────────────────────────────────────────── */

:root {
  --bg: #f1ece1;
  --bg-2: #e8e1d2;
  --paper: #faf6ee;
  --ink: #1a1714;
  --ink-2: #4a443c;
  --rule: rgba(26, 23, 20, 0.13);
  --accent: #b85a2f;
  --accent-ink: #ffffff;

  --container: 1320px;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ─── Type utilities ─── */
.serif { font-family: 'Instrument Serif', 'Times New Roman', serif; font-weight: 400; }
.mono  { font-family: 'Geist Mono', ui-monospace, monospace;
         font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
         color: var(--ink-2); font-feature-settings: normal; }
.italic { font-style: italic; }
em { font-style: italic; }

/* ─── Layout ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { border-bottom: 1px solid var(--rule); }

/* ─── Pills / buttons ─── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.pill:hover { background: var(--ink); color: var(--bg); }
.pill:active { transform: translateY(1px); }
.pill--dark { background: var(--ink); color: var(--bg); }
.pill--dark:hover { background: transparent; color: var(--ink); }
.pill--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill--accent:hover { background: transparent; color: var(--accent); }
.pill--white { background: #fff; border-color: #fff; color: var(--accent); }
.pill--white:hover { background: transparent; color: #fff; }
.pill--ghost-white { border-color: #fff; color: #fff; }
.pill--ghost-white:hover { background: #fff; color: var(--accent); }

/* ─── Image captions ─── */
.img-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  background: var(--paper);
  color: var(--ink-2);
  padding: 4px 8px;
  border: 1px solid var(--rule);
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__name { font-size: 22px; line-height: 1; }
.nav__links { display: flex; gap: 26px; margin-left: 40px; flex: 1; }
.nav__links a {
  font-size: 14px;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.nav__links a:hover { border-bottom-color: var(--ink); }
.nav__loc { white-space: nowrap; }

/* ─── HERO ─── */
.hero { padding: 64px 0 56px; }
.hero__kickers {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(48px, 7.2vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__sub {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
}
.hero__body {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0;
  text-wrap: pretty;
}
.hero__cta {
  display: flex; gap: 12px; justify-content: flex-end; align-items: center;
  flex-wrap: wrap;
}
.hero__cta-label { margin-right: 8px; }

.hero__images {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  height: 360px;
}
.hero__img {
  position: relative;
  margin: 0;
  background: var(--bg-2);
  overflow: hidden;
}
.hero__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__stat {
  background: var(--ink);
  color: var(--bg);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero__stat-label { color: var(--bg-2); }
.hero__stat-num {
  font-size: 92px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__stat-desc {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--bg-2);
  line-height: 1.4;
}

/* ─── MARQUEE ─── */
.marquee { overflow: hidden; background: var(--paper); }
.marquee__inner {
  display: flex; align-items: center; gap: 28px;
  padding-top: 16px; padding-bottom: 16px;
}
.marquee__label { white-space: nowrap; }
.marquee__track {
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row {
  display: flex; gap: 40px;
  white-space: nowrap;
  animation: cel-marquee 40s linear infinite;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.marquee__row .dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  align-self: center;
}
@keyframes cel-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── MANIFIESTO ─── */
.manifiesto { padding: 96px 0; }
.manifiesto__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 96px;
}
.manifiesto__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 32ch;
}
.manifiesto__lead {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: pretty;
}
.manifiesto__principles {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.manifiesto__principles > div { flex: 1; }
.manifiesto__principle-title { color: var(--accent); }
.manifiesto__principles p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* ─── SERVICIOS ─── */
.servicios { padding: 88px 0; }
.servicios__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  gap: 48px;
}
.servicios__title {
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  max-width: 14ch;
  text-wrap: balance;
}
.servicios__intro {
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

/* Cards (servicios) */
.card {
  padding: 32px 28px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 280px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: background 0.2s ease;
}
.card:hover { background: var(--paper); }
.card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
}
.card__n {
  font-size: 36px;
  line-height: 1;
  color: var(--accent);
}
.card__tag { text-align: right; }
.card__title {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 8px 0 0;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  flex: 1;
}
.card__more {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.card:hover .card__more { opacity: 1; }
.card__more .arrow { transition: transform 0.2s; }
.card:hover .card__more .arrow { transform: translateX(4px); }

/* ─── SECTORES ─── */
.sectores {
  padding: 88px 0;
  background: var(--paper);
}
.sectores__grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.sector {
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 36px;
}
.sector__head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.sector__name {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.sector__tag { color: var(--ink-2); font-size: 12px; }
.sector__list {
  list-style: none; padding: 0; margin: 28px 0 0;
}
.sector__list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 16px;
}
.sector__list li:last-child { border-bottom: 1px solid var(--rule); }
.sector__list .mono { color: var(--accent); width: 24px; flex-shrink: 0; }
.sector__list span:nth-child(2) { flex: 1; }
.sector__list .arrow { color: var(--ink-2); font-size: 14px; }

/* ─── PROCESO ─── */
.proceso { padding: 88px 0; }
.proceso__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}
.proceso__title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 12px 0 24px;
  text-wrap: balance;
}
.proceso__intro p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38ch;
  margin: 0;
}
.proceso__img {
  position: relative;
  margin: 36px 0 0;
  height: 240px;
  overflow: hidden;
  background: var(--bg-2);
}
.proceso__img img { width: 100%; height: 100%; object-fit: cover; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.steps li {
  display: grid;
  grid-template-columns: 90px 1fr 24px;
  gap: 24px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}
.step__n { color: var(--accent); font-size: 12px; }
.step__title {
  font-size: 36px;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
}
.steps li p {
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
}
.steps .arrow { text-align: right; color: var(--ink-2); }

/* ─── PROYECTOS ─── */
.proyectos {
  padding: 96px 0;
  background: var(--ink);
  color: var(--bg);
}
.proyectos__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 48px;
  gap: 24px;
}
.proyectos__kicker { color: var(--bg-2); }
.proyectos__title {
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  text-wrap: balance;
}
.proyectos__link {
  color: var(--bg);
  font-size: 14px;
  border-bottom: 1px solid var(--bg-2);
  white-space: nowrap;
}
.proyectos__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.proyecto {
  background: var(--bg);
  color: var(--ink);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.proyecto--lead { padding: 36px; min-height: 480px; }
.proyecto__title {
  font-size: 64px;
  line-height: 1;
  margin: 20px 0 24px;
  letter-spacing: -0.02em;
  max-width: 12ch;
}
.proyecto__title--sm {
  font-size: 32px;
  line-height: 1.05;
  margin: 14px 0;
  letter-spacing: -0.01em;
}
.proyecto__body {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 40ch;
  margin: 0;
}
.proyecto:not(.proyecto--lead) .proyecto__body { font-size: 14.5px; }
.proyecto__foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 32px;
  gap: 12px; flex-wrap: wrap;
}
.proyectos__side {
  display: grid;
  gap: 16px;
}
.proyectos__side .proyecto { min-height: 232px; }

/* ─── CITA ─── */
.cita { background: var(--bg); }
.cita__inner {
  max-width: 1100px;
  padding-top: 120px;
  padding-bottom: 120px;
  text-align: center;
}
.cita__quote {
  font-size: 80px;
  color: var(--accent);
  line-height: 0;
}
.cita__text {
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
  text-wrap: balance;
}

/* ─── CTA ─── */
.cta {
  background: var(--accent);
  color: var(--accent-ink);
}
.cta__grid {
  padding: 88px 32px;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
}
.cta__kicker { color: rgba(255,255,255,0.71); }
.cta__title {
  font-size: clamp(48px, 7vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 14px 0 0;
  text-wrap: balance;
}
.cta__right {
  display: flex; flex-direction: column; gap: 16px;
}
.cta__right p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.92;
  max-width: 40ch;
}
.cta__actions {
  display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap;
}

/* ─── FOOTER ─── */
.footer { background: var(--bg); padding: 64px 0 32px; border-bottom: 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer__logo { display: flex; align-items: center; gap: 10px; }
.footer__name { font-size: 26px; }
.footer__desc {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 36ch;
}
.footer__list {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: grid; gap: 8px;
}
.footer__list li { font-size: 14px; color: var(--ink); }
.footer__legal {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__loc { display: none; }
  .hero__sub { grid-template-columns: 1fr; }
  .hero__cta { justify-content: flex-start; }
  .hero__images { grid-template-columns: 1fr; height: auto; }
  .hero__img, .hero__stat { height: 240px; }
  .manifiesto__grid { grid-template-columns: 1fr; gap: 32px; }
  .manifiesto__principles { flex-direction: column; }
  .servicios__head { flex-direction: column; gap: 16px; }
  .servicios__grid { grid-template-columns: 1fr; }
  .sectores__grid { grid-template-columns: 1fr; }
  .proceso__grid { grid-template-columns: 1fr; gap: 48px; }
  .proyectos__grid { grid-template-columns: 1fr; }
  .proyecto__title { font-size: 44px; }
  .cta__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .nav__inner { padding: 12px 20px; gap: 12px; }
  .nav__brand .nav__name { font-size: 18px; }
  .pill { padding: 8px 14px; font-size: 12.5px; }
  .hero { padding: 32px 0 40px; }
  .hero__kickers { flex-direction: column; gap: 6px; align-items: flex-start; }
  .hero__stat-num { font-size: 64px; }
  .marquee__inner { flex-direction: column; align-items: flex-start; padding: 12px 20px; }
  .manifiesto { padding: 64px 0; }
  .servicios { padding: 64px 0; }
  .sectores { padding: 64px 0; }
  .proceso { padding: 64px 0; }
  .proyectos { padding: 64px 0; }
  .cita__inner { padding-top: 64px; padding-bottom: 64px; }
  .cta__grid { padding: 64px 20px; }
  .sector { padding: 24px; }
  .sector__name { font-size: 32px; }
  .proyecto--lead { padding: 24px; }
  .proyecto__title { font-size: 36px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .steps li { grid-template-columns: 1fr; gap: 8px; }
  .steps .arrow { display: none; }
}
