/* =============================================
   VARIABLES GLOBALES — DN WEB
   ============================================= */
:root {
  --color-fondo-oscuro: #0a0a0a;
  --color-fondo-gris: #1a1a1a;
  --color-crema: #e7e1ca;
  --color-terracota: #763818;
  --color-borde-contenedor: rgba(var(--ch-fg), 0.15);

  /* Variables de tema */
  --color-bg: #0a0a0a;
  --color-fg: #e7e1ca;
  --ch-fg: 231, 225, 202;
  --ch-bg: 10, 10, 10;

  --fuente-titulo: 'Syne', sans-serif;
  --fuente-cuerpo: 'DM Sans', sans-serif;

  --radio-borde-contenedor: 20px;
  --radio-borde-boton: 50px;

  --espaciado-seccion: 60px;
  --ancho-maximo: 1300px;
  --altura-nav: 110px;

  /* Curvas de easing con carácter */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);

  /* Duraciones */
  --t-fast: 140ms;
  --t-base: 240ms;
  --t-slow: 420ms;
}

/* =============================================
   RESET Y BASE
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--fuente-cuerpo);
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* =============================================
   CANVAS — FONDO ANIMADO DE OLAS
   ============================================= */
#canvas-olas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* =============================================
   CONTENEDOR PRINCIPAL (RECUADRO CON BORDES)
   ============================================= */
.contenedor-principal {
  position: relative;
  z-index: 1;
  width: 100%;
  height: calc(100vh - 40px);
  border: 2px solid var(--color-fg);
  border-radius: var(--radio-borde-contenedor);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
}

/* Variante para index.html — scroll interno entre secciones */
.contenedor-principal--scroll {
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
}

.contenedor-principal--scroll::-webkit-scrollbar {
  display: none;
}

/* Cada sección ocupa exactamente la pantalla visible bajo el nav */
.pantalla-seccion {
  height: calc(100vh - 40px - var(--altura-nav));
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  scroll-margin-top: var(--altura-nav);
  scroll-snap-align: start;
  overflow: hidden;
  padding: 94px 0 106px;
}

.pantalla-seccion > .seccion_servicios,
.pantalla-seccion > .seccion_contacto {
  flex: 1;
  min-height: 0;
}

/* El carrusel de servicios necesita menos aire vertical que otras secciones */
#servicios.pantalla-seccion {
  padding: 16px 0 24px;
}

/* Perfil: sin padding — el contenido ocupa todo el alto de la sección */
#acercade-perfil.pantalla-seccion {
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Contacto: el formulario necesita el aire vertical disponible en pantallas bajas */
#contacto.pantalla-seccion {
  padding: clamp(16px, 10vh, 94px) 0 clamp(16px, 11vh, 106px);
}

/* =============================================
   BARRA DE NAVEGACIÓN
   ============================================= */
.barra-navegacion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--ch-bg), 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--ch-fg), 0.12);
}

.logo-imagen {
  height: 82px;
  width: auto;
  object-fit: contain;
}

[data-tema="oscuro"] .logo-claro  { display: none; }
[data-tema="claro"]  .logo-oscuro { display: none; }

.grupo-nav-derecha {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-enlaces {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.enlace-nav {
  font-family: var(--fuente-cuerpo);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-fg);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.enlace-nav:hover {
  opacity: 0.65;
}

.enlace-nav--activo {
  font-weight: 700;
}

/* Botón hamburguesa */
.boton-menu-hamburguesa {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.linea-hamburguesa {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-fg);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.boton-menu-hamburguesa.activo .linea-hamburguesa:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.boton-menu-hamburguesa.activo .linea-hamburguesa:nth-child(2) {
  opacity: 0;
}
.boton-menu-hamburguesa.activo .linea-hamburguesa:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   MENÚ DESPLEGABLE
   ============================================= */
.menu-desplegable {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 32px 0;
  background: rgba(var(--ch-bg), 0.95);
  border-bottom: 1px solid var(--color-borde-contenedor);
  position: sticky;
  top: var(--altura-nav);
  z-index: 99;
}

.menu-desplegable.visible {
  display: flex;
}

.lista-menu-desplegable {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.enlace-menu-desplegable {
  font-family: var(--fuente-titulo);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-fg);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.enlace-menu-desplegable:hover {
  color: var(--color-terracota);
}

/* =============================================
   HERO — VIDEO DE FONDO
   ============================================= */
#inicio.pantalla-seccion {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050505;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.62) 0%,
    rgba(10, 10, 10, 0.28) 55%,
    rgba(10, 10, 10, 0.50) 100%
  );
  z-index: 1;
}

/* =============================================
   HERO — TÍTULO SUPERIOR IZQUIERDA
   ============================================= */
.hero-titulo-wrap {
  position: absolute;
  bottom: 80px;
  left: 48px;
  z-index: 2;
  max-width: 480px;
}

.titulo-inicio {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.6rem, 3vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-crema);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* =============================================
   HERO — TARJETA INFERIOR DERECHA
   ============================================= */
.hero-tarjeta-dr {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(231, 225, 202, 0.16);
  border-radius: 14px;
  padding: 12px 16px 12px 12px;
  text-decoration: none;
  width: 288px;
  transition: background-color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .hero-tarjeta-dr:hover {
    background: rgba(10, 10, 10, 0.60);
    border-color: rgba(231, 225, 202, 0.28);
    transform: translateY(-3px);
  }
  .hero-tarjeta-dr:hover .hero-tarjeta-icono {
    opacity: 1;
    transform: translate(3px, -3px);
  }
}

.hero-tarjeta-dr:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

.hero-tarjeta-thumb {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-tarjeta-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-tarjeta-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-tarjeta-label {
  font-family: var(--fuente-cuerpo);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-crema);
  opacity: 0.52;
  text-transform: uppercase;
}

.hero-tarjeta-titulo {
  font-family: var(--fuente-titulo);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-crema);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.hero-tarjeta-icono {
  width: 18px;
  height: 18px;
  color: var(--color-crema);
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   ACERCA DE — SLIDE 1: HERO FOTO COMPLETA
   ============================================= */
#acercade.pantalla-seccion {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.acercade1_bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/acerca de/setup.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.acercade1_overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,  rgba(6,6,6,0.92) 0%, rgba(6,6,6,0.42) 36%, rgba(6,6,6,0.08) 62%, transparent 100%),
    linear-gradient(to right, rgba(6,6,6,0.52) 0%, rgba(6,6,6,0.12) 50%, transparent 78%);
}

.acercade1_zona_inferior {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 44px;
  gap: 40px;
}

.acercade1_presentacion {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acercade1_saludo {
  font-family: var(--fuente-cuerpo);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--color-crema);
  opacity: 0.80;
  letter-spacing: 0.01em;
  margin: 0;
}

.acercade1_nombre {
  font-family: var(--fuente-titulo);
  font-size: clamp(4rem, 7.5vw, 7rem);
  font-weight: 800;
  color: var(--color-crema);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
}

.acercade1_info {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 48px;
}

.acercade1_desc {
  font-family: var(--fuente-cuerpo);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 300;
  color: var(--color-crema);
  opacity: 0.78;
  line-height: 1.72;
  max-width: 400px;
  margin: 0;
}

.acercade1_dot {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--color-terracota);
  flex-shrink: 0;
  align-self: flex-end;
}

/* =============================================
   ACERCA DE — SLIDE 2: CÓMO TRABAJO
   ============================================= */
.acercade2_bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/acerca de/proceso.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.acercade2_overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5, 5, 5, 0.70);
}

/* Líneas decorativas tipo plano arquitectónico */
.acercade2_lineas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.acercade2_ln {
  position: absolute;
  background: rgba(231, 225, 202, 0.07);
}

.acercade2_ln--h1 { top: 38%;  left: 0; right: 0; height: 1px; }
.acercade2_ln--h2 { top: 72%;  left: 0; right: 0; height: 1px; }
.acercade2_ln--v1 { left: 20%; top: 0;  bottom: 0; width: 1px; }
.acercade2_ln--v2 { left: 80%; top: 0;  bottom: 0; width: 1px; }

/* Contenido principal */
.acercade2_contenido {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 56px 56px 52px;
  gap: 32px;
}

.acercade2_header {
  flex-shrink: 0;
}

.acercade2_titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.6rem, 2.4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-crema);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

/* Contenedor del proceso — 3 columnas iguales */
.acercade2_proceso {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid rgba(231, 225, 202, 0.18);
  border-radius: 16px;
  overflow: hidden;
  min-height: 0;
  background: transparent;
}

/* Cada etapa */
.acercade2_etapa {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 36px 36px;
  border-right: 1px solid rgba(231, 225, 202, 0.10);
  background: transparent;
}

.acercade2_etapa:last-child {
  border-right: none;
}

/* Número grande con opacidad baja — parte superior */
.acercade2_num {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: clamp(4rem, 7vw, 8rem);
  font-weight: 800;
  color: var(--color-crema);
  opacity: 0.07;
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
}

/* Cuerpo de la etapa — empujado al fondo */
.acercade2_etapa_cuerpo {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acercade2_etapa_titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.5rem, 2.4vw, 2.6rem);
  font-weight: 700;
  color: var(--color-crema);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

.acercade2_etapa_desc {
  font-family: var(--fuente-cuerpo);
  font-size: clamp(0.76rem, 0.88vw, 0.88rem);
  font-weight: 300;
  color: var(--color-crema);
  opacity: 0.58;
  line-height: 1.75;
  margin: 0;
}

/* Footer de la etapa con botón */
.acercade2_etapa_footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

/* Botón cuadrado minimalista */
.acercade2_etapa_btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(231, 225, 202, 0.22);
  border-radius: 5px;
  background: transparent;
  color: var(--color-crema);
  opacity: 0.40;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out);
  flex-shrink: 0;
}

.acercade2_etapa_btn svg {
  width: 10px;
  height: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .acercade2_etapa_btn:hover {
    opacity: 1;
    border-color: rgba(231, 225, 202, 0.60);
    background: rgba(231, 225, 202, 0.07);
  }
}

/* =============================================
   ACERCA DE — SLIDE 3: EL STUDIO
   ============================================= */
#acercade-studio.pantalla-seccion {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.studio_bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/acerca de/el studio.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.studio_overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5, 5, 5, 0.60);
}

.studio_ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 36px 48px 32px;
  gap: 0;
}

/* Header: título + subtítulo en fila */
.studio_header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.studio_titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  font-weight: 800;
  font-style: italic;
  color: var(--color-crema);
  white-space: nowrap;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.studio_subtitulo {
  font-family: var(--fuente-cuerpo);
  font-size: clamp(0.72rem, 0.88vw, 0.88rem);
  font-weight: 300;
  color: var(--color-crema);
  opacity: 0.48;
  margin: 0;
  line-height: 1.4;
}

/* Escena: área donde viven los hotspots */
.studio_escena {
  flex: 1;
  position: relative;
}

/* ---- HOTSPOT ---- */
.studio_hs {
  position: absolute;
  left: var(--hs-x);
  top: var(--hs-y);
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Punto interactivo */
.studio_hs_punto {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(231, 225, 202, 0.88);
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
  transition: transform var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out);
  z-index: 2;
}

/* Halo pulsante */
.studio_hs_halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(231, 225, 202, 0.30);
  pointer-events: none;
  animation: studio-halo 2.6s ease-in-out infinite;
}

@keyframes studio-halo {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.55; }
  50%       { transform: translate(-50%, -50%) scale(1.75); opacity: 0; }
}

@media (hover: hover) and (pointer: fine) {
  .studio_hs:hover .studio_hs_punto {
    transform: scale(1.4);
    background: rgba(231, 225, 202, 1);
  }
}

/* Etiqueta "toca" */
.studio_hs_label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--fuente-cuerpo);
  font-size: 0.58rem;
  font-weight: 400;
  color: var(--color-crema);
  opacity: 0.40;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ---- PANEL GLASSMORPHISM ---- */
.studio_hs_panel {
  position: absolute;
  top: 50%;
  left: 22px;
  transform: translateY(-50%) scale(0.95);
  width: 290px;
  max-height: 75vh;
  overflow-y: auto;
  scrollbar-width: none;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(231, 225, 202, 0.15);
  border-radius: 16px;
  padding: 20px 22px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.30s var(--ease-out),
              transform 0.30s var(--ease-out);
  z-index: 30;
}

.studio_hs_panel::-webkit-scrollbar { display: none; }

.studio_hs.activo .studio_hs_panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

/* Panel a la izquierda del punto (hotspots del lado derecho) */
.studio_hs.panel--izq .studio_hs_panel {
  left: auto;
  right: 22px;
}

/* Botón cerrar */
.studio_hs_cerrar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-crema);
  opacity: 0.32;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity var(--t-base) var(--ease-out);
}

.studio_hs_cerrar:hover { opacity: 0.80; }

.studio_hs_cerrar svg { width: 11px; height: 11px; }

/* Contenido del panel */
.studio_hs_tag {
  font-family: var(--fuente-cuerpo);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-crema);
  opacity: 0.32;
  text-transform: uppercase;
  margin: 0 0 7px;
}

.studio_hs_titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  font-weight: 800;
  color: var(--color-crema);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  line-height: 1.15;
  padding-right: 18px;
}

.studio_hs_cuerpo {
  font-family: var(--fuente-cuerpo);
  font-size: 0.80rem;
  font-weight: 300;
  color: var(--color-crema);
  opacity: 0.72;
  line-height: 1.70;
}

.studio_hs_cuerpo p { margin: 0; }

.studio_hs_cita {
  margin-top: 12px !important;
  font-style: italic;
  opacity: 0.45;
  font-size: 0.76rem;
}

.studio_hs_cuerpo--spotify { opacity: 1; }

.studio_hs_cuerpo--imagen {
  opacity: 1;
  padding: 0;
}

.studio_hs_img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.studio_hs--wide .studio_hs_panel {
  width: 380px;
  height: clamp(360px, 58vh, 480px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.studio_hs--wide .studio_hs_cuerpo--spotify {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.studio_hs--wide .studio_hs_cuerpo--spotify iframe {
  flex: 1;
  min-height: 0;
  height: 100%;
}

/* ---- CARRUSEL DE HERRAMIENTAS ---- */
.studio_car_wrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.studio_car_wrap::-webkit-scrollbar { display: none; }

.studio_car_item {
  flex: 0 0 calc(33.333% - 7px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.studio_car_item img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .studio_car_item:hover img {
    filter: brightness(1.1);
    transform: translateY(-3px);
  }
}

.studio_car_item span {
  font-family: var(--fuente-cuerpo);
  font-size: 0.66rem;
  font-weight: 400;
  color: var(--color-crema);
  opacity: 0.55;
  text-align: center;
  white-space: nowrap;
}

.studio_car_nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.studio_car_btn {
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid rgba(231, 225, 202, 0.18);
  border-radius: 5px;
  color: var(--color-crema);
  opacity: 0.45;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  flex-shrink: 0;
}

.studio_car_btn:hover { opacity: 1; border-color: rgba(231, 225, 202, 0.50); }
.studio_car_btn svg { width: 10px; height: 10px; }

.studio_car_dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.studio_car_dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-crema);
  opacity: 0.18;
  transition: opacity 0.25s var(--ease-out),
              width 0.3s var(--ease-out),
              border-radius 0.3s var(--ease-out);
}

.studio_car_dot--activo {
  opacity: 0.70;
  width: 16px;
  border-radius: 3px;
}

/* =============================================
   SECCIÓN SERVICIOS
   ============================================= */
.seccion_servicios {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 20px 20px;
  gap: 0;
  min-height: 0;
}

.contenedor_principal_servicios {
  display: flex;
  flex: 1;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  min-height: 0;
  background: transparent;
  border: 1.5px solid rgba(var(--ch-fg), 0.65);
  border-bottom: none;
}

.servicios_card_texto {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 52px 56px;
}

.titulo_servicios {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.4rem, 4.2vw, 5rem);
  font-weight: 800;
  color: var(--color-fg);
  line-height: 1.05;
  letter-spacing: -0.02em;
  transition: opacity 0.3s ease;
}

.descripcion_servicios {
  font-family: var(--fuente-cuerpo);
  font-size: clamp(0.85rem, 1vw, 0.98rem);
  font-weight: 300;
  color: var(--color-fg);
  opacity: 0.85;
  line-height: 1.85;
  transition: opacity 0.3s ease;
}

.servicios_card_acciones {
  display: flex;
  align-items: center;
  gap: 20px;
}

.boton_cotizacion_servicios {
  display: inline-block;
  font-family: var(--fuente-titulo);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-fg);
  background-color: transparent;
  border: 1.5px solid rgba(var(--ch-fg), 0.45);
  border-radius: var(--radio-borde-boton);
  padding: 11px 32px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  letter-spacing: 0.02em;
}

.boton_cotizacion_servicios:hover {
  background-color: rgba(var(--ch-fg), 0.1);
  border-color: var(--color-fg);
}

.flecha_servicios {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  color: var(--color-crema);
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.flecha_servicios:hover {
  opacity: 1;
  transform: translateX(4px);
}

.flecha_servicios svg {
  width: 32px;
  height: 32px;
}

.servicios_card_imagen {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  transition: background-image 0.5s ease;
}

/* La barra mobile solo aparece en mobile */
.barra_movil_servicios {
  display: none;
}

/* Indicativos de swipe — solo mobile */
.proyectos_swipe_hint,
.servicios_swipe_hint {
  display: none;
}

@keyframes swipeArrow {
  0%, 100% { transform: translateX(0);    opacity: 0.5; }
  50%       { transform: translateX(10px); opacity: 1;   }
}

.barra_inferior_servicios {
  display: flex;
  width: 100%;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.item_servicio_barra {
  flex: 1;
  background-color: var(--color-terracota);
  color: var(--color-fg);
  font-family: var(--fuente-cuerpo);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  font-weight: 400;
  border: none;
  border-right: 1px solid rgba(var(--ch-fg), 0.2);
  padding: 18px 12px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.25s ease, font-weight 0.25s ease;
  letter-spacing: 0.01em;
}

.item_servicio_barra:last-child {
  border-right: none;
}

.item_servicio_barra:hover {
  background-color: #8f4520;
}

.activo_barra_servicios {
  font-weight: 700;
  background-color: #5a2a10;
}

/* =============================================
   PROYECTOS — SLIDES REVISTA
   ============================================= */
#proyectos.pantalla-seccion {
  padding: 0;
  scroll-snap-stop: always;
}

.proyectos_scroll_h {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.proyectos_scroll_h::-webkit-scrollbar {
  display: none;
}

.proyecto_panel {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
}

.seccion_proyecto_slide {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.proyecto_cuadricula {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.3fr 1fr;
  flex: 1;
  min-height: 0;
  gap: 1px;
  background: rgba(var(--ch-fg), 0.12);
}

.proyecto_celda {
  background: var(--color-fondo-oscuro);
  overflow: hidden;
  position: relative;
}

.proyecto_bg_img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.proyecto_bg_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.proyecto_celda--info {
  display: flex;
  align-items: center;
  padding: 48px 56px;
}

.proyecto_info_inner {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.proyecto_slide_anio {
  font-family: var(--fuente-cuerpo);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-fg);
  opacity: 0.45;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proyecto_slide_titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.6rem, 2.4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-fg);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.proyecto_slide_desc {
  font-family: var(--fuente-cuerpo);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 400;
  color: var(--color-fg);
  opacity: 0.7;
  line-height: 1.85;
  max-width: 460px;
}

.proyecto_slide_btn {
  display: block;
  width: 180px;
  text-align: center;
  margin-top: 24px;
  font-family: var(--fuente-titulo);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(231, 225, 202, 0.95);
  background: rgba(231, 225, 202, 0.10);
  backdrop-filter: blur(18px) saturate(1.6) brightness(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.6) brightness(1.12);
  border: 1px solid rgba(231, 225, 202, 0.22);
  border-radius: var(--radio-borde-boton);
  padding: 11px 0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 4px 20px rgba(0, 0, 0, 0.20),
    0 1px 4px rgba(0, 0, 0, 0.10);
  transition: background var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}

/* Reflejo especular tipo vidrio */
.proyecto_slide_btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.04) 40%,
    transparent 65%
  );
  border-radius: inherit;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .proyecto_slide_btn:hover {
    background: rgba(231, 225, 202, 0.18);
    border-color: rgba(231, 225, 202, 0.38);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      inset 0 -1px 0 rgba(0, 0, 0, 0.14),
      0 8px 28px rgba(0, 0, 0, 0.26),
      0 2px 6px rgba(0, 0, 0, 0.14);
  }
}

.proyecto_slide_btn:active {
  transform: scale(0.97);
}

/* Contenedor de acciones del proyecto */
.proyecto_acciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  max-width: 100%;
}

.proyecto_acciones_botones {
  display: flex;
  flex-direction: row;
  gap: 10px;
  max-width: 100%;
}

.proyecto_acciones .proyecto_slide_btn {
  margin-top: 0;
  width: 210px;
  cursor: pointer;
}

/* Flecha "siguiente proyecto" — solo mobile, ver @media (max-width: 768px) */
.proyecto_flecha_movil {
  display: none;
}

.btn--proceso {
  background: rgba(231, 225, 202, 0.04) !important;
  border-color: rgba(231, 225, 202, 0.11) !important;
  color: rgba(231, 225, 202, 0.55) !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .btn--proceso:hover {
    background: rgba(231, 225, 202, 0.10) !important;
    border-color: rgba(231, 225, 202, 0.22) !important;
    color: rgba(231, 225, 202, 0.88) !important;
  }
}

.proyecto_celda--num {
  display: flex;
  align-items: flex-end;
  padding: 24px 36px;
}

.proyecto_slide_contador {
  font-family: var(--fuente-titulo);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 800;
  color: var(--color-fg);
  opacity: 0.06;
  line-height: 1;
  letter-spacing: -0.04em;
}


/* =============================================
   SECCIÓN CONTACTO
   ============================================= */
.seccion_contacto {
  display: flex;
  align-items: flex-start;
  flex: 1;
  padding: clamp(10px, 2.1vh, 20px) 48px clamp(16px, 4.2vh, 40px) 48px;
  gap: 40px;
  min-height: 0;
  overflow-y: auto;
}

/* Columna izquierda — iconos de redes */
.columna_redes_contacto {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vh, 28px);
}

.icono_red_social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 8vh, 76px);
  height: clamp(40px, 8vh, 76px);
  color: var(--color-fg);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.icono_red_social svg {
  width: 100%;
  height: 100%;
}

.icono_red_social:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* Contenedor del formulario */
.contenedor_formulario_contacto {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 2.1vh, 20px);
  border: 2px solid var(--color-fg);
  border-radius: 20px;
  padding: clamp(18px, 5vh, 48px) 56px;
  background: rgba(0, 0, 0, 0.25);
  height: 100%;
  
}

.titulo_contacto {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.5rem, 4vh, 2.4rem);
  font-weight: 800;
  color: var(--color-fg);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.subtitulo_contacto {
  font-family: var(--fuente-cuerpo);
  font-size: clamp(0.82rem, 1.05vw, 0.92rem);
  font-weight: 400;
  color: var(--color-fg);
  opacity: 0.7;
  line-height: 1.6;
  max-width: 560px;
}

/* Formulario */
.formulario_contacto {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.campo_formulario {
  display: flex;
  flex-direction: column;
}

.input_formulario {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(var(--ch-fg), 0.35);
  color: var(--color-fg);
  font-family: var(--fuente-cuerpo);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 400;
  padding: clamp(6px, 1.5vh, 14px) 4px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.input_formulario::placeholder {
  color: var(--color-fg);
  opacity: 0.45;
  font-style: italic;
}

.input_formulario:focus {
  border-bottom-color: rgba(var(--ch-fg), 0.85);
  font-style: normal;
}

.textarea_formulario {
  resize: none;
  min-height: clamp(36px, 8vh, 80px);
}

/* Botón enviar */
.boton_enviar_contacto {
  align-self: flex-start;
  margin-top: clamp(6px, 1.7vh, 16px);
  font-family: var(--fuente-titulo);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-fondo-oscuro);
  background-color: var(--color-fg);
  border: none;
  border-radius: var(--radio-borde-boton);
  padding: clamp(8px, 1.5vh, 14px) 48px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.boton_enviar_contacto:hover {
  background-color: var(--color-terracota);
  color: var(--color-fg);
}

.boton_enviar_contacto:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.formulario_mensaje {
  font-size: 0.85rem;
  margin-top: 10px;
  min-height: 1.2em;
}

.formulario_mensaje--exito {
  color: #7fbf7b;
}

.formulario_mensaje--error {
  color: #e07070;
}

/* =============================================
   SECCIÓN FAQ + FOOTER
   ============================================= */
#faq.pantalla-seccion {
  padding: 0;
}

.faq_zona {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(20px, 5vh, 48px) 80px;
  min-height: 0;
  overflow-y: auto;
}

.faq_titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.2rem, 3.8vw, 4.2rem);
  font-weight: 800;
  color: var(--color-fg);
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: clamp(16px, 4vh, 40px);
}

.faq_lista {
  width: 100%;
  max-width: 720px;
}

.faq_item {
  border-bottom: 1px solid rgba(var(--ch-fg), 0.18);
}

.faq_pregunta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: clamp(10px, 2.5vh, 22px) 0;
  gap: 20px;
  text-align: left;
}

.faq_pregunta_texto {
  font-family: var(--fuente-titulo);
  font-size: clamp(0.92rem, 1.2vw, 1.1rem);
  font-weight: 700;
  color: var(--color-fg);
  line-height: 1.3;
}

.faq_icono {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-fg);
  opacity: 0.65;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq_item.abierto .faq_icono {
  transform: rotate(45deg);
}

.faq_respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq_item.abierto .faq_respuesta {
  max-height: 100px;
}

.faq_respuesta_texto {
  font-family: var(--fuente-cuerpo);
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  font-weight: 300;
  color: var(--color-fg);
  opacity: 0.68;
  line-height: 1.75;
  padding-bottom: 20px;
}

/* Footer */
.footer_crema {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: var(--color-fg);
  padding: 28px 56px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer_cuerpo {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.footer_cta {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer_cta_texto {
  font-family: var(--fuente-cuerpo);
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  font-weight: 400;
  color: var(--color-terracota);
  line-height: 1.45;
}

.footer_cta_em {
  font-style: normal;
  font-weight: 800;
  font-family: var(--fuente-titulo);
}

.footer_cta_boton {
  display: inline-block;
  font-family: var(--fuente-cuerpo);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-terracota);
  border: 1.5px solid var(--color-terracota);
  border-radius: 50px;
  padding: 8px 22px;
  text-decoration: none;
  width: fit-content;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.footer_cta_boton:hover {
  background-color: var(--color-terracota);
  color: var(--color-fg);
}

.footer_columna {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer_col_titulo {
  font-family: var(--fuente-titulo);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-terracota);
  margin-bottom: 2px;
}

.footer_col_lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer_col_lista li {
  font-family: var(--fuente-cuerpo);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-terracota);
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.footer_col_lista li:hover {
  opacity: 1;
}

.footer_col_lista a {
  color: inherit;
  text-decoration: none;
}

.footer_barra_inferior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(118, 56, 24, 0.14);
  padding-top: 12px;
}

.footer_copyright,
.footer_creditos {
  font-family: var(--fuente-cuerpo);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-terracota);
  opacity: 0.5;
}

/* =============================================
   BOTÓN DE IDIOMA
   ============================================= */
.boton-idioma {
  background: transparent;
  border: 1px solid rgba(var(--ch-fg), 0.28);
  color: var(--color-fg);
  font-family: var(--fuente-cuerpo);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0.72;
  text-transform: uppercase;
  transition: opacity var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
  display: flex;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  .boton-idioma:hover {
    opacity: 1;
    background: var(--color-fg);
    color: var(--color-bg);
    border-color: transparent;
  }
}

.boton-idioma:active {
  transform: scale(0.96);
  transition-duration: 100ms;
}


/* =============================================
   ANIMACIONES DE ENTRADA
   ============================================= */
body.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
body.reveal-ready .reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
body.reveal-ready .reveal--delay-1 { transition-delay: 0.10s; }
body.reveal-ready .reveal--delay-2 { transition-delay: 0.20s; }
body.reveal-ready .reveal--delay-3 { transition-delay: 0.32s; }
body.reveal-ready .reveal--delay-4 { transition-delay: 0.44s; }
body.reveal-ready .reveal--delay-5 { transition-delay: 0.56s; }

/* =============================================
   HERO — REVEAL POR PALABRAS
   ============================================= */
.hero-palabra {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: heroWordIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroWordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   PROYECTOS — INDICADOR DE POSICIÓN
   ============================================= */
#proyectos.pantalla-seccion {
  position: relative;
}

.proyectos_nav_indicador {
  position: absolute;
  bottom: 26px;
  right: 38px;
  font-family: var(--fuente-titulo);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-fg);
  opacity: 0.45;
  letter-spacing: 0.12em;
  z-index: 10;
  pointer-events: none;
  user-select: none;
}

.proyectos_nav_rapido {
  position: absolute;
  top: 22px;
  right: 38px;
  z-index: 10;
  width: 38px;
  height: 38px;
  background: rgba(var(--ch-bg), 0.5);
  border: 1px solid rgba(var(--ch-fg), 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-crema);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.proyectos_nav_rapido:hover {
  border-color: rgba(var(--ch-fg), 0.65);
  background: rgba(var(--ch-bg), 0.78);
}

.proyectos_nav_rapido svg {
  width: 15px;
  height: 15px;
}

/* =============================================
   RESPONSIVIDAD — 768px (mobile / tablet)
   ============================================= */
@media (max-width: 768px) {

  /* — BASE — */
  :root {
    --altura-nav: 64px;
  }

  body {
    padding: 8px;
  }

  .contenedor-principal {
    height: calc(100vh - 16px);
    border-radius: 14px;
  }

  .pantalla-seccion {
    height: calc(100vh - 16px - var(--altura-nav));
    padding: 36px 0 28px;
  }

  #servicios.pantalla-seccion {
    padding: 10px 0 14px;
  }

  #contacto.pantalla-seccion {
    padding: 36px 0 28px;
  }

  /* — NAV — */
  .barra-navegacion {
    padding: 10px 20px;
  }

  .nav-logo a {
    width: 70px;
  }

  .logo-imagen {
    height: 44px;
    max-width: 70px;
  }

  .nav-enlaces {
    display: none;
  }

  .grupo-nav-derecha {
    gap: 16px;
  }

  /* — VIEWPORT HEIGHT — */
  .contenedor-principal {
    height: calc(100svh - 16px);
  }

  .pantalla-seccion {
    height: calc(100svh - 16px - var(--altura-nav));
  }

  /* — MENÚ DESPLEGABLE — */
  .menu-desplegable {
    padding: 24px 0;
    top: 64px;
  }

  .enlace-menu-desplegable {
    font-size: 1.3rem;
  }

  .lista-menu-desplegable {
    gap: 18px;
  }

  /* — HERO VIDEO — */
  .hero-titulo-wrap {
    bottom: 20px;
    left: 22px;
    max-width: calc(100% - 44px);
  }

  /* Tarjeta de proyecto destacado: más cuadrada y ubicada arriba del título */
  .hero-tarjeta-dr {
    left: 22px;
    right: auto;
    bottom: 148px;
    width: 168px;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
  }

  .hero-tarjeta-thumb {
    flex: 1 1 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .hero-tarjeta-info {
    flex: 1 1 auto;
  }

  .titulo-inicio {
    font-size: clamp(2rem, 7.5vw, 2.8rem);
    text-align: left;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  /* — ACERCA DE SLIDE 3: EL STUDIO — */
  .studio_ui {
    padding: 24px 20px 20px;
  }

  .studio_header {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .studio_titulo {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  /* El transform de .studio_hs crea un containing block que "atrapa" a los
     descendientes position:fixed (el panel), impidiendo que escapen al
     viewport. Se neutraliza aquí y se compensa el centrado con left/top. */
  .studio_hs {
    left: calc(var(--hs-x) - 6.5px);
    top: calc(var(--hs-y) - 6.5px);
    transform: none;
  }

  /* Reordena los 4 puntos interactivos en un recuadro (2x2) — solo en móvil.
     Se sobreescribe la posición inline (--hs-x/--hs-y) con !important. */
  .studio_hs:nth-of-type(1) { --hs-x: 22% !important; --hs-y: 24% !important; }
  .studio_hs:nth-of-type(2) { --hs-x: 78% !important; --hs-y: 24% !important; }
  .studio_hs:nth-of-type(3) { --hs-x: 22% !important; --hs-y: 76% !important; }
  .studio_hs:nth-of-type(4) { --hs-x: 78% !important; --hs-y: 76% !important; }

  /* Todos los .studio_hs comparten z-index, así que el que esté activo
     debe subir por encima de los demás puntos para que su panel los tape. */
  .studio_hs.activo {
    z-index: 20;
  }

  .studio_hs_panel {
    position: fixed;
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    bottom: 24px !important;
    transform: scale(0.96) !important;
    width: auto !important;
    height: auto !important;
    max-height: 55vh;
  }

  /* Variante "wide" (playlist de Spotify): necesita una altura explícita
     para que el iframe pueda estirarse y mostrar la lista de canciones
     en vez de quedar en la vista compacta de Spotify. */
  .studio_hs--wide .studio_hs_panel {
    height: min(64vh, 460px) !important;
    max-height: 64vh;
  }

  .studio_hs.activo .studio_hs_panel {
    transform: scale(1) !important;
  }

  .studio_hs.panel--izq .studio_hs_panel {
    right: 16px;
    left: 16px;
  }

  /* — ACERCA DE SLIDE 1: HERO FOTO — */
  /* El contenedor pasa a cubrir toda la sección para poder anclar el
     nombre arriba (debajo del nav) y la descripción abajo con flexbox,
     sin tocar el layout de escritorio. */
  .acercade1_zona_inferior {
    top: 0;
    padding: 20px 22px 48px;
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }

  .acercade1_nombre {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .acercade1_info {
    flex: 0 0 auto;
    align-items: flex-start;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .acercade1_desc {
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 100%;
  }

  .acercade1_dot {
    display: none;
  }

  /* — ACERCA DE SLIDE 2: CÓMO TRABAJO — */
  .acercade2_contenido {
    padding: 28px 20px 24px;
    gap: 20px;
  }

  .acercade2_titulo {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .acercade2_proceso {
    grid-template-columns: 1fr;
    border-radius: 12px;
    overflow-y: auto;
  }

  .acercade2_etapa {
    padding: 22px 22px 22px;
    border-right: none;
    border-bottom: 1px solid rgba(231, 225, 202, 0.10);
  }

  .acercade2_etapa:last-child {
    border-bottom: none;
  }

  .acercade2_num {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .acercade2_etapa_titulo {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .acercade2_ln--v1,
  .acercade2_ln--v2 {
    display: none;
  }

  /* — SERVICIOS SLIDE 1 — */
  .seccion_servicios {
    padding: 12px;
  }

  .contenedor_principal_servicios {
    flex-direction: column;
  }

  .servicios_card_texto {
    flex: 0 0 auto;
    padding: 28px 24px 20px;
    gap: 16px;
    order: 1;
  }

  .titulo_servicios {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .descripcion_servicios {
    font-size: 0.85rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .servicios_card_imagen {
    order: 2;
    flex: 1;
    min-height: 0;
  }

  .item_servicio_barra {
    display: none;
  }

  .barra_movil_servicios {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 4px;
    background-color: var(--color-terracota);
  }

  .barra_movil_nombre {
    font-family: var(--fuente-titulo);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-fg);
    letter-spacing: 0.02em;
    text-align: center;
    flex: 1;
  }

  .barra_movil_flecha {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-fg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
  }

  .barra_movil_flecha:active {
    opacity: 1;
  }

  .barra_movil_flecha svg {
    width: 20px;
    height: 20px;
  }

  /* — PROYECTOS — flecha "siguiente" junto a los botones de acción — */
  .proyecto_acciones {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .proyecto_flecha_movil {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-left: 14px;
    border: 1px solid rgba(231, 225, 202, 0.18);
    border-radius: 50%;
    background: rgba(231, 225, 202, 0.10);
    color: var(--color-crema);
    cursor: pointer;
    transition: opacity 0.2s ease;
  }

  .proyecto_flecha_movil:active {
    opacity: 0.7;
  }

  .proyecto_flecha_movil svg {
    width: 20px;
    height: 20px;
  }

  /* — PROYECTOS — */
  .proyecto_cuadricula {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .proyecto_celda--img:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .proyecto_celda--info {
    grid-column: 1;
    grid-row: 2;
    padding: 24px 22px 28px;
    align-items: flex-start;
  }

  .proyecto_celda--num,
  .proyecto_celda--img:last-child {
    display: none;
  }

  .proyecto_info_inner {
    max-width: 100%;
    gap: 0px;
  }

  .proyecto_slide_titulo {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .proyecto_slide_desc {
    font-size: 0.85rem;
    line-height: 1.65;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .proyectos_swipe_hint {
    display: flex;
    align-items: center;
    gap: 7px;
    position: absolute;
    bottom: 42%;
    right: 18px;
    left: auto;
    transform: none;
    z-index: 20;
    pointer-events: none;
    color: var(--color-fg);
    background: rgba(var(--ch-bg), 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--ch-fg), 0.18);
    border-radius: 50px;
    padding: 7px 14px 7px 10px;
    opacity: 1;
    transition: opacity 0.5s ease;
  }

  .proyectos_swipe_hint.oculto {
    opacity: 0.22;
  }

  .proyectos_swipe_hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    animation: swipeArrow 1.4s ease-in-out infinite;
  }

  .proyectos_swipe_hint span {
    font-family: var(--fuente-cuerpo);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
  }

  #servicios.pantalla-seccion {
    position: relative;
  }

  .servicios_swipe_hint {
    display: flex;
    align-items: center;
    gap: 7px;
    position: absolute;
    bottom: 20%;
    right: 18px;
    left: auto;
    transform: none;
    z-index: 20;
    pointer-events: none;
    color: var(--color-fg);
    background: rgba(var(--ch-bg), 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--ch-fg), 0.18);
    border-radius: 50px;
    padding: 7px 14px 7px 10px;
    opacity: 1;
    transition: opacity 0.5s ease;
  }

  .servicios_swipe_hint.oculto {
    opacity: 0.22;
  }

  .servicios_swipe_hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    animation: swipeArrow 1.4s ease-in-out infinite;
  }

  .servicios_swipe_hint span {
    font-family: var(--fuente-cuerpo);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
  }

  /* — CONTACTO — */
  .seccion_contacto {
    flex-direction: column;
    padding: 16px 16px 18px;
    gap: 14px;
    align-items: stretch;
    justify-content: flex-start;
  }

  .columna_redes_contacto {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    padding: 2px 0;
  }

  .icono_red_social {
    width: 44px;
    height: 44px;
  }

  .contenedor_formulario_contacto {
    padding: 18px 18px 16px;
    gap: 10px;
  }

  .titulo_contacto {
    font-size: clamp(1.15rem, 5vw, 1.4rem);
  }

  .subtitulo_contacto {
    font-size: 0.78rem;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .formulario_contacto {
    gap: 4px;
    margin-top: 4px;
  }

  .input_formulario {
    padding: 10px 4px;
    font-size: 0.88rem;
  }

  .textarea_formulario {
    min-height: 52px;
  }

  .boton_enviar_contacto {
    align-self: stretch;
    text-align: center;
    padding: 11px 24px;
    margin-top: 6px;
  }

  /* — FAQ + FOOTER — */
  #faq.pantalla-seccion {
    overflow-y: auto;
  }

  .faq_zona {
    padding: 20px 20px 16px;
    justify-content: flex-start;
  }

  .faq_titulo {
    font-size: clamp(1.6rem, 6vw, 2rem);
    margin-bottom: 16px;
    text-align: left;
  }

  .faq_pregunta {
    padding: 14px 0;
  }

  .faq_pregunta_texto {
    font-size: 0.88rem;
  }

  .faq_respuesta_texto {
    font-size: 0.8rem;
    padding-bottom: 14px;
  }

  .footer_crema {
    padding: 18px 16px 12px;
    gap: 14px;
  }

  .footer_cuerpo {
    flex-wrap: wrap;
    gap: 14px;
  }

  .footer_cta {
    flex: 0 0 100%;
    gap: 10px;
  }

  .footer_cta_texto {
    font-size: 0.9rem;
  }

  .footer_columna {
    flex: 1;
    min-width: 80px;
    gap: 6px;
  }

  .footer_col_titulo {
    font-size: 0.78rem;
  }

  .footer_col_lista li {
    font-size: 0.72rem;
  }

  .footer_barra_inferior {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .footer_copyright,
  .footer_creditos {
    font-size: 0.65rem;
  }

  .proyectos_nav_indicador {
    bottom: 16px;
    right: 20px;
    font-size: 0.72rem;
  }

  .proyectos_nav_rapido {
    top: 14px;
    right: 20px;
    width: 32px;
    height: 32px;
  }

}

/* =============================================
   RESPONSIVIDAD — ALTURA REDUCIDA (ventanas de escritorio bajas)
   Solo entra en juego si la ventana es angosta en alto, no en ancho
   (min-width evita pisar los ajustes de móvil de más abajo).
   ============================================= */
@media (max-height: 700px) and (min-width: 769px) {

  #contacto.pantalla-seccion {
    padding: 16px 0;
  }

  .seccion_contacto {
    padding: 8px 48px 12px 48px;
    gap: 32px;
  }

  .columna_redes_contacto {
    gap: 12px;
  }

  .icono_red_social {
    width: 48px;
    height: 48px;
  }

  .contenedor_formulario_contacto {
    padding: 18px 40px;
    gap: 8px;
  }

  .titulo_contacto {
    font-size: 1.5rem;
  }

  .formulario_contacto {
    gap: 4px;
    margin-top: 4px;
  }

  .input_formulario {
    padding: 5px 4px;
  }

  .textarea_formulario {
    min-height: 32px;
  }

  .boton_enviar_contacto {
    margin-top: 4px;
    padding: 8px 40px;
  }

  .formulario_mensaje {
    margin-top: 4px;
  }

  .faq_zona {
    padding: 16px 60px;
  }

  .faq_titulo {
    font-size: 1.8rem;
    margin-bottom: 14px;
  }

  .faq_pregunta {
    padding: 8px 0;
  }

}

/* =============================================
   RESPONSIVIDAD — 390px (iPhone SE y similares)
   ============================================= */
@media (max-width: 390px) {

  /* — BASE — */
  .pantalla-seccion {
    padding: 22px 0 18px;
  }

  .titulo-inicio {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }

  /* — SERVICIOS SLIDE 1 — */
  #servicios.pantalla-seccion {
    padding: 6px 0 10px;
  }

  .servicios_card_texto {
    padding: 18px 18px 14px;
    gap: 10px;
  }

  .titulo_servicios {
    font-size: clamp(1.6rem, 6.5vw, 2.1rem);
  }

  .descripcion_servicios {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  /* — PROYECTOS — */
  .proyecto_celda--info {
    padding: 18px 18px 22px;
  }

  .proyecto_slide_titulo {
    font-size: clamp(1.3rem, 5.5vw, 1.7rem);
  }

  .proyecto_slide_desc {
    font-size: 0.8rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  /* — CONTACTO — */
  .seccion_contacto {
    padding: 14px 14px 14px;
    gap: 10px;
  }

  .contenedor_formulario_contacto {
    padding: 14px 14px 12px;
    gap: 8px;
  }

  .titulo_contacto {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
  }

  .formulario_contacto {
    gap: 2px;
  }

  .input_formulario {
    padding: 8px 4px;
    font-size: 0.82rem;
  }

  .textarea_formulario {
    min-height: 44px;
  }

  .boton_enviar_contacto {
    padding: 10px 20px;
  }

  /* — FAQ + FOOTER — */
  .faq_zona {
    padding: 16px 16px 12px;
  }

  .faq_titulo {
    font-size: clamp(1.3rem, 5.5vw, 1.6rem);
    margin-bottom: 12px;
  }

  .footer_crema {
    padding: 14px 14px 10px;
    gap: 10px;
  }

  /* — HERO VIDEO — */
  .hero-titulo-wrap {
    bottom: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
  }

  .titulo-inicio {
    font-size: clamp(1.25rem, 4.2vw, 1.7rem);
    line-height: 1.2;
  }

  .hero-tarjeta-dr {
    left: 16px;
    bottom: 108px;
    width: 128px;
    gap: 8px;
    padding: 8px;
  }

  .hero-tarjeta-titulo {
    font-size: 0.82rem;
  }

}

/* =============================================
   BARRA DE PROGRESO DE SCROLL
   ============================================= */
.barra-progreso-scroll {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--color-terracota);
  z-index: 9999;
  pointer-events: none;
  transition: width 120ms linear;
  border-radius: 0 2px 2px 0;
}

/* =============================================
   OVERLAY DE GRANO / TEXTURA
   ============================================= */
.overlay-grano {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grano-shift 10s steps(10) infinite;
}

@keyframes grano-shift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-4%, -6%); }
  20%  { transform: translate(6%, 3%); }
  30%  { transform: translate(-5%, 11%); }
  40%  { transform: translate(4%, -9%); }
  50%  { transform: translate(-8%, 5%); }
  60%  { transform: translate(7%, -2%); }
  70%  { transform: translate(-3%, 8%); }
  80%  { transform: translate(5%, 14%); }
  90%  { transform: translate(-6%, -3%); }
  100% { transform: translate(0, 0); }
}

/* =============================================
   BOTÓN HAMBURGUESA — mejoras
   ============================================= */
.boton-menu-hamburguesa .linea-hamburguesa {
  transition: transform 320ms var(--ease-out), opacity 280ms var(--ease-out);
}

/* =============================================
   ITEM SERVICIO BARRA — :active
   ============================================= */
.item_servicio_barra {
  transition: background-color var(--t-base) var(--ease-out),
              font-weight var(--t-base) var(--ease-out);
}

.item_servicio_barra:active {
  background-color: #5a2a10;
}

/* =============================================
   EFECTOS HOVER EN INPUTS — línea animada
   ============================================= */
.campo_formulario {
  position: relative;
}

.input_formulario {
  transition: border-bottom-color var(--t-base) var(--ease-out);
}

/* =============================================
   REDUCED MOTION — respetar preferencias
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .overlay-grano { animation: none; }
  body.reveal-ready .reveal {
    transition: opacity 300ms linear;
    transform: none;
  }
  .hero-palabra {
    animation-duration: 0.2s;
  }
}

/* =============================================
   MODAL — PROYECTOS
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}

.modal-overlay.activo {
  opacity: 1;
  pointer-events: auto;
}

.modal-contenedor {
  position: relative;
  width: min(92vw, 860px);
  max-height: 88vh;
  background: #111111;
  border: 1px solid rgba(231, 225, 202, 0.13);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition: transform 380ms var(--ease-spring),
              opacity 300ms var(--ease-out);
}

.modal-overlay.activo .modal-contenedor {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-cerrar {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(231, 225, 202, 0.07);
  border: 1px solid rgba(231, 225, 202, 0.15);
  color: var(--color-fg);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .modal-cerrar:hover {
    background: rgba(231, 225, 202, 0.16);
    transform: scale(1.08);
  }
}

.modal-cerrar svg {
  width: 13px;
  height: 13px;
  pointer-events: none;
}

.modal-cuerpo {
  overflow-y: auto;
  padding: 52px 56px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(231, 225, 202, 0.14) transparent;
}

.modal-cuerpo::-webkit-scrollbar {
  width: 4px;
}
.modal-cuerpo::-webkit-scrollbar-track {
  background: transparent;
}
.modal-cuerpo::-webkit-scrollbar-thumb {
  background: rgba(231, 225, 202, 0.14);
  border-radius: 4px;
}

.modal-img-hero {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 36px;
  border: 1px solid rgba(231, 225, 202, 0.08);
}

.modal-etiqueta {
  font-family: var(--fuente-titulo);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-terracota);
  margin-bottom: 10px;
}

.modal-titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-fg);
  line-height: 1.1;
  margin-bottom: 16px;
}

.modal-desc {
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
  line-height: 1.85;
  color: rgba(231, 225, 202, 0.68);
  max-width: 660px;
  margin-bottom: 32px;
}

.modal-seccion {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(231, 225, 202, 0.09);
}

.modal-seccion-titulo {
  font-family: var(--fuente-titulo);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(231, 225, 202, 0.4);
  margin-bottom: 18px;
}

.modal-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.modal-galeria-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(231, 225, 202, 0.08);
}

/* Galería inmersiva — columna única, full width, scroll */
.modal-galeria--libre {
  display: flex;
  flex-direction: column;
  gap: 3px;
  grid-template-columns: unset;
}

.modal-galeria--libre .modal-galeria-img {
  width: 100%;
  height: auto;
  aspect-ratio: unset;
  object-fit: unset;
  border-radius: 0;
  border: none;
  display: block;
}

/* Cuando el modal muestra galería inmersiva, sin padding */
.modal-cuerpo--sin-padding {
  padding: 0;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tag {
  display: inline-block;
  font-family: var(--fuente-cuerpo);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(231, 225, 202, 0.07);
  border: 1px solid rgba(231, 225, 202, 0.13);
  color: rgba(231, 225, 202, 0.82);
}

.modal-proceso-pasos {
  display: flex;
  flex-direction: column;
}

.modal-proceso-paso {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(231, 225, 202, 0.07);
}

.modal-proceso-paso:last-child {
  border-bottom: none;
}

.modal-proceso-num {
  font-family: var(--fuente-titulo);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-fg);
  opacity: 0.08;
  line-height: 1;
  flex-shrink: 0;
  width: 50px;
  padding-top: 2px;
}

.modal-proceso-info h4 {
  font-family: var(--fuente-titulo);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-fg);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.modal-proceso-info p {
  font-size: 0.88rem;
  line-height: 1.78;
  color: rgba(231, 225, 202, 0.6);
}

/* Embed de Behance / plataformas externas */
.modal-embed-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 340px;
}

.modal-embed-wrap iframe {
  max-width: 100%;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .modal-cuerpo {
    padding: 32px 24px;
  }
  .modal-img-hero {
    height: 200px;
    margin-bottom: 24px;
  }
  .modal-titulo {
    font-size: 1.5rem;
  }
  .modal-galeria {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-proceso-paso {
    gap: 14px;
  }
  .modal-proceso-num {
    font-size: 1.4rem;
    width: 36px;
  }
}

/* =============================================
   MENÚ — BOTÓN NCODE
   ============================================= */
.boton-ncode-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* =============================================
   POPUP — NCODE DIGITAL
   ============================================= */
.ncode-overlay {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}

.ncode-overlay.activo {
  opacity: 1;
  pointer-events: auto;
}

.ncode-popup {
  position: relative;
  width: min(90vw, 520px);
  background: #111111;
  border: 1px solid rgba(231, 225, 202, 0.13);
  border-radius: 20px;
  padding: 48px 44px 40px;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 380ms var(--ease-spring),
              opacity 300ms var(--ease-out);
}

.ncode-overlay.activo .ncode-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ncode-popup-cerrar {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(231, 225, 202, 0.06);
  border: 1px solid rgba(231, 225, 202, 0.13);
  color: var(--color-fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .ncode-popup-cerrar:hover {
    background: rgba(231, 225, 202, 0.14);
    transform: scale(1.08);
  }
}

.ncode-popup-cerrar svg {
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.ncode-popup-etiqueta {
  font-family: var(--fuente-titulo);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-terracota);
  margin-bottom: 12px;
}

.ncode-popup-titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-fg);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.ncode-popup-desc {
  font-size: 0.9rem;
  line-height: 1.82;
  color: rgba(231, 225, 202, 0.7);
  margin-bottom: 0;
}

.ncode-popup-divider {
  height: 1px;
  background: rgba(231, 225, 202, 0.09);
  margin: 24px 0;
}

.ncode-popup-relacion {
  font-size: 0.85rem;
  line-height: 1.85;
  color: rgba(231, 225, 202, 0.52);
}

.ncode-popup-acciones {
  margin-top: 32px;
}

.ncode-popup-boton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fuente-titulo);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-fg);
  border: none;
  border-radius: 50px;
  padding: 12px 26px;
  cursor: pointer;
  transition: background var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .ncode-popup-boton:hover {
    background: var(--color-terracota);
    color: var(--color-fg);
    transform: translateY(-1px);
  }
}

@media (max-width: 480px) {
  .ncode-popup {
    padding: 36px 28px 32px;
  }
  .ncode-popup-titulo {
    font-size: 1.7rem;
  }
}
