/* ============================================
   BYMIO PORTFOLIO — MAIN CSS
   Brutalista Moderno | Bricolage Grotesque
   ============================================ */

/* ── CUSTOM PROPERTIES ─────────────────────── */
:root {
  --red-main:    #DD5146;
  --red-deep:    #D32427;
  --cream-warm:  #FFECD8;
  --cream-light: #FFF8EF;
  --dark:        #2B2622;
  --white:       #FFFFFF;

  --font-primary: 'Bricolage Grotesque', sans-serif;

  --fs-display: clamp(4rem, 10vw, 10rem);
  --fs-hero:    clamp(2.5rem, 6vw, 6rem);
  --fs-h1:      clamp(2rem, 4vw, 4rem);
  --fs-h2:      clamp(1.5rem, 3vw, 3rem);
  --fs-h3:      clamp(1.1rem, 2vw, 1.75rem);
  --fs-body:    clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small:   0.8rem;
  --fs-label:   0.7rem;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-2xl: 12rem;

  --radius-sm: 2px;
  --radius-md: 4px;

  --transition-fast:   0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow:   0.8s cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--cream-light);
  color: var(--dark);
  line-height: 1.5;
  cursor: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ── CUSTOM CURSOR ──────────────────────────── */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--red-deep);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.2s ease;
  mix-blend-mode: multiply;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--dark);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.3s ease,
              height 0.3s ease,
              border-color 0.2s ease;
  mix-blend-mode: multiply;
}

.cursor.is-hovering {
  transform: translate(-50%, -50%) scale(0);
}

.cursor-follower.is-hovering {
  width: 64px;
  height: 64px;
  border-color: var(--red-deep);
  background: rgba(211, 36, 39, 0.08);
}

/* ── PAGE TRANSITION OVERLAY ────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9000;
  transform: translateY(100%);
  pointer-events: none;
}

/* ── NAVIGATION ─────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  background: var(--dark);
  border-bottom: 1px solid rgba(255,248,239,0.06);
  transition: background var(--transition-smooth);
}

/* Siempre oscuro — también al hacer scroll */
.site-nav.scrolled {
  background: rgba(43, 38, 34, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,248,239,0.08);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--transition-fast);
}

.site-nav.scrolled .nav-logo {
  color: var(--cream-light);
}

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

.nav-links a {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: color var(--transition-fast);
}

.site-nav.scrolled .nav-links a {
  color: var(--cream-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--red-deep);
  transition: width var(--transition-smooth);
}

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

.nav-socials {
  display: flex;
  gap: var(--space-sm);
}

.nav-socials a {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.6;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.site-nav.scrolled .nav-socials a {
  color: rgba(255,248,239,0.6);
}

.nav-socials a:hover {
  opacity: 1;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--white);
  transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

.site-nav.scrolled .nav-toggle span {
  background: var(--cream-light);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ──────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--cream-light);
  display: block;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(255,248,239,0.1);
  transition: color var(--transition-fast), padding-left var(--transition-smooth);
}

.mobile-menu a:hover {
  color: var(--red-main);
  padding-left: var(--space-sm);
}

/* ── SCROLL PROGRESS ────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--red-deep);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── SECTION BASE ───────────────────────────── */
section {
  position: relative;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── SCROLL REVEAL STATES ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.35s; }
.delay-4 { transition-delay: 0.5s; }
.delay-5 { transition-delay: 0.65s; }

/* ── HOME: HERO ─────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--space-lg) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,248,239,0.05);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.06em;
  user-select: none;
}

.hero-tagline {
  position: absolute;
  top: var(--nav-h);
  right: var(--space-lg);
  padding-top: var(--space-md);
  max-width: 280px;
  text-align: right;
}

.hero-tagline p {
  font-size: var(--fs-body);
  color: rgba(255,248,239,0.5);
  line-height: 1.6;
  font-weight: 400;
}

.hero-tagline strong {
  display: block;
  font-size: var(--fs-small);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-main);
  margin-bottom: var(--space-xs);
  font-weight: 700;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-name {
  font-size: var(--fs-display);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--cream-light);
  overflow: hidden;
}

.hero-name .line {
  display: block;
  overflow: hidden;
}

.hero-name .line span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-name .line span.visible {
  transform: translateY(0);
}

.hero-name .accent {
  color: var(--red-main);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,248,239,0.1);
}

.hero-roles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-roles span {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,248,239,0.4);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-light);
  transition: gap var(--transition-smooth);
}

.hero-cta:hover {
  gap: var(--space-md);
}

.hero-cta .arrow {
  width: 40px;
  height: 1.5px;
  background: var(--red-main);
  position: relative;
  transition: width var(--transition-smooth);
}

.hero-cta:hover .arrow {
  width: 64px;
}

.hero-cta .arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--red-main);
  border-right: 1.5px solid var(--red-main);
}

/* ── HOME: INTRO / ABOUT ────────────────────── */
.intro-section {
  background: var(--cream-light);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.intro-headline {
  font-size: var(--fs-h1);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--dark);
}

.intro-headline em {
  font-style: normal;
  color: var(--red-deep);
}

.intro-text {
  padding-top: var(--space-sm);
}

.intro-label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-main);
  display: block;
  margin-bottom: var(--space-sm);
}

.intro-body {
  font-size: var(--fs-body);
  color: rgba(43,38,34,0.7);
  line-height: 1.8;
  max-width: 480px;
}

/* ── HOME: SERVICES ─────────────────────────── */
.services-section {
  background: var(--dark);
  padding: var(--space-xl) 0;
}

.services-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,248,239,0.1);
}

.services-header h2 {
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--cream-light);
}

.services-header span {
  font-size: var(--fs-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,248,239,0.3);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,248,239,0.08);
}

.service-card {
  background: var(--dark);
  padding: var(--space-lg) var(--space-md);
  border: 1px solid rgba(255,248,239,0.05);
  transition: background var(--transition-smooth), transform var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  background: rgba(255,248,239,0.03);
}

.service-number {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red-main);
  display: block;
  margin-bottom: var(--space-md);
}

.service-card h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cream-light);
  margin-bottom: var(--space-sm);
}

.service-skills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--space-sm);
}

.service-skill {
  font-size: var(--fs-small);
  color: rgba(255,248,239,0.4);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-skill::before {
  content: '—';
  color: var(--red-main);
  font-size: 10px;
}

/* ── HOME: TIMELINE ─────────────────────────── */
.timeline-section {
  background: var(--cream-warm);
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.timeline-header {
  margin-bottom: var(--space-xl);
}

.timeline-header h2 {
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--dark);
}

.timeline-items {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1px 1fr;
  gap: 0 var(--space-md);
  padding: var(--space-md) 0;
  align-items: start;
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 120px;
  right: 0;
  height: 1px;
  background: rgba(43,38,34,0.12);
}

.timeline-years {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--red-main);
  letter-spacing: 0.05em;
  padding-top: 4px;
  text-align: right;
}

.timeline-line {
  width: 1px;
  background: rgba(43,38,34,0.15);
  min-height: 80px;
  position: relative;
}

.timeline-line::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-deep);
}

.timeline-info {
  padding-top: 0;
}

.timeline-role {
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: var(--fs-small);
  font-weight: 500;
  color: rgba(43,38,34,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline-duration {
  font-size: var(--fs-label);
  color: rgba(43,38,34,0.35);
  margin-top: 4px;
}

/* ── HOME: MARQUEE ──────────────────────────── */
.marquee-section {
  background: var(--red-deep);
  padding: var(--space-sm) 0;
  overflow: hidden;
  border-top: none;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.marquee-track span {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-light);
  padding: 0 var(--space-lg);
  opacity: 0.9;
}

.marquee-track span.separator {
  color: rgba(255,248,239,0.3);
  padding: 0;
}

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

/* ── PROJECTS PAGE: HEADER ──────────────────── */
.projects-hero {
  min-height: 50vh;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
  padding: 0 var(--space-lg) var(--space-lg);
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.projects-hero h1 {
  font-size: var(--fs-hero);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--cream-light);
  line-height: 0.9;
}

.projects-hero h1 em {
  font-style: normal;
  color: var(--red-main);
}

.projects-hero .hero-meta {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  text-align: right;
}

.projects-hero .hero-meta span {
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,248,239,0.35);
  display: block;
}

/* ── PROJECTS: GRID ─────────────────────────── */
.projects-section {
  background: var(--cream-light);
  padding: var(--space-xl) 0;
}

.projects-filter {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-primary);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1.5px solid rgba(43,38,34,0.2);
  background: transparent;
  color: rgba(43,38,34,0.5);
  cursor: none;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--red-deep);
  color: var(--red-deep);
  background: rgba(211,36,39,0.05);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: none;
}

.project-card:nth-child(1),
.project-card:nth-child(4),
.project-card:nth-child(7) {
  grid-column: span 7;
}

.project-card:nth-child(2),
.project-card:nth-child(5),
.project-card:nth-child(8) {
  grid-column: span 5;
}

.project-card:nth-child(3),
.project-card:nth-child(6) {
  grid-column: span 5;
}

.project-card:nth-child(3) ~ .project-card:nth-child(4),
.project-card:nth-child(6) ~ .project-card:nth-child(7) {
  grid-column: span 7;
}

.project-thumb {
  aspect-ratio: 4/3;
  background: var(--dark);
  overflow: hidden;
  position: relative;
}

.project-card:nth-child(1) .project-thumb { aspect-ratio: 16/9; }
.project-card:nth-child(2) .project-thumb { aspect-ratio: 3/4; }

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: grayscale(20%);
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.project-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--red-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb-placeholder::after {
  content: attr(data-client);
  font-size: var(--fs-h3);
  font-weight: 900;
  color: rgba(255,248,239,0.15);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43,38,34,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-link {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-light);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(12px);
  transition: transform var(--transition-smooth);
}

.project-card:hover .project-overlay-link {
  transform: translateY(0);
}

.project-info {
  padding: var(--space-sm) 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

.project-meta {
  flex: 1;
}

.project-client {
  font-size: var(--fs-body);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
  display: block;
}

.project-desc {
  font-size: var(--fs-small);
  color: rgba(43,38,34,0.5);
  margin-top: 4px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-year {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red-main);
  white-space: nowrap;
  padding-top: 4px;
}

/* ── CONTACT PAGE ───────────────────────────── */
.contact-hero {
  min-height: 60vh;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
  padding: 0 var(--space-lg) var(--space-lg);
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.contact-hero h1 {
  font-size: var(--fs-hero);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--cream-light);
  line-height: 0.95;
  max-width: 800px;
}

.contact-hero h1 strong {
  color: var(--red-main);
  font-weight: 900;
}

.contact-section {
  background: var(--cream-light);
  padding: var(--space-xl) 0;
}

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

.contact-info h2 {
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--dark);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.contact-info h2 em {
  font-style: normal;
  color: var(--red-deep);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(43,38,34,0.1);
}

.contact-detail label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-main);
}

.contact-detail a,
.contact-detail span {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--dark);
  transition: color var(--transition-fast);
}

.contact-detail a:hover {
  color: var(--red-deep);
}

.contact-form-wrapper h3 {
  font-size: var(--fs-h3);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: var(--space-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(43,38,34,0.5);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--dark);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(43,38,34,0.2);
  padding: var(--space-sm) 0;
  outline: none;
  transition: border-color var(--transition-fast);
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(43,38,34,0.25);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--red-deep);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-primary);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-light);
  background: var(--dark);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  cursor: none;
  margin-top: var(--space-sm);
  position: relative;
  overflow: hidden;
  transition: color var(--transition-smooth);
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red-deep);
  transform: translateX(-101%);
  transition: transform var(--transition-smooth);
}

.btn-submit:hover::before {
  transform: translateX(0);
}

.btn-submit span {
  position: relative;
  z-index: 1;
}

/* ── FOOTER ─────────────────────────────────── */
.site-footer {
  background: var(--dark);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand .footer-logo {
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--cream-light);
  display: block;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: var(--fs-small);
  color: rgba(255,248,239,0.35);
  line-height: 1.7;
  max-width: 260px;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-main);
  margin-bottom: var(--space-sm);
}

.footer-nav ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a,
.footer-contact a,
.footer-contact span {
  font-size: var(--fs-small);
  color: rgba(255,248,239,0.45);
  transition: color var(--transition-fast);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--cream-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,248,239,0.08);
}

.footer-bottom p {
  font-size: var(--fs-label);
  color: rgba(255,248,239,0.2);
  letter-spacing: 0.05em;
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.footer-socials a {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,248,239,0.35);
  transition: color var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--red-main);
}

/* ── SINGLE PROJECT ─────────────────────────── */
.single-project-hero {
  min-height: 70vh;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
  padding: 0 var(--space-lg) var(--space-lg);
  padding-top: var(--nav-h);
  position: relative;
}

.single-project-hero .featured-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.single-project-hero .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(30%);
}

.single-project-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.project-tag {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-main);
  display: block;
  margin-bottom: var(--space-sm);
}

.single-project-content h1 {
  font-size: var(--fs-hero);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--cream-light);
  line-height: 0.9;
}

.project-detail-grid {
  padding: var(--space-xl) 0;
}

.project-detail-grid .container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
}

.project-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--space-md));
}

.project-sidebar dl {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.project-sidebar dt {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-main);
  margin-bottom: 2px;
}

.project-sidebar dd {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--dark);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(43,38,34,0.1);
}

.project-body {
  font-size: var(--fs-body);
  color: rgba(43,38,34,0.7);
  line-height: 1.85;
}

.project-body p + p {
  margin-top: var(--space-md);
}

/* ── FORM STATES ────────────────────────────── */
.form-success {
  padding: var(--space-lg);
  background: rgba(221,81,70,0.08);
  border-left: 3px solid var(--red-main);
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success p {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--dark);
}

/* ── UTILITIES ──────────────────────────────── */
.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;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --space-lg: 2.5rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card:nth-child(n) {
    grid-column: span 1;
  }

  .project-card:nth-child(1) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --nav-h: 60px;
  }

  .nav-links,
  .nav-socials {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    padding: 0 var(--space-lg);
  }

  .hero {
    padding: 0 var(--space-lg) var(--space-lg);
  }

  .hero-tagline {
    display: none;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(n) {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 80px 1px 1fr;
  }

  .project-detail-grid .container {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    position: static;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .hero,
  .projects-hero,
  .contact-hero {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
}

/* ── PRINT ──────────────────────────────────── */
@media print {
  .site-nav,
  .cursor,
  .cursor-follower,
  .page-transition,
  .scroll-progress {
    display: none;
  }
}

/* ── LOGO IMAGE STYLES ──────────────────────── */
/* nav-logo-img — see final override below */

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
}
.footer-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  /* White version in dark footer */
  filter: invert(1) brightness(0.7);
  transition: filter var(--transition-fast), transform var(--transition-smooth);
}
.footer-logo:hover .footer-logo-img {
  filter: invert(1) brightness(1);
  transform: rotate(-8deg);
}

/* ── FCB PROJECT PAGE SPECIFIC STYLES ──────── */
.project-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  margin-top: 3rem;
}
.project-collage-item {
  overflow: hidden;
  position: relative;
}
.project-collage-item:first-child {
  grid-column: span 2;
}
.project-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-collage-item:hover img {
  transform: scale(1.04);
}
.project-collage-item:first-child {
  aspect-ratio: 16/7;
}
.project-collage-item:not(:first-child) {
  aspect-ratio: 4/3;
}

.project-skills-highlight {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1.5px solid var(--dark);
}
.skill-highlight-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(43,38,34,0.12);
  transition: padding-left var(--transition-smooth);
}
.skill-highlight-item:hover {
  padding-left: 0.75rem;
}
.skill-highlight-dot {
  width: 8px;
  height: 8px;
  background: var(--red-deep);
  border-radius: 50%;
  flex-shrink: 0;
}
.skill-highlight-name {
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dark);
}

/* ── PROJECT DETAIL LAYOUT ──────────────────── */
.project-detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 900px) {
  .project-detail-layout {
    grid-template-columns: 1fr;
  }
  .project-sidebar {
    position: static !important;
  }
}

/* Skills list reset for older project-detail-grid class */
.project-detail-grid .container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(3rem, 6vw, 6rem);
}
@media (max-width: 900px) {
  .project-detail-grid .container {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════
   NAV LOGO — Más grande, versión roja
══════════════════════════════════════════════ */
.nav-logo {
  display: flex;
  align-items: center;
  padding: 2px;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  /* Logo rojo sobre fondo oscuro — se ve directo */
  filter: none;
  transition: transform var(--transition-smooth), filter var(--transition-fast);
}
/* Cuando nav se vuelve claro al hacer scroll,
   el logo rojo sigue viéndose perfecto sobre crema */
.site-nav.scrolled .nav-logo-img {
  filter: none;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.1) rotate(6deg);
}

/* Footer logo */
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 1.25rem; }
.footer-logo-img {
  width: 56px; height: 56px; object-fit: contain;
  filter: none;
  opacity: 1;
  transition: none;
}
/* Sin efecto hover en el footer logo */
.footer-logo:hover .footer-logo-img {
  transform: none;
  opacity: 1;
}

/* ══════════════════════════════════════════════
   PROJECTS EXPANDED LIST
   Layout: cada proyecto ocupa toda la pantalla
   con slider izq/der alternado + info lateral
══════════════════════════════════════════════ */
.projects-expanded-list {
  background: var(--dark);
}

.pex-item {
  border-bottom: 1px solid rgba(255,248,239,.07);
  padding: clamp(3rem, 7vw, 7rem) 0;
}
.pex-item:first-child {
  border-top: 1px solid rgba(255,248,239,.07);
}

.pex-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: center;
}

/* Alternar: en índices pares, info va primero */
.pex-reverse {
  direction: rtl;
}
.pex-reverse > * {
  direction: ltr;
}

/* ── SLIDER ─────────────────────────────────── */
.pex-slider {
  position: relative;
  overflow: hidden;
}

.pex-slides-track {
  position: relative;
  aspect-ratio: 4/3;
  background: #1a1614;
  overflow: hidden;
}

.pex-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.pex-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.pex-slide a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.pex-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.pex-slide a:hover img {
  transform: scale(1.04);
}

/* Hint de zoom */
.pex-zoom-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(43,38,34,.7);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-light);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity .3s ease, transform .3s ease;
}
.pex-slide a:hover .pex-zoom-hint {
  opacity: 1;
  transform: scale(1);
}

/* Placeholder sin imagen */
.pex-placeholder {
  width: 100%; height: 100%;
  background: var(--red-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-h2); font-weight: 900;
  letter-spacing: -.04em; text-transform: uppercase;
  color: rgba(255,248,239,.12);
}

/* Controles */
.pex-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0;
  gap: 1rem;
}

.pex-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,248,239,.2);
  background: transparent;
  color: rgba(255,248,239,.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}
.pex-btn:hover {
  border-color: var(--red-main);
  color: var(--red-main);
  background: rgba(221,81,70,.08);
}

.pex-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.pex-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,248,239,.25);
  border: none;
  cursor: none;
  transition: background var(--transition-fast), transform var(--transition-fast), width var(--transition-smooth);
  padding: 0;
}
.pex-dot.active {
  background: var(--red-main);
  width: 20px;
  border-radius: 3px;
  transform: none;
}

.pex-counter {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(255,248,239,.3);
  white-space: nowrap;
}
.pex-current { color: var(--red-main); }

/* ── INFO ────────────────────────────────────── */
.pex-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pex-year {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red-main);
  display: block;
}

.pex-title {
  -webkit-text-stroke: 0;
  text-stroke: 0;
  color: var(--cream-light);

  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--cream-light);
}

.pex-text {
  font-size: var(--fs-body);
  color: rgba(255,248,239,.5);
  line-height: 1.8;
  max-width: 480px;
}

/* Skills — pequeñas, discretas */
.pex-skills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: .25rem 0 0;
}
.pex-skill-tag {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,248,239,.4);
  border: 1px solid rgba(255,248,239,.12);
  padding: 5px 10px;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.pex-item:hover .pex-skill-tag {
  border-color: rgba(221,81,70,.35);
  color: rgba(221,81,70,.8);
}

/* CTA link del proyecto */
.pex-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cream-light);
  margin-top: .5rem;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,248,239,.2);
  transition: border-color var(--transition-fast), color var(--transition-fast), gap var(--transition-smooth);
  width: fit-content;
}
.pex-link:hover {
  color: var(--red-main);
  border-color: var(--red-main);
  gap: 1rem;
}

/* ══════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════ */
.pex-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lb-in .3s ease;
}
.pex-lightbox-overlay[hidden] {
  display: none;
}
@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pex-lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#pex-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  transition: opacity .3s ease;
}

.pex-lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(255,248,239,.1);
  border: 1px solid rgba(255,248,239,.15);
  border-radius: 50%;
  color: var(--cream-light);
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  transition: background var(--transition-fast);
}
.pex-lightbox-close:hover { background: rgba(211,36,39,.4); }

.pex-lightbox-prev,
.pex-lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(255,248,239,.08);
  border: 1px solid rgba(255,248,239,.12);
  border-radius: 50%;
  color: var(--cream-light);
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.pex-lightbox-prev { left: 1.5rem; }
.pex-lightbox-next { right: 1.5rem; }
.pex-lightbox-prev:hover,
.pex-lightbox-next:hover {
  background: rgba(221,81,70,.2);
  border-color: var(--red-main);
}

.pex-lightbox-counter {
  position: absolute;
  bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .15em;
  color: rgba(255,248,239,.4);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .pex-inner {
    grid-template-columns: 1fr;
  }
  .pex-reverse {
    direction: ltr;
  }
  .pex-title {
  -webkit-text-stroke: 0;
  text-stroke: 0;
  color: var(--cream-light);

    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  .pex-lightbox-prev { left: .75rem; }
  .pex-lightbox-next { right: .75rem; }
}

@media (max-width: 600px) {
  .pex-item { padding: 3rem 0; }
  .nav-logo-img { width: 44px; height: 44px; }
}

/* ══════════════════════════════════════════════
   OVERRIDES FINALES v1.4
══════════════════════════════════════════════ */

/* Nav siempre oscuro — logo rojo sin filtros */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: none !important; /* logo rojo — no invertir */
  transition: transform var(--transition-smooth);
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.1) rotate(5deg);
}

/* Nav links — siempre claros independiente del scroll */
.site-nav .nav-links a,
.site-nav.scrolled .nav-links a {
  color: rgba(255,248,239,0.85) !important;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  color: var(--cream-light) !important;
}
.site-nav .nav-socials a,
.site-nav.scrolled .nav-socials a {
  color: rgba(255,248,239,0.45) !important;
}
.site-nav .nav-socials a:hover {
  color: var(--red-main) !important;
  opacity: 1 !important;
}
.site-nav .nav-toggle span,
.site-nav.scrolled .nav-toggle span {
  background: var(--cream-light) !important;
}

/* Projects title — SIEMPRE sólido, nunca outline */
.projects-hero h1 {
  color: var(--cream-light) !important;
  -webkit-text-stroke: 0 !important;
}
.projects-hero h1 em {
  color: var(--red-main) !important;
  -webkit-text-stroke: 0 !important;
  font-style: normal;
}

/* pex-title — siempre sólido */
.pex-title {
  -webkit-text-stroke: 0 !important;
  color: var(--cream-light) !important;
}

/* Lightbox image transition */
#pex-lightbox-img {
  transition: opacity 0.14s ease, transform 0.14s ease;
}

/* ══════════════════════════════════════════════
   OVERRIDES v3 — Logo nuevo, secciones rojas,
   video en slider, lightbox definitivo
══════════════════════════════════════════════ */

/* ── Logo — sin filtros, se ve directo ──────── */
.nav-logo-img,
.site-nav.scrolled .nav-logo-img {
  filter: none !important;
  width: 54px !important;
  height: 54px !important;
  object-fit: contain;
}
.nav-logo:hover .nav-logo-img { transform: scale(1.1) rotate(5deg); }

/* ── Nav siempre oscuro ─────────────────────── */
.site-nav,
.site-nav.scrolled {
  background: rgba(43,38,34,0.97) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,248,239,0.07) !important;
  mix-blend-mode: normal !important;
}
.site-nav .nav-links a,
.site-nav.scrolled .nav-links a { color: rgba(255,248,239,0.8) !important; }
.site-nav .nav-links a:hover { color: var(--cream-light) !important; }
.site-nav .nav-socials a,
.site-nav.scrolled .nav-socials a { color: rgba(255,248,239,0.4) !important; }
.site-nav .nav-socials a:hover { color: var(--red-main) !important; opacity: 1 !important; }
.site-nav .nav-toggle span,
.site-nav.scrolled .nav-toggle span { background: var(--cream-light) !important; }

/* ── Projects title — sólido siempre ───────── */
.projects-hero h1,
.projects-hero h1 em,
.pex-title {
  -webkit-text-stroke: 0 !important;
  text-stroke: 0 !important;
}
.projects-hero h1 { color: var(--cream-light) !important; }
.projects-hero h1 em { color: var(--red-main) !important; font-style: normal; }
.pex-title { color: var(--cream-light) !important; }

/* ── TIMELINE ROJA ───────────────────────────
   Fondo rojo profundo con textos siempre visibles
══════════════════════════════════════════════ */
.timeline-section {
  background: var(--red-deep) !important;
}
/* Todos los textos en crema claro sobre rojo */
.timeline-section .timeline-header h2,
.timeline-section h2 {
  color: var(--cream-light) !important;
}
.timeline-section .timeline-company {
  color: var(--cream-light) !important;
  font-weight: 900;
}
.timeline-section .timeline-year {
  color: rgba(255,248,239,0.65) !important;
}
.timeline-section .timeline-role {
  color: rgba(255,248,239,0.80) !important;
}
.timeline-section .timeline-item {
  border-bottom: 1px solid rgba(255,248,239,0.15) !important;
}
.timeline-section .timeline-item:first-child {
  border-top: 1px solid rgba(255,248,239,0.15) !important;
}
.timeline-section .timeline-left {
  border-right: 1px solid rgba(255,248,239,0.18) !important;
}
.timeline-section .timeline-item:hover {
  background: rgba(255,248,239,0.06) !important;
}

/* ── MARQUEE — también roja (ya lo era) ─────── */

/* ── INTRO SECTION — fondo crema cálido ──────
   Para dar variedad entre el dark hero y la sección
   de servicios oscura.
══════════════════════════════════════════════ */
.intro-section { background: var(--cream-warm) !important; }

/* ── SERVICES — mantiene oscuro ──────────────── */

/* ── CTA FINAL en home — rojo profundo ───────── */
.home-cta-section {
  background: var(--red-deep);
}
.home-cta-section h2 { color: var(--cream-light); }

/* ══════════════════════════════════════════════
   VIDEO EN SLIDER
══════════════════════════════════════════════ */
.pex-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  cursor: none;
}
.pex-video-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, filter .3s ease;
  filter: brightness(0.75);
}
.pex-video-wrap:hover .pex-video-thumb {
  transform: scale(1.03);
  filter: brightness(0.6);
}
.pex-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: none; border: none;
  cursor: none;
  transition: transform .3s cubic-bezier(0.16,1,0.3,1);
  z-index: 2;
}
.pex-play-btn svg { width: 72px; height: 72px; filter: drop-shadow(0 4px 16px rgba(0,0,0,.4)); }
.pex-video-wrap:hover .pex-play-btn { transform: translate(-50%,-50%) scale(1.12); }

/* Video badge en dot */
.pex-dot { font-size: 7px; line-height: 1; }
.pex-dot:not(:empty) {
  width: 20px !important; border-radius: 3px;
  color: rgba(255,248,239,.6);
}

/* ══════════════════════════════════════════════
   LIGHTBOX DEFINITIVO — versión <button>
══════════════════════════════════════════════ */

/* Trigger button — parece imagen, se comporta como botón */
.pex-lightbox-btn {
  display: block;
  width: 100%; height: 100%;
  padding: 0; margin: 0;
  background: none; border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
}
.pex-lightbox-btn img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(0.16,1,0.3,1);
}
.pex-lightbox-btn:hover img { transform: scale(1.04); }

.pex-zoom-hint {
  position: absolute;
  top: .875rem; right: .875rem;
  width: 34px; height: 34px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-light);
  opacity: 0; transform: scale(.75);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.pex-lightbox-btn:hover .pex-zoom-hint {
  opacity: 1; transform: scale(1);
}

/* Overlay */
.pex-lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  animation: lb-fade .25s ease;
}
.pex-lightbox-overlay[hidden] { display: none !important; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.pex-lightbox-img-wrap {
  max-width: 90vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
#pex-lightbox-img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; display: block;
  transition: opacity .13s ease, transform .13s ease;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  border-radius: 2px;
}

.pex-lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 42px; height: 42px;
  background: rgba(255,248,239,.1); border: 1px solid rgba(255,248,239,.15);
  border-radius: 50%; color: var(--cream-light);
  display: flex; align-items: center; justify-content: center;
  cursor: none; z-index: 1;
  transition: background .2s ease;
}
.pex-lightbox-close:hover { background: rgba(211,36,39,.45); }

.pex-lightbox-prev,
.pex-lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,248,239,.08); border: 1px solid rgba(255,248,239,.12);
  border-radius: 50%; color: var(--cream-light);
  display: flex; align-items: center; justify-content: center;
  cursor: none; z-index: 1;
  transition: background .2s, border-color .2s;
}
.pex-lightbox-prev { left: 1.25rem; }
.pex-lightbox-next { right: 1.25rem; }
.pex-lightbox-prev:hover,
.pex-lightbox-next:hover { background: rgba(221,81,70,.25); border-color: var(--red-main); }

.pex-lightbox-counter {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  font-size: .68rem; font-weight: 600; letter-spacing: .15em;
  color: rgba(255,248,239,.35);
}

@media (max-width: 600px) {
  .pex-lightbox-prev { left: .5rem; }
  .pex-lightbox-next { right: .5rem; }
}

/* ══════════════════════════════════════════════
   TIMELINE ROJA — FIX DEFINITIVO v1.7
   Cubre TODOS los selectores posibles para que
   el texto sea siempre visible sobre fondo rojo.
══════════════════════════════════════════════ */

/* Fondo */
.timeline-section,
section.timeline-section {
  background: var(--red-deep) !important;
}

/* Título de sección */
.timeline-section .timeline-header h2,
.timeline-section h2,
.timeline-section * h2 {
  color: var(--cream-light) !important;
}

/* Nombre empresa / cliente → blanco crema */
.timeline-section .timeline-company,
.timeline-section .timeline-role,
.timeline-section .timeline-info,
.timeline-section .timeline-info * {
  color: var(--cream-light) !important;
}

/* Año → crema semitransparente */
.timeline-section .timeline-years,
.timeline-section .timeline-year,
.timeline-section .timeline-duration {
  color: rgba(255, 248, 239, 0.6) !important;
}

/* Línea divisoria horizontal (pseudo-elemento ::after) */
.timeline-section .timeline-item::after {
  background: rgba(255, 248, 239, 0.14) !important;
}

/* Línea vertical y dot */
.timeline-section .timeline-line {
  background: rgba(255, 248, 239, 0.2) !important;
}
.timeline-section .timeline-line::before {
  background: var(--cream-light) !important;
}

/* Separador derecha de .timeline-left */
.timeline-section .timeline-left {
  border-right-color: rgba(255, 248, 239, 0.18) !important;
}

/* Hover sutil */
.timeline-section .timeline-item:hover {
  background: rgba(255, 248, 239, 0.05) !important;
}

/* Bordes sup/inf de cada item */
.timeline-section .timeline-item {
  border-bottom-color: rgba(255, 248, 239, 0.14) !important;
}
.timeline-section .timeline-item:first-child {
  border-top-color: rgba(255, 248, 239, 0.14) !important;
}

/* ══════════════════════════════════════════════
   FOOTER LOGO — Sin efecto hover, 100% estático
══════════════════════════════════════════════ */
.footer-logo,
a.footer-logo {
  cursor: default;
  pointer-events: none; /* elimina cualquier interacción */
}
.footer-logo img,
.footer-logo-img,
a.footer-logo img,
a.footer-logo .footer-logo-img {
  transition: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  animation: none !important;
}
.footer-logo:hover img,
.footer-logo:hover .footer-logo-img,
a.footer-logo:hover img,
a.footer-logo:hover .footer-logo-img {
  transition: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* ══════════════════════════════════════════════
   TIMELINE — FIX COMPLETO Y DEFINITIVO v1.7.2
   
   Problema 1: .reveal tiene opacity:0 por defecto.
   Dentro del timeline forzamos visibilidad siempre,
   sin depender del JS.
   
   Problema 2: colores de texto oscuros invisibles
   sobre fondo rojo. Sobrescribimos todos con crema.
══════════════════════════════════════════════ */

/* FONDO ROJO */
.timeline-section {
  background: var(--red-deep) !important;
}

/* FORZAR VISIBILIDAD — todos los .reveal dentro
   del timeline son visibles independientemente del JS */
.timeline-section .reveal,
.timeline-section .reveal-left,
.timeline-section .reveal-right {
  opacity: 1 !important;
  transform: none !important;
}

/* TÍTULO */
.timeline-section h2,
.timeline-section .timeline-header h2 {
  color: var(--cream-light) !important;
}

/* AÑOS (columna izquierda) */
.timeline-section .timeline-years {
  color: rgba(255, 248, 239, 0.55) !important;
}

/* ROL — texto principal de cada entrada */
.timeline-section .timeline-role {
  color: var(--cream-light) !important;
}

/* EMPRESA */
.timeline-section .timeline-company {
  color: rgba(255, 248, 239, 0.65) !important;
}

/* DURACIÓN */
.timeline-section .timeline-duration {
  color: rgba(255, 248, 239, 0.4) !important;
}

/* LÍNEA VERTICAL */
.timeline-section .timeline-line {
  background: rgba(255, 248, 239, 0.25) !important;
}
.timeline-section .timeline-line::before {
  background: var(--cream-light) !important;
}

/* SEPARADOR HORIZONTAL (pseudo ::after en .timeline-item) */
.timeline-section .timeline-item::after {
  background: rgba(255, 248, 239, 0.15) !important;
}

/* HOVER */
.timeline-section .timeline-item:hover {
  background: rgba(255, 248, 239, 0.05) !important;
}

/* ── FOOTER LOGO — Completamente estático ─────
   pointer-events:none elimina TODO hover/cursor
══════════════════════════════════════════════ */
.footer-brand .footer-logo,
.footer-brand a.footer-logo {
  pointer-events: none !important;
  cursor: default !important;
}
.footer-brand .footer-logo img,
.footer-brand .footer-logo .footer-logo-img,
.footer-brand a.footer-logo img {
  transition: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}
.footer-brand .footer-logo:hover img,
.footer-brand a.footer-logo:hover img {
  transition: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* ── HERO NAME — safety fallback ─────────────
   If JS fails to add .visible, animate via CSS
   using animation-delay so it always shows.
══════════════════════════════════════════════ */
@keyframes slideUpIn {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

.hero-name .line:nth-child(1) span {
  animation: slideUpIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-name .line:nth-child(2) span {
  animation: slideUpIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
.hero-name .line:nth-child(3) span {
  animation: slideUpIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* ══════════════════════════════════════════════
   HERO PHOTO — imagen animada junto al nombre
══════════════════════════════════════════════ */
.hero-photo-wrap {
  position: absolute;
  bottom: clamp(5rem, 12vw, 10rem);
  right: clamp(1.5rem, 6vw, 8rem);
  width: clamp(140px, 20vw, 280px);
  z-index: 2;
  /* Starts invisible, JS + CSS animation reveals it */
  opacity: 0;
  transform: translateY(30px);
  animation: heroPhotoIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

@keyframes heroPhotoIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  /* Thin red border — brutalista detail */
  outline: 2px solid var(--red-main);
  outline-offset: 6px;
  filter: grayscale(15%);
  transition: filter 0.5s ease, outline-color 0.3s ease;
}

.hero-photo-wrap:hover .hero-photo {
  filter: grayscale(0%);
  outline-color: var(--cream-light);
}

/* Pequeño label debajo de la foto */
.hero-photo-wrap::after {
  content: 'Alejandro Gutiérrez';
  display: block;
  margin-top: 0.6rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 248, 239, 0.3);
  text-align: right;
}

@media (max-width: 768px) {
  .hero-photo-wrap {
    display: none; /* hide on mobile — name takes full width */
  }
}

/* ══════════════════════════════════════════════
   DECLARATION SECTION — Fondo rojo, estilo brutalista
══════════════════════════════════════════════ */
.declaration-section {
  background: var(--red-deep);
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

/* Watermark de fondo */
.declaration-section::before {
  content: 'BYMIO';
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 248, 239, 0.07);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.declaration-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

/* ── Label superior ──────────────────────────── */
.declaration-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 248, 239, 0.5);
  border: 1px solid rgba(255, 248, 239, 0.2);
  padding: 6px 14px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ── Texto ───────────────────────────────────── */
.declaration-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.declaration-body p {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.85;
  color: rgba(255, 248, 239, 0.75);
  font-weight: 400;
}

/* Destacados en negrita — crema brillante */
.declaration-body strong {
  color: var(--cream-light);
  font-weight: 700;
}

/* Énfasis en cursiva — crema con subrayado rojo */
.declaration-body em {
  font-style: normal;
  color: var(--cream-light);
  border-bottom: 1.5px solid rgba(255, 248, 239, 0.4);
  padding-bottom: 1px;
}

/* Frase de cierre — más grande y protagonista */
.declaration-closing {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem) !important;
  color: var(--cream-light) !important;
  font-weight: 500 !important;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 248, 239, 0.15);
}

.declaration-closing strong {
  color: var(--cream-light) !important;
  font-weight: 900 !important;
}

/* ── Tags de competencias ────────────────────── */
.declaration-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 248, 239, 0.12);
}

.declaration-tags span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 248, 239, 0.5);
  border: 1px solid rgba(255, 248, 239, 0.15);
  padding: 6px 14px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.declaration-tags span:hover {
  border-color: rgba(255, 248, 239, 0.5);
  color: var(--cream-light);
}

/* ── Foto ────────────────────────────────────── */
.declaration-photo-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.declaration-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  outline: 2px solid rgba(255, 248, 239, 0.2);
  outline-offset: 6px;
  transition: filter 0.5s ease;
}

.declaration-photo-wrap:hover .declaration-photo {
  filter: grayscale(0%) contrast(1);
}

/* Label debajo de la foto */
.declaration-photo-label {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.875rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 248, 239, 0.3);
  justify-content: flex-end;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .declaration-inner {
    grid-template-columns: 1fr;
  }

  .declaration-photo-wrap {
    position: static;
    max-width: 320px;
    order: -1; /* photo above text on mobile */
  }
}

@media (max-width: 600px) {
  .declaration-section::before {
    display: none;
  }
}
