/* ==========================================================================
   DOiG MARKETING — DROGA5 WHITE AESTHETIC
   ========================================================================== */

/* ==========================================================================
   FONTS — self-hosted (no connection to Google before consent)
   Archivo (logo) and Inter Tight (headings), variable, latin + latin-ext
   ========================================================================== */
/* Archivo — latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Archivo — latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter Tight — latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter Tight — latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ----- Brand palette (the only colors used on the site) ----- */
  --negro: #0A0A0A;
  --blanco: #FFFFFF;
  --gris-texto: #6B6B6B;
  --gris-borde: #E5E5E5;
  --acento: #DC143C;   /* only: decorative lines, hero highlight, hover/focus states */
  --texto-sobre-acento: #FFFFFF; /* text on any --acento background */

  /* ----- Legacy names, mapped onto the palette ----- */
  --bg: var(--blanco);
  --bg-dark: var(--negro);
  --text: var(--negro);
  --text-light: var(--blanco);
  --text-muted: var(--gris-texto);
  --text-subtle: var(--gris-texto);
  --accent: var(--negro);
  --accent-emerald: var(--negro);
  --accent-cyan: var(--negro);
  --accent-rose: var(--negro);
  --accent-amber: var(--negro);
  --border: var(--gris-borde);
  --border-color: var(--gris-borde);
  --border-dark: rgba(255,255,255,0.15);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ==========================================================================
   HEADER — Droga5 style: logo left, hamburger right
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.75rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

/* After scrolling: no bar at all — just the logo and menu floating.
   White + difference blend = black over light sections, white over dark images. */
.site-header.scrolled {
  background: transparent;
  mix-blend-mode: difference;
}

.site-header.scrolled .brand-name { color: var(--blanco); }

.site-header.scrolled .hamburger-line { background: var(--blanco); }

/* Hidden while scrolling down, slides back in when scrolling up */
.site-header.header-hidden {
  transform: translateY(-100%);
}

.brand-identity {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

/* Logo — same construction as "DOiG Logo.dc.html": Archivo, "DOiG" at 850 and
   "marketing" at 400 / 90% width, same size, sharing the baseline */
.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.24em;
  font-family: "Archivo", var(--font-sans);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-name-light {
  font-weight: 400;
  font-stretch: 90%;
  letter-spacing: -0.03em;
}

/* Drawn "i": a stem in the text colour + a crimson dot (measures from the logo file, in em) */
.brand-i {
  position: relative;
  display: inline-block;
  width: 0.264em;
  height: 1em;
}

.brand-i-stem {
  position: absolute;
  left: 0.062em;
  top: 0.397em;
  width: 0.188em;
  height: 0.431em;
  background: currentColor;
}

.brand-i-dot {
  position: absolute;
  left: 0.031em;
  top: 0.125em;
  width: 0.234em;
  height: 0.234em;
  border-radius: 50%;
  background: var(--acento);
}

/* The scrolled header uses mix-blend-mode: difference (crimson would turn turquoise);
   the inverse colour makes the dot read crimson over light sections */
.site-header.scrolled .brand-i-dot { background: #23EBC3; }

.site-header.scrolled .brand-name {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Hamburger menu button — 3 lines */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* The panel has its own ✕, so the hamburger disappears while the menu is open */
.menu-toggle.active {
  opacity: 0;
  pointer-events: none;
}

/* Side panel overlay — dark panel from right */
.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 100%;
  height: 100vh;
  background: var(--negro);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  padding: 11rem 2.5rem 2.5rem 5.75rem;
  overflow-y: auto;
}

.side-panel.open {
  transform: translateX(0);
}

.side-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.4);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.side-panel-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.side-panel-close {
  position: absolute;
  top: 2.4rem;
  right: 2.4rem;
  background: none;
  border: none;
  color: var(--blanco);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: opacity 0.2s;
}

.side-panel-close:hover {
  opacity: 0.6;
}

.side-panel-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding-bottom: 2.25rem;
  margin-bottom: 1.75rem;
  position: relative;
}

/* Short divider under the nav */
.side-panel-nav::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 110px;
  height: 1px;
  background: rgba(255,255,255,0.45);
}

.side-panel-link {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--blanco);
  transition: opacity 0.2s;
}

.side-panel-link:hover {
  opacity: 0.6;
}

.side-panel-link.has-arrow {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}

.side-panel-link.has-arrow::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out, ease);
}

.side-panel-contact {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.45;
  max-width: 190px;
}

.side-panel-contact a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.side-panel-contact a:hover {
  color: var(--blanco);
}

/* ----- Push the page left while the panel is open ----- */
main,
.site-footer {
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

.site-header {
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease,
              transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

body.panel-open main,
body.panel-open .site-footer,
body.panel-open .site-header {
  transform: translateX(-360px);
}

body.panel-open.panel-expanded main,
body.panel-open.panel-expanded .site-footer,
body.panel-open.panel-expanded .site-header {
  transform: translateX(-820px);
}

body.panel-open.panel-view-services main,
body.panel-open.panel-view-services .site-footer,
body.panel-open.panel-view-services .site-header {
  transform: translateX(-720px);
}

/* Mobile: narrower panel, page slides left by the same amount */
@media (max-width: 768px) {
  :root { --panel-w-mobile: min(max(270px, 64vw), 100vw); }

  body.panel-open main,
  body.panel-open .site-footer,
  body.panel-open .site-header {
    transform: translateX(calc(-1 * var(--panel-w-mobile)));
  }

  /* Services / contact views take the whole screen on a phone */
  body.panel-open.panel-expanded main,
  body.panel-open.panel-expanded .site-footer,
  body.panel-open.panel-expanded .site-header {
    transform: translateX(-100vw);
  }
}

/* ----- Expanded states: data-view="contact" | "services" ----- */
.side-panel {
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1),
              width 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

.side-panel[data-view] {
  width: 820px;
  padding-right: 3.75rem;
}

/* The services list is short, so that view needs less width.
   Right padding mirrors the left one (5.75rem) so both sides are balanced. */
.side-panel[data-view="services"] {
  width: 720px;
  padding-right: 5.75rem;
}

.side-panel-inner {
  display: flex;
  gap: 4.5rem;
  align-items: flex-start;
}

.side-panel-main {
  flex: 0 0 200px;
}

.side-panel[data-view] .side-panel-link {
  color: rgba(255,255,255,0.3);
}

.side-panel[data-view] .side-panel-link.is-current {
  color: var(--blanco);
}

.side-panel-view {
  display: none;
  flex: 1;
  min-width: 0;
  margin-top: -0.6rem;
}

.side-panel[data-view="contact"] [data-view-content="contact"],
.side-panel[data-view="services"] [data-view-content="services"] {
  display: block;
  animation: panelFade var(--dur-media) var(--ease-in-out) both;
}

/* Services view — same look and rhythm as the main menu, aligned with "Inicio" */
[data-view-content="services"] {
  margin-top: 0;
}

.panel-services {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.side-panel[data-view] .panel-services .side-panel-link {
  color: var(--blanco);
  white-space: nowrap;
}

/* Wider gutter between the menu and the services column */
.side-panel[data-view="services"] .side-panel-inner {
  gap: 5.75rem;
}

/* No box around menu links; keyboard users get a subtle underline instead */
.side-panel a:focus {
  outline: none;
}

.side-panel a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

@keyframes panelFade {
  from { opacity: 0; }
}

.panel-form-title {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--blanco);
  margin-bottom: 2.25rem;
}

.panel-form {
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
}

.panel-form-select select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='white' stroke-width='1.3'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right center;
  border: none;
  color: var(--blanco);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding-right: 1.25rem;
  cursor: pointer;
  outline: none;
}

.panel-form-select option {
  background: var(--negro);
  color: var(--blanco);
}

.panel-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s;
}

.panel-field:focus-within {
  border-color: var(--acento);
  border-bottom-width: 2px;
}

.panel-field span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blanco);
}

.panel-field input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--blanco);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.35rem 0 0.55rem;
}

.panel-textarea {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--blanco);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 1rem 1rem;
  min-height: 190px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.panel-textarea::placeholder {
  color: var(--blanco);
  font-weight: 600;
  font-size: 0.875rem;
}

.panel-textarea:focus {
  border-color: var(--acento);
}

.panel-submit {
  align-self: flex-start;
  background: var(--blanco);   /* inverted on the black panel so it stays visible */
  color: var(--negro);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.9rem 1.85rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.panel-submit:hover {
  background: var(--acento);
  color: var(--texto-sobre-acento);
}

.panel-form-error {
  font-size: 0.8125rem;
  color: var(--blanco);
  margin-top: -0.75rem;
}

/* ==========================================================================
   HERO — White bg, black serif text, blue accent line
   ========================================================================== */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 9.25rem 2rem 0;
  background: var(--bg);
}

.hero-accent-line {
  width: 70px;
  height: 5px;
  background: var(--acento);
  margin-bottom: 3.25rem;
}

.hero-headline {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(2.5rem, 5.4vw, 6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 1100px;
  margin: 0 auto 3rem;
  color: var(--text);
}

.hero-video-container {
  width: 100%;
  max-width: 855px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: var(--negro);
  position: relative;
  overflow: hidden;
}

.hero-video-container img,
.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bottom-blurb {
  text-align: center;
  padding: 3.5rem 2rem 4rem;
  background: var(--bg);
}

.hero-bottom-text {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.25rem, 2.2vw, 2.125rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 760px;
  margin: 0 auto 3.25rem;
  line-height: 1.4;
}

.hero-bottom-blurb .btn-primary {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.65rem 1.85rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.875rem 2rem;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: transparent;
  color: var(--text);
}

/* ==========================================================================
   DNA / OUR DNA SECTION — White bg, 2-column layout
   ========================================================================== */
.dna-section {
  padding: 6rem 0 7rem;
  background: var(--bg);
}

.dna-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.dna-label {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--gris-texto);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.dna-label-line {
  width: 70px;
  height: 5px;
  background: var(--acento);
  margin: 0 auto;
}

.dna-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.dna-item {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
  cursor: default;
}

.dna-item-title {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text);
  text-align: right;
  transition: color 0.3s ease;
}

.dna-item-text {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

/* Subtle hover: fade the other items */
.dna-grid:hover .dna-item .dna-item-title,
.dna-grid:hover .dna-item .dna-item-text {
  color: var(--gris-texto);
}

.dna-grid .dna-item:hover .dna-item-title,
.dna-grid .dna-item:hover .dna-item-text {
  color: var(--text);
}

/* ==========================================================================
   WORK SHOWCASE BLOCKS — Fullscreen image, white text overlay
   ========================================================================== */
.work-block {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.work-block-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.08); /* bleed so the mouse drift never shows edges; JS animates it */
  will-change: transform;
}

@media not ((any-hover: hover) and (any-pointer: fine)) {
  .work-block-image { transform: none; }
}

.work-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.1) 60%, transparent 100%);
  z-index: 1;
}

.work-block-content {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem;
  max-width: 600px;
}

.work-block-category {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.75rem;
  display: block;
}

.work-block-title {
  font-family: 'Inter Tight', var(--font-sans); /* same system as the hero headline */
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--blanco);
  margin-bottom: 0.75rem;
}

.work-block-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  max-width: 400px;
  font-weight: 300;
}

/* ==========================================================================
   FOOTER — Single minimal line like Droga5
   ========================================================================== */
.site-footer {
  background: var(--bg);
  padding: 1.75rem 2.25rem;
}

.footer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--gris-texto);
  letter-spacing: -0.01em;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.footer-social a {
  display: flex;
  color: var(--gris-texto);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--text);
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer-links-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-links-row a {
  font-size: 0.8125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}

.footer-links-row a:hover {
  opacity: 0.6;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  background: var(--gris-borde);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .site-header { padding: 1.25rem 1.25rem; }

  .home-hero {
    padding: 7rem 1.25rem 0;
  }

  .hero-headline {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .hero-accent-line {
    margin-bottom: 2rem;
  }

  .dna-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .dna-item-title {
    text-align: left;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-social {
    margin-left: 0;
  }

  .footer-links-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .work-block {
    min-height: 80vh;
  }

  .work-block-content {
    padding: 2.5rem 1.5rem;
  }

  .side-panel {
    width: var(--panel-w-mobile);
    padding: 11rem 1.5rem 2.5rem 3rem;
  }

  .side-panel-close {
    top: 1.5rem;
    right: 1.25rem;
  }

  .side-panel-inner,
  .side-panel[data-view="services"] .side-panel-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .side-panel-main {
    flex-basis: auto;
  }

  .side-panel[data-view],
  .side-panel[data-view="services"] {
    width: 100%;
    padding: 6rem 1.5rem 2.5rem 3rem;
  }

  /* In an expanded view, hide the address block so the list/form sits higher */
  .side-panel[data-view] .side-panel-contact {
    display: none;
  }
}

/* ==========================================================================
   HOME — MOBILE: centred, symmetric layout with equal side gutters
   ========================================================================== */
@media (max-width: 768px) {
  /* Header: logo + hamburger on the same baseline, same inset each side */
  .site-header,
  .site-header.scrolled {
    padding: 1.25rem 1.5rem;
  }

  /* Hero */
  .home-hero {
    padding: 7.5rem 1.5rem 0;
  }

  .hero-headline {
    font-size: clamp(2.1rem, 9.5vw, 2.75rem);
    line-height: 1.1;
    margin-bottom: 2.5rem;
  }

  .hero-bottom-blurb {
    padding: 2.5rem 1.5rem 3.5rem;
  }

  .hero-bottom-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }

  /* DNA: one centred column */
  .dna-section {
    padding: 4rem 0 5rem;
  }

  .dna-section .container {
    padding: 0 1.5rem;
  }

  .dna-grid {
    gap: 2.5rem;
  }

  .dna-item {
    text-align: center;
    gap: 0.75rem;
  }

  .dna-item-title {
    text-align: center;
    font-size: 1.625rem;
  }

  .dna-item-text {
    max-width: 34ch;
    margin: 0 auto;
  }

  /* Work blocks: content centred, darker bottom for legibility */
  .work-block {
    justify-content: center;
    min-height: 85vh;
    height: 85vh;
  }

  .work-block::after {
    background: linear-gradient(to top, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.25) 55%, rgba(10,10,10,0.05) 100%);
  }

  .work-block-content {
    width: 100%;
    max-width: none;
    padding: 3rem 1.5rem;
    text-align: center;
  }

  .work-block-desc {
    margin-left: auto;
    margin-right: auto;
  }

  /* Footer: everything stacked and centred */
  .site-footer {
    padding: 2.5rem 1.5rem;
  }

  .footer-row {
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-social {
    margin-left: 0;
    justify-content: center;
  }

  .footer-links-row {
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }

  .footer-copyright {
    order: 3;
  }
}

/* ==========================================================================
   MOTION — one easing, short distances, nothing flashy
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Consistent, calm hover feedback on text links and buttons */
.btn-primary,
.panel-submit {
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

.side-panel-link,
.footer-links-row a,
.footer-social a {
  transition: opacity 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

/* Overlay dims the page a touch slower than the panel slides, feels softer */
.side-panel-overlay {
  transition: opacity 0.55s var(--ease-out);
}

/* ==========================================================================
   SIDE PANEL — MOBILE VIEWS (Contacto / Servicios fill the whole panel)
   ========================================================================== */
.side-panel-back,
.panel-mobile-title {
  display: none;
}

@media (max-width: 768px) {
  /* Same 1.75rem gutter on both sides; "‹ Menú", title, fields and ✕ all share it */
  .side-panel[data-view],
  .side-panel[data-view="services"] {
    padding: 6rem 1.75rem 3rem 1.75rem;
  }

  .side-panel[data-view] .side-panel-close {
    right: calc(1.75rem - 9px); /* the ✕ glyph (not its hit area) lines up with the gutter */
  }

  /* The view replaces the menu instead of stacking under it, at full width */
  .side-panel[data-view] .side-panel-main {
    display: none;
  }

  .side-panel[data-view] .side-panel-inner {
    align-items: stretch;
  }

  .side-panel[data-view] .side-panel-view {
    width: 100%;
    margin-top: 0;
  }

  .panel-field input,
  .panel-textarea {
    width: 100%;
  }

  /* "‹ Menú" back link, top-left */
  .side-panel[data-view] .side-panel-back {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    top: 1.95rem; /* vertically centred with the ✕ */
    left: 1.75rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color 0.3s var(--ease-out);
  }

  .side-panel-back::before {
    content: '';
    width: 7px;
    height: 7px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }

  .side-panel-back:hover {
    color: var(--blanco);
  }

  /* Big title like the reference; generous spacing between fields */
  .panel-form-title {
    font-size: 2.75rem;
    margin-bottom: 2.25rem;
  }

  .panel-field span {
    font-size: 0.8125rem;
  }

  .panel-field input {
    font-size: 1rem;
    padding: 0.5rem 0 0.65rem;
  }

  .panel-submit {
    padding: 1rem 2.25rem;
  }

  .side-panel[data-view="services"] .panel-mobile-title {
    display: block;
  }

  .panel-form {
    gap: 1.6rem;
  }

  .panel-textarea {
    min-height: 180px;
  }

  /* Services: larger, airy list */
  .panel-services {
    gap: 1.5rem;
  }

  .side-panel[data-view] .panel-services .side-panel-link {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   SIDE PANEL — MOBILE RHYTHM (menu, Servicios and Contacto share one grid)
   Same side gutter (3rem left = right), same top line, same link size,
   same ✕ / "‹ Menú" row in every state, so switching views doesn't jump.
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --pm-gutter: 3rem;   /* left & right inset of all panel content */
    --pm-top: 8.5rem;    /* where the first line of content starts */
    --pm-bar: 2rem;      /* vertical position of the ✕ / "‹ Menú" row */
  }

  .side-panel,
  .side-panel[data-view],
  .side-panel[data-view="services"] {
    padding: var(--pm-top) var(--pm-gutter) 3rem var(--pm-gutter);
  }

  /* ✕ glyph and "‹ Menú" arrow sit exactly on the gutters, on one row */
  .side-panel-close,
  .side-panel[data-view] .side-panel-close {
    top: calc(var(--pm-bar) - 9px);
    right: calc(var(--pm-gutter) - 9px);
  }

  .side-panel[data-view] .side-panel-back {
    top: calc(var(--pm-bar) - 2px);
    left: var(--pm-gutter);
  }

  /* One link size and spacing everywhere (menu list = services list) */
  .side-panel-nav,
  .panel-services {
    gap: 1.1rem;
  }

  .side-panel-link,
  .side-panel[data-view] .panel-services .side-panel-link {
    font-size: 1.5rem;
  }

  /* View titles: first line sits on the same top line as "Inicio" */
  .panel-form-title {
    font-size: 2.5rem;
    line-height: 1;
    margin-top: -0.35rem;
    margin-bottom: 2rem;
  }

  /* Divider + address block keep the same rhythm as the lists */
  .side-panel-nav {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .side-panel-contact {
    max-width: none;
  }
}


/* ==========================================================================
   BRAND IDENTITY — accent usage and interactive states
   Accent (--acento) appears only on: decorative lines, the hero highlight,
   and hover / focus states. Never on long text over white.
   ========================================================================== */

/* ----- Static accent ----- */
.hero-accent-line,
.dna-label-line{
  background: var(--acento);
}

.hero-highlight {
  color: var(--acento);
}

/* ----- Primary buttons: black → accent ----- */
.btn-primary{
  background: var(--negro);
  color: var(--blanco);
  border: 1px solid var(--negro);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover{
  background: var(--acento);
  border-color: var(--acento);
  color: var(--texto-sobre-acento);
}

/* ----- Footer + menu links: accent underline grows left → right ----- */
.footer-links-row a,
.side-panel-link {
  text-decoration: none;
  background-image: linear-gradient(var(--acento), var(--acento));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease-out), color 0.3s ease;
}

.footer-links-row a:hover,
.footer-links-row a:focus-visible,
.side-panel-link:hover,
.side-panel-link:focus-visible {
  background-size: 100% 1px;
  opacity: 1;
}

/* ----- Social icons ----- */
.footer-social a {
  transition: color 0.3s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--acento);
  opacity: 1;
}

/* ----- Case blocks: category label turns accent on hover ----- */
.work-block-category {
  transition: color 0.3s ease;
}

.work-block:hover .work-block-category,
.work-block:focus-within .work-block-category {
  color: var(--acento);
}

/* ----- Keyboard focus: visible accent outline everywhere ----- */
:focus-visible,
.side-panel a:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
  text-decoration: none;
}

/* Form fields show focus with their accent bottom border instead */
.panel-field input:focus-visible,
.panel-textarea:focus-visible,
.panel-form-select select:focus-visible {
  outline: none;
}

.panel-field:focus-within,
.panel-textarea:focus {
  border-color: var(--acento);
}

/* ==========================================================================
   REDUCED MOTION — scroll effects become simple fades (see MOTION SYSTEM §5);
   the menu and hover transitions stay, as they only answer the user's own clicks
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Image drift and hover zooms disabled */
  .work-block-image{
    transform: none !important;
  }

  /* Underline appears instantly, full width */
  .footer-links-row a:hover,
  .side-panel-link:hover {
    background-size: 100% 1px;
  }
}

/* ==========================================================================
   SIDE PANEL — SERVICES COLUMN
   Main service (larger) · short divider · "TAMBIÉN HACEMOS" · secondary services
   ========================================================================== */
.side-panel[data-view="services"] {
  width: 820px;
}

body.panel-open.panel-view-services main,
body.panel-open.panel-view-services .site-footer,
body.panel-open.panel-view-services .site-header {
  transform: translateX(-820px);
}

.side-panel[data-view="services"] .side-panel-inner {
  gap: 4.5rem;
}

.panel-services {
  gap: 1.1rem;
}

.panel-service-main {
  font-size: 1.75rem;
}

/* Same short line as the one under the left-column menu */
.panel-services-divider {
  display: block;
  width: 110px;
  height: 1px;
  background: rgba(255,255,255,0.45);
  margin: 1rem 0 0.9rem;
}

/* Same look as the home section label ("POR QUÉ DOiG MARKETING") */
.panel-services-label {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris-texto);
  margin-bottom: 0.1rem;
}

/* Hover: title + arrow turn accent, arrow nudges right (no underline here) */
.side-panel[data-view] .panel-services .side-panel-link {
  background-size: 0 0;
  transition: color 0.3s ease;
}

.side-panel[data-view] .panel-services .side-panel-link:hover,
.side-panel[data-view] .panel-services .side-panel-link:focus-visible {
  color: var(--acento);
  background-size: 0 0;
}

.panel-services .side-panel-link.has-arrow:hover::after,
.panel-services .side-panel-link.has-arrow:focus-visible::after {
  transform: translateX(5px) rotate(45deg);
}

/* ----- Mobile: services first, contact details after; nothing gets cut ----- */
@media (max-width: 768px) {
  .side-panel[data-view="services"] .side-panel-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .side-panel[data-view="services"] [data-view-content="services"] {
    order: 0;
  }

  .side-panel[data-view="services"] .side-panel-main {
    display: block;
    order: 1;
  }

  .side-panel[data-view="services"] .side-panel-nav {
    display: none;
  }

  .side-panel[data-view="services"] .side-panel-contact {
    display: block;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .side-panel[data-view] .panel-services .side-panel-link {
    white-space: normal;
  }

  .panel-service-main,
  .side-panel[data-view] .panel-services .panel-service-main {
    font-size: 1.75rem;
  }

  .side-panel-contact a {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-services .side-panel-link.has-arrow:hover::after {
    transform: rotate(45deg);
  }
}

/* ==========================================================================
   CONSISTENCY PASS — same accent hover everywhere, one section rhythm
   ========================================================================== */

/* Text links (legacy nav/footer too): same growing accent underline */
.side-panel-contact a {
  text-decoration: none;
  background-image: linear-gradient(var(--acento), var(--acento));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease-out), color 0.3s ease;
}

.side-panel-contact a:hover,
.side-panel-contact a:focus-visible {
  background-size: 100% 1px;
  color: inherit;
}

.side-panel-contact a:hover {
  color: var(--blanco);
}

.side-panel-close,
.side-panel-back{
  transition: color 0.3s ease, opacity 0.3s ease;
}

.side-panel-close:hover,
.side-panel-back:hover{
  color: var(--acento);
  opacity: 1;
}

/* ----- Section rhythm: one vertical spacing value between major blocks ----- */
:root {
  --section-space: 7rem;
}

@media (max-width: 768px) {
  :root {
    --section-space: 4.5rem;
  }
}

.dna-section{
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

/* The home blurb is followed by .dna-section, whose top padding makes the gap */
.hero-bottom-blurb {
  padding-bottom: 0;
}

/* Keep the brand spelled "DOiG" inside labels that use text-transform: uppercase */
.brand-case {
  text-transform: none;
}

/* ==========================================================================
   SERVICE PAGE — CAPTACIÓN DE CLIENTES (cc-*)
   Built only from the home system: Inter Tight, the palette variables,
   the dna-* label/rows, hero-headline / hero-bottom-text, btn-primary,
   work-block. Square corners, no shadows, no gradients (except work-block overlay).
   ========================================================================== */

/* ----- Layout & section backgrounds ----- */
.cc-page section[id] {
  scroll-margin-top: 5rem;
}

.cc-section {
  padding: var(--section-space) 1.5rem;
  text-align: center;
  background: var(--blanco);
}

.cc-dark {
  background: var(--negro);
  color: var(--blanco);
}

/* Photos & video in black and white */
.cc-page img,
.cc-page video,
.cc-page .work-block-image {
  filter: grayscale(1);
}

/* ----- Hero ----- */
.cc-hero {
  padding: 9.25rem 1.5rem var(--section-space);
  text-align: center;
  background: var(--blanco);
}

.cc-hero .hero-bottom-text {
  margin-bottom: 2.5rem;
}

.cc-hero-media {
  margin-top: 4rem;
}

.cc-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Buttons ----- */
.cc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
}

/* Identical to the home "Quiero más clientes" button */
.btn-primary.cc-btn {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.65rem 1.85rem;
}

/* Inverted on black sections */
.btn-primary.cc-btn--inverse {
  background: var(--blanco);
  color: var(--negro);
  border-color: var(--blanco);
}

.btn-primary.cc-btn--inverse:hover {
  background: var(--acento);
  border-color: var(--acento);
  color: var(--texto-sobre-acento);
}

/* Secondary: text + arrow, accent underline grows on hover */
.cc-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--acento), var(--acento));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.35s var(--ease-out);
}

.cc-link:hover,
.cc-link:focus-visible {
  background-size: 100% 1px;
}

/* ----- Headings & text on this page ----- */
.cc-h2 {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.75rem, 3.3vw, 3.25rem);   /* ~55% of the hero H1 */
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 900px;
  margin: 0 auto 3.5rem;
  color: inherit;
}

/* Row / card / column titles = "POR QUÉ DOiG MARKETING" titles */
.cc-title {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: inherit;
  margin-bottom: 0.9rem;
}

/* Paragraphs = "POR QUÉ DOiG MARKETING" paragraphs */
.cc-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  letter-spacing: -0.01em;
  color: var(--negro);
}

.cc-dark .cc-text,
.cc-dark .hero-bottom-text{
  color: rgba(255,255,255,0.6);   /* same grey as the menu contact text */
}

.cc-dark .hero-headline {
  color: var(--blanco);
}

.cc-num {
  display: block;
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--acento);
  margin-bottom: 0.75rem;
}

/* ----- 2. Problem ----- */
.cc-problems {
  list-style: none;
  max-width: 820px;
  margin: 0 auto var(--section-space);
}

.cc-problems li {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  padding: 2.25rem 0;
}

/* Short hairline between phrases */
.cc-problems li + li::before {
  content: '';
  display: block;
  width: 120px;
  height: 1px;
  background: var(--gris-borde);
  margin: 0 auto 2.25rem;
}

.cc-problem-close {
  margin-bottom: 0;
}

/* ----- 3. Solution pillars ----- */
.cc-pillars {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 2rem;
  max-width: 1160px;
  margin: 0 auto var(--section-space);
}

.cc-pillar {
  text-align: center;
}

.cc-pillar-arrow {
  align-self: center;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  font-weight: 300;
}

.cc-pillar-arrow span {
  display: inline-block;
}

.cc-statement {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

/* ----- 4. Steps (dna rows) ----- */
.cc-steps {
  list-style: none;
}

.cc-step-head {
  text-align: right;
}

.cc-step-head .cc-num {
  margin-bottom: 0.4rem;
}

.cc-steps .dna-item-text {
  text-align: left;
}

/* ----- 5. Production ----- */
.cc-production {
  padding-top: 8px;
}

.cc-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 1160px;
  margin: 0 auto var(--section-space);
}

.cc-gallery-item {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.cc-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-footnote {
  font-size: 0.8125rem;
  color: var(--gris-texto);
  margin-top: 2rem;
}

/* ----- 6. Destination cards ----- */
.cc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
  text-align: left;
}

.cc-card {
  border: 1px solid var(--gris-borde);
  padding: 3rem 2.5rem;
  transition: border-color 0.3s ease, transform var(--dur-media) var(--ease);
}

.cc-card:hover {
  border-color: var(--acento);
}

.cc-card-label {
  display: block;
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gris-texto);
  margin-bottom: 1.25rem;
}

.cc-card-sub {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

.cc-card-list {
  list-style: none;
}

.cc-card-list li {
  font-size: 0.9375rem;
  line-height: 1.75;
  padding-left: 1.25rem;
  position: relative;
}

.cc-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--negro);
}

.cc-card-examples {
  font-size: 0.875rem;
  color: var(--gris-texto);
  margin-top: 1.5rem;
}

.cc-card-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--gris-texto);
  margin-top: 1rem;
}

/* Check mark in accent (drawn, no icon font) */
.cc-check {
  flex: none;
  display: inline-block;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--acento);
  border-bottom: 2px solid var(--acento);
  transform: rotate(45deg) translateY(-2px);
}

.cc-center-link {
  margin: 0;
}

/* ----- 7. Results ----- */
.cc-results {
  padding-top: var(--section-space);
}

.cc-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin: 0 auto var(--section-space);
}

.cc-stat {
  padding: 0.5rem 1.5rem;
}

.cc-stat + .cc-stat {
  border-left: 1px solid var(--gris-borde);
}

.cc-stat-num {
  display: block;
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.cc-stat-label {
  font-size: 0.9375rem;
  color: var(--gris-texto);
}

.cc-quote {
  max-width: 820px;
  margin: 0 auto;
}

.cc-quote blockquote {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.cc-quote figcaption {
  font-size: 0.875rem;
  color: var(--gris-texto);
}

/* ----- 8. Fit ----- */
.cc-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.cc-dash-list {
  list-style: none;
}

.cc-dash-list li {
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.75;
  letter-spacing: -0.01em;
  padding: 0.8rem 0 0.8rem 1.75rem;
  border-bottom: 1px solid var(--gris-borde);
}

.cc-dash-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.6rem;
  width: 12px;
  height: 2px;
  background: var(--acento);
}

.cc-fit-col--no .cc-dash-list li {
  color: var(--gris-texto);
}

.cc-fit-col--no .cc-dash-list li::before {
  background: var(--gris-texto);
}

/* ----- 10. FAQ ----- */
.cc-faq {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
  border-top: 1px solid var(--gris-borde);
}

.cc-faq-item {
  border-bottom: 1px solid var(--gris-borde);
}

.cc-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
}

.cc-faq-item summary::-webkit-details-marker {
  display: none;
}

.cc-faq-q {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.cc-faq-item summary:hover .cc-faq-q {
  color: var(--acento);
}

.cc-faq-icon {
  flex: none;
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s var(--ease-out), color 0.3s ease;
}

.cc-faq-item[open] .cc-faq-icon {
  transform: rotate(45deg);
  color: var(--acento);
}

.cc-faq-a {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--gris-texto);
  padding: 0 3rem 1.75rem 0;
}

/* ----- 11. Final call ----- */
.cc-final .hero-accent-line {
  margin: 0 auto 3.25rem;
}

.cc-final .hero-bottom-text {
  margin-bottom: 2.5rem;
}

/* ----- Placeholder boxes (while [IMAGEN_...] markers are not replaced) ----- */
.cc-ph {
  position: relative;
  background-color: var(--gris-borde);
}

.cc-ph::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--gris-texto);
  z-index: 0;
}

.cc-ph > img,
.cc-ph > video {
  position: relative;
  z-index: 1;
}

.work-block.cc-ph {
  background-color: var(--negro);
}

.work-block.cc-ph::before {
  color: rgba(255,255,255,0.4);
  align-items: flex-start;
  padding-top: 30vh;
}

/* ----- Floating WhatsApp (mobile only) ----- */
.cc-wa-float {
  display: none;
}

@media (max-width: 767px) {
  .cc-wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 95;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--negro);
    color: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s var(--ease-out), opacity 0.35s ease, background-color 0.3s ease, color 0.3s ease;
  }

  .cc-wa-float svg {
    width: 26px;
    height: 26px;
  }

  .cc-wa-float:hover {
    background: var(--acento);
    color: var(--texto-sobre-acento);
  }

  .cc-wa-float.is-hidden,
  body.panel-open .cc-wa-float {
    opacity: 0;
    transform: translateY(120%);
    pointer-events: none;
  }
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .cc-pillars {
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .cc-hero {
    padding-top: 7.5rem;
  }

  /* Pillars stack; arrows point down */
  .cc-pillars {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cc-pillar-arrow span {
    transform: rotate(90deg);
  }

  /* dna rows: one column, title left-aligned (this page only) */
  .cc-page .cc-steps .dna-item,
  .cc-page .cc-steps .dna-item-title,
  .cc-page .cc-step-head {
    text-align: left;
  }

  .cc-page .cc-steps .dna-item-text {
    max-width: none;
    margin: 0;
  }

  .cc-gallery,
  .cc-cards,
  .cc-fit,
  .cc-stats {
    grid-template-columns: 1fr;
  }

  .cc-cards { gap: 1.25rem; }
  .cc-card { padding: 2.25rem 1.5rem; }
  .cc-fit { gap: 3rem; }

  .cc-stat {
    padding: 1.75rem 0;
  }

  .cc-stat + .cc-stat {
    border-left: none;
    border-top: 1px solid var(--gris-borde);
  }

  .cc-faq-a {
    padding-right: 0;
  }

}

/* ==========================================================================
   TYPOGRAPHIC WRAPPING (global — home included)
   Balanced headings/titles avoid one-word last lines; pretty paragraphs avoid orphans.
   ========================================================================== */
h1, h2, h3,
.hero-headline,
.cc-h2,
.dna-item-title,
.work-block-title,
.cc-title,
.cc-statement,
.cc-problems li,
.cc-quote blockquote,
.cc-faq-q{
  text-wrap: balance;
}

p,
li,
.dna-item-text,
.hero-bottom-text,
.work-block-desc,
.cc-text,
.cc-faq-a {
  text-wrap: pretty;
}

/* ==========================================================================
   CAPTACIÓN DE CLIENTES — final polish
   ========================================================================== */
:root {
  --ancho-texto: 855px;   /* = width of the home hero image (.hero-video-container) */
  --ancho-amplio: 1160px; /* = width of the three "La solución" columns */
}

/* Text-width elements */
.cc-problems,
.cc-quote,
.cc-faq,
.cc-footnote,
.cc-statement,
.cc-page .hero-bottom-text {
  max-width: var(--ancho-texto);
  margin-left: auto;
  margin-right: auto;
}

/* Wide elements */
.cc-pillars,
.cc-gallery,
.cc-cards,
.cc-stats,
.cc-fit {
  max-width: var(--ancho-amplio);
}

/* Gallery sits 64–96px below the image block (≈ 84px desktop, ≈ 54px mobile) */
.cc-production {
  padding-top: calc(var(--section-space) * 0.75);
}

.cc-gallery {
  margin-bottom: 2rem;
}

.cc-footnote {
  margin-top: 0;
}

/* Labels over images: white like the home case label; accent on hover only for links */
.cc-page .work-block-category {
  color: rgba(255,255,255,0.8);
}

.cc-page .work-block:hover .work-block-category,
.cc-page .work-block:focus-within .work-block-category {
  color: rgba(255,255,255,0.8);
}

.cc-page a.work-block:hover .work-block-category,
.cc-page .work-block:has(a):hover .work-block-category {
  color: var(--acento);
}

/* Results figures: 3 equal columns, centred, vertical separators */
.cc-stats {
  grid-template-columns: repeat(3, 1fr);
}

.cc-stat {
  text-align: center;
}

/* List icons aligned with the FIRST line of text (not vertically centred) */
.cc-dash-list li::before {
  top: calc(0.8rem + 0.875em);      /* padding-top + half of a 1.75 line */
  transform: translateY(-50%);
}

.cc-card-list li::before {
  top: 0.875em;
  transform: translateY(-50%);
}

.cc-card-note {
  align-items: flex-start;
}

.cc-card-note .cc-check {
  margin-top: 0.1em;
}

/* Cómo funciona: text starts at the top of the step title; number floats above the title */
.cc-steps .dna-item {
  align-items: start;
}

.cc-step-head {
  position: relative;
}

.cc-step-head .cc-num {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 0.4rem;
}

.cc-steps .dna-item-text {
  padding-top: 0.2em; /* optical match with the title's cap height */
}

.cc-steps {
  gap: 3.5rem;       /* room for the number above each title */
  padding-top: 1.5rem;
}

/* Consistent rhythm: two white sections in a row share one gap, not two */
.cc-hero + .cc-section:not(.cc-dark),
.cc-section:not(.cc-dark) + .cc-section:not(.cc-dark),
#produccion + .cc-section:not(.cc-dark) {
  padding-top: 0;
}

@media (max-width: 768px) {
  .cc-step-head .cc-num {
    right: auto;
    left: 0;
  }

  .cc-stats {
    grid-template-columns: 1fr;
  }

  .cc-steps .dna-item {
    gap: 0.5rem;
  }
}

/* Gallery keeps 3 columns on tablets; stacks only on phones */
@media (max-width: 768px) and (min-width: 601px) {
  .cc-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Resultados — anonymous, typographic case on black */
.cc-results .cc-h2 {
  margin-bottom: 1.25rem;
}

.cc-results-lead {
  max-width: var(--ancho-texto);
  margin: 0 auto 4rem;
}

.cc-dark .cc-stat-num {
  color: var(--blanco);
}

.cc-dark .cc-stat-label,
.cc-dark .cc-quote figcaption,
.cc-results-note {
  color: rgba(255,255,255,0.6);
}

.cc-dark .cc-stat + .cc-stat {
  border-left-color: rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.15);
}

.cc-dark .cc-quote blockquote {
  color: var(--blanco);
}

.cc-results-note {
  font-size: 0.8125rem;
  max-width: var(--ancho-texto);
  margin: 3.5rem auto 0;
}

/* ==========================================================================
   SERVICE PAGE — WEBS CORPORATIVAS (wc-*)
   Reuses every cc-* component; only adds what this page needs.
   ========================================================================== */

/* Website mockups are the product: shown in colour (other photos stay B/W) */
.cc-page .wc-color,
.cc-page .wc-color img {
  filter: none;
}

.cc-hero-media > img,
.wc-case-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Intro paragraph right under a section H2 */
.wc-intro {
  max-width: var(--ancho-texto);
  margin: -2rem auto 3.5rem;
}

/* ----- 3. Qué incluye: 6 items, accent line above each title ----- */
.wc-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem 3rem;
  max-width: var(--ancho-amplio);
  margin: 0 auto;
}

.wc-feature::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--acento);
  margin: 0 auto 1.25rem;
}

.wc-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.4rem;
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}

/* ----- 4. Normativa: check above each row title (like the step number) ----- */
.cc-step-head .cc-check {
  position: absolute;
  right: 0.3rem;
  bottom: 100%;
  margin-bottom: 0.7rem;
}

.wc-legal-note {
  max-width: var(--ancho-texto);
  margin: 3.5rem auto 0;
}

/* ----- 5. Domain diagram (real text) ----- */
.wc-domains {
  max-width: var(--ancho-texto);
  margin: 0 auto 3.5rem;
  text-align: left;
}

.wc-domain {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding: 0.9rem 0;
}

.wc-domain-url {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--blanco);
  overflow-wrap: anywhere;
}

.wc-domain--main .wc-domain-url {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wc-domain-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  text-align: right;
}

.wc-sub {
  color: var(--acento);
}

/* Tree connectors: vertical line from the main row, a short branch to each child */
.wc-domain-children {
  list-style: none;
  position: relative;
  margin-left: 0.75rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(255,255,255,0.3);
}

.wc-domain-children .wc-domain {
  position: relative;
}

.wc-domain-children .wc-domain::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 50%;
  width: 1.5rem;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

/* Stop the vertical line at the last branch */
.wc-domain-children .wc-domain:last-child::after {
  content: '';
  position: absolute;
  left: calc(-2rem - 1px);
  top: calc(50% + 1px);
  bottom: 0;
  width: 1px;
  background: var(--negro);
}

.wc-benefits {
  list-style: none;
  display: flex;
  max-width: var(--ancho-texto);
  margin: 0 auto 3.5rem;
}

.wc-benefits li {
  flex: 1;
  padding: 0.25rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--blanco);
}

.wc-benefits li + li {
  border-left: 1px solid rgba(255,255,255,0.15);
}

/* ----- 6. Cómo trabajamos: four columns on white ----- */
.cc-pillars--four {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  margin-bottom: 3rem;
}

.cc-pillars--light .cc-pillar-arrow,
.cc-pillars--light .cc-text {
  color: var(--gris-texto);
}

.wc-time {
  margin-bottom: 2rem;
}

/* ----- 7. Case ----- */
.wc-case-title {
  margin-bottom: 1.25rem;
}

.wc-case-sub {
  margin: 0 auto 3.5rem;
}

.wc-case-media {
  position: relative;
  max-width: var(--ancho-amplio);
  aspect-ratio: 16 / 9;
  margin: 0 auto 4rem;
  overflow: hidden;
}

.wc-case-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: var(--ancho-amplio);
  margin: 0 auto 3.5rem;
  text-align: left;
}

.wc-case-label {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}

.wc-case-col p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--blanco);
}

.wc-case-quote {
  margin-top: 4rem;
}

/* A hidden section between two white sections must not double the gap */
.cc-section:not(.cc-dark) + [hidden] + .cc-section:not(.cc-dark) {
  padding-top: 0;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .wc-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .wc-features,
  .wc-case-cols {
    grid-template-columns: 1fr;
  }

  .wc-features { gap: 2.75rem; }
  .wc-case-cols { gap: 2rem; }

  .cc-pillars--four {
    grid-template-columns: 1fr;
  }

  .cc-step-head .cc-check {
    right: auto;
    left: 0.3rem;
  }

  /* Diagram: description under the address */
  .wc-domain {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .wc-domain-desc {
    text-align: left;
  }

  .wc-domain-children .wc-domain::before {
    top: 1.6rem;
  }

  .wc-domain-children .wc-domain:last-child::after {
    top: calc(1.6rem + 1px);
  }

  .wc-benefits {
    flex-direction: column;
  }

  .wc-benefits li {
    padding: 1rem 0;
  }

  .wc-benefits li + li {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
}

/* Client-work videos inside a colour container are shown in colour too */
.cc-page .wc-color video {
  filter: none;
}

/* ==========================================================================
   VIDEO COMPONENTS (ev-*) — thumbnails, play button and video modal (used by the portfolio)
   Reuses cc-* / wc-*; adds the full-width hero video, the video portfolio
   (static thumbnails + modal player), the timeline and the package cards.
   Image rule (site-wide): client work in colour (.wc-color); ambient /
   behind-the-scenes photos stay black and white (.cc-page img).
   ========================================================================== */

/* ----- Hero: full-bleed video outside the central column ----- */
.ev-hero-media {
  position: relative;
  width: calc(100% + 3rem);          /* cancel .cc-hero side padding */
  margin: 4rem -1.5rem 0;
  aspect-ratio: 16 / 9;
  max-height: 82vh;
  overflow: hidden;
  background-color: var(--gris-borde);
}

.ev-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Video portfolio (colour) ----- */
.ev-portfolio {
  max-width: var(--ancho-amplio);
  margin: 0 auto;
  text-align: left;
}

.ev-clip--featured {
  margin: 0 0 1.5rem;
}

.ev-clips {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ev-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background-color: rgba(255,255,255,0.08);
}

.ev-thumb.cc-ph::before {
  color: rgba(255,255,255,0.4);
}

.ev-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: filter 0.4s ease;
}

/* Play icon: circle + triangle, drawn in CSS */
.ev-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(10,10,10,0.6);
  border: 1px solid rgba(255,255,255,0.6);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ev-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--blanco);
}

.ev-clip--featured .ev-play {
  width: 84px;
  height: 84px;
}

.ev-thumb:hover .ev-play,
.ev-thumb:focus-visible .ev-play {
  background: var(--acento);
  border-color: var(--acento);
}

.ev-caption {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  padding: 0.6rem 0 1rem;
  transition: color 0.3s ease;
}

@media (hover: hover) {
  .ev-clip:hover .ev-thumb img {
    filter: brightness(1.12);
  }

  .ev-clip:hover .ev-caption {
    color: var(--blanco);
  }
}

/* ----- Modal player ----- */
.ev-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10,10,10,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem 2rem;
}

.ev-modal[hidden] {
  display: none;
}

.ev-modal-inner {
  width: min(1160px, 100%);
}

.ev-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 9rem);
  background: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

.ev-modal-player iframe,
.ev-modal-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ev-modal-title {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
  text-align: center;
}

.ev-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  color: var(--blanco);
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

.ev-modal-close:hover {
  color: var(--acento);
}

/* ----- Timeline (real text) ----- */
.ev-timeline {
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--ancho-amplio);
  margin: 0 auto 4rem;
  text-align: left;
}

/* Horizontal connecting line through the dots */
.ev-timeline::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 6px;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

.ev-stage {
  position: relative;
  padding-top: 2rem;
}

.ev-stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--acento);
}

.ev-stage-time {
  display: block;
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--acento);
  margin-bottom: 0.75rem;
}

/* ----- Package cards (white section) ----- */
.ev-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--ancho-amplio);
  margin: 0 auto 3.5rem;
  text-align: left;
  align-items: stretch;
}

.ev-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gris-borde);
  padding: 3rem 2.25rem 2.5rem;
  transition: border-color 0.3s ease, transform var(--dur-media) var(--ease);
}

.ev-plan--featured {
  border-color: var(--negro);
}

.ev-plan:hover {
  border-color: var(--acento);
}

.ev-plan-badge {
  display: block;
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--acento);
  margin: -1.5rem 0 0.9rem;
}

.ev-plan-name {
  margin-bottom: 1.5rem;
}

.ev-plan-list {
  list-style: none;
  margin-bottom: 2rem;
}

.ev-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gris-texto);
  padding: 0.45rem 0;
}

.ev-plan-list .cc-check {
  margin-top: 0.3em;
}

.ev-price {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.ev-plan-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .ev-clips {
    grid-template-columns: repeat(2, 1fr);
  }

  .ev-timeline {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3rem;
  }

  .ev-timeline::before {
    display: none;   /* two rows: dots stay, the single line would be misleading */
  }

  .ev-plans {
    gap: 1.25rem;
  }

  .ev-plan {
    padding: 2.5rem 1.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .ev-hero-media {
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  .ev-plans {
    grid-template-columns: 1fr;
  }

  /* Timeline turns vertical with the line on the left */
  .ev-timeline {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
    padding-left: 2rem;
  }

  .ev-timeline::before {
    display: block;
    top: 6px;
    bottom: 0;
    left: 5px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .ev-stage {
    padding-top: 0;
  }

  .ev-stage::before {
    left: -2rem;
    top: 3px;
  }

  .ev-modal {
    padding: 4.5rem 1rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .ev-clips {
    grid-template-columns: 1fr;
  }

  .ev-clip--featured .ev-play {
    width: 64px;
    height: 64px;
  }
}

/* "Qué incluye" grid on a white section: texts in grey */
.wc-features--light .cc-text {
  color: var(--gris-texto);
}

/* Events hero: event-type line under the buttons (label style) */
.ev-types {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gris-texto);
  max-width: var(--ancho-texto);
  margin: 2rem auto 0;
  text-wrap: balance;
}

/* ==========================================================================
   PORTFOLIO (pf-*) — portafolio.html + proyecto.html
   Data lives in data/proyectos.js. Reuses cc-* / wc-* / ev-* components.
   ========================================================================== */

/* Compact hero so projects show up sooner */
.pf-hero {
  padding-bottom: 3.5rem;
}

.pf-hero .hero-bottom-text {
  margin-bottom: 0;
}

/* ----- Sticky filter bar ----- */
.pf-filters {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--blanco);
  margin: 0 -1.5rem 3rem;           /* full width of the section, under the header */
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gris-borde);
  transition: top 0.4s ease;
}

/* When the header is visible (scrolling up), sit just below it */
.site-header.scrolled:not(.header-hidden) ~ main .pf-filters {
  top: 4.75rem;
}

.pf-filters-inner {
  display: flex;
  justify-content: center;
  gap: 2.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pf-filters-inner::-webkit-scrollbar {
  display: none;
}

.pf-filter {
  flex: none;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gris-texto);
  padding: 0.35rem 0 4px;
  /* site's animated underline */
  background-image: linear-gradient(var(--acento), var(--acento));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.35s var(--ease-out), color 0.3s ease;
}

.pf-filter:hover,
.pf-filter:focus-visible {
  color: var(--negro);
  background-size: 100% 2px;
}

.pf-filter[aria-pressed="true"] {
  color: var(--negro);
  background-size: 100% 2px;
}

/* ----- Grid ----- */
.pf-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
  max-width: var(--ancho-amplio);
  margin: 0 auto;
  text-align: left;
}

.pf-card[hidden] {
  display: none;
}

.pf-card-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.pf-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

/* Portfolio thumbnails are client work: in colour */
.cc-page .pf-thumb img {
  filter: none;
}

.pf-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s var(--ease-out);
}

.pf-card-link:hover .pf-thumb img,
.pf-card-link:focus-visible .pf-thumb img {
  transform: scale(1.03);
}

.pf-card-link:hover .ev-play,
.pf-card-link:focus-visible .ev-play {
  background: var(--acento);
  border-color: var(--acento);
}

.pf-card-cat {
  display: block;
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gris-texto);
  margin-bottom: 0.5rem;
}

.pf-card-title {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}

.pf-card-link:hover .pf-card-title,
.pf-card-link:focus-visible .pf-card-title {
  color: var(--acento);
}

.pf-card-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gris-texto);
}

.pf-noscript {
  max-width: var(--ancho-texto);
  margin: 0 auto;
  color: var(--gris-texto);
}

/* ----- Links from service pages to the portfolio ----- */
.pf-more-link {
  margin-top: 3rem;
}

/* ----- Project detail ----- */
.pf-detail-media {
  position: relative;
  max-width: var(--ancho-amplio);
  margin: 0 auto 4rem;
}

.pf-detail-media .pf-thumb {
  aspect-ratio: 16 / 9;
  margin: 0;
}

.pf-detail-media .pf-thumb.cc-ph::before {
  color: var(--gris-texto);
}

/* Detail columns on white (same layout as the webs case) */
.pf-detail-cols .wc-case-label {
  color: var(--gris-texto);
}

.pf-detail-cols .wc-case-col p {
  color: var(--negro);
}

.pf-detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: var(--ancho-amplio);
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--gris-borde);
}

/* ----- Shared video modal: vertical videos (reels) ----- */
.ev-modal.is-vertical .ev-modal-inner {
  width: auto;
}

.ev-modal.is-vertical .ev-modal-player {
  aspect-ratio: 9 / 16;
  height: calc(100vh - 9rem);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pf-filters-inner {
    justify-content: flex-start;
    gap: 1.75rem;
  }

  .site-header.scrolled:not(.header-hidden) ~ main .pf-filters {
    top: 4.25rem;
  }
}

@media (max-width: 600px) {
  .pf-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ev-modal.is-vertical .ev-modal-player {
    height: auto;
    width: 100%;
    max-height: calc(100vh - 9rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-grid {
    transition: none;
  }

  .pf-card-link:hover .pf-thumb img {
    transform: none;
  }
}

/* The hidden attribute always wins over component display values */
[hidden] {
  display: none !important;
}

/* Very long single words (names, [MARKERS]) never push a heading off-screen */
h1, h2, h3,
.hero-headline,
.cc-h2 {
  overflow-wrap: break-word;
}

/* ==========================================================================
   MOTION SYSTEM — DOiG Marketing
   One set of curves and durations for every animation on the site.
   · Only transform / opacity are animated (plus color, clip of lines, and
     the FAQ grid-rows height).
   · Hidden start states only exist under html.js-motion (added by a tiny
     inline script in <head>); without JS everything is visible.
   · Reveal targets below must match REVEAL_SELECTOR in app.js.
   ========================================================================== */
:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: var(--ease);                      /* legacy name used by older rules */
  --transition: all var(--dur-media) var(--ease);

  --dur-rapida: 200ms;   /* hovers */
  --dur-media: 400ms;    /* menu, accordion, filters */
  --dur-lenta: 700ms;    /* scroll reveals */

  --reveal-y: 20px;
  --stagger: 70ms;       /* JS caps groups at 6 steps */
}

@media (max-width: 768px) {
  :root { --reveal-y: 12px; }
}

/* ----- Anchors: smooth, compensating the fixed header ----- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 80px) + 1rem);
}

/* ----- Page transitions (View Transitions API; ignored where unsupported) ----- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--dur-media);
  animation-timing-function: var(--ease);
}

/* ==========================================================================
   1. SCROLL REVEALS
   ========================================================================== */

/* Generic targets: fade + rise */
.js-motion :is(
  [data-reveal], .home-hero > *, .hero-bottom-blurb > *, .dna-item, .work-block-content, .cc-faq-item, .wc-domain, .pf-card
) {
  transition:
    opacity var(--reveal-dur, var(--dur-lenta)) var(--ease) var(--reveal-delay, 0ms),
    transform var(--reveal-dur, var(--dur-lenta)) var(--ease) var(--reveal-delay, 0ms),
    border-color var(--dur-rapida) var(--ease),
    background-color var(--dur-rapida) var(--ease),
    color var(--dur-rapida) var(--ease);
}

.js-motion :is(
  [data-reveal], .home-hero > *, .hero-bottom-blurb > *, .dna-item, .work-block-content, .cc-faq-item, .wc-domain, .pf-card
):not(
  /* special kinds, animated below */
  .dna-header, .hero-accent-line,
  .hero-video-container, .ev-hero-media, .cc-gallery-item,
  .wc-case-media, .wc-domains, .ev-timeline, .is-split, .hero-title, .is-visible
) {
  opacity: 0;
  transform: translateY(var(--reveal-y));
}

/* Section labels: the accent bar draws from the centre, the text fades in */
.dna-label-line,
.hero-accent-line{
  transform-origin: center;
  transition: transform var(--reveal-dur, var(--dur-lenta)) var(--ease) var(--reveal-delay, 0ms);
}

.dna-label {
  transition: opacity var(--reveal-dur, var(--dur-lenta)) var(--ease) calc(var(--reveal-delay, 0ms) + 100ms);
}

.js-motion .dna-header:not(.is-visible) .dna-label-line,
.js-motion :is(.hero-accent-line):not(.is-visible) {
  transform: scaleX(0);
}

.js-motion .dna-header:not(.is-visible) .dna-label {
  opacity: 0;
}

/* Highlighted phrase: starts in the text colour, then lights up to the accent */
.js-motion .hero-highlight {
  color: inherit;
  transition: color 500ms var(--ease);
}

.js-motion .is-lit .hero-highlight {
  color: var(--acento);
}

/* Headings split line by line (hero H1 and section H2): each line is a clipping mask */
.h-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;       /* keeps descenders (g, p, y) inside the clip */
  margin-bottom: -0.1em;
}

.h-line-inner {
  display: inline-block;
  transform: translateY(0);
  transition: transform var(--reveal-dur, var(--dur-lenta)) var(--ease) var(--line-delay, 0ms);
}

.js-motion .is-split:not(.is-visible) .h-line-inner {
  transform: translateY(110%);
}

/* Block images & videos: frame stays still, the picture fades and settles 1.04 → 1 */
:is(.hero-video-container, .ev-hero-media, .cc-gallery-item, .wc-case-media) > :is(img, video),
:is(.pf-thumb, .ev-thumb) > img {
  transition:
    opacity var(--reveal-dur, var(--dur-lenta)) var(--ease) var(--reveal-delay, 0ms),
    transform var(--dur-lenta) var(--ease),
    filter var(--dur-rapida) var(--ease);
}

.js-motion :is(.hero-video-container, .ev-hero-media, .cc-gallery-item, .wc-case-media):not(.is-visible) > :is(img, video) {
  opacity: 0;
  transform: scale(1.04);
}

.js-motion :not(.is-visible) > :is(.pf-thumb, .ev-thumb) > img {
  transform: scale(1.04);
}

/* Video timeline: the line draws left → right, stages follow in sequence */
.ev-timeline::before {
  transform-origin: left center;
  transition: transform 1000ms var(--ease);
}

.js-motion .ev-timeline:not(.is-visible)::before {
  transform: scaleX(0);
}

@media (max-width: 768px) {
  .ev-timeline::before { transform-origin: center top; }
  .js-motion .ev-timeline:not(.is-visible)::before { transform: scaleY(0); }
}

/* Subdomain diagram: vertical connector draws down, each branch draws with its row */
.wc-domain-children {
  border-left: 0;
}

.wc-domain-children::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.3);
  transform-origin: center top;
  transition: transform var(--dur-lenta) var(--ease);
}

.wc-domain-children .wc-domain:last-child::after {
  left: -2rem;                 /* line is now a pseudo-element at the list's edge */
}

.wc-domain-children .wc-domain::before {
  transform-origin: left center;
  transition: transform var(--dur-lenta) var(--ease) calc(var(--reveal-delay, 0ms) + 150ms);
}

.js-motion .wc-domains:not(.is-visible) .wc-domain-children::before {
  transform: scaleY(0);
}

.js-motion .wc-domain:not(.is-visible)::before {
  transform: scaleX(0);
}

/* Counters: fixed-width digits so counting never shifts the layout */
.cc-stat-num {
  font-variant-numeric: tabular-nums;
}

/* Large media: the frame opens upwards like a curtain, the picture settles 1.08 → 1 */
:is(.hero-video-container, .ev-hero-media, .cc-gallery-item, .wc-case-media) {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1100ms var(--ease) var(--reveal-delay, 0ms);
}

.js-motion :is(.hero-video-container, .ev-hero-media, .cc-gallery-item, .wc-case-media):not(.is-visible) {
  clip-path: inset(100% 0 0 0);
}

.js-motion :is(.hero-video-container, .ev-hero-media, .cc-gallery-item, .wc-case-media):not(.is-visible) > :is(img, video) {
  opacity: 1;
  transform: scale(1.08);
}

:is(.hero-video-container, .ev-hero-media, .cc-gallery-item, .wc-case-media) > :is(img, video) {
  transition:
    transform 1400ms var(--ease) var(--reveal-delay, 0ms),
    filter var(--dur-rapida) var(--ease);
}

/* Scroll parallax (app.js sets --py): uses the independent translate/scale properties
   so it never fights the reveal transform */
:is(.hero-video-container, .ev-hero-media, .wc-case-media) > :is(img, video) {
  scale: 1.1;
  translate: 0 var(--py, 0%);
}

/* Home work blocks: the full-screen image opens from a framed window to the edges */
.work-block {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1200ms var(--ease);
}

.js-motion .work-block:not(.is-visible) {
  clip-path: inset(7% 5% 7% 5%);
}

@media (max-width: 768px) {
  .js-motion .work-block:not(.is-visible) {
    clip-path: inset(4% 4% 4% 4%);
  }
}

/* Scroll progress: thin accent line at the very top */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--acento);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  z-index: 101;
  pointer-events: none;
  transition: opacity var(--dur-media) var(--ease);
}

body.panel-open .scroll-progress {
  opacity: 0;
}

/* ==========================================================================
   2. HEADER — always transparent (no bar, no line), hides on scroll down.
   After 80px the logo and menu use the difference blend set near the top of
   this file: black over light sections, white over dark ones.
   ========================================================================== */
.site-header {
  transition:
    background-color var(--dur-media) var(--ease),
    border-color var(--dur-media) var(--ease),
    transform var(--dur-media) var(--ease-in-out);
}

main,
.site-footer {
  transition: transform var(--dur-media) var(--ease-in-out);
}

/* Portfolio filter bar sits right under the visible header (no animated "top") */
.pf-filters {
  transition: none;
}

.site-header.scrolled:not(.header-hidden) ~ main .pf-filters {
  top: var(--header-h, 4.75rem);
}

/* ==========================================================================
   3. MENU
   ========================================================================== */
/* Panel and page move together: same duration, same soft in-out curve.
   Opening is unhurried; closing is a little quicker. */
:root {
  --ease-menu: cubic-bezier(0.76, 0, 0.24, 1);
  --dur-menu-open: 750ms;
  --dur-menu-close: 550ms;
}

.side-panel {
  opacity: 1;
  visibility: hidden;
  transition:
    transform var(--dur-menu-close) var(--ease-menu),
    width var(--dur-menu-open) var(--ease-menu),
    padding var(--dur-menu-open) var(--ease-menu),
    visibility 0s linear var(--dur-menu-close);
}

.side-panel.open {
  visibility: visible;
  transition:
    transform var(--dur-menu-open) var(--ease-menu),
    width var(--dur-menu-open) var(--ease-menu),
    padding var(--dur-menu-open) var(--ease-menu),
    visibility 0s;
}

.side-panel-overlay {
  transition: opacity var(--dur-menu-close) var(--ease-menu);
}

.side-panel-overlay.open {
  transition-duration: var(--dur-menu-open);
}

/* The page slides aside in step with the panel */
main,
.site-footer {
  transition: transform var(--dur-menu-close) var(--ease-menu);
}

body.panel-open main,
body.panel-open .site-footer {
  transition-duration: var(--dur-menu-open);
}

/* Header uses the menu timing only while the menu moves (its own hide-on-scroll stays quick) */
body.panel-moving .site-header {
  transition:
    background-color var(--dur-media) var(--ease),
    border-color var(--dur-media) var(--ease),
    transform var(--dur-menu-close) var(--ease-menu);
}

body.panel-moving.panel-open .site-header {
  transition-duration: var(--dur-media), var(--dur-media), var(--dur-menu-open);
}

/* ✕ fades in once the panel has mostly arrived */
.side-panel-close {
  transition: opacity var(--dur-rapida) var(--ease), color var(--dur-rapida) var(--ease);
}

.js-motion .side-panel:not(.open) .side-panel-close {
  opacity: 0;
}

.js-motion .side-panel.open .side-panel-close {
  transition: opacity 500ms var(--ease) 350ms, color var(--dur-rapida) var(--ease);
}

/* Hamburger morphs into × while it fades out (the panel has its own ×) */
.menu-toggle {
  transition: opacity var(--dur-media) var(--ease-in-out);
}

.hamburger-line {
  transform-origin: center;
  transition:
    transform var(--dur-media) var(--ease-in-out),
    opacity var(--dur-media) var(--ease-in-out),
    background-color var(--dur-media) var(--ease);
}

.menu-toggle.active .hamburger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Text links with underline: one effect, one speed */
.footer-links-row a,
.side-panel-link,
.side-panel-contact a,
.cc-link,
.pf-filter {
  transition:
    background-size var(--dur-rapida) var(--ease),
    color var(--dur-rapida) var(--ease),
    opacity var(--dur-rapida) var(--ease);
}

/* Menu items appear staggered when the panel opens; fade out quickly on close */
.side-panel .side-panel-nav > .side-panel-link,
.side-panel .side-panel-contact {
  transition:
    opacity var(--dur-rapida) var(--ease),
    transform var(--dur-rapida) var(--ease),
    color var(--dur-rapida) var(--ease),
    background-size var(--dur-rapida) var(--ease);
}

.js-motion .side-panel:not(.open) .side-panel-nav > .side-panel-link,
.js-motion .side-panel:not(.open) .side-panel-contact {
  opacity: 0;
  transform: translateY(24px);
}

/* Links rise one after another while the panel settles */
.js-motion .side-panel.open .side-panel-nav > .side-panel-link,
.js-motion .side-panel.open .side-panel-contact {
  transition:
    opacity 900ms var(--ease) calc(280ms + var(--i, 0) * 60ms),
    transform 900ms var(--ease) calc(280ms + var(--i, 0) * 60ms),
    color var(--dur-media) var(--ease),
    background-size var(--dur-rapida) var(--ease);
}

/* Short divider under the menu draws left → right after the links */
.side-panel-nav::after {
  transform-origin: left center;
  transition: transform var(--dur-rapida) var(--ease);
}

.js-motion .side-panel:not(.open) .side-panel-nav::after {
  transform: scaleX(0);
}

.js-motion .side-panel.open .side-panel-nav::after {
  transition: transform 900ms var(--ease) 480ms;
}

/* Right column (Servicios / Contacto): enters after the panel starts widening */
@keyframes panelItemIn {
  from { opacity: 0; transform: translateY(18px); }
}

.side-panel[data-view] [data-view-content] :is(.panel-services > *, .panel-form > *, .panel-form-title) {
  animation: panelItemIn 800ms var(--ease) both;
  animation-delay: calc(220ms + var(--i, 0) * 60ms);
}


/* ==========================================================================
   4. INTERACTIONS
   ========================================================================== */

/* Buttons: quick colour change, slight press */
.btn-primary,
.panel-submit,
.ev-plan-btn {
  transition:
    background-color var(--dur-rapida) var(--ease),
    border-color var(--dur-rapida) var(--ease),
    color var(--dur-rapida) var(--ease),
    transform var(--dur-rapida) var(--ease);
}

.btn-primary:active,
.panel-submit:active{
  transform: scale(0.98);
}

/* Arrows → nudge 4px to the right */
.cc-link > span[aria-hidden="true"]:not(.arrow-back) {
  display: inline-block;
  transition: transform var(--dur-rapida) var(--ease);
}

.side-panel-link.has-arrow::after {
  transition: transform var(--dur-rapida) var(--ease);
}

@media (hover: hover) {
  .cc-link:hover > span[aria-hidden="true"]:not(.arrow-back) {
    transform: translateX(4px);
  }

  .side-panel-link.has-arrow:hover::after,
  .panel-services .side-panel-link.has-arrow:hover::after {
    transform: translateX(4px) rotate(45deg);
  }

  /* Bordered cards lift slightly */
  .js-motion :is(.cc-card, .ev-plan).is-visible:hover,
  .js-motion :is(.cc-card, .ev-plan):not([data-reveal]):hover {
    transform: translateY(-4px);
  }

  /* Cards & thumbnails: very slight zoom inside the frame */
  .pf-card-link:hover .pf-thumb img,
  .ev-clip:hover .ev-thumb img {
    transform: scale(1.03);
  }
}

@media (hover: none) {
  .pf-card-link:hover .pf-thumb img,
  .ev-clip:hover .ev-thumb img,
  .cc-link:hover > span[aria-hidden="true"] {
    transform: none;
  }
}

/* Other hover colour changes follow the fast duration */
.cc-card,
.ev-plan,
.wc-feature,
.footer-social a,
.work-block-category,
.cc-faq-q,
.pf-card-title,
.ev-caption,
.dna-item-title,
.dna-item-text {
  transition-duration: var(--dur-rapida);
  transition-timing-function: var(--ease);
}

/* FAQ accordion: height via grid rows 0fr → 1fr, icon turns 45° together */
.cc-faq-body {
  display: grid;
  grid-template-rows: 1fr;
}

.cc-faq-inner {
  overflow: hidden;
  min-height: 0;
}

.js-motion .cc-faq-body {
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-media) var(--ease-in-out);
}

.js-motion .cc-faq-item.is-open .cc-faq-body {
  grid-template-rows: 1fr;
}

.cc-faq-icon {
  transition: transform var(--dur-media) var(--ease-in-out), color var(--dur-media) var(--ease-in-out);
}

.js-motion .cc-faq-item[open]:not(.is-open) .cc-faq-icon {
  transform: none;
  color: inherit;
}

.js-motion .cc-faq-item.is-open .cc-faq-icon {
  transform: rotate(45deg);
  color: var(--acento);
}

/* Portfolio filters: cards fade in with a light stagger */
@keyframes pfCardIn {
  from { opacity: 0; transform: translateY(8px); }
}

.pf-card.pf-enter {
  animation: pfCardIn var(--dur-media) var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

/* ==========================================================================
   5. REDUCED MOTION — no movement or scaling on scroll; content simply fades in
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 200ms;
  }

  .js-motion :is(
  [data-reveal], .home-hero > *, .hero-bottom-blurb > *, .dna-item, .work-block-content, .cc-faq-item, .wc-domain, .pf-card
),
  .h-line-inner,
  :is(.hero-video-container, .ev-hero-media, .cc-gallery-item, .wc-case-media) > :is(img, video),
  :is(.pf-thumb, .ev-thumb) > img {
    transform: none !important;
    transition: opacity 600ms var(--ease) var(--reveal-delay, 0ms) !important;
  }

  :is(.hero-video-container, .ev-hero-media, .cc-gallery-item, .wc-case-media, .work-block) {
    clip-path: none !important;
  }

  :is(.hero-video-container, .ev-hero-media, .wc-case-media) > :is(img, video) {
    scale: none;
    translate: none;
  }

  .js-motion :is(.cc-card, .ev-plan):hover {
    transform: none !important;
  }

  .js-motion .dna-header .dna-label-line,
  .js-motion :is(.hero-accent-line),
  .ev-timeline::before,
  .wc-domain-children::before,
  .wc-domain-children .wc-domain::before {
    transform: none !important;
  }
}

/* ==========================================================================
   SEO H1 — the hero label is part of the H1; it keeps its own look
   <h1 class="hero-title"><span class="dna-header">label</span><span class="hero-headline">headline</span></h1>
   ========================================================================== */
.hero-title {
  margin: 0;
  font: inherit;
  letter-spacing: normal;
  color: inherit;
}

.hero-title > .dna-header,
.hero-title .dna-label-line,
.hero-title > .hero-headline{
  display: block;
}

.hero-title .dna-label {
  display: inline-block;
}

/* Accessibility: small grey labels on black need more contrast (≥ 4.5:1) */
.cc-dark .dna-label,
.panel-services-label {
  color: rgba(255,255,255,0.6);
}


/* Text for search engines and screen readers only (e.g. the H1 keyword on the home hero) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   LEGAL — Política de Privacidad (politica-de-privacidad.html)
   Long-form reading: left-aligned, one narrow column, comfortable on mobile
   ========================================================================== */
.legal-hero {
  padding-bottom: 0;
}

.legal-hero .hero-headline {
  margin-bottom: 0;
}

.cc-hero + .cc-section.legal-section {
  text-align: left;
  padding-top: 3.5rem;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: -0.01em;
  color: var(--negro);
  overflow-wrap: break-word;
}

.legal h2 {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 3rem 0 1rem;
}

.legal p,
.legal ul {
  margin: 0 0 1.1rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal li::marker {
  color: var(--acento);
}

.legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--acento);
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--acento);
}

.legal-updated {
  margin-top: 3rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.12);
  font-size: 0.875rem;
  color: var(--gris-texto);
}

@media (max-width: 768px) {
  .cc-hero + .cc-section.legal-section {
    padding-top: 2.5rem;
  }

  .legal {
    font-size: 0.9375rem;
  }

  .legal h2 {
    margin-top: 2.25rem;
  }
}

/* ----- Contact form: consent checkboxes (black panel) ----- */
.panel-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  margin-top: -0.6rem;
}

.panel-check input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.1rem;
  accent-color: var(--acento);
  cursor: pointer;
}

.panel-check a {
  color: var(--blanco);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.panel-check a:hover {
  color: var(--acento);
}

/* ----- Privacy note under the WhatsApp buttons ----- */
.wa-privacy-note {
  max-width: 30rem;
  margin: 1.25rem auto 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
  color: var(--gris-texto);
}

.cc-dark .wa-privacy-note {
  color: rgba(255,255,255,0.6);
}

.wa-privacy-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wa-privacy-note a:hover {
  color: var(--acento);
}

/* ----- Contact form: anti-spam field (hidden from people, visible to bots) ----- */
.panel-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.panel-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ----- Contact form: confirmation shown in place of the form ----- */
.panel-form-success {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  line-height: 1.6;
  outline: none;
}

.panel-form-success-title {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blanco);
  margin-bottom: 0.75rem;
}

.panel-form-success-title::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: var(--acento);
  margin-bottom: 1.25rem;
}
