/* ═══════════════════════════════════════════════════════════════════
   ANDAR — Design System & Global Styles
   ═══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'GT America';
  src: url('fonts/GT-America-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'GT America';
  src: url('fonts/GT-America-Thin.otf') format('opentype');
  font-weight: 275;
  font-style: normal;
}

@font-face {
  font-family: 'GT America';
  src: url('fonts/GT-America-Ultra-Light 2.otf') format('opentype');
  font-weight: 250;
  font-style: normal;
}

/* ── CSS Custom Properties ─────────────────────────────────────── */
:root {
  /* Brand Colors */
  --gold: #ffc629;
  --gold-light: #ffd55c;
  --gold-dark: #e5b225;
  --black: #0A0A0A;
  --black-soft: #141414;
  --white: #FFFFFF;
  --white-off: #F5F5F5;
  --grey: #9E9E9E;
  --grey-light: #E0E0E0;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 200ms var(--ease-smooth);
  --transition-base: 400ms var(--ease-smooth);
  --transition-slow: 600ms var(--ease-smooth);

  /* Layout */
  --max-width: 1440px;
  --header-height: 80px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  /* Disable native scroll — we use snap container */
  overflow: hidden;
  height: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Visually hidden class for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   SNAP SCROLL CONTAINER
   ═══════════════════════════════════════════════════════════════════ */

.snap-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.snap-section {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Suavizado de entrada */
  transition: background-color 0.8s var(--ease-smooth);
}

/* El contenido de cada sección aparecerá suavemente */
.snap-section>div,
.snap-section>header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
}

.snap-section.active>div,
.snap-section.active>header {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   FIXED HEADER (above everything)
   ═══════════════════════════════════════════════════════════════════ */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 198, 41, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled .logo-img {
  filter: brightness(0); /* Negro en cabecera scrolled amarilla */
}

.header.dark {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header.dark .logo-img {
  filter: brightness(1); /* Blanco en cabecera oscura */
}

.logo {
  display: flex;
  align-items: center;
  z-index: 101;
}

.logo-img {
  height: 42px; /* Tamaño reducido de 60px a 42px para elegancia */
  width: auto;
  display: block;
  /* Sin filtro de brillo negro por defecto para que se mantenga blanco (color original del SVG) */
  transition: filter 0.8s ease, transform var(--transition-fast);
  image-rendering: -webkit-optimize-contrast;
  /* Truco para mejorar la nitidez en algunos navegadores */
  image-rendering: crisp-edges;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-family: 'GT America', sans-serif;
  font-size: 16px;
  font-weight: 275;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  transition: all var(--transition-fast);
}

.nav-link--pill {
  background: var(--white);
  color: #000000;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.8rem;
  font-weight: 275;
}

.nav-link--pill:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nav-hamburger {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.33px;
  color: #FFFFFF;
  z-index: 101;
  text-transform: uppercase;
}



/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(255, 198, 41, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

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

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.mobile-nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.33px;
  color: #FFFFFF;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════
   BLOCK 1: HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */

.hero {
  background-color: #FFC629;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* --- Contenedor del video cinemático --- */
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1; /* Detrás del menú/título, delante de la base amarilla */
  opacity: 0;
  transform: scale(1.03); /* Suave efecto de alejamiento al cargar */
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  background-color: transparent; /* Siempre transparente para que el fondo sea amarillo sólido */
}

.hero-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Título de la hero y su contenedor - Oculto al inicio y durante el vídeo */
.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  /* Centrado vertical */
  justify-content: center;
  /* Centrado horizontal */
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 2;
  opacity: 0; /* Totalmente oculto al inicio */
  transform: scale(0.97) translateY(-10px);
  pointer-events: none;
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ajustes de z-index de otros elementos en Hero para que queden sobre el video */
.project-tabs--hero {
  position: relative;
  z-index: 2;
  transition: opacity 0.8s ease;
}

/* --- ESTADO PLAYING: Activado por JS --- */
.hero.hero--video-active .hero-video-wrapper {
  opacity: 1;
  transform: scale(1);
}

/* --- ESTADO INTRO FINALIZADA: Activado por JS tras terminar el vídeo --- */
.hero.hero--intro-played .hero-title {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Transiciones para la cabecera cuando el video está activo */
.header {
  transition: background var(--transition-base), box-shadow var(--transition-base), color 0.8s ease;
}

.header .nav-link,
.header .nav-hamburger {
  transition: color 0.8s ease, text-shadow 0.8s ease, background 0.8s ease;
}

/* Cambiar texto a blanco en el menú mientras corre el vídeo */
.hero.hero--video-active .header .nav-link:not(.nav-link--pill),
.hero.hero--video-active .header .nav-hamburger {
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Ajustar el botón tipo pastilla (Proyectos) para que contraste mejor en fondo oscuro */
.hero.hero--video-active .header .nav-link--pill {
  background: var(--white);
  color: var(--black);
  text-shadow: none;
}

/* Cambiar el logo a blanco mientras corre el vídeo */
.hero.hero--video-active .header .logo-img {
  filter: brightness(1);
}

/* Transición para las pestañas inferiores del hero */
.project-tabs--hero .project-tab {
  transition: color 0.8s ease, background 0.8s ease, text-shadow 0.8s ease;
}

/* Cambiar las pestañas de abajo a blanco con sombra durante el vídeo */
.hero.hero--video-active .project-tabs--hero .project-tab {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero.hero--video-active .project-tabs--hero .project-tab:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.hero-title {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Oculto al inicio */
  filter: blur(15px); /* Efecto wow de desenfoque inicial */
  transform: scale(0.95) translateY(30px); /* Efecto wow de escala y desplazamiento inicial */
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title-img {
  width: 100%;
  height: auto;
  max-width: 1200px;
  display: block;
}

.hero-title-img--desktop {
  display: block;
}

.hero-title-img--mobile {
  display: none;
}

@media (max-width: 1023px) {
  .hero-title-img--desktop {
    display: none;
  }

  .hero-title-img--mobile {
    display: block;
    max-width: 90vw;
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   BLOCK 2: PROJECTS
   ═══════════════════════════════════════════════════════════════════ */

.projects {
  background: var(--black);
  display: flex;
  flex-direction: column;
}

/* ── Project Tabs ──────────────────────────────────────────────── */
.project-tabs {
  display: flex;
  background: var(--gold);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}

.project-tabs::-webkit-scrollbar {
  display: none;
}

.project-tab {
  flex: 1;
  min-width: max-content;
  padding: var(--space-md) var(--space-lg);
  font-family: 'GT America', sans-serif;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #FFFFFF;
  position: relative;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.project-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.project-tab.active {
  font-weight: 400;
}

.project-tab.active::after {
  transform: translateX(-50%) scaleX(1);
}

.project-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.project-tabs--hero {
  border-top: none;
  background: transparent;
  /* Already in gold hero background */
}

.project-tabs--hero .project-tab::after {
  display: none;
  /* No active project in hero */
}

/* ── Projects Viewport ─────────────────────────────────────────── */
.projects-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.project-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-smooth);
  overflow: hidden;
}

.project-backdrop {
  display: none;
}

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

/* ── Asset Carousel (inner, per project) ───────────────────────── */
.asset-carousel {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.asset-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.asset-track .asset-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
}

.asset-track .asset-item.active {
  opacity: 1;
}

.asset-track .asset-item img,
.asset-track .asset-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Asset Arrows */
.asset-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  z-index: 10;
  transition: all var(--transition-fast);
  background: transparent;
  border-radius: 0;
}

.asset-arrow:hover {
  transform: translateY(-50%) scale(1.15);
  filter: drop-shadow(0 0 8px rgba(255, 198, 41, 0.4));
}

.asset-arrow img {
  width: 100%;
  height: 100%;
}

.asset-arrow-img--mobile {
  display: none;
}

.asset-arrow--prev {
  left: var(--space-sm);
}

.asset-arrow--next {
  right: var(--space-sm);
}

/* Asset Counter */
.asset-counter {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-md);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--white);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  z-index: 10;
  letter-spacing: 0.05em;
}

/* ── Slide Info ────────────────────────────────────────────────── */
.slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  flex-shrink: 0;
  z-index: 5;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  pointer-events: none;
}

.slide-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  pointer-events: auto;
}

.slide-tag {
  background: #B9B9B980;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 40px;
  padding: 8px 20px;
  font-family: 'GT America', sans-serif;
  font-size: 16px;
  font-weight: 275;
  line-height: 1;
  letter-spacing: -0.1em;
  color: var(--white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.slide-text-content {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: nowrap;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.desktop-hide {
  display: none !important;
}

.slide-title {
  font-family: 'GT America', sans-serif;
  font-size: 96px;
  font-weight: 250;
  letter-spacing: -0.1em;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin: 0;
  white-space: nowrap;
}

.slide-desc {
  font-family: 'GT America', sans-serif;
  font-size: clamp(12px, 0.95vw, 16px);
  font-weight: 250;
  color: var(--white);
  max-width: 1200px;
  line-height: 1.3;
  letter-spacing: 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* ── Project Progress (auto-carousel) ─────────────────────────── */
/* ── Asset Indicators (Segments) ─────────────────────────────── */
.asset-indicators {
  display: flex;
  width: 100%;
  gap: 10px;
  margin-top: 20px;
  flex-basis: 100%;
  pointer-events: auto;
}

.indicator-segment {
  flex: 1;
  height: 1px;
  background: var(--white);
  opacity: 0.3;
  transition: background var(--transition-base), transform var(--transition-base), opacity var(--transition-base);
}

.indicator-segment.active {
  background: var(--gold);
  opacity: 1;
  height: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   BLOCK 6: CONTACT & FOOTER
   ═══════════════════════════════════════════════════════════════════ */

/* ── Contact Section ───────────────────────────────────────────── */
.contact {
  background: #FFC629;
  color: var(--black);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 12px solid #FFC629;
}

.contact-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  height: 100%;
}

.contact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-main,
.contact-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Header & Form */
.contact-title {
  margin: 0;
  line-height: 1;
}

.contact-title-img {
  width: 100%;
  height: auto;
  max-width: 540px;
  display: block;
}

.contact-title-img--desktop {
  display: block;
}

.contact-title-img--mobile {
  display: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: var(--white);
  border: none;
  border-radius: 20px;
  font-family: 'GT America', sans-serif;
  font-size: 20px;
  font-weight: 275;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--black);
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B7B7B7;
}

.form-group textarea {
  resize: none;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  padding: 1.4rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-family: 'GT America', sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;

  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: 0.5rem;
}

.contact-footer {
  align-items: flex-end;
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-areas:
    "left right"
    "copyright .";
}

.contact-footer-left {
  grid-area: left;
}

.contact-footer-right {
  grid-area: right;
}

.contact-copyright {
  grid-area: copyright;
}

.contact-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  justify-self: start;
}

.contact-logo {
  height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left;
  margin-left: -8px;
  /* Slight adjustment for optical alignment */
}

.contact-address {
  font-family: 'GT America', sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.contact-copyright {
  font-family: 'GT America', sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-top: 0.8rem;
}

.contact-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-cta-icon svg {
  width: 56px;
  height: 56px;
  stroke: var(--black);
}

.contact-cta-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-cta-label {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--black);
}

.contact-cta-email {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-cta-email:hover {
  border-bottom-color: var(--black);
}

@media (max-width: 1024px) {

  .contact-main,
  .contact-footer {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .contact-footer {
    align-items: flex-start;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
  }

  .contact-grid {
    gap: var(--space-2xl);
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .contact-inner {
    padding: var(--space-2xl) var(--space-sm) var(--space-xl);
    display: block;
    overflow-y: auto;
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .contact-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 4rem;
    align-items: stretch;
    text-align: center;
    width: 100%;
  }

  .contact-form {
    margin-top: 2rem;
    width: 100%;
    gap: 1.2rem;
  }

  .contact-title {
    margin-bottom: 2.5rem;
  }

  .contact-title-img--desktop {
    display: none;
  }

  .contact-title-img--mobile {
    display: block;
    max-width: 90%;
    margin: 0 auto;
  }

  .contact-footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 0;
    align-items: flex-start;
  }

  .contact-brand {
    order: 1;
  }

  .contact-logo {
    height: 44px;
    margin-bottom: 0.5rem;
  }

  .contact-address {
    font-size: 15px;
  }

  .contact-cta {
    order: 2;
    margin-top: 0.5rem;
  }

  .contact-cta-icon svg {
    width: 44px;
    height: 44px;
  }

  .contact-cta-email {
    font-size: 1.2rem;
  }

  .contact-copyright {
    order: 3;
    margin-top: 2rem;
    padding-bottom: 1rem;
    font-size: 15px;
    text-align: center;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLL-BASED ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

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

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tablet ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contact-title {
    text-align: center;
  }

  .slide-info {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* ── Mobile ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .logo-img {
    height: 21px; /* Reducido el tamaño en un 50% para versión móvil */
  }

  html,
  body {
    overflow: visible;
    overflow-y: auto;
    height: auto;
  }

  .nav-link {
    display: none;
  }

  .nav-hamburger {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }

  .snap-container {
    height: auto;
    overflow-y: visible;
    scroll-snap-type: none;
    display: block;
  }

  .snap-section {
    height: auto;
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    overflow: visible;
    position: relative;
    padding-top: 0;
    opacity: 1 !important;
    transform: none !important;
  }

  .snap-section>div,
  .snap-section>header {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero {
    min-height: 70vh;
    /* Reduced ~30% from 100vh */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    padding-bottom: 0;
    flex: 0 0 auto;
  }

  .hero-title {
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 0.9;
  }

  .hero-title--bold {
    font-size: 6rem;
    font-weight: 800;
  }

  .hero-title--thin {
    font-size: 6rem;
    font-weight: 100;
  }

  .hero-title {
    font-size: clamp(3.5rem, 18vw, 6rem);
    text-wrap: balance;
    padding: 0 var(--space-md);
  }

  .projects {
    padding-bottom: 0;
    background: var(--black);
  }

  .project-tabs {
    display: none;
  }

  .projects-viewport {
    overflow: visible;
    height: auto;
    position: relative;
  }

  .project-panel {
    position: relative;
    opacity: 1 !important;
    pointer-events: auto;
    display: block;
    margin-bottom: 0;
  }

  .project-backdrop {
    display: none;
    /* No backdrop needed for the list view */
  }

  .project-tab::after {
    height: 2px;
    width: 60%;
  }

  .asset-carousel {
    width: 100%;
    height: auto;
    max-height: none;
    margin-top: 0;
    position: relative;
    background: var(--black);
  }

  .asset-track {
    display: block;
    height: auto;
  }

  .asset-track .asset-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .asset-track .asset-item:first-child {
    position: relative;
  }

  .asset-track .asset-item img,
  .asset-track .asset-item video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  /* For non-first items, we want them to cover the space established by the first one */
  .asset-track .asset-item:not(:first-child) img,
  .asset-track .asset-item:not(:first-child) video {
    height: 100%;
    object-fit: contain;
  }


  /* Text overlays the image — same as desktop but stacked vertically */
  .slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-lg) var(--space-md) var(--space-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
    z-index: 5;
    pointer-events: none;
    text-align: left;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
  }

  /* Mobile Info Popup */
  .desktop-hide {
    display: flex !important;
  }

  .mobile-info-btn {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
  }

  .mobile-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0;
    cursor: pointer;
    z-index: 20;
    display: none !important;
    pointer-events: auto;
  }

  /* Default mobile state (popup closed) */
  .slide-info:not(.popup-open) .slide-tags,
  .slide-info:not(.popup-open) .slide-desc {
    display: none;
  }

  /* Popup open state */
  .slide-info.popup-open {
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: flex-start;
    overflow-y: auto;
    padding: var(--space-xl) var(--space-md);
    pointer-events: auto;
    z-index: 50;
  }

  .slide-info.popup-open .mobile-close-btn {
    display: flex !important;
  }

  .slide-info.popup-open .mobile-info-btn {
    display: none !important;
  }

  .slide-info.popup-open .slide-text-content {
    gap: 15px;
  }

  .slide-tags {
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto; /* Push tags slightly down if there's extra space, or just let them flow */
  }

  .slide-tag {
    font-size: 11px;
    padding: 5px 14px;
  }

  .slide-text-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }

  .slide-title {
    font-size: clamp(2.8rem, 11vw, 4rem);
    font-weight: 200;
    color: var(--white);
    margin-bottom: 0;
    letter-spacing: -0.05em;
    white-space: normal;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  .slide-desc {
    font-size: 0.95rem;
    font-weight: 200;
    color: var(--white);
    line-height: 1.35;
    max-width: 100%;
    opacity: 0.85;
    transform: none;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  }

  .slide-desc br {
    display: none;
  }

  .asset-indicators {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: var(--space-md);
    padding: 0;
    pointer-events: auto;
  }

  .indicator-segment {
    height: 2px;
    background: var(--gold);
    opacity: 0.4;
    flex: 1;
    transition: background 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth);
  }

  .indicator-segment.active {
    background: var(--white);
    opacity: 1;
  }

  .asset-counter {
    display: none;
    /* Hide numeric counter to keep it strictly visual like the mockup */
  }



  /* Removed duplicate item rules to clean up */


  .asset-arrow {
    width: 44px;
    height: 44px;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
  }

  .asset-arrow img {
    width: 24px;
    height: 24px;
  }

  .asset-arrow-img--desktop {
    display: none;
  }

  .asset-arrow-img--mobile {
    display: block;
  }

  .asset-arrow--prev {
    left: var(--space-xs);
  }

  .asset-arrow--next {
    right: var(--space-xs);
  }


}

/* ── Small Mobile ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .header {
    padding: 0 var(--space-sm);
  }

  .hero-content {
    padding: 0 var(--space-sm);
    padding-bottom: var(--space-md);
  }

  .hero-title {
    font-size: 3rem;
  }

  .project-tab {
    font-size: 0.8rem;
    padding: var(--space-xs) var(--space-sm);
  }




}

/* ═══════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .snap-container {
    scroll-behavior: auto;
  }
}