@font-face {
  font-family: 'Yuji Boku';
  src: url('../fonts/yuji-boku/YujiBoku-Regular.woff2') format('woff2'),
       url('../fonts/yuji-boku/YujiBoku-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yuji Syuku';
  src: url('../fonts/yuji-syuku/YujiSyuku-Regular.woff2') format('woff2'),
       url('../fonts/yuji-syuku/YujiSyuku-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --font-display: 'Yuji Boku', 'Fraunces', Georgia, serif;
  --font-body: 'Yuji Syuku', 'Inter', -apple-system, sans-serif;
  --scene-height: 100vh;
  --total-scenes: 5;
  --total-videos: 4;

  /* ============================================
     SISTEMA DE RADIOS UNIFICADO
     Aplicado consistentemente en TODA la web para un look suave y coherente.
     ============================================ */
  --radius-sm: 12px;   /* Inputs, botones pequeños */
  --radius-md: 18px;   /* Cards estándar (proyectos, blog, prensa, premios) */
  --radius-lg: 24px;   /* Imágenes grandes, modales, formularios */
  --radius-xl: 32px;   /* Hero elements, contenedores principales */
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0a;
  color: #fff;
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ============================================
   MENÚ FIJO
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 108;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: background 0.4s ease, padding 0.4s ease,
              backdrop-filter 0.4s ease, border-color 0.4s ease,
              opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

/* En el hero (arriba del todo) el header se oculta para apreciar la foto;
   aparece al hacer scroll y se vuelve a ocultar al regresar arriba. */
.nav.nav-hidden {
  opacity: 0;
  transform: translateY(-14px);
  visibility: hidden;
}

/* Al hacer scroll: fondo translúcido para que el menú no se pierda
   sobre fondos de tono medio (se desactiva el blend para color real). */
.nav.scrolled {
  mix-blend-mode: normal;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-logo {
  pointer-events: auto;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
}

.nav-logo:hover { opacity: 0.7; }

.nav-logo img {
  /* Wordmark "MAAR" del logo nuevo, ajustado por altura */
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .nav-logo img { height: 24px; }
}

.nav-menu {
  display: flex;
  gap: 28px;
  pointer-events: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-item {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 400;
  padding: 4px 0;
  position: relative;
  transition: opacity 0.3s;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after { width: 100%; }

/* ============================================
   MENÚ FIJO MÓVIL (HAMBURGUESA & OVERLAY)
   ============================================ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
  pointer-events: auto;
  width: 32px;
  height: 24px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) {
  top: 0;
  width: 100%;
}

.nav-toggle span:nth-child(2) {
  top: 11px;
  width: 75%;
  right: 0;
  left: auto;
}

.nav-toggle span:nth-child(3) {
  top: 22px;
  width: 90%;
  right: 0;
  left: auto;
}

/* Animación a X */
.nav-toggle.open span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
  width: 100%;
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle.open span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
  width: 100%;
}

.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.96);
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}

.nav-mobile-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  letter-spacing: 1px;
}

.nav-mobile-item:hover,
.nav-mobile-item:active {
  transform: scale(1.05);
  opacity: 0.8;
}

/* ============================================
   STAGE CINEMATOGRÁFICO (sticky background)
   ============================================ */
.cinematic-section {
  position: relative;
  height: 750vh;
}

.stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0a0a0a;
}

.layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  transform: translate3d(0, 0, 0);
  will-change: opacity;
}

.layer.active {
  opacity: 1;
  pointer-events: auto;
}

.layer video,
.layer canvas {
  width: 100%;
  height: 100%;
  display: block;
  transform: translate3d(0, 0, 0);
}

.scene-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.scene-bg.with-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.7) 100%);
}

/* HOME */
.scene-home {
  background-image: url('../img/fachada-home.jpg');
  background-color: #1a1a1a;
}

.home-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5;
  text-align: center;
  padding: 0 40px;
}

.home-logo {
  max-width: min(400px, 60vw);
  height: auto;
  width: 100%;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.4));
}

/* El tagline del hero ahora vive en el indicador fijo .scroll-hint
   (abajo, junto al progress-track). */

/* PROYECTO 1 */
.scene-proyecto-1 {
  background-image: url('../img/proyecto-1.jpg');
  background-color: #3a2a1a;
}

/* PROYECTO 2 */
.scene-proyecto-2 {
  background-image: url('../img/proyecto-2.jpg');
  background-color: #2a3540;
}

/* FORMULARIO sobre Proyecto 2 */
.contact-form-container {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  pointer-events: none;
}

.hs-form-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  text-align: left;
}

/* Popup de contacto: sin caja con bordes — el modal ya es oscuro de
   pantalla completa; el selector compuesto gana a .modal-content (definido después) */
.modal-content.contact-modal-content {
  max-width: 620px;
  padding: 110px 30px 70px;
  text-align: center;
}

.contact-modal-content .contact-card-subtitle {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   CONTACTO — sección con foto de fondo
   (misma estructura que la escena de clientes)
   ============================================ */
.contact-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 60px;
  overflow: hidden;
}

.contact-scene-bg {
  background-image: url('../img/bgcontacto-impression.jpg');
  background-color: #1a1410;
}

.contact-card {
  position: relative;
  z-index: 5;
  background: rgba(15, 10, 8, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  padding: 52px 60px;
  max-width: 620px;
  width: 100%;
  text-align: center;
}

.contact-card-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 18px;
  color: #fff;
}

.contact-card-subtitle {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .contact-section {
    min-height: 60vh;
    padding: 90px 24px;
  }
  .contact-card {
    padding: 36px 26px;
  }
}

.contact-form {
  width: min(500px, 100%);
  background: rgba(15, 10, 8, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 44px 40px;
  color: #fff;
  pointer-events: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  border-radius: var(--radius-lg);
}

.form-label-top {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}

.form-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.field { margin-bottom: 22px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field-row .field { margin-bottom: 22px; }

.field-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  display: block;
  font-family: var(--font-body);
}

.field-label .required {
  color: rgba(255,255,255,0.35);
  margin-left: 2px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s;
  font-weight: 400;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: rgba(255,255,255,0.85);
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.6)' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}

.contact-form select option {
  background: #1a1410;
  color: #fff;
  padding: 12px;
}

.contact-form textarea {
  resize: none;
  min-height: 80px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 12px;
  line-height: 1.5;
  border-radius: var(--radius-sm);
}

.contact-form textarea:focus {
  border-color: rgba(255,255,255,0.6);
}

.form-error {
  font-size: 11px;
  color: rgba(255, 180, 180, 0.9);
  margin-bottom: 12px;
  min-height: 16px;
}

.send-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius-sm);
}

.send-btn:hover {
  background: #fff;
  color: #1a1410;
  border-color: #fff;
  padding-right: 40px;
}

.send-arrow { transition: transform 0.4s ease; }
.send-btn:hover .send-arrow { transform: translateX(6px); }

/* PROYECTO 1 — CONTENIDO */
.proyecto-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 5;
  padding: 80px 80px 100px;
  color: #fff;
}

.proyecto-content .meta-top {
  position: absolute;
  top: 100px;
  left: 80px;
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.proyecto-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 16px;
}

.proyecto-info {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}

.gallery-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 18px 32px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.4s ease;
  align-self: flex-start;
  border-radius: var(--radius-sm);
}

.gallery-button:hover {
  background: #fff;
  color: #1a1410;
  border-color: #fff;
  padding-right: 40px;
}

.gallery-button .arrow { transition: transform 0.4s ease; }
.gallery-button:hover .arrow { transform: translateX(6px); }

/* PREMIOS */
.scene-premios {
  background-image: url('../img/fachada-premios.jpg');
  background-color: #2a2520;
}

.premios-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 124px 80px 72px; /* top extra para despejar el menú/logo */
  max-width: 900px;
}

/* Tarjeta tipo "Platiquemos": fondo translúcido con blur para que el
   texto de los premios se lea bien sobre la foto. */
.premios-card {
  background: rgba(15, 10, 8, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
}

/* Listado de premios con mini-scroll interno cuando no caben todos */
.premios-list {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 14px;
}

.premios-list::-webkit-scrollbar { width: 4px; }
.premios-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); border-radius: 4px; }
.premios-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.35); border-radius: 4px; }
.premios-list { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.35) rgba(255,255,255,0.08); }

.section-label {
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.premios-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 36px;
  color: #fff;
}

.premio-item {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.premio-item:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Logo del premio: chip blanco para que los logos (casi todos oscuros
   o sobre fondo blanco) se lean sobre la tarjeta translúcida. */
.premio-logo {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
}

.premio-info { flex: 1; }

.premio-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 3px;
  line-height: 1.3;
}

.premio-org {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

.premio-year {
  font-family: var(--font-display);
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* CLIENTES (escena 2): "Quiénes han confiado en nosotros" */
.clientes-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 124px 60px 72px; /* top extra para despejar el menú/logo */
}

.clientes-card {
  background: rgba(15, 10, 8, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  padding: 44px 52px;
  max-width: 860px;
  width: 100%;
  text-align: center;
}

.clientes-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 44px;
  color: #fff;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 36px 40px;
  align-items: center;
}

/* Logos monocromos en blanco: varios vienen oscuros y no se leerían
   sobre la foto; el filtro los unifica en una sola tinta. */
.clientes-grid img {
  width: 100%;
  height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* NOSOTROS */
.scene-nosotros {
  background-image: url('../img/interior-nosotros.jpg');
  background-color: #c8b89a;
}

.nosotros-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 80px 120px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.nosotros-content .section-label {
  color: rgba(255,255,255,0.7);
}

.nosotros-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 60px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 40px;
  color: #fff;
}

.nosotros-text {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  max-width: 700px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* ============================================
   PROGRESS INDICATOR (solo en cinemato)
   ============================================ */
.progress-track {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  height: 200px;
  width: 1px;
  background: rgba(255,255,255,0.15);
  z-index: 90;
  transition: opacity 0.5s;
  pointer-events: none;
}

.progress-bar {
  width: 100%;
  background: rgba(255,255,255,0.8);
  height: 0%;
}

/* ============================================
   SCROLL HINT (tagline + flecha, solo en cinemato)
   ============================================ */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: rgba(255,255,255,0.55);
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
  pointer-events: none;
  transition: opacity 0.5s;
  white-space: nowrap;
}

.scroll-hint-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: 0.03em;
}

.scroll-hint-arrow {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.45));
  animation: scroll-hint-bounce 2s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(0);   opacity: 0.55; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ============================================
   SECCIONES POST-CINEMATOGRÁFICAS
   ============================================ */
.extra-sections {
  position: relative;
  z-index: 50;
  background: #f4ede0;
  color: #1a1410;
}

.section-block {
  padding: 120px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-block-header {
  margin-bottom: 80px;
  text-align: center;
}

.section-block-label {
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(26,20,16,0.5);
  margin-bottom: 20px;
}

.section-block-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 60px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #1a1410;
  margin-bottom: 20px;
}

.section-block-subtitle {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 300;
  font-style: italic;
  color: rgba(26,20,16,0.7);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================
   ANIMACIONES DE APARICIÓN (al scrollear)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: cada item del grid aparece con un pequeño delay */
.fade-in:nth-child(2) { transition-delay: 0.05s; }
.fade-in:nth-child(3) { transition-delay: 0.10s; }
.fade-in:nth-child(4) { transition-delay: 0.15s; }
.fade-in:nth-child(5) { transition-delay: 0.20s; }
.fade-in:nth-child(6) { transition-delay: 0.25s; }
.fade-in:nth-child(7) { transition-delay: 0.30s; }
.fade-in:nth-child(8) { transition-delay: 0.35s; }

/* EQUIPO */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-member { text-align: center; }

.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background-size: cover;            /* imágenes 600x800 (3:4) encajan sin deformar */
  background-position: center;
  background-color: #d4c8b0;
  margin-bottom: 20px;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.team-member:hover .team-photo {
  transform: translateY(-6px);
}

.team-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: #1a1410;
  margin-bottom: 4px;
  line-height: 1.3;
}

.team-role {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(26,20,16,0.6);
}

/* PRENSA */
.press-bg {
  background: #1a1410;
  color: #f4ede0;
}

/* PROYECTOS (sección entre Equipo y Prensa) */
.projects-bg {
  background: #ebe3d2;
}

.projects-bg .section-block-label {
  color: rgba(26,20,16,0.5);
}

.projects-bg .section-block-title {
  color: #1a1410;
}

.projects-bg .section-block-subtitle {
  color: rgba(26,20,16,0.7);
}

.press-bg .section-block-label {
  color: rgba(244,237,224,0.5);
}

.press-bg .section-block-title {
  color: #f4ede0;
}

.press-bg .section-block-subtitle {
  color: rgba(244,237,224,0.7);
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ============================================================
   PRENSA — GRID tipo proyectos con "Ver más"
   ============================================================ */
.press-block {
  background: #1a1410;
  color: #f4ede0;
}
.press-block-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 60px 110px;
}
.press-block .section-block-title { color: #f4ede0; }

.press-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas, como proyectos */
  gap: 20px;
}
@media (max-width: 1024px) and (min-width: 769px) {
  .press-tiles { grid-template-columns: repeat(2, 1fr); }
}

.press-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 260px;
  padding: 34px 30px;
  background: rgba(244, 237, 224, 0.035);
  border: 1px solid rgba(244, 237, 224, 0.14);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1),
              border-color 0.4s ease, background 0.4s ease;
}
.press-tile:hover {
  transform: translateY(-6px);
  background: rgba(244, 237, 224, 0.07);
  border-color: rgba(244, 237, 224, 0.34);
}
.press-tiles.is-collapsed { display: none; }

.press-tile-logo-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}
.press-tile-logo {
  max-height: 50px;
  max-width: 210px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  /* Normaliza los logos a blanco sobre el fondo oscuro */
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.press-tile-medium {
  font-size: 17px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(244, 237, 224, 0.9);
}
.press-tile-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.4;
  color: rgba(244, 237, 224, 0.92);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.press-tile-arrow {
  font-size: 18px;
  margin-top: 22px;
  opacity: 0.55;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.press-tile:hover .press-tile-arrow {
  opacity: 1;
  transform: translateX(6px);
}

.press-more-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0 50px;
}

@media (max-width: 768px) {
  .press-block-inner { padding: 80px 24px; }
  .press-block .section-block-header { margin-bottom: 38px; }
  .press-tiles { grid-template-columns: 1fr; gap: 16px; }
  .press-tile { min-height: 0; padding: 28px 24px; }
  .press-tile-logo { max-height: 42px; }
  .press-more-wrap { margin-top: 36px; }
}

/* ============================================================
   PRENSA — FADE IN/OUT (menciones editoriales a pantalla completa)
   ============================================================ */
.press-fade {
  position: relative;
  height: 250vh; /* 3 menciones con fade */
  background: #1a1410;
  color: #f4ede0;
}

.press-fade-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Caja café un tono más claro que el fondo: delimita el área de las
   menciones y hace evidente que hay más contenido al seguir scrolleando. */
.press-fade-sticky::before {
  content: '';
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, 90vw);
  /* El término 108vh-460px equivale a "el borde superior de la caja
     (centrada en 54%) nunca sube de ~230px", para no encimar el título. */
  height: min(520px, calc(108vh - 460px));
  background: #2e241a;
  border: 1px solid rgba(244, 237, 224, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.press-fade-header {
  position: absolute;
  top: 120px;
  left: 80px;
  z-index: 4;
  pointer-events: none;
}
.press-fade-header .section-block-label {
  color: rgba(244, 237, 224, 0.5);
  margin-bottom: 16px;
  text-align: left;
}
.press-fade-header .section-block-title {
  color: #f4ede0;
  margin-bottom: 0;
  text-align: left;
  font-size: clamp(28px, 3.4vw, 46px);
}

.press-fade-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.press-fade-item {
  position: absolute;
  top: 54%; /* alineado con la caja de fondo (deja aire al título) */
  left: 50%;
  width: min(960px, 88vw);
  transform: translate(-50%, -50%);
  text-align: center;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.press-fade-item.is-active { pointer-events: auto; }

.press-fade-logo {
  display: block;
  max-height: 42px;
  max-width: 190px;
  width: auto;
  height: auto;
  margin: 0 auto 30px;
  object-fit: contain;
  /* Normaliza los logos a blanco sobre el fondo oscuro */
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.press-fade-medium {
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.55);
  margin-bottom: 30px;
}

.press-fade-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3.5vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #f7f1e6;
  margin: 0 auto 34px;
  max-width: 22ch;
}

.press-fade-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.7);
  transition: gap 0.35s ease, color 0.35s ease;
}
.press-fade-item:hover .press-fade-cta { color: #fff; gap: 18px; }
.press-fade-arrow { transition: transform 0.35s ease; }
.press-fade-item:hover .press-fade-arrow { transform: translateX(4px); }

.press-fade-progress {
  position: absolute;
  bottom: 64px; /* despejado del .scroll-hint fijo abajo */
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(244, 237, 224, 0.5);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.press-fade-sep { margin: 0 10px; opacity: 0.5; }

@media (max-width: 768px) {
  .press-fade { height: 420vh; }
  .press-fade-sticky::before {
    top: 56%;
    width: 92vw;
    height: min(440px, 56vh);
  }
  .press-fade-item { top: 56%; }
  .press-fade-header { top: 92px; left: 24px; right: 24px; }
  .press-fade-header .section-block-title { font-size: clamp(24px, 6vw, 32px); }
  .press-fade-item { width: 90vw; padding: 0 6px; }
  .press-fade-quote { font-size: clamp(20px, 5.4vw, 30px); max-width: 18ch; margin-bottom: 26px; }
  .press-fade-medium { margin-bottom: 18px; letter-spacing: 4px; }
  .press-fade-logo { max-height: 28px; max-width: 160px; margin-bottom: 24px; }
  .press-fade-progress { bottom: 56px; }
}

/* ============================================================
   PRENSA — SCROLL HORIZONTAL CON SCRUBBING INMERSIVO (obsoleto)
   ============================================================ */
.press-horizontal {
  position: relative;
  height: 500vh;
  background: #1a1410;
  color: #f4ede0;
}

.press-sticky-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.press-stage {
  display: flex;
  align-items: center;
  gap: 80px;
  height: 100%;
  will-change: transform;
}

.press-header {
  flex-shrink: 0;
  padding-left: 80px;
  width: 480px;
}

.press-header .section-block-label {
  color: rgba(244,237,224,0.5);
  margin-bottom: 20px;
}

.press-header .section-block-title {
  color: #f4ede0;
  margin-bottom: 0;
}

.press-track {
  display: flex;
  gap: 24px;
  height: 75vh;
  align-items: center;
  flex-shrink: 0;
  padding-right: 80px;
  position: relative;
}

/* ============================================
   EFECTO "AGUA DEL RÍO"
   ============================================ */
.press-water {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(220, 240, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(180, 220, 255, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 70%, rgba(200, 230, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 40% 20%, rgba(240, 250, 255, 0.07) 0%, transparent 55%);
  background-size: 400% 100%, 350% 100%, 450% 100%, 380% 100%;
  background-position: 0% 50%, 0% 50%, 0% 50%, 0% 50%;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.press-water::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 20% at 30% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 25% 15% at 70% 60%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
  background-size: 600% 100%, 500% 100%;
  animation: waterRipple 12s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes waterRipple {
  0%, 100% {
    background-position: 0% 50%, 100% 50%;
    opacity: 0.6;
  }
  50% {
    background-position: 100% 50%, 0% 50%;
    opacity: 0.9;
  }
}

.press-cluster {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  flex-shrink: 0;
}

/* Tarjeta editorial con textura (crema material sobre fondo oscuro) */
.press-cluster .press-card {
  width: 340px;
  flex: 1;
  min-height: 0;
  padding: 36px 32px;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1),
              box-shadow 0.5s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  text-decoration: none;
  color: #1a1410;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(158deg, #f8f2e7 0%, #efe3d1 54%, #e6d6bd 100%);
  border: 1px solid rgba(26, 20, 16, 0.10);
  border-top: 2px solid rgba(176, 122, 82, 0.55); /* acento cálido (nogal/terracota) */
  border-radius: var(--radius-md);
  box-shadow:
    0 28px 52px rgba(0, 0, 0, 0.45),
    0 8px 18px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -26px 46px rgba(120, 84, 46, 0.07);
}

/* Grano sutil tipo concreto/papel para dar textura */
.press-cluster .press-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='100'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.85'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
  opacity: 0.14;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.press-cluster .press-card:hover {
  transform: translateY(-10px);
  z-index: 10;
  box-shadow:
    0 44px 72px rgba(0, 0, 0, 0.55),
    0 14px 26px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -26px 46px rgba(120, 84, 46, 0.07);
}

.press-card:hover .press-logo {
  opacity: 1;
}

.press-hint {
  position: absolute;
  bottom: 40px;
  right: 80px;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(244,237,224,0.5);
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.press-hint-arrow {
  animation: hintPulse 1.8s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(6px); }
}

.press-logo-wrap {
  height: 38px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 150px;
}

.press-logo {
  max-height: 30px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  /* Normaliza todos los logos (claros y oscuros) a negro sobre la tarjeta crema */
  filter: brightness(0);
  opacity: 0.82;
  transition: opacity 0.3s ease;
}

.press-medium-text {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  text-align: left;
  color: rgba(26, 20, 16, 0.85);
}

.press-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  text-align: left;
  color: rgba(26, 20, 16, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.press-arrow {
  font-size: 18px;
  color: #1a1410;
  opacity: 0.55;
  margin-top: 22px;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.press-card:hover .press-arrow {
  opacity: 1;
  transform: translateX(6px);
}

/* ============================================================
   BLOG — LOOP HORIZONTAL INFINITO
   ============================================================ */
.blog-section {
  background: #f4ede0;
  padding: 120px 0;
  overflow: hidden;
}

.blog-layout {
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 60vh;
}

.blog-header {
  flex-shrink: 0;
  width: 380px;
  padding-left: 80px;
}

.blog-header .section-block-label {
  color: rgba(26,20,16,0.5);
  margin-bottom: 20px;
  text-align: left;
}

.blog-header .section-block-title {
  color: #1a1410;
  margin-bottom: 24px;
  text-align: left;
}

.blog-header-subtitle {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  font-style: italic;
  color: rgba(26,20,16,0.7);
  line-height: 1.5;
  margin-bottom: 28px;
}

.blog-loop-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 80px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 80px), transparent 100%);
}

.blog-loop {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: blogLoop 130s linear infinite;
}

.blog-loop:hover {
  animation-play-state: paused;
}

@keyframes blogLoop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.blog-item {
  width: 280px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-item:hover {
  transform: translateY(-6px);
  z-index: 5;
}

.blog-image {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-color: #2a1f15;
  overflow: hidden;
  transition: box-shadow 0.5s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  border-radius: var(--radius-md);
}

.blog-item:hover .blog-image {
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.blog-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.blog-item:hover .blog-overlay { opacity: 1; }

.blog-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: #1a1410;
  padding: 0 4px;
  max-height: 60px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.blog-cta {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
}

.blog-loop-hint {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(26,20,16,0.4);
}

/* FOOTER */
.closing-footer {
  background: #0a0a0a;
  color: #f4ede0;
  padding: 100px 60px 80px;
  text-align: center;
}

.closing-logo {
  max-width: 190px;
  width: 38vw;
  margin: 0 auto 32px;
  opacity: 0.8;
}

.closing-address {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(244,237,224,0.6);
  line-height: 1.6;
  margin-bottom: 32px;
}

.closing-contact {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.closing-contact a {
  color: rgba(244,237,224,0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.closing-contact a:hover { color: #fff; }

/* ============================================
   LOADER
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-logo-img {
  max-width: 190px;
  width: 46vw;
  margin-bottom: 36px;
  opacity: 0.9;
}

.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.loader-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.8);
  transition: width 0.3s ease;
}

.loader-text {
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

/* ============================================
   MODALES
   ============================================ */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: #f4ede0;
  z-index: 300;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-modal-close {
  position: fixed;
  top: 24px;
  right: 40px;
  background: #f4ede0;
  border: 1px solid rgba(26,20,16,0.3);
  color: #1a1410;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 301;
  transition: all 0.3s;
}

.gallery-modal-close:hover {
  background: #1a1410;
  color: #f4ede0;
}

.gallery-modal-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 100px 60px 80px;
}

.gallery-modal-header { margin-bottom: 80px; }

.gallery-modal-label {
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(26,20,16,0.5);
  margin-bottom: 20px;
}

.gallery-modal-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 60px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #1a1410;
}

/* Masonry con CSS grid (row-spans): alturas variables pero lee de izq → der.
   Los size-* son el alto provisional mientras carga la portada; al cargar,
   main.js ajusta el span a la proporción real de la imagen (applyMosaicSpan). */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 18px;
  gap: 20px;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #2a1f15;
  grid-row: span 10; /* alto por defecto (md) */
  transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1), z-index 0s linear 0.5s;
  border-radius: var(--radius-md);
}

.mosaic-item.size-lg   { grid-row: span 12; }
.mosaic-item.size-md   { grid-row: span 10; }
.mosaic-item.size-tall { grid-row: span 14; }
.mosaic-item.size-wide { grid-row: span 8; }
.mosaic-item.size-sm   { grid-row: span 7; }

.mosaic-item:hover {
  transform: scale(1.03);
  z-index: 10;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1), z-index 0s linear 0s;
}

.mosaic-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #3a2a1a;
  transition: transform 1.2s cubic-bezier(0.2, 0, 0, 1);
}

.mosaic-item:hover .mosaic-image { transform: scale(1.08); }

.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.4s;
}

.mosaic-item:hover .mosaic-overlay { opacity: 1; }

.mosaic-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 4px;
}

.mosaic-meta {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* Botón "Ver más" del mosaico: solo se usa en móvil */
.mosaic-more-wrap {
  display: none;
  justify-content: center;
  margin-top: 28px;
}

/* Modal de detalle proyecto */
.project-modal {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 400;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* inercia de scroll en iOS Safari */
  overscroll-behavior: contain;      /* evita que el scroll se propague al fondo */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.project-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-close {
  position: fixed;
  top: 24px;
  right: 40px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 401;
  transition: all 0.3s;
}

.modal-close:hover { background: #fff; color: #000; }

.modal-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 40px;
}

.modal-hero {
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position: center;
  margin-bottom: 60px;
  background-color: #2a1f15;
  border-radius: var(--radius-lg);
}

.modal-meta {
  display: flex;
  gap: 60px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.meta-block { min-width: 120px; }

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 40px;
  color: #fff;
}

.modal-description {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin-bottom: 60px;
}

.contact-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 18px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .press-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .press-cluster .press-card { width: 320px; padding: 34px 30px; }
  .press-header { width: 400px; }
  .blog-header { width: 320px; padding-left: 40px; }
  .blog-item { width: 240px; }
  .blog-image { height: 280px; }
}

@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .proyecto-content { padding: 60px 32px 100px; }
  .proyecto-content .meta-top { top: 90px; left: 32px; }
  .premios-content { padding: 104px 20px 48px; }
  .premios-card { padding: 26px 20px; }
  .clientes-content { padding: 104px 20px 48px; }
  .clientes-card { padding: 30px 24px; }
  .clientes-title { margin-bottom: 30px; }
  .clientes-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
  .clientes-grid img { height: 40px; }
  .premio-item { gap: 14px; }
  .premio-logo { width: 44px; height: 44px; border-radius: 8px; padding: 4px; }
  .nosotros-content { padding: 80px 32px 120px; }
  .progress-track { right: 16px; }
  .scroll-hint { bottom: 10px; }
  .section-block { padding: 80px 24px; }
  .section-block-header { margin-bottom: 50px; }

  /* Títulos: reemplazar clamp fijo por uno adaptado a móvil */
  .section-block-title   { font-size: clamp(28px, 8vw, 40px); }
  .gallery-modal-title   { font-size: clamp(28px, 8vw, 40px); }
  .nosotros-title        { font-size: clamp(28px, 8vw, 40px); }
  .premios-title         { font-size: clamp(24px, 7vw, 36px); }
  .modal-title           { font-size: clamp(26px, 7vw, 36px); }
  .modal-description     { font-size: 16px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .press-grid { grid-template-columns: 1fr; gap: 16px; }
  .press-card { padding: 24px 20px; }
  
  /* Prensa en móvil: mismo comportamiento que desktop
     (scroll vertical normal que desplaza la sección horizontalmente). */
  .press-horizontal { height: 420vh; }
  .press-sticky-wrap {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  .press-stage {
    padding: 0 24px;
    gap: 24px;
  }
  .press-header {
    padding-left: 0;
    width: 260px;
    flex-shrink: 0;
  }
  .press-track {
    gap: 16px;
    padding-right: 24px;
    height: 68vh;
    flex-shrink: 0;
  }
  .press-cluster {
    gap: 14px;
    flex-direction: column;
    justify-content: center;
  }
  .press-cluster .press-card {
    width: 268px;
    padding: 28px 26px;
  }
  .press-cluster .press-card .press-title { font-size: 16px; }
  .press-water { display: none; }
  .press-hint { display: none; }

  .blog-section { padding: 80px 0; }
  .blog-layout {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }
  .blog-header {
    width: 100%;
    padding: 0 24px;
  }
  .blog-loop-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    padding-bottom: 20px;
  }
  .blog-loop {
    animation: none !important;
    padding: 0 24px;
    display: flex;
    gap: 20px;
  }
  .blog-item { width: 220px; }
  .blog-image { height: 250px; }
  .blog-item:hover { transform: none; }
  .blog-overlay { opacity: 1; padding: 14px; }
  .blog-title { font-size: 12px; max-height: 50px; -webkit-line-clamp: 3; }
  
  .closing-footer { padding: 60px 24px 50px; }
  .closing-contact { gap: 20px; }
  .gallery-modal-content { padding: 100px 24px 40px; }
  
  /* Mosaico compacto en móvil: cuadros más bajos para reducir el scroll */
  .mosaic { grid-template-columns: repeat(2, 1fr); gap: 10px; grid-auto-rows: 8px; }
  .mosaic-item.size-lg   { grid-row: span 17; }
  .mosaic-item.size-md   { grid-row: span 15; }
  .mosaic-item.size-tall { grid-row: span 18; }
  .mosaic-item.size-wide { grid-row: span 14; }
  .mosaic-item.size-sm   { grid-row: span 13; }
  .mosaic-overlay { padding: 16px; opacity: 1; }
  .mosaic-name { font-size: 18px !important; }

  /* "Ver más": mostrar el botón y colapsar los proyectos extra */
  .mosaic-more-wrap { display: flex; }
  .mosaic-more-wrap .gallery-button {
    background: transparent;
    border-color: rgba(26,20,16,0.35);
    color: #1a1410;
  }
  .mosaic-more-wrap .gallery-button:hover {
    background: #1a1410;
    border-color: #1a1410;
    color: #ebe3d2;
  }
  .mosaic.is-collapsed .mosaic-extra { display: none; }

  .contact-form-container { 
    padding: 60px 16px 100px;
    align-items: flex-end;
  }
  .contact-form { 
    padding: 28px 22px;
    width: 100%;
  }
  .form-title { font-size: 28px; margin-bottom: 20px; }
  .form-label-top { margin-bottom: 10px; }
  .field { margin-bottom: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 16px; }
  .contact-form textarea { min-height: 60px; }
  .send-btn { padding: 14px 24px; font-size: 10px; }

  .project-modal .modal-content {
    padding: 80px 20px 40px;
  }
  .modal-close {
    top: 16px;
    right: 16px;
  }
  .modal-meta {
    gap: 24px;
  }
  .project-modal .modal-content.contact-modal-content {
    padding: 90px 20px 40px;
  }
}

@media (max-width: 480px) {
  /* Mantener 2 columnas también en pantallas muy pequeñas para acortar el scroll */
  .mosaic { grid-template-columns: repeat(2, 1fr); gap: 8px; grid-auto-rows: 7px; }
  .mosaic-name { font-size: 15px !important; }
  .mosaic-meta { font-size: 9px; letter-spacing: 2px; }
  .mosaic-overlay { padding: 12px; }

  /* Títulos en pantallas muy pequeñas (<480px) */
  .section-block-title   { font-size: 26px; }
  .gallery-modal-title   { font-size: 26px; }
  .nosotros-title        { font-size: 24px; }
  .premios-title         { font-size: 22px; }
  .clientes-title        { font-size: 22px; }
  .clientes-grid         { grid-template-columns: repeat(2, 1fr); }
  .clientes-grid img     { height: 34px; }
  .modal-title           { font-size: 24px; }
  .premio-name           { font-size: 14px; }
  .premio-logo           { width: 38px; height: 38px; }
  .nosotros-text         { font-size: 15px; }
  .nav-mobile-item       { font-size: 22px; }
  .nav-mobile-menu       { gap: 20px; }
}

/* ============================================
   LIGHTBOX DE GALERÍA (foto grande sobre el modal de proyecto)
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.95);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: #fff;
  color: #0a0a0a;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 52px;
  line-height: 1;
  padding: 20px 16px;
  cursor: pointer;
  transition: color 0.3s;
  user-select: none;
}

.lightbox-arrow:hover { color: #fff; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  letter-spacing: 0.12em;
}

@media (max-width: 768px) {
  .lightbox-img { max-width: 96vw; }
  .lightbox-arrow { font-size: 40px; padding: 16px 10px; }
  .lightbox-close { top: 14px; right: 14px; }
}
