/* ============================================================
   JORENVIXX — style.css
   ============================================================ */

/* ── 1. CSS Custom Properties ─────────────────────────────── */
:root {
  /* Brand palette  (matches logo SVG oklch values) */
  --green:        oklch(42% 0.12 145);       /* primary brand green  */
  --green-light:  oklch(55% 0.13 145);
  --green-muted:  oklch(42% 0.06 145);
  --amber:        oklch(62% 0.14 55);        /* accent amber/gold    */
  --amber-light:  oklch(72% 0.12 60);

  /* Neutrals */
  --ink:          oklch(22% 0.04 200);       /* matches logo text    */
  --ink-mid:      oklch(38% 0.03 200);
  --ink-soft:     oklch(50% 0.02 200);
  --border:       oklch(88% 0.01 200);
  --surface:      oklch(98% 0.005 200);      /* off-white page bg    */
  --surface-alt:  oklch(96% 0.008 145);      /* very-light greenish  */
  --dark:         oklch(18% 0.04 200);
  --dark-card:    oklch(22% 0.04 200);

  /* Typography */
  --font:         'Schibsted Grotesk', sans-serif;

  /* Spacing */
  --section-py:   clamp(4rem, 8vw, 7rem);
  --container:    1200px;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;

  /* Shadows */
  --shadow-sm:    0 1px 3px oklch(0% 0 0 / .06), 0 2px 8px oklch(0% 0 0 / .04);
  --shadow-md:    0 4px 16px oklch(0% 0 0 / .08), 0 1px 3px oklch(0% 0 0 / .05);
  --shadow-lg:    0 8px 32px oklch(0% 0 0 / .12), 0 2px 8px oklch(0% 0 0 / .06);

  /* Transitions */
  --ease:         cubic-bezier(.25,.46,.45,.94);
  --fast:         180ms;
  --mid:          300ms;
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: clamp(1rem, 1.1vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

address { font-style: normal; }

/* ── 3. Typography Helpers ────────────────────────────────── */
.h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--ink);
}

.label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .75rem;
}

.label--light { color: var(--amber-light); }

/* ── 4. Layout Utilities ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding-block: var(--section-py);
}

.section--dark {
  background: var(--dark);
  color: oklch(93% 0.01 200);
}

.section--dark .h2 { color: #fff; }

.section--tinted { background: var(--surface-alt); }

.section__header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section__header .h2 { margin-top: .5rem; }

/* ── 5. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast), color var(--fast), border-color var(--fast);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px oklch(42% 0.12 145 / .35);
}

.btn--primary:hover {
  background: var(--green-light);
  box-shadow: 0 6px 20px oklch(42% 0.12 145 / .45);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--green);
  color: var(--green);
}

.section--dark .btn--outline {
  color: #fff;
  border-color: oklch(100% 0 0 / .25);
}

.section--dark .btn--outline:hover {
  border-color: var(--amber-light);
  color: var(--amber-light);
}

.btn--full { width: 100%; justify-content: center; }

/* ── 6. Header ────────────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--mid) var(--ease), box-shadow var(--mid) var(--ease), padding var(--mid) var(--ease);
}

.header--scrolled {
  background: oklch(99% 0.005 200 / .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
  padding: .85rem 0;
}

.header--solid {
  background: oklch(99% 0.005 200 / .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.header__logo { display: flex; align-items: center; }

.header__logo-img { height: 36px; width: auto; }

.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  border-radius: var(--radius-sm);
  transition: background var(--fast);
}

.header__burger:hover { background: var(--surface-alt); }

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--mid) var(--ease), opacity var(--fast);
}

/* ── 7. Drawer / Mobile Nav ───────────────────────────────── */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.drawer--open { pointer-events: all; }

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: oklch(0% 0 0 / .45);
  opacity: 0;
  transition: opacity var(--mid) var(--ease);
  backdrop-filter: blur(2px);
}

.drawer--open .drawer__overlay { opacity: 1; }

.drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(360px, 90vw);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  padding: 2rem 2rem 2.5rem;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--mid) var(--ease);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.drawer--open .drawer__panel { transform: translateX(0); }

.drawer__close {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-mid);
  font-size: 1.1rem;
  transition: background var(--fast), color var(--fast);
}

.drawer__close:hover { background: var(--surface-alt); color: var(--ink); }

.drawer__brand { display: inline-flex; }

.drawer__logo { height: 32px; width: auto; }

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
  margin-top: .5rem;
}

.drawer__link {
  display: block;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-mid);
  transition: background var(--fast), color var(--fast);
}

.drawer__link:hover,
.drawer__link--active {
  background: var(--surface-alt);
  color: var(--green);
}

.drawer__footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.drawer__footer a { color: var(--green); font-weight: 600; }

/* ── 8. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 8rem 0;
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface) 55%, oklch(94% 0.025 145) 100%);
}

.hero__bg-shape {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 65vw;
  height: 65vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at 60% 40%, oklch(42% 0.12 145 / .12) 0%, transparent 65%),
              radial-gradient(circle at 30% 70%, oklch(62% 0.14 55 / .07) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px;
  opacity: .5;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  max-width: calc(var(--container) / 2 + 4rem);
  margin-inline-start: max(1.25rem, calc((100vw - var(--container)) / 2 + clamp(1.25rem, 4vw, 3rem)));
}

.hero__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  background: oklch(42% 0.12 145 / .08);
  padding: .3rem .85rem;
  border-radius: 50px;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero__lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-mid);
  max-width: 50ch;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__image-wrap {
  position: relative;
  flex: 0 0 auto;
  width: min(46vw, 580px);
  align-self: flex-end;
  margin-inline-start: auto;
}

.hero__image {
  width: 100%;
  height: clamp(320px, 55vw, 680px);
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
}

.hero__image-badge {
  position: absolute;
  top: 1.5rem;
  left: -1.25rem;
  background: var(--amber);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .06em;
  padding: .5rem 1rem;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
}

.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
}

.hero__wave svg { width: 100%; height: auto; display: block; }

/* ── 9. Page Hero (sub-pages) ─────────────────────────────── */
.page-hero {
  position: relative;
  padding-block: clamp(6rem, 12vw, 9rem) clamp(3rem, 6vw, 5rem);
  background: linear-gradient(145deg, var(--dark) 0%, oklch(25% 0.08 145) 100%);
  overflow: hidden;
  color: #fff;
}

.page-hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
}

.page-hero__content { position: relative; z-index: 2; }

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin-block: .5rem 1rem;
  color: #fff;
}

.page-hero__lead {
  font-size: clamp(.95rem, 1.3vw, 1.125rem);
  color: oklch(85% 0.01 200);
  max-width: 58ch;
  line-height: 1.75;
}

.page-hero .hero__wave { z-index: 3; }

.page-hero--proyecto  { background: linear-gradient(145deg, oklch(20% 0.06 200) 0%, oklch(28% 0.10 145) 100%); }
.page-hero--modalidades { background: linear-gradient(145deg, oklch(20% 0.04 200) 0%, oklch(25% 0.09 155) 100%); }
.page-hero--entidades { background: linear-gradient(145deg, oklch(19% 0.05 210) 0%, oklch(26% 0.11 140) 100%); }
.page-hero--contact   { background: linear-gradient(145deg, var(--dark) 0%, oklch(24% 0.09 150) 100%); }

/* ── 10. Intro Grid ───────────────────────────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.intro-grid__text .h2 { margin-block: .5rem 1.25rem; }

.intro-grid__text p { color: var(--ink-mid); margin-bottom: 1rem; }

.intro-grid__text .btn { margin-top: .75rem; }

.intro-grid__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── 11. Cards ────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card--stack { position: relative; z-index: 1; }
.card--offset { margin-inline-start: 2rem; }
.card--offset-2 { margin-inline-start: 4rem; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: oklch(42% 0.12 145 / .1);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--ink);
}

.card p { font-size: .9rem; color: var(--ink-mid); line-height: 1.6; }

/* ── 12. Services Grid ────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid oklch(100% 0 0 / .07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}

.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px oklch(0% 0 0 / .25); }

.service-card__num {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--amber);
  padding: 1.5rem 1.5rem 0;
}

.service-card__img-wrap {
  margin: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: oklch(28% 0.04 200);
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: transform var(--mid) var(--ease), opacity var(--mid);
}

.service-card:hover .service-card__img { transform: scale(1.04); opacity: 1; }

.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  padding-inline: 1.5rem;
  margin-bottom: .75rem;
}

.service-card__text {
  font-size: .875rem;
  color: oklch(72% 0.01 200);
  padding: 0 1.5rem 1.75rem;
  line-height: 1.65;
}

/* ── 13. About Preview ────────────────────────────────────── */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 4rem);
  position: relative;
  overflow: hidden;
}

.about-preview__accent {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, oklch(42% 0.12 145 / .12) 0%, transparent 70%);
  pointer-events: none;
}

.about-preview__content { position: relative; z-index: 1; }

.about-preview__content .h2 { margin-block: .5rem 1.25rem; }

.about-preview__lead {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-mid);
  margin-bottom: 1rem;
}

.about-preview__content p { color: var(--ink-mid); margin-bottom: 1.25rem; }

.about-preview__image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}

.about-preview__image { width: 100%; height: 100%; object-fit: cover; }

/* ── 14. Process Steps ────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: none;
}

.process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.process-step__marker {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: 0 4px 14px oklch(42% 0.12 145 / .35);
  margin-top: .15rem;
}

.process-step__body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--ink);
}

.process-step__body p { font-size: .875rem; color: var(--ink-mid); line-height: 1.6; }

/* ── 15. CTA Dual ─────────────────────────────────────────── */
.cta-dual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
}

.cta-dual__icon {
  width: 48px;
  height: 48px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.cta-dual__primary h3,
.cta-dual__secondary h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--ink);
}

.cta-dual__primary p,
.cta-dual__secondary p {
  color: var(--ink-mid);
  font-size: .9rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.cta-dual__divider {
  width: 1px;
  height: 100%;
  min-height: 120px;
  background: var(--border);
}

/* ── 16. CTA Simple ───────────────────────────────────────── */
.cta-simple {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  background: linear-gradient(135deg, var(--dark) 0%, oklch(26% 0.10 145) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-simple::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
}

.cta-simple .h2 { color: #fff; margin-block: .5rem 1rem; }

.cta-simple p { color: oklch(82% 0.01 200); max-width: 54ch; margin-inline: auto; margin-bottom: 2rem; }

/* ── 17. Entities Teaser ──────────────────────────────────── */
.entities-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 4vw, 4rem);
  overflow: hidden;
}

.entities-teaser__content .h2 { color: #fff; margin-block: .5rem 1rem; }
.entities-teaser__content p { color: oklch(78% 0.01 200); margin-bottom: 1.5rem; line-height: 1.7; }

.entities-teaser__image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}

.entities-teaser__image { width: 100%; height: 100%; object-fit: cover; }

/* ── 18. Content Split ────────────────────────────────────── */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.content-split--reverse { direction: rtl; }
.content-split--reverse > * { direction: ltr; }

.content-split__text .h2 { margin-block: .5rem 1.25rem; }
.content-split__text p { color: var(--ink-mid); margin-bottom: 1rem; }

.content-split__image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}

.content-split__image { width: 100%; height: 100%; object-fit: cover; }

/* ── 19. Highlight Block ──────────────────────────────────── */
.highlight-block {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: oklch(42% 0.12 145 / .06);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
}

.highlight-block__icon {
  font-size: 1.2rem;
  color: var(--green);
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ── 20. Modalidades Grid ─────────────────────────────────── */
.modalidades-intro { margin-bottom: clamp(2rem, 4vw, 4rem); }
.modalidades-intro__text { color: var(--ink-mid); max-width: 65ch; }
.modalidades-intro__text .h2 { margin-block: .5rem 1rem; }

.modalidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.modalidad-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease), border-color var(--mid);
  display: flex;
  flex-direction: column;
}

.modalidad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.modalidad-card--featured {
  border-color: var(--green);
  box-shadow: 0 0 0 4px oklch(42% 0.12 145 / .1);
}

.modalidad-card__header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modalidad-card__icon {
  width: 44px;
  height: 44px;
  background: oklch(42% 0.12 145 / .1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.modalidad-card__badge {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--amber);
  color: #fff;
  padding: .25rem .7rem;
  border-radius: 50px;
}

.modalidad-card__num {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 1.5rem;
  margin-bottom: .25rem;
}

.modalidad-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0 1.5rem;
  margin-bottom: .5rem;
}

.modalidad-card__desc {
  font-size: .875rem;
  color: var(--ink-mid);
  padding: 0 1.5rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.modalidad-card__tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--green);
  background: oklch(42% 0.12 145 / .08);
  padding: .35rem .85rem;
  border-radius: 50px;
  margin: 0 1.5rem 1rem;
}

.modalidad-card__details {
  font-size: .85rem;
  color: var(--ink-mid);
  padding: .75rem 1.5rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

.modalidad-card__footer {
  padding: 1rem 1.5rem 1.5rem;
  margin-top: auto;
}

/* ── 21. Scope Grid ───────────────────────────────────────── */
.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.scope-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid;
}

.scope-card--yes {
  background: oklch(42% 0.12 145 / .05);
  border-color: oklch(42% 0.12 145 / .25);
}

.scope-card--no {
  background: oklch(50% 0.1 20 / .04);
  border-color: oklch(50% 0.1 20 / .2);
}

.scope-card__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.scope-card--yes .scope-card__header { color: oklch(38% 0.12 145); }
.scope-card--no  .scope-card__header { color: oklch(38% 0.1 20); }

.scope-card ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.scope-card li {
  font-size: .875rem;
  color: var(--ink-mid);
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}

.scope-card li::before {
  content: '—';
  color: var(--ink-soft);
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ── 22. Specificos / Entidades ───────────────────────────── */
.entidades-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: var(--section-py);
}

.entidades-intro__text .h2 { margin-block: .5rem 1.25rem; }
.entidades-intro__text p   { color: var(--ink-mid); margin-bottom: 1rem; }

.entidades-intro__image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}

.entidades-intro__image { width: 100%; height: 100%; object-fit: cover; }

.entidades-especificos { margin-top: var(--section-py); }

.especificos-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.especifico-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}

.especifico-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }

.especifico-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: oklch(42% 0.12 145 / .1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.1rem;
}

.especifico-item__content h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--ink); }
.especifico-item__content p  { font-size: .875rem; color: var(--ink-mid); line-height: 1.65; }

.cta-entidades {
  background: linear-gradient(135deg, var(--dark) 0%, oklch(26% 0.10 145) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  gap: 1rem;
}

.cta-entidades .h2 { color: #fff; }
.cta-entidades p   { color: oklch(80% 0.01 200); max-width: 54ch; }

.cta-entidades__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }

/* ── 23. Formas Grid (modalidades) ────────────────────────── */
.formas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.forma-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--mid) var(--ease);
}

.forma-card:hover { transform: translateY(-3px); }

.forma-card__icon {
  width: 48px;
  height: 48px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin: 0 auto 1rem;
}

.forma-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; color: var(--ink); }
.forma-card p  { font-size: .85rem; color: var(--ink-mid); line-height: 1.6; }

/* ── 24. Proyecto Image Grid ──────────────────────────────── */
.proyecto-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 1rem;
  margin-block: var(--section-py);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.proyecto-image-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--mid) var(--ease);
}

.proyecto-image-grid__img--large {
  grid-column: span 2;
  grid-row: span 2;
}

.proyecto-image-grid__img:hover { transform: scale(1.04); }

/* ── 25. FAQ ──────────────────────────────────────────────── */
.faq-block { margin-block: var(--section-py); }

.faq-block__header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 800px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  text-align: left;
  transition: color var(--fast);
}

.faq-item__question:hover { color: var(--green); }

.faq-item__question i {
  flex-shrink: 0;
  transition: transform var(--mid) var(--ease);
  font-size: .8rem;
  color: var(--ink-soft);
}

.faq-item.open .faq-item__question i { transform: rotate(180deg); }

.faq-item__answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: .9rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

.faq-item.open .faq-item__answer { display: block; }

/* ── 26. Contact Layout ───────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact-form-wrap { position: sticky; top: calc(80px + 1.5rem); }

/* Accordion Form Fields */
.accordion-field {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  background: #fff;
}

.accordion-field--active { border-color: var(--green); box-shadow: 0 0 0 3px oklch(42% 0.12 145 / .1); }

.accordion-field__toggle {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  transition: color var(--fast);
}

.accordion-field__toggle:hover { color: var(--green); }

.accordion-field__num {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--green);
  background: oklch(42% 0.12 145 / .1);
  padding: .2rem .55rem;
  border-radius: 50px;
}

.accordion-field__label { flex: 1; }

.accordion-field__arrow {
  margin-left: auto;
  font-size: .8rem;
  color: var(--ink-soft);
  transition: transform var(--mid) var(--ease);
}

.accordion-field--active .accordion-field__arrow { transform: rotate(180deg); }

.accordion-field__body { padding: 0 1.25rem 1.25rem; }

.accordion-field__body--closed { display: none; }

/* Form Groups */
.form-group { margin-bottom: 1.1rem; }
.form-group--checkbox { margin-top: 1rem; }

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .45rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color var(--fast), box-shadow var(--fast);
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--ink-soft); }

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px oklch(42% 0.12 145 / .12);
}

.form-textarea { min-height: 130px; }

.form-checkbox-label {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .875rem;
  color: var(--ink-mid);
  cursor: pointer;
  line-height: 1.6;
}

.form-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }

.form-checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: #fff;
  margin-top: .1rem;
  transition: border-color var(--fast), background var(--fast);
  position: relative;
}

.form-checkbox:checked + .form-checkbox-custom {
  background: var(--green);
  border-color: var(--green);
}

.form-checkbox:checked + .form-checkbox-custom::after {
  content: '';
  position: absolute;
  inset: 4px 3px 3px 5px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
}

.form-error {
  font-size: .85rem;
  color: oklch(50% 0.17 20);
  margin-top: .5rem;
  min-height: 1em;
}

/* Contact Info sidebar */
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-info__block {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-info__detail {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: var(--ink-mid);
  line-height: 1.6;
}

.contact-info__detail:last-child { margin-bottom: 0; }

.contact-info__detail i {
  color: var(--green);
  font-size: .95rem;
  margin-top: .2rem;
  flex-shrink: 0;
}

.contact-info__detail a { color: var(--green); font-weight: 600; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

/* ── 27. Legal Pages ──────────────────────────────────────── */
.legal-hero {
  padding-block: clamp(6rem, 12vw, 9rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--dark);
  color: #fff;
}

.legal-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: .75rem;
}

.legal-hero__meta {
  font-size: .875rem;
  color: oklch(68% 0.01 200);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.legal-layout--cookies { grid-template-columns: 1fr; }

.legal-sidebar { position: sticky; top: calc(80px + 1.5rem); }

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 1rem;
}

.legal-nav a {
  display: block;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-mid);
  transition: background var(--fast), color var(--fast);
}

.legal-nav a:hover { background: #fff; color: var(--green); }

.legal-content {
  max-width: 720px;
  color: var(--ink-mid);
  line-height: 1.75;
}

.legal-content--full { max-width: none; }

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-block: 2.25rem 1rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-block: 1.5rem .6rem;
}

.legal-content p { margin-bottom: 1rem; }

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li { margin-bottom: .4rem; }

.legal-content a { color: var(--green); font-weight: 600; }

.legal-content strong { color: var(--ink); font-weight: 700; }

/* Cookies table */
.cookies-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: 2rem;
}

.cookie-category {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cookie-category:last-child { border-bottom: none; }

.cookie-badge {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 50px;
  flex-shrink: 0;
}

.cookie-badge--required {
  background: oklch(42% 0.12 145 / .1);
  color: var(--green-muted);
}

.cookie-badge--analytics {
  background: oklch(62% 0.14 55 / .12);
  color: oklch(48% 0.14 55);
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.cookies-table th {
  background: var(--surface-alt);
  padding: .75rem 1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cookies-table td {
  padding: .75rem 1rem;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--border);
}

.cookies-table tr:last-child td { border-bottom: none; }

/* ── 28. Thanks Page ──────────────────────────────────────── */
.thanks-scene {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  background: var(--surface);
}

.thanks-dot {
  width: 80px;
  height: 80px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  margin: 0 auto 2rem;
  box-shadow: 0 0 0 16px oklch(42% 0.12 145 / .12);
  animation: thanks-pop .5s var(--ease) both;
}

@keyframes thanks-pop {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.thanks-main {
  max-width: 540px;
}

.thanks-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.thanks-main p { color: var(--ink-mid); margin-bottom: 2rem; }

.thanks-link { color: var(--green); font-weight: 700; }
.thanks-link:hover { text-decoration: underline; }

/* ── 29. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: oklch(72% 0.01 200);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid oklch(100% 0 0 / .08);
}

.footer__logo { height: 34px; width: auto; margin-bottom: 1rem; }

.footer__brand p { font-size: .875rem; line-height: 1.7; max-width: 26ch; }

.footer__nav h4,
.footer__legal h4,
.footer__contact h4 {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: oklch(90% 0.01 200);
  margin-bottom: 1rem;
}

.footer__nav ul,
.footer__legal ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer__nav a,
.footer__legal a {
  font-size: .875rem;
  transition: color var(--fast);
}

.footer__nav a:hover,
.footer__legal a:hover { color: var(--amber-light); }

.footer__contact address { display: flex; flex-direction: column; gap: .75rem; }

.footer__contact p,
.footer__contact a {
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  line-height: 1.55;
  transition: color var(--fast);
}

.footer__contact i { flex-shrink: 0; color: var(--green-light); margin-top: .15rem; font-size: .85rem; }

.footer__contact a:hover { color: var(--amber-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: 1.75rem;
  font-size: .8rem;
  color: oklch(50% 0.01 200);
}

/* ── 30. Cookie Consent Banner ────────────────────────────── */
.cookie-consent {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(560px, calc(100vw - 2rem));
  background: var(--dark);
  color: oklch(88% 0.01 200);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid oklch(100% 0 0 / .08);
  font-size: .875rem;
  line-height: 1.65;
  display: none;
}

.cookie-consent p { margin-bottom: 1rem; }

.cookie-consent button { color: var(--amber-light); font-weight: 600; }

.cookie-consent .btn { padding: .6rem 1.25rem; font-size: .85rem; }

/* ── 31. Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    min-height: auto;
    padding-block: 7rem 0;
    gap: 3rem;
  }

  .hero__content { max-width: none; margin-inline-start: 0; }

  .hero__image-wrap { width: 100%; }

  .hero__image { height: clamp(240px, 45vw, 420px); border-radius: var(--radius-lg); }

  .intro-grid,
  .content-split,
  .about-preview,
  .entities-teaser,
  .entidades-intro { grid-template-columns: 1fr; }

  .content-split--reverse { direction: ltr; }

  .cta-dual { grid-template-columns: 1fr; }

  .cta-dual__divider { width: 100%; height: 1px; min-height: 0; }

  .contact-layout { grid-template-columns: 1fr; }

  .contact-form-wrap { position: static; }

  .legal-layout { grid-template-columns: 1fr; }

  .legal-sidebar { position: static; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .scope-grid { grid-template-columns: 1fr; }

  .proyecto-image-grid { grid-template-columns: 1fr 1fr; }
  .proyecto-image-grid__img--large { grid-column: span 2; grid-row: span 1; }

  .card--offset,
  .card--offset-2 { margin-inline-start: 0; }
}

@media (max-width: 680px) {
  .hero__title { font-size: clamp(1.75rem, 6vw, 2.5rem); }

  .hero__actions { flex-direction: column; align-items: flex-start; }

  .services-grid { grid-template-columns: 1fr; }

  .modalidades-grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; }

  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .proceso-steps { grid-template-columns: 1fr; }

  .scope-grid { grid-template-columns: 1fr; }

  .proceso-steps { grid-template-columns: 1fr; }

  .proceso-step { flex-direction: column; }

  .about-preview { padding: 1.75rem; }

  .cta-dual { padding: 1.75rem; gap: 2rem; }

  .proyecto-image-grid { grid-template-columns: 1fr; }
  .proyecto-image-grid__img--large { grid-column: 1; }
}

/* ── 32. Utilities / Accessibility ───────────────────────── */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}