@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,600;0,800;1,500;1,600&display=swap");

:root {
  --ink: #3d3f14;
  --paper: #f5edd9;
  --paper-deep: #faf5eb;
  --paper-card: #fcf8f2;
  --wine: #5b090f;
  --red: #b66d92;
  --malva-light: #e2c2d4;
  --olive-light: #5a5c22;
  --line: rgba(61, 63, 20, 0.22);
  --light-line: rgba(245, 237, 217, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
footer[id] {
  scroll-margin-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
}

::selection {
  color: var(--paper);
  background: var(--red);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--red);
  border: 2px solid var(--paper);
  border-radius: 999px;
}

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

img {
  display: block;
  width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
}

em {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 50%;
  width: min(94%, 82rem);
  min-height: 3.8rem;
  padding: 0.55rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  color: var(--paper);
  background: rgba(61, 63, 20, 0.9);
  border: 1px solid rgba(245, 237, 217, 0.3);
  backdrop-filter: blur(14px);
}

.monogram {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: transform 220ms ease;
}

.monogram svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--red);
  transition: transform 220ms ease, fill 220ms ease;
}

.monogram:hover svg,
.monogram:focus-visible svg {
  transform: scale(1.08);
  fill: var(--wine);
}

.site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 3rem);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: Verdana, Geneva, sans-serif;
}

.site-header nav a,
.header-contact {
  transition: opacity 180ms ease;
}

.site-header nav a:hover,
.header-contact:hover {
  opacity: 0.55;
}

.header-contact {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: Verdana, Geneva, sans-serif;
}

.section-shell,
.paper-section,
.ink-section,
.wine-section {
  position: relative;
  padding: 7rem max(5vw, calc((100vw - 82rem) / 2));
}

.hero {
  min-height: 100svh;
  padding-top: 8.5rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2.5rem, 6vh, 5rem);
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 44%, rgba(182, 109, 146, 0.2), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.hero::after,
.ink-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

.eyebrow,
.hero-footer,
.contact-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.67rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-line);
}

.hero-copy {
  z-index: 1;
  align-self: center;
  text-align: center;
}

.hero-kicker {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 0.73rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.8rem, 10vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero h1 em {
  display: inline-block;
  margin-left: 0.08em;
  font-size: 1.23em;
  color: var(--malva-light);
}

.hero-footer {
  z-index: 1;
  align-items: flex-end;
  justify-content: flex-end;
  border-top: 1px solid var(--light-line);
  padding-top: 1.2rem;
}

.hero-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--light-line);
  font-size: 0.67rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 220ms ease, border-color 220ms ease;
}

.hero-link span[aria-hidden="true"] {
  transition: transform 220ms ease;
}

.hero-link:hover,
.hero-link:focus-visible {
  color: var(--malva-light);
  border-color: var(--malva-light);
}

.hero-link:hover span[aria-hidden="true"],
.hero-link:focus-visible span[aria-hidden="true"] {
  transform: translate(0.2rem, -0.2rem);
}

.paper-section {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(61, 63, 20, 0.045) 1px, transparent 1px);
  background-size: 100% 34px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 5rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: Verdana, Geneva, sans-serif;
}

.section-label span {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--wine);
  border-radius: 50%;
}

.section-label--light span {
  color: var(--ink);
  background: var(--paper);
}

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

.about-content {
  max-width: 72rem;
  margin: 0 auto;
}

.script-note {
  margin-bottom: -0.4rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-style: italic;
  font-weight: 500;
  color: var(--red);
}

.about h2,
.skills h2,
.experience h2 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.about h2 em,
.experience h2 em {
  color: var(--wine);
}

.skills h2 em,
.formation-section h2 em {
  color: var(--malva-light);
}

.about-grid {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) 1.2fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
}

.portrait-wrap {
  position: relative;
  padding: 0.8rem;
  background: var(--paper-card);
  box-shadow: 0 1.3rem 3rem rgba(61, 63, 20, 0.18);
  transform: rotate(-2.5deg);
}

.portrait-wrap img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
  filter: grayscale(1) sepia(0.2);
}

.tape {
  position: absolute;
  width: 5.5rem;
  height: 1.3rem;
  background: rgba(182, 166, 133, 0.6);
  backdrop-filter: blur(1px);
}

.tape-one {
  top: -0.6rem;
  left: -2rem;
  transform: rotate(-30deg);
}

.tape-two {
  right: -2rem;
  bottom: 2rem;
  transform: rotate(-25deg);
}

.about-text {
  max-width: 34rem;
}

.about-text .lead {
  margin-bottom: 1.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
  line-height: 1.3;
}

.about-text > p:not(.lead) {
  max-width: 32rem;
  color: var(--olive-light);
  font-size: 0.93rem;
  line-height: 1.85;
}

.about-text > p:not(.lead) + p {
  margin-top: 1.25rem;
}

.text-link {
  position: relative;
  min-height: 48px;
  margin-top: 2.5rem;
  padding: 0 0 0.5rem;
  display: inline-flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: Verdana, Geneva, sans-serif;
  transition: color 200ms ease, border-color 200ms ease, opacity 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--wine);
  border-color: var(--wine);
}

.text-link:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
}

.text-link:active {
  opacity: 0.65;
}

.ink-section {
  color: var(--paper);
  background: var(--ink);
}

.projects-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.projects-intro h2 {
  font-size: clamp(3.6rem, 8vw, 7.8rem);
  line-height: 0.83;
  letter-spacing: -0.05em;
}

.projects-intro h2 em {
  color: var(--malva-light);
}

.projects-intro > p {
  max-width: 22rem;
  padding-bottom: 0.5rem;
  color: rgba(245, 237, 217, 0.72);
  font-size: 0.82rem;
  line-height: 1.7;
}

.project-grid {
  position: relative;
  z-index: 1;
  margin-top: 6rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6rem 2rem;
}

.project-card {
  grid-column: span 2;
}

.project-card--large {
  grid-column: 1 / -1;
}

.project-image {
  position: relative;
  overflow: hidden;
  background: var(--olive-light);
}

.project-image img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 500ms ease;
}

.project-card--large .project-image img {
  aspect-ratio: 16 / 7;
}

.project-card:hover .project-image img {
  transform: scale(1.03);
  filter: grayscale(0.25);
}

.project-image > .project-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-size: 0.7rem;
}

.project-meta {
  padding-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem 2rem;
  border-top: 1px solid var(--light-line);
}

.project-meta > p:first-child,
.project-meta > a {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: Verdana, Geneva, sans-serif;
}

.project-meta h3 {
  grid-column: 1;
  min-height: 2em;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.project-description {
  max-width: 29rem;
  min-height: calc(0.8rem * 1.6 * 3);
  color: rgba(245, 237, 217, 0.75);
  font-size: 0.8rem;
  line-height: 1.6;
}

.project-meta a {
  grid-row: 2 / 4;
  grid-column: 2;
  align-self: end;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--paper);
}

.skills-layout {
  display: block;
}

.skills-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: clamp(5rem, 8vw, 6.25rem);
  margin-bottom: clamp(4.375rem, 7vw, 5.625rem);
}

.skills h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(2.9rem, 7vw, 6.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.skills-title-main {
  display: block;
  font-size: 0.52em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.skills-title-mid {
  display: block;
  margin-top: 0.5em;
  font-size: 0.74em;
  line-height: 1.05;
}

.skills-title-accent {
  display: block;
  margin-top: 0.4em;
  font-size: 1em;
  line-height: 1.02;
}

.skills-guide {
  margin-top: clamp(2rem, 3.5vw, 3.25rem);
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(0.5rem, 0.98vw, 0.6rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 237, 217, 0.75);
}

/* Cuadrícula editorial de especialidades */
.skill-cards {
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--light-line);
}

.skill-card {
  padding: 1.9rem 0;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  border-bottom: 1px solid var(--light-line);
}

.skill-card:nth-child(odd) {
  padding-right: clamp(1.5rem, 3.5vw, 3.5rem);
}

.skill-card:nth-child(even) {
  padding-left: clamp(1.5rem, 3.5vw, 3.5rem);
}

.skill-index {
  padding-top: 0.45rem;
  color: var(--malva-light);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.skill-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
}

.skill-head {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.skill-head:hover .skill-indicator {
  border-color: var(--malva-light);
}

.skill-head:focus-visible {
  outline: 2px solid var(--malva-light);
  outline-offset: 4px;
}

.skill-indicator {
  position: relative;
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--light-line);
  border-radius: 50%;
  transition: border-color 240ms ease, background-color 240ms ease;
}

.skill-indicator::before,
.skill-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.58rem;
  height: 1px;
  background: var(--paper);
  transform: translate(-50%, -50%);
  transition: transform 260ms ease, opacity 200ms ease;
}

.skill-indicator::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.skill-card.is-open .skill-indicator {
  border-color: var(--malva-light);
  background: rgba(226, 194, 212, 0.14);
}

.skill-card.is-open .skill-indicator::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.skill-scope {
  max-width: 34rem;
  color: rgba(245, 237, 217, 0.74);
  font-size: 0.8rem;
  line-height: 1.7;
}

/* Acordeón de herramientas */
.skill-tools {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  padding-top: 1.1rem;
}

.has-js .skill-tools {
  grid-template-rows: 0fr;
  opacity: 0;
  padding-top: 0;
  transition: grid-template-rows 260ms ease, opacity 220ms ease,
    padding-top 260ms ease;
}

.has-js .skill-card.is-open .skill-tools {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-top: 1.1rem;
}

.skill-tools-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.tool-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tool-group-label {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--malva-light);
}

.tool-tags {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.tool-tags li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--light-line);
  border-radius: 999px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 237, 217, 0.84);
  transition: border-color 200ms ease, background-color 200ms ease,
    color 200ms ease;
}

.tool-tags li:hover {
  border-color: var(--malva-light);
  background: rgba(226, 194, 212, 0.1);
  color: var(--paper);
}

/* Cápsulas: ocultas al colapsar, con entrada escalonada */
.has-js .skill-tools .tool-tags li,
.has-js .skill-tools .tool-group-label {
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 240ms ease, transform 240ms ease, border-color 200ms ease,
    background-color 200ms ease, color 200ms ease;
}

.has-js .skill-card.is-open .skill-tools .tool-tags li,
.has-js .skill-card.is-open .skill-tools .tool-group-label {
  opacity: 1;
  transform: none;
}

.has-js .skill-card.is-open .skill-tools .tool-tags li:nth-child(1) { transition-delay: 30ms; }
.has-js .skill-card.is-open .skill-tools .tool-tags li:nth-child(2) { transition-delay: 60ms; }
.has-js .skill-card.is-open .skill-tools .tool-tags li:nth-child(3) { transition-delay: 90ms; }
.has-js .skill-card.is-open .skill-tools .tool-tags li:nth-child(4) { transition-delay: 120ms; }
.has-js .skill-card.is-open .skill-tools .tool-tags li:nth-child(5) { transition-delay: 150ms; }
.has-js .skill-card.is-open .skill-tools .tool-tags li:nth-child(6) { transition-delay: 180ms; }
.has-js .skill-card.is-open .skill-tools .tool-tags li:nth-child(7) { transition-delay: 210ms; }
.has-js .skill-card.is-open .skill-tools .tool-tags li:nth-child(8) { transition-delay: 240ms; }
.has-js .skill-card.is-open .skill-tools .tool-tags li:nth-child(9) { transition-delay: 270ms; }
.has-js .skill-card.is-open .skill-tools .tool-tags li:nth-child(10) { transition-delay: 300ms; }

.wine-section {
  overflow: hidden;
  color: var(--paper);
  background: var(--wine);
}

.wine-section::before {
  content: "VM";
  position: absolute;
  right: -4rem;
  bottom: -10rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 31rem;
  line-height: 1;
  color: rgba(245, 237, 217, 0.045);
}

/* Experiencia — composición editorial en dos columnas */
.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(2.5rem, 4.5vw, 5.5rem);
  align-items: center;
}

.experience-heading .script-note {
  margin-bottom: 0.35rem;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.experience-heading h2 {
  font-size: clamp(2.8rem, 5.6vw, 5.4rem);
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline article {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.timeline article > .timeline-period {
  padding-top: 0.3rem;
  color: var(--wine);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.66rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline h3 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
}

.timeline-role {
  display: block;
  margin-bottom: 0.75rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-light);
}

.timeline-content > p:last-child {
  max-width: 34rem;
  color: var(--olive-light);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* Formación y aprendizaje continuo */
.formation {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 4vw, 3.5rem);
}

.formation-title {
  display: block;
  margin-bottom: 1.6rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
}

.formation-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.formation-list li {
  padding-block: 1.15rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.formation-list li:nth-child(odd) {
  padding-right: clamp(1.5rem, 3.5vw, 4rem);
}

.formation-list li:nth-child(even) {
  padding-left: clamp(1.5rem, 3.5vw, 4rem);
}

.formation-list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  padding-right: 0;
}

.formation-list strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.35;
}

.formation-list span {
  display: block;
  margin-top: 0.3rem;
  color: var(--olive-light);
  font-size: 0.76rem;
  line-height: 1.5;
}

.formation-list em {
  flex: 0 0 auto;
  color: var(--wine);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.formation-list--compact li {
  padding-block: 0.95rem;
}

.formation-list--compact strong {
  font-size: 0.94rem;
}

/* Sección Formación sobre fondo vino */
.formation-section h2 {
  font-size: clamp(3rem, 7.2vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.formation-intro,
.formation-section .formation {
  position: relative;
  z-index: 1;
}

.formation-intro {
  margin: 0;
  text-align: center;
}

.formation-section .formation {
  border-top-color: var(--light-line);
}

.formation-section .formation-title {
  color: var(--malva-light);
}

.formation-section .formation-list {
  border-top-color: var(--light-line);
}

.formation-section .formation-list li {
  border-bottom-color: var(--light-line);
  transition: border-color 200ms ease;
}

.formation-section .formation-list li:hover {
  border-bottom-color: var(--malva-light);
}

.formation-section .formation-list span {
  color: rgba(245, 237, 217, 0.72);
}

.formation-section .formation-list em {
  color: var(--malva-light);
}

.contact {
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-top {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-line);
}

.contact-main {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-main .script-note {
  color: var(--malva-light);
}

.contact-main h2 {
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.055em;
}

.contact-main h2 em {
  color: var(--malva-light);
}

.contact-methods {
  margin-top: 3.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
}

.contact-method {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  color: rgba(245, 237, 217, 0.9);
  transition: color 220ms ease, transform 220ms ease;
}

.contact-method svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.contact-method:hover,
.contact-method:focus-visible {
  color: var(--malva-light);
  transform: translateY(-0.2rem);
}

.contact-method:focus-visible {
  outline: 1px solid var(--malva-light);
  outline-offset: 3px;
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--light-line);
}

.case-study {
  background: var(--paper);
}

.case-nav nav {
  gap: 2rem;
}

.case-hero {
  position: relative;
  min-height: 100svh;
  padding: 8rem max(5vw, calc((100vw - 82rem) / 2)) 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.case-hero > img,
.case-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.case-hero > img {
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}

.case-hero-shade {
  background:
    linear-gradient(180deg, rgba(61, 63, 20, 0.65), transparent 35%),
    linear-gradient(0deg, rgba(61, 63, 20, 0.92), transparent 60%);
}

.case-hero-top,
.case-back,
.case-section-heading span,
.design-tile figcaption,
.photo-grid figcaption,
.next-case > p,
.next-case > div {
  position: relative;
  z-index: 1;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-hero-top {
  padding-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--light-line);
}

.case-hero-title {
  position: relative;
  z-index: 1;
  padding: 6rem 0 2rem;
}

.case-hero-title p {
  margin-bottom: 0.7rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-style: italic;
  color: var(--malva-light);
}

.case-hero-title h1 {
  max-width: 76rem;
  font-size: clamp(4.5rem, 13vw, 12rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
}

.case-back {
  width: max-content;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--paper);
}

.case-hero-links {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.case-site {
  color: var(--malva-light);
  border-color: var(--malva-light);
  transition: color 220ms ease, border-color 220ms ease;
}

.case-site:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.case-overview {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.case-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8vw;
  align-items: end;
}

.case-intro h2 {
  max-width: 46rem;
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.case-intro > p {
  max-width: 33rem;
  padding-bottom: 0.5rem;
  color: var(--olive-light);
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
  line-height: 1.85;
}

.metric-grid {
  margin-top: 7rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-grid article {
  padding: 2.5rem clamp(1rem, 3vw, 3rem);
  text-align: center;
}

.metric-grid article + article {
  border-left: 1px solid var(--line);
}

.metric-grid strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--wine);
}

.metric-grid p {
  margin-top: 0.8rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.design-gallery,
.photo-gallery {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.case-section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4rem;
}

.case-section-heading span {
  display: block;
  margin-bottom: 2rem;
  color: var(--malva-light);
}

.case-section-heading h2 {
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.case-section-heading h2 em {
  color: var(--malva-light);
}

.case-section-heading > p {
  max-width: 27rem;
  padding-bottom: 0.4rem;
  color: rgba(245, 237, 217, 0.7);
  font-size: 0.82rem;
  line-height: 1.75;
}

/* Casos de estudio — alternancia editorial de encabezados */
@media (min-width: 901px) {
  .case-study > section:nth-of-type(even) .case-section-heading {
    flex-direction: row-reverse;
    justify-content: flex-start;
  }

  .case-study > section:nth-of-type(even) .case-section-heading > div {
    max-width: 52rem;
  }
}

.design-grid {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem 1.5rem;
}

.design-tile {
  margin: 0;
}

.design-tile--1 {
  grid-row: span 2;
}

.design-mock {
  min-height: 22rem;
  padding: clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 20%, rgba(182, 109, 146, 0.55), transparent 28%),
    var(--wine);
  border: 1px solid var(--light-line);
}

.design-tile--1 .design-mock {
  min-height: 48.5rem;
  background:
    linear-gradient(135deg, transparent 48%, rgba(245, 237, 217, 0.16) 49%, rgba(245, 237, 217, 0.16) 51%, transparent 52%),
    radial-gradient(circle at center, var(--red) 0 12%, transparent 12.5%),
    var(--ink);
}

.design-tile--3 .design-mock {
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(61, 63, 20, 0.15) 50%),
    var(--malva-light);
}

.design-mock > span {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

.design-mock strong {
  align-self: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.9;
  text-align: center;
}

.design-mock i {
  align-self: flex-end;
  max-width: 13rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  text-align: right;
}

.design-tile figcaption,
.photo-grid figcaption {
  padding-top: 0.8rem;
  color: rgba(245, 237, 217, 0.7);
}

.case-section-heading--dark span {
  color: var(--wine);
}

.case-section-heading--dark h2 em {
  color: var(--red);
}

.case-section-heading--dark > p {
  color: var(--olive-light);
}

.photo-grid {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.photo-grid figure {
  margin: 0;
  grid-column: span 4;
}

.photo-grid figure:nth-child(2) {
  padding-top: 7rem;
}

.photo-grid img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.03);
}

.photo-grid figcaption {
  color: var(--olive-light);
}

.creative-gallery {
  overflow: hidden;
}

.creative-intro {
  max-width: 28rem;
  padding-bottom: 0.4rem;
}

.creative-intro p {
  color: rgba(245, 237, 217, 0.7);
  font-size: 0.82rem;
  line-height: 1.75;
}

.creative-add {
  margin-top: 1.4rem;
  padding: 0.78rem 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--light-line);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.creative-add span {
  display: inline;
  margin: 0;
  color: currentColor;
}

.creative-add span:last-child {
  font-size: 1rem;
  line-height: 1;
}

.creative-add:hover,
.creative-add[aria-expanded="true"] {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.creative-uploader {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  padding: 0.6rem;
  border: 1px solid var(--light-line);
  background: rgba(245, 237, 217, 0.045);
}

.creative-uploader[hidden] {
  display: none;
}

.creative-drop {
  min-height: 11rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  border: 1px dashed var(--light-line);
  cursor: pointer;
  transition: border-color 220ms ease, background-color 220ms ease;
}

.creative-drop::before {
  content: "＋";
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--light-line);
  border-radius: 50%;
  font-size: 1rem;
}

.creative-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.creative-drop strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 500;
}

.creative-drop span {
  color: rgba(245, 237, 217, 0.75);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.creative-drop:hover,
.creative-drop.is-dragging {
  border-color: var(--malva-light);
  background: rgba(226, 194, 212, 0.08);
}

.creative-status {
  min-height: 1.4rem;
  padding: 0.8rem 0.4rem 0.15rem;
  color: rgba(245, 237, 217, 0.75);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.creative-status.is-error {
  color: var(--malva-light);
}

.creative-empty {
  position: relative;
  z-index: 1;
  margin-top: 4.5rem;
  padding: 3rem 1.5rem;
  border: 1px solid var(--light-line);
  color: rgba(245, 237, 217, 0.7);
  font-size: 0.85rem;
  line-height: 1.8;
  text-align: center;
}

.creative-empty[hidden] {
  display: none;
}

.creative-marquee {
  --gallery-gutter: max(5vw, calc((100vw - 82rem) / 2));
  --marquee-duration: 60s;
  position: relative;
  z-index: 1;
  margin: 4.5rem calc(var(--gallery-gutter) * -1) 0;
  padding: 1.25rem 0 2rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.creative-marquee[hidden] {
  display: none;
}

.creative-track {
  display: flex;
  width: max-content;
  animation: creative-scroll var(--marquee-duration) linear infinite;
  will-change: transform;
}

.creative-marquee:hover .creative-track,
.creative-marquee:focus-within .creative-track {
  animation-play-state: paused;
}

.creative-group {
  display: flex;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

@keyframes creative-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.creative-card {
  width: clamp(13rem, 21vw, 18.5rem);
  flex: 0 0 auto;
  margin: 0;
}

.creative-card-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: clamp(0.7rem, 1.2vw, 1.1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper-card);
  border: 1px solid rgba(245, 237, 217, 0.4);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.creative-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.creative-card:hover .creative-card-frame {
  transform: translateY(-0.35rem);
  box-shadow: 0 1.5rem 2.5rem rgba(0, 0, 0, 0.28);
}

.creative-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: rgba(61, 63, 20, 0.82);
  border: 1px solid rgba(245, 237, 217, 0.35);
  border-radius: 50%;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-0.2rem);
  transition: opacity 200ms ease, transform 200ms ease, background-color 200ms ease;
}

.creative-card:hover .creative-remove,
.creative-remove:focus-visible {
  opacity: 1;
  transform: none;
}

.creative-remove:hover {
  background: var(--wine);
}

@media (hover: none) {
  .creative-remove {
    opacity: 1;
    transform: none;
  }
}

.next-case {
  min-height: 78svh;
  padding: 7rem max(5vw, calc((100vw - 82rem) / 2)) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--paper);
  background: var(--wine);
}

.next-case > p {
  text-align: center;
  color: var(--malva-light);
}

.next-case > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4vw;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.9;
  text-align: center;
  transition: color 200ms ease;
}

.next-case > a:hover {
  color: var(--malva-light);
}

.next-case > div {
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--light-line);
}

@media (max-width: 1100px) {
  .project-card,
  .project-card--large {
    grid-column: span 3;
  }

  .project-card--large .project-image img {
    aspect-ratio: 5 / 4;
  }
}

@media (max-width: 900px) {
  .skill-cards {
    grid-template-columns: 1fr;
  }

  .skill-card:nth-child(odd),
  .skill-card:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.6rem 0;
  }
}

@media (max-width: 800px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0.55rem 0.75rem;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    display: flex;
    gap: 1.15rem;
    padding-bottom: 0.15rem;
    overflow-x: auto;
    font-size: 0.6rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-header nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  section[id],
  footer[id] {
    scroll-margin-top: 7.5rem;
  }

  .section-shell,
  .paper-section,
  .ink-section,
  .wine-section {
    padding: 5.5rem 1.35rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 8rem;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 16vw, 5.5rem);
    line-height: 1;
  }

  .hero h1 br {
    display: none;
  }

  .hero-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    line-height: 1.8;
  }

  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
  }

  .section-label {
    margin-bottom: 3.5rem;
  }

  .about-grid,
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .skills-head {
    margin-top: clamp(2rem, 6vw, 3rem);
    margin-bottom: clamp(2rem, 6vw, 3rem);
  }

  .formation {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
  }

  .formation-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .formation-list li:nth-child(odd),
  .formation-list li:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }

  .formation-list li:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .portrait-wrap {
    width: min(82%, 25rem);
    margin: 0 auto;
  }

  .text-link {
    min-width: 16rem;
    min-height: 52px;
    margin-top: 2.25rem;
  }

  .projects-intro {
    display: block;
  }

  .projects-intro > p {
    margin-top: 2rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }

  .project-card,
  .project-card--large {
    grid-column: auto;
  }

  .project-card--large .project-image img,
  .project-image img {
    aspect-ratio: 4 / 5;
  }

  .wine-section::before {
    font-size: 18rem;
  }

  .footer-bottom {
    align-items: flex-start;
    gap: 1.5rem;
  }

  .case-hero {
    padding: 8rem 1.35rem 2rem;
  }

  .case-hero-title h1 {
    font-size: clamp(4rem, 20vw, 7rem);
  }

  .case-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .metric-grid {
    margin-top: 4rem;
  }

  .metric-grid article {
    padding: 2rem 0.5rem;
  }

  .case-section-heading {
    display: block;
  }

  .case-section-heading > p {
    margin-top: 2rem;
  }

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

  .design-tile--1 {
    grid-row: auto;
  }

  .design-tile--1 .design-mock,
  .design-mock {
    min-height: 30rem;
  }

  .photo-grid {
    gap: 1rem;
  }

  .photo-grid figure {
    grid-column: span 6;
  }

  .photo-grid figure:nth-child(2) {
    padding-top: 4rem;
  }

  .photo-grid figure:nth-child(3) {
    grid-column: 4 / span 6;
  }

  .creative-intro {
    margin-top: 2rem;
  }

  .creative-uploader {
    margin-top: 2.5rem;
  }

  .creative-empty {
    margin-top: 3rem;
  }

  .creative-marquee {
    --gallery-gutter: 1.35rem;
    margin-top: 3rem;
  }

  .creative-group {
    gap: 1rem;
    padding-right: 1rem;
  }

  .creative-card {
    width: clamp(10.5rem, 42vw, 14rem);
  }

  .next-case {
    min-height: 65svh;
    padding: 5rem 1.35rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-footer {
    gap: 1.5rem;
  }

  .about h2,
  .experience h2,
  .formation-section h2 {
    font-size: 2.8rem;
  }

  .skill-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .tool-tags {
    gap: 0.4rem;
  }

  .tool-tags li {
    padding: 0.3rem 0.6rem;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  .skill-indicator {
    width: 1.6rem;
    height: 1.6rem;
  }

  .project-meta {
    display: block;
  }

  .project-meta > * {
    margin-bottom: 0.7rem;
  }

  .project-meta a {
    display: inline-block;
    margin-top: 0.7rem;
  }

  .contact-top span:last-child {
    display: none;
  }

  .contact-main h2 {
    font-size: 3.55rem;
  }

  .contact-methods {
    margin-top: 2.75rem;
    gap: 1.5rem;
  }

  .contact-method {
    width: 3.1rem;
    height: 3.1rem;
  }

  .case-hero-top span:last-child {
    display: none;
  }

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

  .metric-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .photo-grid {
    display: block;
  }

  .photo-grid figure,
  .photo-grid figure:nth-child(2),
  .photo-grid figure:nth-child(3) {
    margin-bottom: 2.5rem;
    padding-top: 0;
  }

  .next-case > div {
    gap: 2rem;
  }

  .creative-card {
    width: min(68vw, 14rem);
  }

  .creative-drop {
    padding: 1.6rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .creative-track {
    animation: none;
  }

  .creative-marquee {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .skill-tools .tool-tags li,
  .skill-tools .tool-group-label {
    transform: none;
    transition-delay: 0ms !important;
  }
}

/* Jaguar Journey — caso de estudio */

.case-hero-title p {
  max-width: 48rem;
  text-shadow: 0 0.15rem 1.4rem rgba(61, 63, 20, 0.55);
}

.case-hero-meta {
  position: relative;
  z-index: 1;
  padding-top: 1.1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--light-line);
}

.case-hero-meta p {
  max-width: 36rem;
  color: rgba(245, 237, 217, 0.76);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.case-copy {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 7rem);
  max-width: 76rem;
}

.case-copy p {
  color: var(--olive-light);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.9;
}

.case-copy p:first-child {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.case-copy--light p {
  color: rgba(245, 237, 217, 0.72);
}

.case-copy--light p:first-child {
  color: var(--paper);
}

.case-copy--three p:nth-child(3) {
  grid-column: 1 / -1;
  max-width: 50rem;
}

.photo-strip {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.photo-strip figure {
  margin: 0;
}

.photo-strip img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.03);
}

.content-campaigns {
  overflow: hidden;
}

.campaign-list {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
}

.campaign-list article {
  min-height: 12rem;
  padding: 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.campaign-list article + article {
  border-left: 1px solid var(--light-line);
}

.campaign-list span {
  color: var(--malva-light);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.campaign-list h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  font-weight: 500;
  line-height: 1.15;
}

.creative-embed {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--light-line);
}

.creative-embed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}

.creative-embed-head > div > span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--malva-light);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.creative-embed-head p {
  max-width: 34rem;
  color: rgba(245, 237, 217, 0.7);
  font-size: 0.82rem;
  line-height: 1.75;
}

.creative-embed-head .creative-add {
  margin-top: 0;
  flex-shrink: 0;
}

.creative-embed .creative-uploader {
  margin-top: 2.5rem;
}

.creative-embed .creative-empty {
  margin-top: 3rem;
}

.creative-embed .creative-marquee {
  margin-top: 3rem;
}

.growth-panel {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.growth-stat {
  min-height: 28rem;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(61, 63, 20, 0.28), rgba(61, 63, 20, 0.94)),
    url("assets/jaguar-hero.jpg") center / cover;
  border: 1px solid var(--line);
}

.growth-stat > span {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.growth-stat strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 600;
  line-height: 0.85;
  color: var(--paper);
}

.growth-stat p {
  max-width: 17rem;
  color: rgba(245, 237, 217, 0.8);
  font-size: 0.78rem;
  line-height: 1.7;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.channel-grid article {
  min-height: 11.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--paper-card);
}

.channel-grid span {
  color: var(--wine);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.channel-grid h3 {
  font-size: 1.35rem;
  font-weight: 500;
}

.channel-grid p {
  color: var(--olive-light);
  font-size: 0.78rem;
  line-height: 1.65;
}

.sales-flow {
  margin: 5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: relative;
}

.sales-flow::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 1.35rem;
  right: calc(20% - 1.35rem);
  height: 1px;
  background: var(--light-line);
}

.sales-flow li {
  position: relative;
  z-index: 1;
  padding-right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.sales-flow li > span {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  color: var(--malva-light);
  background: var(--ink);
  border: 1px solid var(--light-line);
  border-radius: 50%;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.sales-flow strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 500;
}

.experience-gallery {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.experience-gallery figure {
  margin: 0;
}

.experience-gallery .experience-main {
  grid-column: 1 / -1;
}

.experience-main img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.experience-gallery figure:not(.experience-main) img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.experience-gallery figcaption {
  padding-top: 0.8rem;
  color: var(--olive-light);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.impact-section {
  overflow: hidden;
}

.impact-metrics {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
}

.impact-metrics article {
  padding: 2.5rem clamp(1rem, 3vw, 2.5rem);
}

.impact-metrics article + article {
  border-left: 1px solid var(--light-line);
}

.impact-metrics strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--malva-light);
}

.impact-metrics p {
  margin-top: 0.8rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.award-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.award-card {
  min-height: 18rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  border: 1px solid var(--light-line);
  background: rgba(245, 237, 217, 0.04);
}

.award-year {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.award-mark {
  width: 9rem;
  height: 9rem;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1;
  border: 1px solid var(--light-line);
  border-radius: 50%;
}

.award-mark em {
  color: var(--malva-light);
}

.award-card > p {
  color: rgba(245, 237, 217, 0.75);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.impact-chart {
  margin-top: 5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--light-line);
  background: rgba(245, 237, 217, 0.035);
}

.chart-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.chart-head span {
  color: var(--malva-light);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chart-head strong {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.65rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
}

.chart-head strong small {
  font-size: 0.28em;
  letter-spacing: 0.04em;
}

.chart-head > div > p {
  margin-top: 0.9rem;
  color: rgba(245, 237, 217, 0.75);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chart-caption {
  max-width: 22rem;
  color: rgba(245, 237, 217, 0.75);
  font-size: 0.78rem;
  line-height: 1.7;
}

.chart-bars {
  margin-top: 3rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.chart-value {
  color: var(--malva-light);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.chart-track {
  width: 100%;
  height: 16rem;
  display: flex;
  align-items: flex-end;
}

.chart-track i {
  display: block;
  width: 100%;
  height: var(--bar);
  background: linear-gradient(180deg, var(--malva-light), var(--red));
}

.chart-bar:nth-child(4) .chart-track i,
.chart-bar:nth-child(5) .chart-track i {
  background: linear-gradient(180deg, var(--paper), var(--malva-light));
}

.chart-label {
  color: rgba(245, 237, 217, 0.75);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.chart-notes {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 2.5rem;
}

.chart-notes li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--light-line);
}

.chart-notes span {
  color: var(--malva-light);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.chart-notes p {
  color: rgba(245, 237, 217, 0.7);
  font-size: 0.76rem;
  line-height: 1.65;
}

.impact-tags {
  margin-top: 3rem;
  padding-top: 1.2rem;
  color: rgba(245, 237, 217, 0.7);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  line-height: 1.8;
  text-transform: uppercase;
  border-top: 1px solid var(--light-line);
}

.next-case > .next-case-caption {
  margin-top: -0.5rem;
  color: rgba(245, 237, 217, 0.75);
  font-size: 0.6rem;
}

@media (max-width: 800px) {
  .case-hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .case-copy {
    margin-top: 3rem;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .case-copy--three p:nth-child(3) {
    grid-column: auto;
  }

  .photo-strip {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .campaign-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campaign-list article {
    min-height: 10rem;
    padding: 1.3rem 1rem;
  }

  .campaign-list article:nth-child(3) {
    border-left: 0;
  }

  .campaign-list article:nth-child(n + 3) {
    border-top: 1px solid var(--light-line);
  }

  .creative-embed-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }

  .growth-panel {
    grid-template-columns: 1fr;
  }

  .growth-stat {
    min-height: 22rem;
  }

  .sales-flow {
    margin-top: 3.5rem;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sales-flow::before {
    display: none;
  }

  .sales-flow li {
    padding: 1.2rem 0;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--light-line);
  }

  .experience-main img {
    aspect-ratio: 16 / 10;
  }

  .impact-metrics article {
    padding: 2rem 1rem;
  }

  .award-grid {
    gap: 1rem;
  }

  .award-card {
    min-height: 15rem;
    padding: 1.5rem 1rem;
  }

  .award-mark {
    width: 7rem;
    height: 7rem;
    font-size: 1.4rem;
  }

  .chart-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }

  .chart-bars {
    gap: 0.5rem;
  }

  .chart-track {
    height: 12rem;
  }

  .chart-value {
    font-size: 0.5rem;
  }

  .chart-label {
    font-size: 0.48rem;
  }

  .chart-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .campaign-list {
    grid-template-columns: 1fr;
  }

  .campaign-list article + article,
  .campaign-list article:nth-child(3) {
    border-top: 1px solid var(--light-line);
    border-left: 0;
  }

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

  .experience-gallery {
    grid-template-columns: 1fr;
  }

  .experience-gallery .experience-main {
    grid-column: auto;
  }

  .impact-metrics {
    grid-template-columns: 1fr;
  }

  .impact-metrics article + article {
    border-top: 1px solid var(--light-line);
    border-left: 0;
  }

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

  .chart-bars {
    gap: 0.35rem;
  }

  .chart-track {
    height: 9rem;
  }

  .chart-value {
    font-size: 0.44rem;
    letter-spacing: 0;
  }

  .chart-label {
    font-size: 0.42rem;
    letter-spacing: 0.04em;
  }
}


/* Identidad de marca — Jaguar Journey */

.identity-motion {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--light-line);
}

.identity-motion-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}

.identity-motion-head > div:first-child > span {
  display: block;
  margin-bottom: 1rem;
  color: var(--malva-light);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.identity-motion-head h3 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.identity-motion-head h3 em {
  color: var(--malva-light);
}

.identity-motion-head p {
  max-width: 30rem;
  margin-top: 1.2rem;
  color: rgba(245, 237, 217, 0.7);
  font-size: 0.82rem;
  line-height: 1.75;
}

.identity-motion-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}

.identity-add {
  padding: 0.78rem 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--light-line);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.identity-add span {
  color: currentColor;
}

.identity-add span:last-child {
  font-size: 1rem;
  line-height: 1;
}

.identity-add:hover,
.identity-add[aria-expanded="true"] {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.identity-reset {
  padding: 0;
  color: rgba(245, 237, 217, 0.75);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--light-line);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 220ms ease, border-color 220ms ease;
}

.identity-reset:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.identity-reset[hidden] {
  display: none;
}

.identity-uploader {
  margin-top: 2.5rem;
  padding: 0.6rem;
  border: 1px solid var(--light-line);
  background: rgba(245, 237, 217, 0.045);
}

.identity-uploader[hidden] {
  display: none;
}

.identity-drop {
  min-height: 10rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  border: 1px dashed var(--light-line);
  cursor: pointer;
  transition: border-color 220ms ease, background-color 220ms ease;
}

.identity-drop::before {
  content: "＋";
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--light-line);
  border-radius: 50%;
  font-size: 1rem;
}

.identity-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.identity-drop strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 500;
}

.identity-drop span {
  color: rgba(245, 237, 217, 0.75);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.identity-drop:hover,
.identity-drop.is-dragging {
  border-color: var(--malva-light);
  background: rgba(226, 194, 212, 0.08);
}

.identity-status {
  min-height: 1.4rem;
  padding: 0.8rem 0.4rem 0.15rem;
  color: rgba(245, 237, 217, 0.75);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.identity-status.is-error {
  color: var(--malva-light);
}

.identity-motion-stage {
  margin: 3rem 0 0;
  padding: clamp(1.4rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--light-line);
}

.identity-motion-stage img {
  width: min(100%, 34rem);
  height: auto;
  display: block;
  background: #7a1526;
  box-shadow: 0 1.8rem 4rem rgba(0, 0, 0, 0.32);
}

@media (max-width: 800px) {
  .identity-motion {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
  }

  .identity-motion-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.6rem;
  }

  .identity-motion-actions {
    align-items: flex-start;
  }

  .identity-motion-stage {
    padding: 1.25rem;
  }

  .identity-motion-stage img {
    width: min(100%, 24rem);
  }
}

@media (max-width: 480px) {
  .identity-motion-stage {
    padding: 0.9rem;
  }
}

/* Galería en carrusel · La esencia de cada experiencia */
.experience-marquee {
  --experience-gutter: max(5vw, calc((100vw - 82rem) / 2));
  --experience-duration: 90s;
  position: relative;
  z-index: 1;
  margin: 4rem calc(var(--experience-gutter) * -1) 0;
  padding-bottom: 1rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.experience-track {
  display: flex;
  width: max-content;
  animation: experience-scroll var(--experience-duration) linear infinite;
  will-change: transform;
}

.experience-marquee:hover .experience-track,
.experience-marquee:focus-within .experience-track {
  animation-play-state: paused;
}

.experience-group {
  display: flex;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

.experience-slide {
  flex: 0 0 auto;
  margin: 0;
  width: clamp(15rem, 26vw, 24rem);
}

.experience-slide img {
  display: block;
  width: 100%;
  height: clamp(11rem, 19vw, 17.5rem);
  object-fit: cover;
  object-position: center;
  background: rgba(61, 63, 20, 0.08);
}

@keyframes experience-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 800px) {
  .experience-marquee {
    --experience-duration: 60s;
    margin-top: 3rem;
  }

  .experience-slide {
    width: clamp(13rem, 62vw, 18rem);
  }

  .experience-slide img {
    height: clamp(9.5rem, 46vw, 13rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .experience-track {
    animation-duration: 240s;
  }
}

/* PrimeOne Tours — caso de estudio */

.case-hero-meta--role > div p + p {
  margin-top: 0.5rem;
  color: rgba(245, 237, 217, 0.75);
}

.case-intro h2 em {
  color: var(--red);
}

.case-block {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

/* Resultados documentados */

.metric-grid--detailed {
  position: relative;
  z-index: 1;
}

.metric-grid--detailed article {
  padding: 3rem clamp(1.25rem, 3vw, 3rem);
  text-align: left;
}

.metric-grid--detailed strong {
  color: var(--malva-light);
  font-size: clamp(2.9rem, 5vw, 4.6rem);
}

.metric-name {
  display: block;
  margin-top: 1.1rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}

.metric-grid--detailed p {
  margin-top: 0.9rem;
  max-width: 26rem;
  color: rgba(245, 237, 217, 0.72);
  font-size: 0.86rem;
  line-height: 1.75;
  letter-spacing: normal;
  text-transform: none;
}

/* Mi impacto — bloques editoriales */

.contribution-list {
  position: relative;
  z-index: 1;
  margin-top: 4.5rem;
  border-top: 1px solid var(--line);
}

.contribution-list article {
  display: grid;
  grid-template-columns: 4rem minmax(11rem, 0.75fr) minmax(0, 1.5fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: start;
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--line);
}

.contribution-list span {
  padding-top: 0.55rem;
  color: var(--wine);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.contribution-list h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.contribution-list p {
  max-width: 42rem;
  color: var(--olive-light);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.85;
}

/* Carrusel de creativos */

.creative-carousel {
  position: relative;
  z-index: 1;
  margin-top: 4.5rem;
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  position: relative;
  margin: 0;
  padding: 0 30% 0 0;
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
}

.carousel-slide {
  flex: 0 0 auto;
  width: min(72%, 46rem);
  scroll-snap-align: start;
}

.carousel-slide figure {
  margin: 0;
}

.carousel-frame {
  width: 100%;
  height: clamp(15rem, 44vw, 33rem);
  padding: clamp(0.75rem, 1.6vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper-card);
  border: 1px solid rgba(245, 237, 217, 0.35);
  cursor: zoom-in;
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.carousel-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.carousel-frame:hover,
.carousel-frame:focus-visible {
  transform: translateY(-0.35rem);
  border-color: var(--malva-light);
  box-shadow: 0 1.5rem 2.5rem rgba(0, 0, 0, 0.3);
}

.carousel-slide figcaption {
  padding-top: 0.9rem;
  color: rgba(245, 237, 217, 0.7);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.carousel-controls {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.carousel-arrow {
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--light-line);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease, opacity 240ms ease;
}

.carousel-arrow:hover:not(:disabled),
.carousel-arrow:focus-visible:not(:disabled) {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.carousel-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(245, 237, 217, 0.55);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 300ms ease, border-color 300ms ease, transform 300ms ease;
}

.carousel-dot[aria-current="true"] {
  background: var(--malva-light);
  border-color: var(--malva-light);
  transform: scale(1.35);
}

/* Vista ampliada */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: clamp(1rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(24, 25, 9, 0.96);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
}

.lightbox-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close,
.lightbox-arrow {
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--light-line);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease, opacity 240ms ease;
}

.lightbox-close {
  position: absolute;
  top: clamp(1rem, 3vw, 2.5rem);
  right: clamp(1rem, 3vw, 2.5rem);
  z-index: 2;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-arrow:hover:not(:disabled),
.lightbox-arrow:focus-visible:not(:disabled) {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.lightbox-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.lightbox-caption {
  text-align: center;
  color: rgba(245, 237, 217, 0.72);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .case-block {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .metric-grid--detailed article {
    padding: 2.2rem 1rem;
  }

  .metric-grid--detailed p {
    max-width: none;
  }

  .contribution-list {
    margin-top: 3rem;
  }

  .contribution-list article {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.75rem 1.25rem;
    padding: 2rem 0;
  }

  .contribution-list article p {
    grid-column: 2 / -1;
  }

  .creative-carousel {
    margin-top: 3rem;
  }

  .carousel-slide {
    width: 84%;
  }

  .carousel-frame {
    height: clamp(13rem, 60vw, 25rem);
  }

  .carousel-track {
    padding-right: 22%;
  }

  .carousel-controls {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    width: 86%;
  }

  .carousel-frame {
    height: clamp(11.5rem, 66vw, 19rem);
    padding: 0.7rem;
  }

  .carousel-controls {
    gap: 0.75rem;
  }

  .carousel-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .lightbox-stage {
    gap: 0;
  }

  .lightbox-stage .lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(24, 25, 9, 0.72);
  }

  .lightbox-stage .lightbox-arrow:first-child {
    left: 0;
  }

  .lightbox-stage .lightbox-arrow:last-child {
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-viewport {
    scroll-behavior: auto;
  }
}

/* Cuadrx — caso de estudio */

/* Dos párrafos en la columna de texto del intro */
.case-intro-copy {
  max-width: 33rem;
  padding-bottom: 0.5rem;
}

.case-intro-copy p {
  color: var(--olive-light);
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
  line-height: 1.85;
}

.case-intro-copy p + p {
  margin-top: 1.5rem;
}

/* 01 y 02 comparten fondo paper: se evita el doble espaciado entre secciones */
#aportacion {
  padding-top: 0;
}

/* Integra — carrusel de identidad sobre fondo paper */
.creative-carousel--paper .carousel-frame {
  border-color: var(--line);
}

.creative-carousel--paper .carousel-frame:hover,
.creative-carousel--paper .carousel-frame:focus-visible {
  border-color: var(--wine);
  box-shadow: 0 1.5rem 2.5rem rgba(61, 63, 20, 0.18);
}

.creative-carousel--paper .carousel-slide figcaption {
  color: var(--olive-light);
}

.creative-carousel--paper .carousel-arrow {
  color: var(--ink);
  border-color: var(--line);
}

.creative-carousel--paper .carousel-arrow:hover:not(:disabled),
.creative-carousel--paper .carousel-arrow:focus-visible:not(:disabled) {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.creative-carousel--paper .carousel-dot {
  border-color: rgba(61, 63, 20, 0.45);
}

.creative-carousel--paper .carousel-dot[aria-current="true"] {
  background: var(--wine);
  border-color: var(--wine);
}

/* ============================================================
   TAREA 23 — Jaguar Journey: portada, retícula en zigzag,
   tipografía unificada y apariciones al hacer scroll
   ============================================================ */

/* ---------- 1. Portada: «Jaguar Journey» centrado y legible ---------- */

.case-jaguar .case-hero-title {
  flex: 1;
  padding: clamp(2.5rem, 7vh, 5rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.case-jaguar .case-hero-title h1 {
  width: 100%;
  max-width: 100%;
  font-size: clamp(2.75rem, 11.5vw, 10.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: balance;
  text-shadow: 0 0.05em 0.55em rgba(61, 63, 20, 0.6);
}

.case-jaguar .case-hero > img {
  filter: grayscale(0.3) contrast(1.14) brightness(0.9);
}

.case-jaguar .case-hero-shade {
  background:
    radial-gradient(ellipse 75% 60% at 50% 52%, rgba(61, 63, 20, 0.6), rgba(61, 63, 20, 0.22) 58%, transparent 78%),
    linear-gradient(180deg, rgba(61, 63, 20, 0.7), transparent 38%),
    linear-gradient(0deg, rgba(61, 63, 20, 0.92), transparent 62%);
}

/* ---------- 2. Párrafos descriptivos unificados ---------- */

.case-jaguar .case-copy {
  margin-top: 0;
  max-width: none;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

.case-jaguar .case-copy p,
.case-jaguar .case-copy p:first-child {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
}

.case-jaguar .case-copy p {
  color: var(--olive-light);
}

.case-jaguar .case-copy p:first-child {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.6;
}

.case-jaguar .case-copy--light p {
  color: rgba(245, 237, 217, 0.78);
}

.case-jaguar .case-copy--light p:first-child {
  color: var(--paper);
}

.case-jaguar .identity-motion-head p,
.case-jaguar .creative-embed-head p {
  font-size: 0.94rem;
  line-height: 1.7;
}

.case-jaguar .growth-stat p,
.case-jaguar .channel-grid p,
.case-jaguar .chart-caption,
.case-jaguar .chart-notes p {
  font-size: 0.88rem;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .case-jaguar .case-copy p,
  .case-jaguar .case-copy p:first-child {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Tablet y móvil: los párrafos fluyen en una sola columna */
@media (max-width: 1023px) {
  .case-jaguar .case-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 35rem;
  }
}

/* ---------- 3. Títulos de sección: una sola línea en escritorio ---------- */

.case-jaguar.case-study > section:not(.case-hero) .case-section-heading {
  flex-direction: row;
  justify-content: flex-start;
}

.case-jaguar.case-study > section:not(.case-hero) .case-section-heading > div {
  max-width: none;
}

.case-jaguar .case-section-heading h2 {
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* ---------- 4. Recorrido visual en zigzag (retícula común) ---------- */

.case-jaguar > section:not(.case-hero) {
  --jj-gutter: max(5vw, calc((100vw - 82rem) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(2rem, 3.6vw, 3.4rem);
  row-gap: clamp(3rem, 5vw, 5rem);
  align-items: center;
  padding-top: clamp(4.5rem, 7vw, 7rem);
  padding-bottom: clamp(4.5rem, 7vw, 7rem);
}

.case-jaguar > section:not(.case-hero) > * {
  min-width: 0;
  margin-top: 0;
}

.case-jaguar > section:not(.case-hero) > .case-copy {
  grid-column: 1;
}

@media (min-width: 1360px) {
  /* Escritorio: título a un lado, texto al otro, alternando por sección.
     La columna ancha queda siempre para el título y la estrecha para el
     texto, para conservar una medida de lectura de 55–70 caracteres. */
  .case-jaguar > section:not(.case-hero) {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }

  .case-jaguar > section:not(.case-hero).jj-flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  }

  .case-jaguar > section:not(.case-hero) > .case-section-heading {
    grid-column: 1;
    grid-row: 1;
  }

  .case-jaguar > section:not(.case-hero) > .case-copy {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .case-jaguar > section:not(.case-hero) > *:not(.case-section-heading):not(.case-copy) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .case-jaguar > section:not(.case-hero).jj-flip > .case-section-heading {
    grid-column: 2;
  }

  .case-jaguar > section:not(.case-hero).jj-flip > .case-copy {
    grid-column: 1;
  }

  .case-jaguar .case-section-heading h2 {
    font-size: clamp(2.5rem, 3.4vw, 3.2rem);
    line-height: 1.06;
  }
}

/* ---------- 5. Separación, márgenes y galerías ---------- */

/* La galería en carrusel usa el mismo canal que el margen horizontal
   de las secciones, para no provocar desbordamientos en tablet y móvil */
.case-jaguar .experience-marquee {
  margin-inline: calc(var(--jj-gutter, 5vw) * -1);
}

@media (max-width: 800px) {
  .case-jaguar > section:not(.case-hero) {
    --jj-gutter: 1.35rem;
  }
}

/* ---------- 6. Animaciones de aparición al hacer scroll ---------- */

.jj-anim .case-jaguar :is(
    .case-hero-top,
    .case-hero-title,
    .case-hero-meta,
    .case-section-heading,
    .case-copy,
    .metric-grid,
    .identity-motion,
    .experience-marquee,
    .campaign-list,
    .creative-embed,
    .growth-panel,
    .sales-flow,
    .experience-gallery,
    .impact-metrics,
    .award-grid,
    .impact-chart,
    .impact-tags,
    .next-case
  ) {
  transition:
    opacity 560ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--jj-delay, 0ms),
    transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--jj-delay, 0ms);
}

.jj-anim .case-jaguar :is(
    .case-hero-top,
    .case-hero-title,
    .case-hero-meta,
    .case-section-heading,
    .case-copy,
    .metric-grid,
    .identity-motion,
    .experience-marquee,
    .campaign-list,
    .creative-embed,
    .growth-panel,
    .sales-flow,
    .experience-gallery,
    .impact-metrics,
    .award-grid,
    .impact-chart,
    .impact-tags,
    .next-case
  ):not(.is-revealed) {
  opacity: 0;
  transform: translateY(18px);
}

/* Escalonado: título → descripción → evidencia */
.jj-anim .case-jaguar .case-hero-title,
.jj-anim .case-jaguar .case-section-heading {
  --jj-delay: 0ms;
}

.jj-anim .case-jaguar .case-hero-meta,
.jj-anim .case-jaguar .case-copy {
  --jj-delay: 100ms;
}

.jj-anim .case-jaguar .case-hero-top {
  --jj-delay: 180ms;
}

.jj-anim .case-jaguar > section:not(.case-hero) > *:not(.case-section-heading):not(.case-copy) {
  --jj-delay: 180ms;
}

/* ---------- 8. Móvil: objetivos táctiles y espaciados ---------- */

@media (max-width: 600px) {
  .case-jaguar .case-back,
  .case-jaguar .identity-add,
  .case-jaguar .creative-add,
  .case-jaguar .identity-reset {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .case-jaguar .identity-reset {
    padding-bottom: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jj-anim .case-jaguar :is(
      .case-hero-top,
      .case-hero-title,
      .case-hero-meta,
      .case-section-heading,
      .case-copy,
      .metric-grid,
      .identity-motion,
      .experience-marquee,
      .campaign-list,
      .creative-embed,
      .growth-panel,
      .sales-flow,
      .experience-gallery,
      .impact-metrics,
      .award-grid,
      .impact-chart,
      .impact-tags,
      .next-case
    ) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   TAREA 24 — Jaguar Journey: galería de solo lectura,
   diagrama de disciplinas, recorrido comercial e indicadores
   ============================================================ */

/* ---------- 1. Sin controles de edición públicos ---------- */

.case-jaguar .identity-add,
.case-jaguar .identity-reset,
.case-jaguar .identity-uploader,
.case-jaguar .identity-status,
.case-jaguar .creative-add,
.case-jaguar .creative-uploader,
.case-jaguar .creative-status,
.case-jaguar .creative-empty,
.case-jaguar .creative-remove {
  display: none !important;
}

/* ---------- 2. Piezas seleccionadas: galería de solo lectura ---------- */

.case-jaguar .creative-embed[hidden] {
  display: none;
}

.case-jaguar .creative-embed-head {
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.case-jaguar .creative-nav {
  flex-shrink: 0;
  display: flex;
  gap: 0.6rem;
}

.case-jaguar .creative-nav-btn {
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--light-line);
  border-radius: 50%;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition:
    color 320ms ease,
    background-color 320ms ease,
    border-color 320ms ease;
}

.case-jaguar .creative-nav-btn:hover,
.case-jaguar .creative-nav-btn:focus-visible {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.case-jaguar .creative-nav-btn:focus-visible {
  outline: 2px solid var(--malva-light);
  outline-offset: 3px;
}

/* Recorrido manual: el visitante desplaza con las flechas o con el
   dedo; sin bucle automático ni barra de desplazamiento visible. */
.case-jaguar .creative-marquee[data-creative-mode="scroll"] {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.case-jaguar .creative-marquee[data-creative-mode="scroll"]::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.case-jaguar .creative-marquee[data-creative-mode="scroll"] .creative-track {
  animation: none;
  will-change: auto;
}

.case-jaguar .creative-marquee[data-creative-mode="scroll"] .creative-card {
  scroll-snap-align: center;
}

@media (max-width: 800px) {
  .case-jaguar .creative-embed-head {
    align-items: center;
    flex-direction: row;
  }
}

/* ---------- 3. Sección 04: diagrama editorial de disciplinas ---------- */

.case-jaguar .campaign-list.jj-disciplines {
  --jj-gap: clamp(1.25rem, 2.2vw, 2.25rem);
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    ".  d1  ."
    "d2 hub d3"
    ".  d4  .";
  gap: var(--jj-gap);
  border-top: 0;
  border-bottom: 0;
}

.case-jaguar .jj-disciplines .jj-discipline-core {
  grid-area: hub;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(1.5rem, 2.6vw, 2.4rem) clamp(1.25rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  background: var(--ink);
  border: 1px solid rgba(226, 194, 212, 0.6);
}

.case-jaguar .jj-disciplines .jj-core-mark {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(226, 194, 212, 0.16);
}

.case-jaguar .jj-disciplines .jj-discipline-core strong {
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.case-jaguar .jj-disciplines .jj-discipline {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: clamp(1.3rem, 2vw, 1.75rem) clamp(1.1rem, 1.6vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.9rem;
  background: var(--ink);
  border: 1px solid rgba(245, 237, 217, 0.22);
}

.case-jaguar .jj-disciplines .jj-discipline:nth-of-type(1) {
  grid-area: d1;
}

.case-jaguar .jj-disciplines .jj-discipline:nth-of-type(2) {
  grid-area: d2;
}

.case-jaguar .jj-disciplines .jj-discipline:nth-of-type(3) {
  grid-area: d3;
}

.case-jaguar .jj-disciplines .jj-discipline:nth-of-type(4) {
  grid-area: d4;
}

.case-jaguar .jj-disciplines .jj-discipline-num {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  color: var(--malva-light);
  background: var(--ink);
  border: 1px solid rgba(226, 194, 212, 0.55);
  border-radius: 50%;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  line-height: 1;
}

.case-jaguar .jj-disciplines .jj-discipline h3 {
  color: var(--paper);
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  font-weight: 500;
  line-height: 1.2;
}

.case-jaguar .jj-disciplines .jj-discipline-mark {
  position: relative;
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid rgba(245, 237, 217, 0.55);
  border-radius: 50%;
}

.case-jaguar .jj-disciplines .jj-discipline-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--red);
}

/* Líneas finas: cada nodo se conecta con el nodo central a través del
   hueco de la retícula; el centro no es una fase sino el concepto del
   que cuelgan las cuatro disciplinas. */
.case-jaguar .jj-disciplines .jj-discipline::after {
  content: "";
  position: absolute;
  background: rgba(245, 237, 217, 0.4);
  pointer-events: none;
}

.case-jaguar .jj-disciplines .jj-discipline:nth-of-type(1)::after {
  left: 50%;
  top: 100%;
  width: 1px;
  height: var(--jj-gap);
}

.case-jaguar .jj-disciplines .jj-discipline:nth-of-type(2)::after {
  top: 50%;
  left: 100%;
  height: 1px;
  width: var(--jj-gap);
}

.case-jaguar .jj-disciplines .jj-discipline:nth-of-type(3)::after {
  top: 50%;
  right: 100%;
  height: 1px;
  width: var(--jj-gap);
}

.case-jaguar .jj-disciplines .jj-discipline:nth-of-type(4)::after {
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: var(--jj-gap);
}

/* Móvil: lista vertical conectada por un eje central. */
@media (max-width: 800px) {
  .case-jaguar .campaign-list.jj-disciplines {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hub"
      "d1"
      "d2"
      "d3"
      "d4";
    gap: 1.15rem;
  }

  .case-jaguar .jj-disciplines::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(245, 237, 217, 0.35);
    pointer-events: none;
  }

  .case-jaguar .jj-disciplines .jj-discipline::after {
    display: none;
  }

  .case-jaguar .jj-disciplines .jj-discipline {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.05rem 1.15rem;
  }

  .case-jaguar .jj-disciplines .jj-discipline h3 {
    flex: 1;
    font-size: clamp(1.05rem, 4.4vw, 1.3rem);
  }

  .case-jaguar .jj-disciplines .jj-discipline-core {
    padding: 1.4rem 1.25rem;
  }
}

/* ---------- 4. Sección 05: recorrido comercial ---------- */

.case-jaguar .growth-flow {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
}

.case-jaguar .growth-flow-label {
  display: block;
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  color: var(--wine);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.case-jaguar .channel-grid article {
  min-height: 9.5rem;
}

/* Conector entre canales de adquisición y proceso comercial */
.case-jaguar .growth-bridge {
  position: relative;
  height: 3rem;
}

.case-jaguar .growth-bridge i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.1rem;
  width: 1px;
  background: var(--line);
}

.case-jaguar .growth-bridge i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--olive-light);
  border-bottom: 1px solid var(--olive-light);
  transform: translate(-50%, 1px) rotate(45deg);
}

.case-jaguar .growth-stages {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-jaguar .growth-stages::before {
  content: "";
  position: absolute;
  top: 1.8rem;
  bottom: 1.8rem;
  left: 1.1rem;
  width: 1px;
  background: var(--line);
}

.case-jaguar .growth-stages li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  padding: 0.7rem 0;
}

.case-jaguar .growth-stages li > span {
  position: relative;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--wine);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.case-jaguar .growth-stages strong {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 500;
  line-height: 1.25;
}

@media (max-width: 1000px) {
  .case-jaguar .growth-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-jaguar .growth-stat {
    min-height: 22rem;
  }
}

/* ---------- 5. Sección 07: composición editorial sin fotografías ---------- */

.case-jaguar .case-note {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.case-jaguar .case-note p {
  max-width: 52rem;
  margin: 0;
  padding-left: 1.35rem;
  border-left: 2px solid var(--red);
  color: var(--olive-light);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}

@media (min-width: 1360px) {
  /* Título a la izquierda durante las dos filas, textos a la derecha:
     la sección queda equilibrada tras retirar las fotografías. */
  .case-jaguar.case-study > section.customer-experience {
    row-gap: clamp(1.5rem, 2.5vw, 2.5rem);
  }

  .case-jaguar.case-study > section.customer-experience > .case-section-heading {
    grid-row: 1 / span 2;
  }

  .case-jaguar.case-study > section.customer-experience > .case-note {
    grid-column: 2;
    grid-row: 2;
  }
}

/* ---------- 6. Sección 08: indicadores minimalistas ---------- */

.case-jaguar .impact-metrics h3 {
  margin-top: 0.95rem;
  color: var(--paper);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.case-jaguar .impact-metrics p {
  margin-top: 0.5rem;
  max-width: 26rem;
  color: rgba(245, 237, 217, 0.72);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
  text-transform: none;
}

.case-jaguar .impact-metrics strong small {
  color: var(--malva-light);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.26em;
  font-weight: 400;
  letter-spacing: 0.1em;
  vertical-align: 0.5em;
}

.case-jaguar .award-line {
  margin-top: 1.7rem;
  color: var(--malva-light);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  line-height: 1.8;
  text-transform: uppercase;
}

.case-jaguar .award-line::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.85rem;
  border-radius: 50%;
  background: var(--malva-light);
  vertical-align: 0.05em;
}

.case-jaguar .impact-tags {
  margin-top: 2.25rem;
}

/* ---------- 7. Animaciones discretas de entrada (una sola vez) ---------- */

.jj-anim .case-jaguar .jj-disciplines > * {
  transition:
    opacity 520ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--jj-cell, 0ms),
    transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--jj-cell, 0ms);
}

.jj-anim .case-jaguar .jj-disciplines:not(.is-revealed) > * {
  opacity: 0;
  transform: translateY(14px);
}

.jj-anim .case-jaguar .jj-disciplines .jj-discipline:nth-of-type(1) {
  --jj-cell: 90ms;
}

.jj-anim .case-jaguar .jj-disciplines .jj-discipline:nth-of-type(2) {
  --jj-cell: 160ms;
}

.jj-anim .case-jaguar .jj-disciplines .jj-discipline:nth-of-type(3) {
  --jj-cell: 230ms;
}

.jj-anim .case-jaguar .jj-disciplines .jj-discipline:nth-of-type(4) {
  --jj-cell: 300ms;
}

.jj-anim .case-jaguar .growth-panel > * {
  transition:
    opacity 560ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--jj-cell, 0ms),
    transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--jj-cell, 0ms);
}

.jj-anim .case-jaguar .growth-panel:not(.is-revealed) > * {
  opacity: 0;
  transform: translateY(16px);
}

.jj-anim .case-jaguar .growth-panel > .growth-flow {
  --jj-cell: 140ms;
}

.jj-anim .case-jaguar .impact-metrics > * {
  transition:
    opacity 560ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--jj-cell, 0ms),
    transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--jj-cell, 0ms);
}

.jj-anim .case-jaguar .impact-metrics:not(.is-revealed) > * {
  opacity: 0;
  transform: translateY(16px);
}

.jj-anim .case-jaguar .impact-metrics > *:nth-child(2) {
  --jj-cell: 120ms;
}

.jj-anim .case-jaguar .case-note {
  transition:
    opacity 560ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--jj-delay, 0ms),
    transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--jj-delay, 0ms);
}

.jj-anim .case-jaguar .case-note:not(.is-revealed) {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
  .jj-anim .case-jaguar .jj-disciplines > *,
  .jj-anim .case-jaguar .growth-panel > *,
  .jj-anim .case-jaguar .impact-metrics > *,
  .jj-anim .case-jaguar .case-note {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   TAREA 25 — PrimeOne Tours: presentación editorial minimalista
   ============================================================
   Portada sólida con textura, jerarquía tipográfica uniforme,
   recorrido en zigzag, métricas en tres columnas, aportaciones
   en horizontal y apariciones suaves de scroll.
   ============================================================ */

/* ---------- 1. Portada: oliva oscuro sólido con textura sutil ---------- */

.case-primeone .case-hero {
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(245, 237, 217, 0.045) 0 1px,
      transparent 1px 68px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(245, 237, 217, 0.045) 0 1px,
      transparent 1px 68px
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* La fotografía y su velo se retiran de la portada (el archivo
   assets/primeone-hero.jpg permanece en disco sin usarse). */
.case-primeone .case-hero > img,
.case-primeone .case-hero-shade {
  display: none;
}

.case-primeone .case-hero-title {
  flex: 1 1 auto;
  padding: clamp(2.5rem, 7vh, 5rem) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.case-primeone .case-hero-title h1 {
  max-width: none;
  color: var(--paper);
  font-size: clamp(3.4rem, 12vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.case-primeone .case-hero-meta > div p:first-child {
  color: rgba(245, 237, 217, 0.9);
}

.case-primeone .case-hero-meta > div p + p {
  margin-top: 0.4rem;
  color: rgba(245, 237, 217, 0.75);
}

/* ---------- 2. Etiquetas pequeñas y uniformes ---------- */

.case-primeone .script-note,
.case-primeone .case-section-heading span,
.case-primeone .metric-name,
.case-primeone .contribution-list span,
.case-primeone .case-hero-top,
.case-primeone .case-hero-meta p,
.case-primeone .carousel-slide figcaption,
.case-primeone .next-case > p,
.case-primeone .next-case > div {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.case-primeone .script-note {
  margin-bottom: 1.6rem;
  color: var(--wine);
}

.case-primeone .case-section-heading span {
  margin-bottom: 1.6rem;
}

/* ---------- 3. Títulos principales con jerarquía uniforme ---------- */

.case-primeone .case-intro h2,
.case-primeone .case-section-heading h2 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* ---------- 4. Párrafos: 16–18 px, interlineado 1.5–1.7, medida corta ---------- */

.case-primeone .case-intro-copy p,
.case-primeone .case-section-heading > p,
.case-primeone .contribution-list p,
.case-primeone .metric-grid--detailed p {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.65;
}

/* ---------- 5. Sección 01: título a la izquierda, texto a la derecha ---------- */

.case-primeone .case-intro {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: end;
}

.case-primeone .case-intro-copy {
  max-width: 64ch;
  padding-bottom: 0.35rem;
}

.case-primeone .case-intro-copy p {
  color: var(--olive-light);
}

.case-primeone .case-intro-copy p + p {
  margin-top: 1.4rem;
}

.case-primeone .case-section-heading > p {
  max-width: 46ch;
  color: rgba(245, 237, 217, 0.75);
}

.case-primeone #impacto .case-section-heading > p {
  color: var(--olive-light);
}

/* ---------- 6. Encabezados en zigzag (escritorio) ---------- */

@media (min-width: 901px) {
  .case-primeone .case-section-heading {
    gap: clamp(2rem, 5vw, 6rem);
  }

  .case-primeone .case-section-heading > div {
    max-width: min(54rem, 60%);
  }

  .case-primeone .case-section-heading > p {
    max-width: 34ch;
  }

  /* 02: descripción a la izquierda, título a la derecha. */
  .case-primeone #resultados .case-section-heading {
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  /* 03: título a la izquierda (la alternancia base se invierte). */
  .case-primeone #impacto .case-section-heading {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- 7. Sección 02: métricas en tres columnas equilibradas ---------- */

.case-primeone .metric-grid--detailed {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-primeone .metric-grid--detailed article {
  padding: clamp(2rem, 3vw, 2.8rem) clamp(1.25rem, 2.4vw, 2.4rem);
}

.case-primeone .metric-grid--detailed article:first-child {
  padding-left: 0;
}

.case-primeone .metric-grid--detailed article:last-child {
  padding-right: 0;
}

.case-primeone .metric-grid--detailed strong {
  color: var(--malva-light);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
}

.case-primeone .metric-name {
  margin-top: 0.9rem;
  color: var(--paper);
}

.case-primeone .metric-grid--detailed p {
  margin-top: 0.7rem;
  max-width: 34ch;
  color: rgba(245, 237, 217, 0.75);
}

/* ---------- 8. Sección 03: aportaciones organizadas horizontalmente ---------- */

.case-primeone .contribution-list {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-primeone .contribution-list article {
  display: block;
  padding: clamp(1.8rem, 2.4vw, 2.4rem) clamp(1.2rem, 1.8vw, 1.8rem)
    clamp(2rem, 2.6vw, 2.6rem);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-primeone .contribution-list article:first-child {
  padding-left: 0;
  border-left: 0;
}

.case-primeone .contribution-list article:last-child {
  padding-right: 0;
}

.case-primeone .contribution-list span {
  display: block;
  padding-top: 0;
  color: var(--wine);
}

.case-primeone .contribution-list h3 {
  margin-top: 1.1rem;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  line-height: 1.15;
}

.case-primeone .contribution-list p {
  margin-top: 0.9rem;
  max-width: 34ch;
  color: var(--olive-light);
}

/* ---------- 9. Sección 04: título y descripción equilibrados ---------- */

@media (min-width: 901px) {
  .case-primeone .creative-gallery .case-section-heading {
    align-items: flex-end;
  }

  .case-primeone .creative-gallery .case-section-heading > p {
    padding-bottom: 0.4rem;
  }
}

/* ---------- 10. Siguiente caso: un solo bloque, sin superposiciones ---------- */

.case-primeone .next-case {
  position: relative;
  z-index: 2;
  clear: both;
}

/* ---------- 11. Lectura vertical en móvil y tablet ---------- */

@media (max-width: 900px) {
  .case-primeone .case-hero-top {
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
  }

  .case-primeone .case-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    align-items: start;
  }

  .case-primeone .case-intro-copy {
    max-width: 68ch;
  }

  /* Título → descripción → contenido */
  .case-primeone .case-section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .case-primeone .case-section-heading > div {
    max-width: none;
  }

  .case-primeone .case-section-heading > p {
    max-width: 60ch;
    margin-top: 1.5rem;
  }

  .case-primeone .contribution-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-primeone .contribution-list article:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .case-primeone .contribution-list article:nth-child(even) {
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .case-primeone .case-intro-copy p,
  .case-primeone .case-section-heading > p,
  .case-primeone .contribution-list p,
  .case-primeone .metric-grid--detailed p {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .case-primeone .metric-grid--detailed {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-primeone .metric-grid--detailed article,
  .case-primeone .metric-grid--detailed article:first-child,
  .case-primeone .metric-grid--detailed article:last-child {
    padding: 1.75rem 0;
  }

  .case-primeone .metric-grid--detailed article + article {
    border-top: 1px solid rgba(245, 237, 217, 0.22);
    border-left: 0;
  }

  .case-primeone .contribution-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-primeone .contribution-list article,
  .case-primeone .contribution-list article:first-child,
  .case-primeone .contribution-list article:last-child,
  .case-primeone .contribution-list article:nth-child(odd),
  .case-primeone .contribution-list article:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }
}

/* ---------- 12. Apariciones suaves: fade-in + desplazamiento vertical ---------- */

@media (prefers-reduced-motion: no-preference) {
  .po-anim .case-primeone :is(
    .case-hero-top,
    .case-hero-title,
    .case-hero-meta,
    .case-intro > div,
    .case-intro-copy,
    .case-section-heading,
    .metric-grid,
    .contribution-list,
    .creative-carousel,
    .next-case
  ) {
    opacity: 0;
    transform: translateY(1.15rem);
    transition: opacity 560ms ease, transform 560ms ease;
  }

  .po-anim .case-primeone :is(
    .case-hero-top,
    .case-hero-title,
    .case-hero-meta,
    .case-intro > div,
    .case-intro-copy,
    .case-section-heading,
    .metric-grid,
    .contribution-list,
    .creative-carousel,
    .next-case
  ).is-revealed {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .po-anim .case-primeone :is(
    .case-hero-top,
    .case-hero-title,
    .case-hero-meta,
    .case-intro > div,
    .case-intro-copy,
    .case-section-heading,
    .metric-grid,
    .contribution-list,
    .creative-carousel,
    .next-case
  ) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   TAREA 26 — PrimeOne Tours: refinamiento de jerarquía,
   encabezados únicos, retícula y animaciones escalonadas
   ============================================================ */

/* ---------- 1. Encabezados centrados sobre su bloque (02, 03 y 04) ---------- */

.case-primeone #resultados .case-section-heading,
.case-primeone #impacto .case-section-heading,
.case-primeone #creativos .case-section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  text-align: center;
}

.case-primeone #resultados .case-section-heading > div,
.case-primeone #impacto .case-section-heading > div,
.case-primeone #creativos .case-section-heading > div {
  max-width: none;
}

.case-primeone #resultados .case-section-heading h2,
.case-primeone #impacto .case-section-heading h2,
.case-primeone #creativos .case-section-heading h2 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.02;
  text-wrap: balance;
}

.case-primeone #resultados .case-section-heading span,
.case-primeone #impacto .case-section-heading span,
.case-primeone #creativos .case-section-heading span {
  margin-bottom: 1.6rem;
}

/* Ritmo vertical uniforme entre encabezado y contenido */
.case-primeone :is(#resultados, #impacto, #creativos) .case-section-heading {
  margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
}

/* ---------- 2. Métricas: fila equilibrada con divisores alineados ---------- */

.case-primeone .metric-grid--detailed {
  border-top-color: rgba(245, 237, 217, 0.22);
  border-bottom-color: rgba(245, 237, 217, 0.22);
}

.case-primeone .metric-grid--detailed article + article {
  border-left-color: rgba(245, 237, 217, 0.22);
}

.case-primeone .metric-grid--detailed article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.case-primeone .metric-grid--detailed p {
  margin-top: 0.7rem;
}

/* ---------- 3. Contribuciones: dos columnas legibles en escritorio ---------- */

@media (min-width: 901px) {
  .case-primeone .contribution-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 5rem);
  }

  .case-primeone .contribution-list article {
    padding: clamp(1.8rem, 2.4vw, 2.4rem) 0 clamp(2rem, 2.6vw, 2.6rem);
    border-left: 0;
  }

  .case-primeone .contribution-list article:nth-child(even) {
    padding-left: clamp(2rem, 5vw, 5rem);
    border-left: 1px solid var(--line);
  }

  .case-primeone .contribution-list p {
    max-width: 56ch;
  }
}

/* ---------- 4. Espacios muertos mínimos entre bloques ---------- */

.case-primeone .metric-grid--detailed {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.case-primeone .contribution-list {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.case-primeone .creative-carousel {
  margin-top: clamp(2rem, 3.5vw, 3.25rem);
}

/* ---------- 5. Retardo escalonado: título → contenido → evidencia ---------- */

@media (prefers-reduced-motion: no-preference) {
  .po-anim .case-primeone :is(.case-intro-copy) {
    transition-delay: 110ms;
  }

  .po-anim .case-primeone :is(
    .metric-grid,
    .contribution-list,
    .creative-carousel
  ) {
    transition-delay: 220ms;
  }
}

/* ---------- 6. Móvil: encabezado antes que contenido ---------- */

@media (max-width: 900px) {
  .case-primeone :is(#resultados, #impacto, #creativos) .case-section-heading {
    align-items: flex-start;
    text-align: left;
    margin-bottom: clamp(2rem, 5vw, 3rem);
  }

  .case-primeone :is(#resultados, #impacto, #creativos) .case-section-heading h2 {
    max-width: 100%;
  }
}

/* ============================================================
   TAREA 27 — Integra: portada limpia, secciones reorganizadas
   y apariciones suaves de scroll
   ============================================================ */

/* ---------- 1. Portada: azul marino de Integra con textura sutil ---------- */

.case-integra .case-hero {
  background-color: #0b3c5d;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(245, 237, 217, 0.05) 0 1px,
      transparent 1px 68px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(245, 237, 217, 0.05) 0 1px,
      transparent 1px 68px
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* La fotografía y su velo ya no forman parte de la portada
   (el archivo assets/integra-hero.jpg permanece en disco sin usarse). */
.case-integra .case-hero > img,
.case-integra .case-hero-shade {
  display: none;
}

.case-integra .case-hero-title {
  flex: 1 1 auto;
  padding: clamp(2.5rem, 7vh, 5rem) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.case-integra .case-hero-title h1 {
  max-width: none;
  color: var(--paper);
  font-size: clamp(3.4rem, 12vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

/* ---------- 2. Etiquetas de sección uniformes ---------- */

.case-integra .script-note {
  margin-bottom: 1.6rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--wine);
}

/* ---------- 3. Títulos con jerarquía consistente ---------- */

.case-integra .case-intro h2,
.case-integra .case-section-heading h2 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* ---------- 4. Sección 02: título, contexto y carrusel alineados ---------- */

.case-integra .case-intro {
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}

.case-integra .case-intro-copy {
  max-width: 34rem;
  padding-top: 0.5rem;
}

.case-integra .case-intro-copy p {
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.8;
}

.case-integra .creative-carousel {
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

/* ---------- 5. Sección 03: lead a ancho completo y dos columnas ---------- */

.case-integra .case-copy {
  max-width: 82rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  align-items: start;
}

.case-integra .case-copy p:first-child {
  grid-column: 1 / -1;
  max-width: 54rem;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  line-height: 1.4;
}

.case-integra .case-copy p:not(:first-child) {
  max-width: 40rem;
}

.case-integra .case-copy p {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.85;
}

/* ---------- 6. Sección 04: «Mi aportación» como único título ---------- */

/* La sección par recibía el truco editorial en fila invertida; con un
   solo hijo el título quedaría a la derecha, así que se recupera el
   alineado a la izquierda de la retícula. */
.case-study.case-integra > section:nth-of-type(even) .case-section-heading {
  flex-direction: row;
  justify-content: flex-start;
}

.case-integra .case-section-heading > div {
  max-width: none;
}

.case-integra .contribution-list {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.case-integra .contribution-list article {
  padding: clamp(2.6rem, 3.4vw, 3.6rem) 0;
}

.case-integra .contribution-list span {
  font-size: 0.72rem;
}

.case-integra .contribution-list h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
}

.case-integra .contribution-list p {
  max-width: 46rem;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.8;
}

@media (min-width: 801px) {
  .case-integra .contribution-list article {
    grid-template-columns: 4.5rem minmax(12rem, 0.8fr) minmax(0, 1.5fr);
    gap: clamp(1.5rem, 4vw, 4rem);
  }
}

/* ---------- 7. Retardo escalonado: título → texto → evidencia ---------- */

@media (prefers-reduced-motion: no-preference) {
  .ig-anim .case-integra :is(
    .case-hero-top,
    .case-hero-title,
    .case-back,
    .case-intro > div,
    .case-intro-copy,
    .case-section-heading,
    .case-copy,
    .creative-carousel,
    .contribution-list,
    .next-case
  ) {
    opacity: 0;
    transform: translateY(1.15rem);
    transition: opacity 560ms ease, transform 560ms ease;
  }

  .ig-anim .case-integra :is(
    .case-hero-top,
    .case-hero-title,
    .case-back,
    .case-intro > div,
    .case-intro-copy,
    .case-section-heading,
    .case-copy,
    .creative-carousel,
    .contribution-list,
    .next-case
  ).is-revealed {
    opacity: 1;
    transform: none;
  }

  .ig-anim .case-integra :is(.case-intro-copy, .case-copy) {
    transition-delay: 110ms;
  }

  .ig-anim .case-integra :is(.creative-carousel, .contribution-list) {
    transition-delay: 220ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ig-anim .case-integra :is(
    .case-hero-top,
    .case-hero-title,
    .case-back,
    .case-intro > div,
    .case-intro-copy,
    .case-section-heading,
    .case-copy,
    .creative-carousel,
    .contribution-list,
    .next-case
  ) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- 8. Móvil: título antes que contenido, sin desbordes ---------- */

@media (max-width: 800px) {
  .case-integra .case-intro {
    gap: 2rem;
  }

  .case-integra .case-intro-copy {
    max-width: none;
    padding-top: 0;
  }

  .case-integra .case-copy {
    gap: 2rem;
  }

  .case-integra .case-copy p:first-child {
    max-width: none;
  }

  .case-integra .case-copy p:not(:first-child) {
    max-width: none;
  }

  .case-integra .case-section-heading h2 {
    max-width: 100%;
  }
}

/* ============================================================
   TAREA 28 — Cuadrx: portada limpia, títulos reorganizados
   y carrusel sin captions visibles
   ============================================================ */

/* ---------- 1. Portada: oliva oscuro del portafolio con textura ---------- */

.case-cuadrx .case-hero {
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(245, 237, 217, 0.045) 0 1px,
      transparent 1px 68px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(245, 237, 217, 0.045) 0 1px,
      transparent 1px 68px
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* La fotografía deja de formar parte de la portada (el archivo
   assets/cuadrx-hero.jpg permanece en disco sin usarse). */
.case-cuadrx .case-hero > img,
.case-cuadrx .case-hero-shade {
  display: none;
}

.case-cuadrx .case-hero-title {
  flex: 1 1 auto;
  padding: clamp(2.5rem, 7vh, 5rem) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.case-cuadrx .case-hero-title h1 {
  max-width: none;
  color: var(--paper);
  font-size: clamp(3.4rem, 12vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

/* ---------- 2. Etiquetas de sección uniformes ---------- */

.case-cuadrx .script-note {
  margin-bottom: 1.6rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--wine);
}

.case-cuadrx .case-section-heading span {
  margin-bottom: 1.6rem;
}

/* ---------- 3. Títulos con jerarquía consistente ---------- */

.case-cuadrx .case-intro h2,
.case-cuadrx .case-section-heading h2 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* ---------- 4. Sección 01: título y contexto alineados ---------- */

.case-cuadrx .case-intro {
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}

.case-cuadrx .case-intro-copy {
  max-width: 34rem;
  padding-top: 0.5rem;
}

.case-cuadrx .case-intro-copy p {
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.8;
}

/* ---------- 5. Sección 02: «Mi aportación» como único título ---------- */

/* La sección par recibía el truco editorial en fila invertida; con un
   solo hijo el título quedaría a la derecha, así que se recupera el
   alineado a la izquierda de la retícula. */
.case-study.case-cuadrx > section:nth-of-type(even) .case-section-heading {
  flex-direction: row;
  justify-content: flex-start;
}

.case-cuadrx .case-section-heading > div {
  max-width: 44rem;
}

.case-cuadrx .contribution-list {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.case-cuadrx .contribution-list article {
  padding: clamp(2.6rem, 3.4vw, 3.6rem) 0;
}

.case-cuadrx .contribution-list span {
  color: var(--red);
  font-size: 0.72rem;
}

.case-cuadrx .contribution-list h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
}

.case-cuadrx .contribution-list p {
  max-width: 46rem;
  color: rgba(245, 237, 217, 0.78);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.8;
}

@media (min-width: 801px) {
  .case-cuadrx .contribution-list article {
    grid-template-columns: 4.5rem minmax(12rem, 0.8fr) minmax(0, 1.5fr);
    gap: clamp(1.5rem, 4vw, 4rem);
  }
}

/* ---------- 6. Sección 03: título y descripción sin competencia ---------- */

.case-cuadrx .case-section-heading {
  gap: clamp(2rem, 5vw, 4rem);
}

.case-cuadrx .case-section-heading > p {
  max-width: 27rem;
}

.case-cuadrx .creative-carousel {
  margin-top: clamp(2rem, 3.5vw, 3.25rem);
}

/* ---------- 7. Retardo escalonado: título → texto → evidencia ---------- */

@media (prefers-reduced-motion: no-preference) {
  .cu-anim .case-cuadrx :is(
    .case-hero-top,
    .case-hero-title,
    .case-hero-meta,
    .case-intro > div,
    .case-intro-copy,
    .case-section-heading,
    .contribution-list,
    .creative-carousel,
    .next-case
  ) {
    opacity: 0;
    transform: translateY(1.15rem);
    transition: opacity 560ms ease, transform 560ms ease;
  }

  .cu-anim .case-cuadrx :is(
    .case-hero-top,
    .case-hero-title,
    .case-hero-meta,
    .case-intro > div,
    .case-intro-copy,
    .case-section-heading,
    .contribution-list,
    .creative-carousel,
    .next-case
  ).is-revealed {
    opacity: 1;
    transform: none;
  }

  .cu-anim .case-cuadrx :is(.case-intro-copy) {
    transition-delay: 110ms;
  }

  .cu-anim .case-cuadrx :is(.contribution-list, .creative-carousel) {
    transition-delay: 220ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cu-anim .case-cuadrx :is(
    .case-hero-top,
    .case-hero-title,
    .case-hero-meta,
    .case-intro > div,
    .case-intro-copy,
    .case-section-heading,
    .contribution-list,
    .creative-carousel,
    .next-case
  ) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- 8. Móvil: título antes que contenido, sin desbordes ---------- */

@media (max-width: 800px) {
  .case-cuadrx .case-intro {
    gap: 2rem;
  }

  .case-cuadrx .case-intro-copy {
    max-width: none;
    padding-top: 0;
  }

  .case-cuadrx .case-section-heading h2 {
    max-width: 100%;
  }

  .case-cuadrx .case-section-heading > p {
    margin-top: 1.5rem;
    max-width: none;
  }
}

/* ============================================================
   TAREA 46 — Portadas de proyecto: colores distintos y limpieza
   ============================================================ */

/* ---------- 1. Retícula: dos columnas uniformes ---------- */

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 4vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
}

.project-card {
  grid-column: auto;
}

.project-card--large {
  grid-column: auto;
}

/* ---------- 2. Portada: tarjeta editorial ---------- */

.project-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid rgba(61, 63, 20, 0.14);
  border-radius: 6px;
  text-decoration: none;
  transition: transform 400ms ease, filter 400ms ease, box-shadow 400ms ease;
}

.project-image:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 1rem 2rem rgba(61, 63, 20, 0.12);
}

.project-image > img {
  display: none;
}

/* ---------- 3. Nombre protagonista ---------- */

.project-cover-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  transition: transform 400ms ease;
}

.project-image:hover .project-cover-name {
  transform: translateY(-2px);
}

/* ---------- 4. Fondos distintos por proyecto + textura geométrica ---------- */

/* Jaguar Journey — Navy */
.project-card--jaguar .project-image {
  background-color: #0b3c5d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(245,237,217,0.09)' stroke-width='0.7'%3E%3Crect x='0.5' y='0.5' width='59' height='59'/%3E%3Cline x1='0' y1='0' x2='60' y2='60'/%3E%3Cline x1='60' y1='0' x2='0' y2='60'/%3E%3Cpolygon points='30,8 52,30 30,52 8,30'/%3E%3C/g%3E%3Ccircle cx='30' cy='30' r='3' fill='rgba(182,109,146,0.12)' stroke='none'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 60px 60px;
}

.project-card--jaguar .project-cover-name {
  color: var(--paper);
}

/* PrimeOne — Oliva profundo */
.project-card--primeone .project-image {
  background-color: #3d3f14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(245,237,217,0.09)' stroke-width='0.7'%3E%3Crect x='0.5' y='0.5' width='59' height='59'/%3E%3Cline x1='0' y1='0' x2='60' y2='60'/%3E%3Cline x1='60' y1='0' x2='0' y2='60'/%3E%3Cpolygon points='30,8 52,30 30,52 8,30'/%3E%3C/g%3E%3Ccircle cx='30' cy='30' r='3' fill='rgba(182,109,146,0.12)' stroke='none'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 60px 60px;
}

.project-card--primeone .project-cover-name {
  color: var(--paper);
}

/* Integra — Vino */
.project-card--integra .project-image {
  background-color: #5b090f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(245,237,217,0.10)' stroke-width='0.7'%3E%3Crect x='0.5' y='0.5' width='59' height='59'/%3E%3Cline x1='0' y1='0' x2='60' y2='60'/%3E%3Cline x1='60' y1='0' x2='0' y2='60'/%3E%3Cpolygon points='30,8 52,30 30,52 8,30'/%3E%3C/g%3E%3Ccircle cx='30' cy='30' r='3' fill='rgba(226,194,212,0.18)' stroke='none'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 60px 60px;
}

.project-card--integra .project-cover-name {
  color: var(--paper);
}

/* Cuadrx — Crema */
.project-card--cuadrx .project-image {
  background-color: #f5edd9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='rgba(61,63,20,0.10)' stroke-width='0.7'%3E%3Crect x='0.5' y='0.5' width='59' height='59'/%3E%3Cline x1='0' y1='0' x2='60' y2='60'/%3E%3Cline x1='60' y1='0' x2='0' y2='60'/%3E%3Cpolygon points='30,8 52,30 30,52 8,30'/%3E%3C/g%3E%3Ccircle cx='30' cy='30' r='3' fill='rgba(182,109,146,0.15)' stroke='none'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 60px 60px;
}

.project-card--cuadrx .project-cover-name {
  color: var(--ink);
}

/* ---------- 5. Bloque inferior alineado ---------- */

.project-meta {
  padding-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--light-line);
  align-items: flex-start;
}

.project-meta > p:first-child {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: Verdana, Geneva, sans-serif;
  margin: 0;
}

.project-meta a {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: Verdana, Geneva, sans-serif;
  margin-top: 0.25rem;
}

/* ---------- 6. Responsive ---------- */

@media (max-width: 760px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 3rem 0;
  }

  .project-image {
    aspect-ratio: 4 / 3;
  }

  .project-cover-name {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
}

/* ---------- 7. Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  .project-image,
  .project-image:hover,
  .project-cover-name {
    transition: none;
    transform: none;
  }
}

/* ============================================================
   TAREA 47 — Home: intro personal en el hero
   ============================================================ */

.hero-intro {
  margin-bottom: 1.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--malva-light);
}

.hero-kicker {
  margin-bottom: 0;
}

/* ============================================================
   TAREA 50 — Home: animaciones editoriales de aparición
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .home-anim .hero .eyebrow,
  .home-anim .hero .hero-copy,
  .home-anim .hero .hero-footer,
  .home-anim .about .section-label,
  .home-anim .about .about-content,
  .home-anim .skills .section-label,
  .home-anim .skills .skills-head,
  .home-anim .skills .skill-cards,
  .home-anim .projects .section-label,
  .home-anim .projects .projects-intro,
  .home-anim .projects .project-grid,
  .home-anim .contact .contact-top,
  .home-anim .contact .contact-main {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 550ms ease-out, transform 550ms ease-out;
  }

  .home-anim .hero .eyebrow.is-revealed,
  .home-anim .hero .hero-copy.is-revealed,
  .home-anim .hero .hero-footer.is-revealed,
  .home-anim .about .section-label.is-revealed,
  .home-anim .about .about-content.is-revealed,
  .home-anim .skills .section-label.is-revealed,
  .home-anim .skills .skills-head.is-revealed,
  .home-anim .skills .skill-cards.is-revealed,
  .home-anim .projects .section-label.is-revealed,
  .home-anim .projects .projects-intro.is-revealed,
  .home-anim .projects .project-grid.is-revealed,
  .home-anim .contact .contact-top.is-revealed,
  .home-anim .contact .contact-main.is-revealed {
    opacity: 1;
    transform: none;
  }

  /* Retraso escalonado */
  .home-anim .hero .hero-copy { transition-delay: 100ms; }
  .home-anim .hero .hero-footer { transition-delay: 200ms; }
  .home-anim .about .about-content { transition-delay: 100ms; }
  .home-anim .skills .skill-cards { transition-delay: 100ms; }
  .home-anim .projects .project-grid { transition-delay: 100ms; }
  .home-anim .contact .contact-main { transition-delay: 100ms; }
}

@media (prefers-reduced-motion: reduce) {
  .home-anim .hero .eyebrow,
  .home-anim .hero .hero-copy,
  .home-anim .hero .hero-footer,
  .home-anim .about .section-label,
  .home-anim .about .about-content,
  .home-anim .skills .section-label,
  .home-anim .skills .skills-head,
  .home-anim .skills .skill-cards,
  .home-anim .projects .section-label,
  .home-anim .projects .projects-intro,
  .home-anim .projects .project-grid,
  .home-anim .contact .contact-top,
  .home-anim .contact .contact-main {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   TAREA 34/51 — Cuadrx sección 01: logo, enlace y composición
   ============================================================ */

/* ---------- 1. Encabezado centrado ---------- */

.case-cuadrx #proyecto .case-intro-head {
  text-align: center;
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
}

.case-cuadrx #proyecto .case-intro-head .script-note {
  margin-bottom: 1.25rem;
}

.case-cuadrx #proyecto .case-intro-head h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 0;
}

/* ---------- 2. Dos columnas: logo (izq) / información (der) ---------- */

.case-cuadrx #proyecto .case-intro--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.case-cuadrx #proyecto .case-intro-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.case-cuadrx #proyecto .case-intro-logo img {
  max-width: 100%;
  max-height: 10rem;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.case-cuadrx #proyecto .case-intro-copy {
  max-width: none;
  text-align: left;
  margin-top: 0;
}

/* ---------- 3. Enlace editorial al sitio oficial ---------- */

.case-cuadrx .case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-bottom: 0.4rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  border-bottom: 1px solid var(--wine);
  text-decoration: none;
  transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.case-cuadrx .case-link:hover,
.case-cuadrx .case-link:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ---------- 4. Responsive ---------- */

@media (max-width: 900px) {
  .case-cuadrx #proyecto .case-intro--split {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  .case-cuadrx #proyecto .case-intro-logo {
    order: 2;
    padding: clamp(0.75rem, 2vw, 1.25rem);
  }

  .case-cuadrx #proyecto .case-intro-copy {
    order: 1;
  }

  .case-cuadrx #proyecto .case-intro-logo img {
    max-height: 8rem;
  }
}

@media (max-width: 480px) {
  .case-cuadrx #proyecto .case-intro-logo img {
    max-height: 7rem;
  }

  .case-cuadrx .case-link {
    padding: 0.6rem 0;
  }
}

/* ============================================================
   TAREA 53 — Microinteracciones: destello editorial sutil
   ============================================================ */

/* ---------- Destello sobre enlaces y botones principales ---------- */

.case-back,
.hero-link,
.text-link,
.case-link,
.header-contact,
.project-image {
  position: relative;
  overflow: hidden;
}

.case-back::before,
.hero-link::before,
.text-link::before,
.case-link::before,
.header-contact::before,
.project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 237, 217, 0.18) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 700ms ease;
  pointer-events: none;
  z-index: 1;
}

.case-back:hover::before,
.case-back:focus-visible::before,
.hero-link:hover::before,
.hero-link:focus-visible::before,
.text-link:hover::before,
.text-link:focus-visible::before,
.case-link:hover::before,
.case-link:focus-visible::before,
.header-contact:hover::before,
.header-contact:focus-visible::before,
.project-image:hover::before {
  left: 120%;
}

/* ---------- Flechas de carrusel: resalte de contorno ---------- */

.carousel-arrow,
.lightbox-arrow {
  transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.carousel-arrow:hover:not(:disabled),
.carousel-arrow:focus-visible:not(:disabled),
.lightbox-arrow:hover:not(:disabled),
.lightbox-arrow:focus-visible:not(:disabled) {
  box-shadow: 0 0 0 3px rgba(245, 237, 217, 0.18);
}

/* ---------- Acordeones: transición suave del indicador ---------- */

.skill-head .skill-indicator {
  transition: transform 280ms ease, background-color 280ms ease;
}

.skill-card.is-open .skill-head .skill-indicator {
  transform: rotate(45deg);
}

/* ---------- Iconos de contacto: cambio de color sutil ---------- */

.contact-link,
.contact-main a {
  transition: color 220ms ease, border-color 220ms ease;
}

.contact-link:hover,
.contact-link:focus-visible,
.contact-main a:hover,
.contact-main a:focus-visible {
  color: var(--malva-light);
}

/* ---------- Respeto a movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  .case-back::before,
  .hero-link::before,
  .text-link::before,
  .case-link::before,
  .header-contact::before,
  .project-image::before {
    display: none;
  }

  .carousel-arrow,
  .lightbox-arrow,
  .skill-head .skill-indicator,
  .contact-link,
  .contact-main a {
    transition: none;
  }
}

/* ============================================================
   TAREA 54 — Jaguar Journey: canales de adquisición con carácter
   ============================================================ */

/* ---------- 1. Cuadrícula sin bordes, con separación limpia ---------- */

.case-jaguar .channel-grid.channel-grid--editorial {
  border: none;
  background: transparent;
  gap: 0.75rem;
}

/* ---------- 2. Colores por tarjeta ---------- */

/* Google Ads — vino */
.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(1) {
  background: var(--wine);
}

.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(1) span {
  color: var(--malva-light);
}

.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(1) h3,
.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(1) p {
  color: var(--paper);
}

/* Meta Ads — malva */
.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(2) {
  background: var(--malva-light);
}

.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(2) span {
  color: var(--wine);
}

.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(2) h3 {
  color: var(--wine);
}

.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(2) p {
  color: var(--ink);
}

/* Presencia web — oliva profundo */
.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(3) {
  background: var(--ink);
}

.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(3) span {
  color: var(--malva-light);
}

.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(3) h3,
.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(3) p {
  color: var(--paper);
}

/* Recomendaciones — rosa */
.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(4) {
  background: var(--red);
}

.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(4) span {
  color: var(--wine);
}

.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(4) h3,
.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(4) p {
  color: var(--wine);
}

/* ---------- 3. Acento rosa (solo donde hay contraste) ---------- */

/* Acento como línea superior fina en las tarjetas no rosas. */
.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(1)::before,
.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(2)::before,
.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(3)::before {
  background: var(--red);
}

/* En la tarjeta rosa, el acento es vino. */
.case-jaguar .channel-grid.channel-grid--editorial article:nth-child(4)::before {
  background: var(--wine);
}

/* ---------- 4. Hover sutil ---------- */

.case-jaguar .channel-grid.channel-grid--editorial article {
  border-radius: 4px;
  transition: transform 250ms ease, filter 250ms ease;
}

.case-jaguar .channel-grid.channel-grid--editorial article:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

/* ---------- 5. Responsive ---------- */

@media (max-width: 600px) {
  .case-jaguar .channel-grid.channel-grid--editorial {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-jaguar .channel-grid.channel-grid--editorial article,
  .case-jaguar .channel-grid.channel-grid--editorial article:hover {
    transition: none;
    transform: none;
    filter: none;
  }
}

/* ============================================================
   TAREA 56 — Hero floral animado (descubrimiento + flotación)
   ============================================================ */

.hero {
  position: relative;
}

.hero-floral {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-floral__item {
  position: absolute;
  height: auto;
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
  animation:
    floralEnter 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) var(--del, 0s) forwards,
    floralFloat var(--dur, 8s) ease-in-out calc(var(--del, 0s) + 1.4s) infinite;
}

@keyframes floralEnter {
  0% {
    opacity: 0;
    transform: translate(var(--fx, 0px), var(--fy, 0px)) rotate(var(--rot, 0deg)) scale(0.85);
  }
  100% {
    opacity: var(--opa, 0.8);
    transform: translate(0, 0) rotate(var(--rot, 0deg)) scale(1);
  }
}

@keyframes floralFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translate(0, -8px) rotate(calc(var(--rot, 0deg) + 2deg));
  }
}

/* El contenido del hero queda por encima de las flores. */
.hero .eyebrow,
.hero .hero-copy,
.hero .hero-footer {
  position: relative;
  z-index: 1;
}

/* Parallax sutil al mover el cursor (aplicado vía JS). */
.hero-floral {
  transition: transform 600ms ease-out;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-floral__item {
    /* Reducir densidad: ocultar algunos elementos en tablet */
  }
}

@media (max-width: 600px) {
  /* Ocultar flores centrales/extra en móvil, conservar esquinas. */
  .hero-floral__item:nth-child(5),
  .hero-floral__item:nth-child(6),
  .hero-floral__item:nth-child(11),
  .hero-floral__item:nth-child(12),
  .hero-floral__item:nth-child(13),
  .hero-floral__item:nth-child(14) {
    display: none;
  }

  .hero-floral__item {
    width: 90px !important;
  }
}

/* ---------- Accesibilidad ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-floral__item {
    animation: none;
    opacity: var(--opa, 0.8);
    transform: rotate(var(--rot, 0deg));
  }

  .hero-floral {
    transition: none;
  }
}
