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

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

: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-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --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 .header-subtitle { color: rgba(255,255,255,0.7); }
.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%);
}

/* On work blocks (dark bg), header text should be white via JS class */
.site-header.header-light:not(.scrolled) .brand-name,
.site-header.header-light:not(.scrolled) .header-subtitle { color: var(--blanco); }
.site-header.header-light:not(.scrolled) .hamburger-line { background-color: var(--blanco); }

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

.brand-name {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.header-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.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. */
:is(.side-panel[data-view="services"], .side-panel[data-view="portfolio"]) {
  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"],
.side-panel[data-view="portfolio"] [data-view-content="portfolio"] {
  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"],
[data-view-content="portfolio"] {
  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 */
:is(.side-panel[data-view="services"], .side-panel[data-view="portfolio"]) .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;
}

/* Hide desktop-nav, mobile-nav (using side panel instead) */
.desktop-nav, .mobile-nav, .header-actions, .mobile-menu-btn, .header-cta-btn { display: none !important; }

/* ==========================================================================
   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);
}

.btn-secondary {
  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: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
}

/* White variant for dark backgrounds */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline-white:hover {
  background: var(--blanco);
}

/* ==========================================================================
   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-subtitle,
.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;
}

.work-block-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  background: rgba(255,255,255,0.95);
  color: var(--negro);
  border: none;
  transition: var(--transition);
}

.work-block-cta:hover {
  background: var(--blanco);
}

/* ==========================================================================
   ABOUT / QUIENES SOMOS SECTION
   ========================================================================== */
.about-section {
  padding: 8rem 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.about-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
  padding: 6rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid var(--border);
}

.stat-card:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  padding: 8rem 0;
  text-align: center;
  background: var(--bg);
}

.cta-section .section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.15;
}

.cta-section .section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   PAGE SECTIONS (generic)
   ========================================================================== */
.page-section {
  padding: 6rem 0;
}

.section-head {
  margin-bottom: 4rem;
}

.section-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 65ch;
}

/* ==========================================================================
   CASE STUDY DETAIL PAGE
   ========================================================================== */
.case-hero {
  height: 70vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

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

.case-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.case-header { margin-bottom: 3rem; }

.case-client-name {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 1rem;
}

.case-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.case-body-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.case-body-text p { margin-bottom: 1.5rem; }

.case-image-block {
  width: 100%;
  margin: 3rem 0;
}

.case-image-block img {
  width: 100%;
  height: auto;
}

.case-video-block {
  max-width: 900px;
  margin: 0 auto 4rem;
  aspect-ratio: 16/9;
  background: var(--negro);
  position: relative;
}

.case-metrics-section {
  padding: 5rem 2rem;
  background: var(--blanco);
}

.case-metrics-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.case-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.case-metric-item { padding: 1.5rem 0; }

.case-metric-val {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.case-metric-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.case-related-section {
  padding: 6rem 0;
  background: var(--bg);
}

.case-related-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.case-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.case-related-card {
  display: block;
  transition: transform 0.3s ease;
}

.case-related-card:hover {
  transform: translateY(-5px);
}

.case-related-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 1rem;
}

.case-related-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.case-related-card-client {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ==========================================================================
   MOBILE STICKY CTA
   ========================================================================== */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem;
  z-index: 90;
  border-top: 1px solid var(--border);
  transition: transform 0.35s ease;
}

/* Slides away when the footer is on screen or the menu is open */
.mobile-sticky-cta.is-hidden,
body.panel-open .mobile-sticky-cta {
  transform: translateY(100%);
}

.sticky-inner {
  display: flex;
  justify-content: center;
}

.sticky-btn {
  width: 100%;
  text-align: center;
  padding: 0.875rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  font-size: 0.875rem;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.bg-mesh {
  display: none; /* Not needed for white design */
}

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(90deg, var(--negro), var(--negro));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .case-related-grid {
    grid-template-columns: 1fr;
  }

  .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,
  :is(.side-panel[data-view="services"], .side-panel[data-view="portfolio"]) .side-panel-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

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

  .side-panel[data-view],
  :is(.side-panel[data-view="services"], .side-panel[data-view="portfolio"]) {
    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;
  }
}

@media (min-width: 769px) {
  .mobile-sticky-cta {
    display: none;
  }
}

/* ==========================================================================
   LEGACY COMPATIBILITY — For pages not yet updated
   ========================================================================== */
/* Keep old pages working with new white theme */
.page-hero {
  padding: 8rem 0 4rem;
  background: var(--bg);
}
.page-hero-inner { max-width: 800px; }
.hero-eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: var(--transition);
}
.card:hover { border-color: var(--text); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.cards-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 2rem; }
.card-icon { width: 48px; height: 48px; background: var(--blanco); display: flex; align-items: center; justify-content: center; }

/* Proof cards */
.proof-card { text-align: center; padding: 2rem; border: 1px solid var(--border); }
.proof-stat { font-family: var(--font-serif); font-size: 3rem; font-weight: 700; display: block; margin-bottom: 0.5rem; }
.proof-client-tag { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

/* Case cards (legacy) */
.case-card { background: var(--bg); border: 1px solid var(--border); overflow: hidden; }
.case-card:hover { border-color: var(--text); }
.case-card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.case-card-body { padding: 1.5rem; }
.case-industry { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.375rem 0.75rem; border: 1px solid var(--border); }
.case-metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); }
.case-metric { text-align: center; }
.card-number { font-size: 0.6875rem; font-family: monospace; color: var(--text-muted); }

/* Benchmark */
.benchmark-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.benchmark-col { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.benchmark-col.bad { background: var(--blanco); border: 1px solid var(--gris-borde); }
.benchmark-col.good { background: var(--blanco); border: 1px solid var(--gris-borde); }
.col-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.col-label.bad { color: var(--negro); }
.col-label.good { color: var(--negro); }
.stat-item { display: flex; justify-content: space-between; font-size: 0.8125rem; border-bottom: 1px solid var(--gris-borde); padding-bottom: 0.25rem; }
.stat-val-bad { font-weight: 700; color: var(--negro); font-family: monospace; }
.stat-val-good { font-weight: 700; color: var(--negro); font-family: monospace; }

/* Accordion */
.accordion-group { display: flex; flex-direction: column; gap: 0.5rem; }
.accordion-item { border: 1px solid var(--border); overflow: hidden; }
.accordion-item.active { border-color: var(--text); }
.accordion-trigger { width: 100%; padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; background: none; border: none; color: var(--text); font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer; font-family: inherit; }
.accordion-icon { width: 20px; height: 20px; transition: transform 0.2s; flex-shrink: 0; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }
.accordion-content { padding: 0 1.25rem 1.25rem; display: none; }
.accordion-item.active .accordion-content { display: block; }

/* Calculator */
.calc-wrapper { background: var(--blanco); border: 1px solid var(--border); padding: 2rem; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.calc-inputs { display: flex; flex-direction: column; gap: 1.5rem; }
.input-group { display: flex; flex-direction: column; gap: 0.5rem; }
.input-label-row { display: flex; justify-content: space-between; font-size: 0.9rem; }
.input-val-display { font-family: monospace; color: var(--accent); font-weight: 700; }
.calc-slider { -webkit-appearance: none; width: 100%; height: 6px; background: var(--gris-borde); outline: none; }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--text); cursor: pointer; }
.calc-results-panel { background: var(--bg); border: 1px solid var(--border); padding: 1.5rem; }
.bleed-header { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--negro); font-weight: 700; }
.bleed-big-num { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700; color: var(--negro); }
.bleed-explanation { font-size: 0.875rem; color: var(--text-muted); }
.pipeline-recovery-box { background: var(--blanco); border: 1px solid var(--gris-borde); padding: 1rem; margin-top: 1rem; }
.recovery-num { font-size: 1.5rem; font-weight: 700; color: var(--negro); font-family: monospace; }

/* Multi-step form */
.engine-container { background: var(--blanco); border: 1px solid var(--border); padding: 2rem; }
.engine-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.progress-track { width: 100%; height: 4px; background: var(--gris-borde); overflow: hidden; margin-top: 0.5rem; }
.progress-fill { height: 100%; width: 25%; background: var(--text); transition: width 0.25s; }
.step-pane { display: none; }
.step-pane.active { display: block; }
.step-question-title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-question-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.opt-btn { min-height: 56px; padding: 1rem; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: inherit; transition: var(--transition); }
.opt-btn:hover { border-color: var(--text); }
.opt-btn.selected { border-color: var(--text); background: var(--blanco); }
.opt-radio-circle { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gris-borde); flex-shrink: 0; }
.opt-btn.selected .opt-radio-circle { border-color: var(--text); background: var(--text); }
.form-field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.input-text { width: 100%; min-height: 48px; padding: 0.75rem 1rem; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: 0.9rem; outline: none; font-family: inherit; }
.input-text:focus { border-color: var(--text); }
.input-text::placeholder { color: var(--gris-texto); }
.step-nav-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border); }
.btn-back { background: transparent; border: none; color: var(--text-muted); cursor: pointer; min-height: 48px; padding: 0.5rem 1rem; font-family: inherit; font-size: 0.9rem; }

/* WhatsApp sim */
.ctwa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.phone-mockup { max-width: 360px; margin: 0 auto; border: 4px solid var(--gris-borde); border-radius: 24px; background: var(--negro); overflow: hidden; display: flex; flex-direction: column; height: 500px; }
.phone-header { background: rgba(255,255,255,0.08); padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.75rem; }
.whatsapp-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blanco); display: flex; align-items: center; justify-content: center; color: var(--negro); font-weight: 800; font-size: 0.875rem; }
.chat-partner-info { display: flex; flex-direction: column; }
.chat-partner-name { font-size: 0.875rem; font-weight: 600; color: var(--blanco); }
.chat-partner-status { font-size: 0.6875rem; color: var(--gris-texto); }
.phone-screen-body { flex: 1; padding: 0.875rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.chat-bubble { max-width: 80%; padding: 0.625rem 0.875rem; border-radius: 0.75rem; font-size: 0.8125rem; line-height: 1.4; }
.chat-bubble.bot { background: rgba(255,255,255,0.1); color: var(--blanco); align-self: flex-start; }
.chat-bubble.user { background: rgba(255,255,255,0.22); color: var(--blanco); align-self: flex-end; }
.chat-time { font-size: 0.625rem; color: var(--gris-texto); margin-top: 0.25rem; text-align: right; }
.wa-interactive-options { display: flex; flex-direction: column; gap: 0.375rem; margin-top: 0.5rem; }
.wa-btn-option { padding: 0.5rem 0.75rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 0.5rem; color: var(--blanco); font-size: 0.75rem; font-weight: 600; text-align: center; cursor: pointer; font-family: inherit; }
.phone-bottom-input { background: rgba(255,255,255,0.08); padding: 0.625rem 0.875rem; }
.sim-input-box { background: rgba(255,255,255,0.1); border-radius: 1.25rem; padding: 0.5rem 0.875rem; font-size: 0.75rem; color: var(--gris-texto); }
.capi-payload-box { background: var(--blanco); border: 1px solid var(--border); padding: 1rem; font-family: monospace; font-size: 0.75rem; color: var(--negro); overflow-x: auto; line-height: 1.5; white-space: pre-wrap; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.team-card { background: var(--bg); border: 1px solid var(--border); padding: 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; transition: var(--transition); }
.team-card:hover { border-color: var(--text); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--blanco); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; }
.team-name { font-size: 1.125rem; font-weight: 700; }
.team-role { font-size: 0.8125rem; color: var(--text-muted); }

/* Timeline */
.timeline { display: flex; flex-direction: column; position: relative; padding-left: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 0.9375rem; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-dot { position: absolute; left: -2rem; top: 0.25rem; width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); }
.timeline-content { background: var(--blanco); border: 1px solid var(--border); padding: 1.25rem; }
.timeline-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.375rem; }

/* Logos */
.client-logos-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2rem; padding: 2rem 0; }
.logo-badge-text { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; }

/* Risk reversal */
.risk-reversal-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.8125rem; color: var(--text-muted); }
.risk-item { display: inline-flex; align-items: center; gap: 0.375rem; }

/* Alt bg */
.alt-bg { background: var(--blanco); }

/* Blog / contact / value (legacy) */
.blog-card { background: var(--bg); border: 1px solid var(--border); }
.contact-box { background: var(--blanco); border: 1px solid var(--border); padding: 2rem; }
.value-item { text-align: center; padding: 2rem; }

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

@media (max-width: 767px) {
  .calc-grid, .ctwa-grid, .benchmark-split, .form-field-group { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   CASE STUDY PAGE (cs-*) — hero, intro, video, gallery, reels
   ========================================================================== */
.cs-hero {
  position: relative;
  height: 42vh;
  min-height: 340px;
  max-height: 460px;
  overflow: hidden;
  background: var(--negro);
}

.cs-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.cs-hero-title {
  position: absolute;
  left: 12%;
  top: 50%;
  transform: translateY(-40%);
  color: var(--blanco);
}

.cs-hero-kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.cs-hero-title h1 {
  font-family: 'Inter Tight', var(--font-sans); /* same system as the hero headline */
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.cs-accent-line {
  width: 70px;
  height: 5px;
  background: var(--acento);
  margin: 0 auto 2.5rem;
}

/* Blue line sitting on the hero's bottom edge */
.cs-accent-line--edge {
  margin-top: 0;
  margin-bottom: 2.25rem;
}

.cs-intro {
  text-align: center;
  padding: 0 1.5rem 3.5rem;
}

.cs-eyebrow {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--gris-texto);
  margin-bottom: 0.75rem;
}

.cs-eyebrow strong {
  color: var(--text);
  font-weight: 600;
}

.cs-headline {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.cs-body {
  max-width: 640px;
  margin: 0 auto;
}

.cs-body p,
.cs-section-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--gris-texto);
  letter-spacing: -0.005em;
}

.cs-body p + p {
  margin-top: 2.75rem;
}

/* Main video */
.cs-video {
  position: relative;
  width: calc(100% - 3rem);
  max-width: 1185px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 6rem;
  background: var(--negro);
  overflow: hidden;
}

.cs-video > img,
.cs-video > iframe,
.cs-video > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.cs-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: rgba(10,10,10, 0.75);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.cs-video-play:hover {
  background: rgba(10,10,10, 0.9);
  transform: translate(-50%, -50%) scale(1.06);
}

.cs-video-play svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

/* Section: title + text + gallery */
.cs-section {
  text-align: center;
  padding: 0 1.5rem 6rem;
}

.cs-section-title {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 720px;
  margin: 0 auto 1.75rem;
}

.cs-section-text {
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.cs-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 8px;
  max-width: 1160px;
  margin: 0 auto;
}

.cs-gallery-item {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--negro);
  cursor: zoom-in;
}

/* Vertical flyers: take two rows */
.cs-gallery-item.is-tall {
  aspect-ratio: auto;
  grid-row: span 2;
}

.cs-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-gallery-item:hover img {
  transform: scale(1.04);
}

/* Reels */
.cs-reels {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem 7rem;
  box-sizing: content-box;
}

.cs-reels-title {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 2.25rem;
}

.cs-reels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cs-reel {
  display: block;
  color: var(--text);
}

.cs-reel-media {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--negro);
  margin-bottom: 1.25rem;
}

.cs-reel-media img,
.cs-reel-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-reel:hover .cs-reel-media img {
  transform: scale(1.04);
}

.cs-reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10,10,10, 0.7);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cs-reel-play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.cs-reel.is-playing .cs-reel-play {
  display: none;
}

.cs-reel-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gris-texto);
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.cs-reel-name {
  display: block;
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

/* Lightbox */
.cs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10,10,10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  cursor: zoom-out;
}

.cs-lightbox[hidden] {
  display: none;
}

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

.cs-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .cs-reels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cs-hero-title {
    left: 1.5rem;
  }

  .cs-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-video {
    width: 100%;
    margin-bottom: 4rem;
  }

  .cs-body p + p {
    margin-top: 1.5rem;
  }
}

/* ==========================================================================
   SERVICES PAGE (sv-*) — hero, model diagram, capabilities, work, CTA
   ========================================================================== */
.sv-hero {
  text-align: center;
  padding: 9.25rem 1.5rem 7rem;
}

.sv-accent-line {
  width: 70px;
  height: 5px;
  background: var(--acento);
  margin: 0 auto 2.75rem;
}

.sv-hero-title {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(2.75rem, 5.6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 5.5rem;
}

.sv-hero-lead,
.sv-hero-sub {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.25rem, 1.9vw, 2.125rem);
  letter-spacing: -0.015em;
  line-height: 1.45;
  margin: 0 auto;
}

.sv-hero-lead {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.sv-hero-sub {
  max-width: 840px;
  color: var(--gris-texto);
}

/* ----- Model diagram ----- */
.sv-model {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
  box-sizing: content-box;
  border-bottom: 1px solid var(--border);
}

.sv-diagram-labels {
  display: grid;
  grid-template-columns: 43% 43%;   /* centred over each pair of shapes */
  justify-content: space-between;
  max-width: 1160px;
  margin-inline: auto;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sv-diagram-labels--top {
  color: var(--acento);
  margin-bottom: 1.25rem;
}

.sv-diagram-labels--bottom {
  color: var(--gris-texto);
  margin-top: 2rem;
}

/* Diagram is drawn on a 1160 × 260 frame; every position is a % of that frame
   so the shapes interlock the same way at any width. */
.sv-diagram {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  aspect-ratio: 1160 / 260;
  container-type: inline-size;
}

.sv-chevron {
  position: absolute;
  top: 3.85%;               /* 10 / 260 */
  height: 92.3%;            /* 240 / 260 */
  width: 22.84%;            /* 265 / 1160 */
  background: var(--gris-borde);
  display: flex;
  align-items: center;
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(0.9375rem, 1.75cqw, 1.3rem);
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
  transition: background 0.25s, color 0.25s;
}

.sv-chevron:hover {
  background: var(--acento);
  color: var(--texto-sobre-acento);
}

/* Upstream shapes point left (notch on the right), downstream point right */
.sv-chevron--up {
  clip-path: polygon(18.9% 0, 100% 0, 81.1% 50%, 100% 100%, 18.9% 100%, 0 50%);
}

.sv-chevron--down {
  clip-path: polygon(0 0, 81.1% 0, 100% 50%, 81.1% 100%, 0 100%, 18.9% 50%);
}

.sv-chevron--1 { left: 0;      padding-left: 6.4cqw; }
.sv-chevron--2 { left: 20.26%; padding-left: 6.2cqw; }
.sv-chevron--3 { left: 56.9%;  padding-left: 9cqw; }
.sv-chevron--4 { left: 77.16%; padding-left: 7cqw; }

.sv-core {
  position: absolute;
  z-index: 1;
  left: 38.79%;             /* 450 / 1160 */
  top: 0;
  width: 22.41%;            /* 260 / 1160 */
  height: 100%;
  border-radius: 50%;
  background: var(--acento);
  box-shadow: 0 0 0 1.55cqw var(--blanco);
  color: var(--texto-sobre-acento);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2.6cqw;
  gap: 1.6cqw;
  font-family: 'Inter Tight', var(--font-sans);
}

.sv-core strong {
  font-size: clamp(1rem, 1.65cqw, 1.2rem);
  font-weight: 500;
}

.sv-core span {
  font-size: clamp(0.8125rem, 1.4cqw, 1rem);
  font-weight: 500;
  line-height: 1.3;
}

/* ----- 4 systems in two columns ----- */
.sv-systems {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 3.5rem;
}

.sv-systems-col {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 0.5rem 3rem;
}

.sv-systems-col + .sv-systems-col {
  border-left: 1px solid var(--gris-borde);
}

.sv-system {
  text-align: center;
  scroll-margin-top: 7rem;
}

.sv-system h2 {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.sv-system p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--gris-texto);
  max-width: 430px;
  margin: 0 auto;
}

/* ----- Capabilities ----- */
.sv-capabilities {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem 5rem;
  box-sizing: content-box;
  text-align: center;
}

.sv-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gris-texto);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.sv-capabilities-lead {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(1.375rem, 2.1vw, 2.125rem);
  letter-spacing: -0.015em;
  line-height: 1.45;
  max-width: 730px;
  margin: 0 auto 7rem;
}

.sv-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  text-align: left;
}

.sv-cap-col h3 {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.sv-cap-col li {
  font-size: 0.9375rem;
  color: var(--gris-texto);
  letter-spacing: -0.005em;
  padding: 0.45rem 0;
}

/* ----- Work cards ----- */
.sv-work {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 1.5rem 8rem;
  box-sizing: content-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}

.sv-work-card {
  display: block;
  color: var(--text);
}

.sv-work-media {
  aspect-ratio: 348 / 472;
  overflow: hidden;
  background: var(--negro);
  margin-bottom: 1.5rem;
}

.sv-work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sv-work-card:hover .sv-work-media img {
  transform: scale(1.04);
}

.sv-work-client {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gris-texto);
  margin-bottom: 0.4rem;
}

.sv-work-title {
  display: block;
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

/* ----- CTA ----- */
.sv-cta {
  text-align: center;
  padding: 0 1.5rem 8rem;
}

.sv-cta h2 {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: clamp(2.5rem, 3.6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 2rem;
}

.sv-cta-btn {
  display: inline-block;
  background: var(--negro);
  color: var(--blanco);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--negro);
  transition: background 0.2s, color 0.2s;
}

.sv-cta-btn:hover {
  background: var(--blanco);
  color: var(--negro);
}

@media (max-width: 900px) {
  /* Stack: circle first, then the four systems as plain blocks */
  .sv-diagram {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .sv-chevron {
    position: static;
    order: 1;
    width: 100%;
    height: auto;
    clip-path: none;
    padding: 1.5rem !important;
    justify-content: center;
    text-align: center;
    font-size: 1.125rem;
  }

  .sv-chevron br { display: none; }

  .sv-core {
    position: static;
    order: 0;
    width: 240px;
    height: 240px;
    margin-bottom: 1.25rem;
    box-shadow: none;
    padding: 0 2.25rem;
    gap: 1rem;
  }

  .sv-diagram-labels { display: none; }

  .sv-cap-grid { grid-template-columns: repeat(2, 1fr); }
  .sv-work { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .sv-hero { padding-top: 7rem; }
  .sv-hero-title { margin-bottom: 3rem; }

  .sv-systems { grid-template-columns: 1fr; }
  .sv-systems-col { padding: 0; gap: 3rem; }
  .sv-systems-col + .sv-systems-col {
    border-left: none;
    border-top: 1px solid var(--gris-borde);
    margin-top: 3rem;
    padding-top: 3rem;
  }

  .sv-capabilities-lead { margin-bottom: 3.5rem; }
  .sv-work { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SERVICE DETAIL PAGES (svc-*) — media block + process steps
   (reuses sv-hero, dna-*, sv-capabilities, sv-work, sv-cta)
   ========================================================================== */
.svc-media {
  margin-bottom: 0;
}

.svc-dna {
  padding-top: 7rem;
}

.svc-steps-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
  box-sizing: content-box;
  text-align: center;
}

.svc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
  text-align: left;
  counter-reset: step;
}

.svc-step {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.svc-step-num {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--negro);
  margin-bottom: 1rem;
}

.svc-step h3 {
  font-family: 'Inter Tight', var(--font-sans);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.svc-step p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gris-texto);
}

.svc-capabilities {
  border-top: 1px solid var(--border);
}

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

@media (max-width: 560px) {
  .svc-steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   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;
  }

  .header-subtitle {
    display: none;
  }

  /* 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,
.btn-outline-white,
.sv-cta-btn,
.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],
  :is(.side-panel[data-view="services"], .side-panel[data-view="portfolio"]) {
    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;
  }

  :is(.side-panel[data-view="services"], .side-panel[data-view="portfolio"]) .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],
  :is(.side-panel[data-view="services"], .side-panel[data-view="portfolio"]) {
    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: "DOiG" bold and dominant + "Marketing" lighter and slightly smaller,
   on the same baseline (inline span inherits the baseline of the link) */
.brand-name-light {
  font-size: 0.85em;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-left: 0.1em;
}

/* ==========================================================================
   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,
.cs-accent-line,
.sv-accent-line {
  background: var(--acento);
}

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

/* ----- Primary buttons: black → accent ----- */
.btn-primary,
.sv-cta-btn,
.sticky-btn,
.btn-whatsapp {
  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,
.sv-cta-btn:hover,
.sticky-btn:hover,
.btn-whatsapp:hover {
  background: var(--acento);
  border-color: var(--acento);
  color: var(--texto-sobre-acento);
}

/* ----- "Ver caso": border + text turn accent ----- */
.btn-outline-white {
  border: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-outline-white:hover {
  background: var(--blanco);
  border-color: var(--acento);
  color: var(--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 — no animation, only instant colour changes
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  /* Image drift and hover zooms disabled */
  .work-block-image,
  .cs-gallery-item:hover img,
  .cs-reel:hover .cs-reel-media img,
  .sv-work-card:hover .sv-work-media img {
    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
   ========================================================================== */
:is(.side-panel[data-view="services"], .side-panel[data-view="portfolio"]) {
  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);
}

:is(.side-panel[data-view="services"], .side-panel[data-view="portfolio"]) .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) {
  :is(.side-panel[data-view="services"], .side-panel[data-view="portfolio"]) .side-panel-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

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

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

  :is(.side-panel[data-view="services"], .side-panel[data-view="portfolio"]) .side-panel-nav {
    display: none;
  }

  :is(.side-panel[data-view="services"], .side-panel[data-view="portfolio"]) .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 */
.nav-link,
.mobile-nav-link,
.footer-link,
.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;
}

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

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

/* Secondary / outline buttons: accent fill like the primary ones */
.btn-secondary {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

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

/* Card-style links: title turns accent */
.sv-work-title,
.cs-reel-name {
  transition: color 0.3s ease;
}

.sv-work-card:hover .sv-work-title,
.sv-work-card:focus-visible .sv-work-title,
.cs-reel:hover .cs-reel-name,
.cs-reel:focus-visible .cs-reel-name {
  color: var(--acento);
}

/* Icon buttons (play, close, back) */
.cs-video-play:hover {
  background: var(--acento);
  color: var(--texto-sobre-acento);
}

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

.side-panel-close:hover,
.side-panel-back:hover,
.cs-lightbox-close: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,
.svc-dna,
.sv-capabilities {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.cs-intro,
.cs-section,
.svc-steps-section,
.cs-reels,
.sv-work,
.sv-cta {
  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;
}

.cs-video {
  margin-bottom: var(--section-space);
}

.svc-media {
  margin-bottom: 0; /* the next section's top padding provides the gap */
}

/* 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,
.cc-dark .cc-notice {
  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-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

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

.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;
}

.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);
}

/* ----- 9. Includes (dark) ----- */
.cc-check-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--blanco);
  border-bottom-color: rgba(255,255,255,0.15);
}

.cc-notice {
  max-width: 820px;
  margin: 3rem auto 0;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.cc-price {
  margin: 3rem auto 0;
  color: var(--blanco);
}

/* ----- 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-list,
  .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;
  }

  .cc-notice {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   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,
.sv-hero-title,
.cs-headline,
.cs-section-title,
.cs-hero-title h1,
.sv-capabilities-lead,
.svc-step h3 {
  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;
}

/* ==========================================================================
   SERVICE PAGE — VIDEO PARA EVENTOS (ev-*)
   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;
}

.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);
}

.pf-detail-play {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* 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,
  .sv-hero > *, .cs-hero-title > *, .cs-intro > *, .cs-section > .cs-accent-line,
  .cs-section-title, .cs-section-text, .cs-reels-title, .cs-reel, .svc-step,
  .sv-capabilities > p, .sv-cap-col, .sv-work-card, .sv-cta > *, .cc-faq-item, .wc-domain,
  .pf-card, .stat-card, .case-content > *, .case-metric-item, .case-related-card, .card,
  .proof-card, .case-card, .team-card, .blog-card, .value-item, .timeline-item,
  .contact-box, .section-head
) {
  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,
  .sv-hero > *, .cs-hero-title > *, .cs-intro > *, .cs-section-title, .cs-section-text,
  .cs-reels-title, .cs-reel, .svc-step, .sv-capabilities > p, .sv-cap-col, .sv-work-card,
  .sv-cta > *, .cc-faq-item, .wc-domain, .pf-card, .stat-card, .case-content > *,
  .case-metric-item, .case-related-card, .card, .proof-card, .case-card, .team-card,
  .blog-card, .value-item, .timeline-item, .contact-box, .section-head
):not(
  /* special kinds, animated below */
  .dna-header, .hero-accent-line, .sv-accent-line, .cs-accent-line,
  .hero-video-container, .ev-hero-media, .cs-video, .cc-gallery-item, .cs-gallery-item,
  .wc-case-media, .wc-domains, .ev-timeline, .is-split, .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,
.sv-accent-line,
.cs-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, .sv-accent-line, .cs-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);
}

/* Hero H1, line by line: each line rises inside its own clipped box */
.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, .cs-video, .cc-gallery-item, .cs-gallery-item, .wc-case-media) > :is(img, video),
:is(.pf-thumb, .ev-thumb, .sv-work-media, .cs-reel-media) > 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, .cs-video, .cc-gallery-item, .cs-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, .sv-work-media, .cs-reel-media) > 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;
}

/* ==========================================================================
   2. HEADER — solid white after 80px, hides on scroll down
   ========================================================================== */
.site-header {
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur-media) var(--ease),
    border-color var(--dur-media) var(--ease),
    transform var(--dur-media) var(--ease-in-out);
}

.site-header.scrolled {
  background: var(--blanco);
  border-bottom-color: var(--gris-borde);
  mix-blend-mode: normal;
}

.site-header.scrolled .brand-name { color: var(--negro); }
.site-header.scrolled .header-subtitle { color: var(--gris-texto); }
.site-header.scrolled .hamburger-line { background: var(--negro); }

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
   ========================================================================== */
.side-panel {
  opacity: 0;
  transition:
    transform var(--dur-media) var(--ease-in-out),
    opacity var(--dur-media) var(--ease-in-out),
    width var(--dur-media) var(--ease-in-out);
}

.side-panel.open {
  opacity: 1;
}

.side-panel:not(.open),
.side-panel-overlay:not(.open) {
  transition-duration: 280ms;   /* closing is quicker */
}

.side-panel-overlay {
  transition: opacity var(--dur-media) var(--ease-in-out);
}

/* 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,
.nav-link,
.mobile-nav-link,
.footer-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(12px);
}

.js-motion .side-panel.open .side-panel-nav > .side-panel-link,
.js-motion .side-panel.open .side-panel-contact {
  transition:
    opacity var(--dur-media) var(--ease) calc(150ms + var(--i, 0) * 50ms),
    transform var(--dur-media) var(--ease) calc(150ms + var(--i, 0) * 50ms),
    color var(--dur-rapida) var(--ease),
    background-size var(--dur-rapida) var(--ease);
}

/* Right column (Servicios / Portafolio / Contacto): short cross-fade, items staggered */
@keyframes panelItemIn {
  from { opacity: 0; transform: translateY(12px); }
}

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

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

/* Buttons: quick colour change, slight press */
.btn-primary,
.btn-secondary,
.btn-outline-white,
.sv-cta-btn,
.sticky-btn,
.panel-submit,
.btn-whatsapp,
.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,
.btn-secondary:active,
.btn-outline-white:active,
.sv-cta-btn:active,
.sticky-btn:active,
.panel-submit:active,
.btn-whatsapp: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);
  }

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

@media (hover: none) {
  .pf-card-link:hover .pf-thumb img,
  .sv-work-card:hover .sv-work-media img,
  .cs-reel:hover .cs-reel-media img,
  .cs-gallery-item:hover 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; at most a 200ms fade
   ========================================================================== */
@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,
    .sv-hero > *, .cs-hero-title > *, .cs-intro > *, .cs-section-title, .cs-section-text,
    .cs-reels-title, .cs-reel, .svc-step, .sv-capabilities > p, .sv-cap-col, .sv-work-card,
    .sv-cta > *, .cc-faq-item, .wc-domain, .pf-card, .card, .section-head
  ),
  .h-line-inner,
  :is(.hero-video-container, .ev-hero-media, .cs-video, .cc-gallery-item, .cs-gallery-item, .wc-case-media) > :is(img, video),
  :is(.pf-thumb, .ev-thumb, .sv-work-media, .cs-reel-media) > img {
    transform: none !important;
    transition: opacity 200ms linear !important;
  }

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