/* ==========================================================================
   GABRIEL EM | PORTAFOLIO FILMMAKING & EDICIÓN DE VIDEOS
   Diseño Dark Cinema • Glassmorfismo • Glow • Teléfono TikTok • Header Flotante
   ========================================================================== */

/* -------------------- VARIABLES GLOBALES -------------------- */
:root {
  --bg-deep: #060709;
  --bg-card: rgba(18, 19, 25, 0.65);
  --bg-pill: rgba(255, 255, 255, 0.05);
  
  --border-light: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(255, 255, 255, 0.28);
  --border-accent: rgba(245, 158, 11, 0.4);
  
  --text-pure: #FFFFFF;
  --text-muted: #9E9EA8;
  --text-dim: #60606B;
  
  --accent-amber: #F59E0B;
  --accent-cyan: #06B6D4;
  --accent-violet: #8B5CF6;
  --accent-green: #10B981;
  
  --glow-ambient: 0 0 35px rgba(245, 158, 11, 0.18);
  --glow-cyan-fx: 0 0 30px rgba(6, 182, 212, 0.22);
  --glass-blur: blur(18px);
  --glass-blur-heavy: blur(28px);
  
  --font-sans: 'Montserrat', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
  
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body.theme-dark-video {
  background-color: var(--bg-deep);
  color: var(--text-pure);
  font-family: var(--font-sans);
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grano analógico cinematográfico ultra sutil */
body.theme-dark-video::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9000;
}

/* -------------------- TELÓN Y OBTURADOR DE CÁMARA -------------------- */
#page-curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-deep);
  z-index: 99999;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.32s cubic-bezier(0.25, 1, 0.5, 1);
}

#page-curtain.active {
  opacity: 1;
  pointer-events: auto !important;
}

.page-fade-in {
  animation: pageFadeIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* SISTEMA DE OBTURADOR DE CÁMARA (APERTURE BLADES) */
.camera-shutter-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 100000;
  pointer-events: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow: hidden !important;
  contain: paint !important;
  clip-path: inset(0);
}

/* POSICIÓN INICIAL DE LAS PALETAS: REPLEGADAS EN LOS BORDES DE LA PANTALLA (CENTRO 100% DESPEJADO) */
.blade-inner {
  transform-origin: 0px 0px;
  transform: translate(0px, -1100px) rotate(22deg);
  will-change: transform;
}

.fullscreen-aperture-svg {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100dvh;
  display: block;
  overflow: hidden !important;
  contain: paint !important;
}

.scale-aperture-blade {
  fill: url(#fullscreenBladeGrad);
  filter: url(#bladeShadow);
  stroke: #000000;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.blade-cutting-line {
  fill: none;
  stroke: #484b5c;
  stroke-width: 2;
  opacity: 0.85;
}

/* ANIMACIÓN DE ENTRADA AL CARGAR LA PÁGINA */
.camera-shutter-overlay.shutter-entrance {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: shutterEntranceOverlay 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.camera-shutter-overlay.shutter-entrance .blade-inner {
  animation: shutterEntranceBlades 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shutterEntranceBlades {
  0% {
    transform: translate(0px, -1100px) rotate(22deg);
  }
  45% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  60% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  100% {
    transform: translate(0px, -1100px) rotate(22deg);
  }
}

@keyframes shutterEntranceOverlay {
  0% {
    opacity: 1;
    visibility: visible;
  }
  80% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* ESTADO CERRANDO: CONVERGENCIA DESDE LOS BORDES HACIA EL CENTRO */
.camera-shutter-overlay.closing {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.camera-shutter-overlay.closing .blade-inner {
  transform: translate(0px, 0px) rotate(0deg);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.camera-shutter-overlay.opening {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s ease 0.35s, visibility 0.45s ease 0.35s;
}

.camera-shutter-overlay.opening .blade-inner {
  transform: translate(0px, -1100px) rotate(22deg);
  transition: transform 0.75s cubic-bezier(0.2, 0.9, 0.25, 1);
}

/* -------------------- LUCES AMBIENTALES DE FONDO (GLOW) -------------------- */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-cyan {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
  top: 5%;
  left: -100px;
}

.glow-amber {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, transparent 70%);
  top: 15%;
  right: -100px;
}

.glow-violet {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, transparent 70%);
  bottom: 10%;
  left: 30%;
}

/* -------------------- HEADER REDONDEADO FLOTANTE -------------------- */
.floating-pill-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1100px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  background: rgba(12, 13, 18, 0.82);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.nav-brand:hover {
  transform: scale(1.05);
}

.brand-isotype {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.25));
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link-photo {
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link-photo:hover {
  border-color: var(--border-glow);
  color: #fff;
}

/* BOTÓN BLANCO CTA */
.btn-white-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #060709;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 9px 20px;
  border-radius: 100px;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-white-cta:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.5);
  color: #000000;
}

.btn-white-cta .cta-arrow {
  transition: transform 0.25s ease;
}

.btn-white-cta:hover .cta-arrow {
  transform: translate(2px, -2px);
}

/* -------------------- SECCIÓN 1: HERO PRINCIPAL -------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 140px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  contain: paint !important;
  clip-path: inset(0);
}

.hero-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-header-box {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin-bottom: 50px;
}

.hero-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-amber);
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-main-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.title-portfolio {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.title-filmmaking {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 6.2vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #FFFFFF 40%, #A8ACB8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(255,255,255,0.12));
}

.title-edition {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-pure);
  opacity: 0.95;
}

.hero-title-stage {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto 10px;
  padding: 30px 15px 35px;
}

/* RECUADROS FLOTANTES QUE EMERGEN DESDE EL TEXTO Y FLOTAN (INSPIRACIÓN REFERENCIA 2) */
.floating-pill-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 20, 28, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--border-glow);
  padding: 8px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

.pill-icon {
  font-size: 1.05rem;
}

.pill-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-pure);
}

/* Posiciones perimetrales que enmarcan el título sin tapar ninguna letra */
.pill-marca {
  top: -14px;
  left: -15px;
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
  animation: emergeFromText 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards, floatBadge1 5s ease-in-out infinite alternate 0.8s;
}

.pill-vende {
  top: -14px;
  right: -15px;
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.2);
  animation: emergeFromText 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards, floatBadge2 5.5s ease-in-out infinite alternate 0.92s;
}

.pill-ritmo {
  bottom: -16px;
  left: -15px;
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.16);
  animation: emergeFromText 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.24s forwards, floatBadge3 5.8s ease-in-out infinite alternate 1.04s;
}

.pill-color {
  bottom: -16px;
  right: -15px;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.14);
  animation: emergeFromText 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.36s forwards, floatBadge4 5.2s ease-in-out infinite alternate 1.16s;
}

@keyframes emergeFromText {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
    filter: blur(8px);
  }
  70% {
    opacity: 1;
    transform: scale(1.08) translateY(-4px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes floatBadge1 {
  0% { transform: translateY(0px) rotate(-1deg); }
  100% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes floatBadge2 {
  0% { transform: translateY(0px) rotate(1.2deg); }
  100% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes floatBadge3 {
  0% { transform: translateY(0px) rotate(0.8deg); }
  100% { transform: translateY(-9px) rotate(-1.2deg); }
}

@keyframes floatBadge4 {
  0% { transform: translateY(0px) rotate(-1.2deg); }
  100% { transform: translateY(-11px) rotate(0.5deg); }
}

/* -------------------- ESCENARIO VISUAL: LAPTOP + TIMELINE -------------------- */
.hero-visual-stage {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 3D ASSETS FLOTANTES */
.floating-3d-asset {
  position: absolute;
  pointer-events: none;
  z-index: 8;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.65));
}

.asset-laptop {
  width: 140px;
  top: -75px;
  right: 4%;
  animation: floatLaptop 7s ease-in-out infinite alternate;
}

.asset-laptop img {
  width: 100%;
  height: auto;
  display: block;
}

.asset-cam {
  width: 95px;
  bottom: -35px;
  left: 2%;
  animation: floatCam 6.5s ease-in-out infinite alternate;
}

.asset-cam img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes floatLaptop {
  0% { transform: translateY(0px) rotate(6deg) scale(1); }
  100% { transform: translateY(-18px) rotate(10deg) scale(1.03); }
}

@keyframes floatCam {
  0% { transform: translateY(0px) rotate(-8deg); }
  100% { transform: translateY(-15px) rotate(-4deg); }
}

/* -------------------- LÍNEA DE TIEMPO DAVINCI RESOLVE -------------------- */
.timeline-davinci-card {
  width: 100%;
  max-width: 720px;
  background: rgba(14, 15, 20, 0.82);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 14px 18px 18px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.floating-timeline {
  animation: floatTimeline 6s ease-in-out infinite alternate;
}

@keyframes floatTimeline {
  0% {
    transform: translateY(0px) rotate(0deg);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  50% {
    transform: translateY(-9px) rotate(0.4deg);
    box-shadow: 0 28px 60px -10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}

.davinci-window {
  width: 100%;
}

.davinci-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.davinci-dots {
  display: flex;
  gap: 7px;
}

.d-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.d-dot.red { background: #FF5F56; }
.d-dot.yellow { background: #FFBD2E; }
.d-dot.green { background: #27C93F; }

.davinci-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
}

.davinci-ico {
  width: 14px;
  height: 14px;
  color: var(--accent-amber);
}

.davinci-timecode {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #38BDF8;
  letter-spacing: 0.08em;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.davinci-ruler {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.davinci-tracks-area {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 130px;
}

/* AGUJA PLAYHEAD ROJA */
.davinci-playhead {
  position: absolute;
  top: -8px;
  bottom: 0;
  left: 0;
  width: 2px;
  z-index: 15;
  pointer-events: none;
  animation: playheadSweep 8s linear infinite;
}

.playhead-diamond {
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 12px;
  background: #EF4444;
  transform: rotate(45deg);
  box-shadow: 0 0 10px #EF4444;
}

.playhead-line {
  position: absolute;
  top: 6px;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}

@keyframes playheadSweep {
  0% { left: 4%; }
  100% { left: 96%; }
}

.d-track {
  display: flex;
  align-items: center;
  height: 26px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.d-track.audio {
  height: 22px;
  background: rgba(0, 0, 0, 0.45);
}

.d-track-head {
  width: 32px;
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
}

.d-track-lane {
  position: relative;
  flex: 1;
  height: 100%;
}

.d-clip {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  overflow: hidden;
  white-space: nowrap;
}

.clip-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.04em;
}

.clip-purple { background: linear-gradient(90deg, #7C3AED, #9333EA); border: 1px solid #A855F7; }
.clip-teal { background: linear-gradient(90deg, #0D9488, #14B8A6); border: 1px solid #2DD4BF; }
.clip-orange { background: linear-gradient(90deg, #EA580C, #F97316); border: 1px solid #FB923C; }
.clip-blue { background: linear-gradient(90deg, #2563EB, #3B82F6); border: 1px solid #60A5FA; }
.clip-green { background: linear-gradient(90deg, #059669, #10B981); border: 1px solid #34D399; }
.clip-yellow { background: linear-gradient(90deg, #D97706, #F59E0B); border: 1px solid #FBBF24; }

/* INDICADOR DE SCROLL HERO */
.hero-scroll-indicator {
  margin-top: 45px;
}

.scroll-down-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.scroll-down-arrow:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.scroll-down-arrow svg {
  animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* -------------------- REVEAL ON SCROLL -------------------- */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- SECCIÓN 2: SOBRE MÍ (ESTILO REFERENCIA 1) -------------------- */
.about-section {
  position: relative;
  padding: 100px 24px 120px;
  background: radial-gradient(circle at 50% 50%, rgba(20, 22, 30, 0.6) 0%, transparent 80%);
}

.about-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.about-glass-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
  background: rgba(14, 15, 20, 0.72);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid var(--border-light);
  border-radius: 36px;
  padding: 55px 45px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.about-glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* COLUMNA IZQUIERDA */
.about-text-column {
  display: flex;
  flex-direction: column;
}

/* BURBUJA DE SALUDO MULTILINGÜE (REFERENCIA 1) */
.speech-bubble-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.speech-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  padding: 10px 22px;
  border-radius: 20px 20px 20px 4px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
}

.bubble-spark {
  font-size: 1.25rem;
}

.bubble-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
  letter-spacing: 0.01em;
  min-height: 1.4em;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.speech-bubble-tail {
  position: absolute;
  bottom: -8px;
  left: 12px;
  width: 0;
  height: 0;
  border-top: 8px solid rgba(245, 158, 11, 0.4);
  border-right: 8px solid transparent;
}

.about-name-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  margin-bottom: 18px;
  line-height: 1.1;
}

.about-description {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.about-metrics-row {
  display: flex;
  gap: 30px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.about-metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-pure);
  letter-spacing: -0.02em;
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-action-row {
  display: flex;
  gap: 16px;
}

.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-pure);
  color: #060709;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 26px;
  border-radius: 100px;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-primary-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.4);
}

/* COLUMNA DERECHA: FOTO + PILLS APILADAS (REFERENCIA 1) */
/* COLUMNA DERECHA: FOTO + PILLS AL LADO (SIN SOLAPAMIENTO) */
.about-visual-column {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

/* RECUADROS APILADOS GLASSMORFISMO AL LADO DE LA FOTO (ALINEADOS A LA IZQUIERDA DE LA FOTO) */
.stacked-pills-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
  flex-shrink: 0;
}

.glass-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 20, 28, 0.88);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1.5px solid var(--border-glow);
  padding: 10px 18px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.glass-role-pill:hover {
  transform: translateX(-4px);
  border-color: var(--accent-amber);
}

.pill-filmmaker {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(30, 24, 15, 0.9);
}

.pill-editor {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(14, 26, 36, 0.9);
}

.pill-location {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(22, 24, 32, 0.9);
}

.role-icon {
  font-size: 1.05rem;
}

.role-text {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-pure);
}

/* RETRATO DE GABRIEL (DESPEJADO, 100% VISIBLE) */
.profile-photo-wrapper {
  position: relative;
  width: 275px;
  height: 365px;
  border-radius: 28px;
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  background: #0D0E14;
  flex-shrink: 0;
}

.profile-glow-ring {
  position: absolute;
  inset: -10px;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.profile-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.05);
}

.profile-badge-status {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-pure);
  z-index: 2;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

/* -------------------- SECCIÓN 3: GALERÍA DE VIDEOS (CARPETA + TELÉFONO TIKTOK) -------------------- */
.gallery-section {
  position: relative;
  padding: 120px 24px 140px;
  overflow: hidden;
}

.gallery-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: center;
}

/* LADO IZQUIERDO: SELECTOR DE CATEGORÍA & INFO */
.gallery-sidebar-col {
  display: flex;
  flex-direction: column;
}

.section-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.gallery-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text-pure);
  line-height: 1.1;
  margin-bottom: 16px;
}

.gallery-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 34px;
}

/* SELECTOR DE SECCIÓN COMPACTO (REELS / EVENTOS) */
.category-selector-tabs.compact-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.compact-tabs .cat-tab-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(18, 19, 25, 0.75);
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.compact-tabs .cat-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.compact-tabs .cat-tab-btn.active {
  background: rgba(26, 28, 38, 0.95);
  border-color: var(--accent-amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.compact-tabs .tab-folder-icon {
  font-size: 1.05rem;
}

.compact-tabs .tab-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: 0.02em;
}

.compact-tabs .tab-counter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 7px;
  border-radius: 100px;
}

.compact-tabs .cat-tab-btn:not(.active) .tab-counter {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
}

/* -------------------- ESCENARIO DE PRESENTACIÓN: SMARTPHONE TIKTOK -------------------- */
.gallery-showcase-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
}

.phone-presentation-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* SMARTPHONE MOCKUP (REPRODUCTOR TIKTOK LIMPIO) */
.smartphone-mockup {
  position: relative;
  width: 310px;
  height: 620px;
  background: #000000;
  border-radius: 46px;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 158, 11, 0.12);
  border: 3.5px solid #2B2C36;
  z-index: 10;
  user-select: none;
}

/* BOTÓN DE COTIZAR EXTERNO AL TELÉFONO */
.phone-external-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 15;
}

.btn-external-quote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  color: #060709;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-external-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.45);
  background: #FFFFFF;
  color: #000000;
}

.quote-btn-icon {
  font-size: 1.1rem;
}

.quote-btn-arrow {
  transition: transform 0.25s ease;
}

.btn-external-quote:hover .quote-btn-arrow {
  transform: translate(2px, -2px);
}

/* BOTONES FÍSICOS DEL TELÉFONO */
.phone-physical-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.phone-button-volume-up {
  position: absolute;
  left: -7px;
  top: 110px;
  width: 4px;
  height: 38px;
  background: #3A3B47;
  border-radius: 2px 0 0 2px;
}

.phone-button-volume-down {
  position: absolute;
  left: -7px;
  top: 158px;
  width: 4px;
  height: 38px;
  background: #3A3B47;
  border-radius: 2px 0 0 2px;
}

.phone-button-power {
  position: absolute;
  right: -7px;
  top: 130px;
  width: 4px;
  height: 54px;
  background: #3A3B47;
  border-radius: 0 2px 2px 0;
}

/* PANTALLA DEL TELÉFONO */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: #050508;
  display: flex;
  flex-direction: column;
}

/* DYNAMIC ISLAND NOTCH */
.phone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000000;
  border-radius: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.island-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #111424;
  border: 1.5px solid #1A213D;
}

.island-speaker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0B0B0E;
}

/* BARRA DE ESTADO */
.phone-status-bar {
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 28;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  color: #FFFFFF;
}

.status-indicators {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-battery {
  width: 18px;
  height: 9px;
  border: 1.5px solid #FFF;
  border-radius: 3px;
  padding: 1px;
}

.battery-level {
  width: 80%;
  height: 100%;
  background: #FFF;
  border-radius: 1px;
}

/* CONTROLES SUPERIORES FLOTANTES (AUDIO & CATEGORÍA) */
.phone-top-bar {
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 25;
}

.category-indicator-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* BOTÓN DE AUDIO / VOLUMEN EN EL TELÉFONO */
.phone-audio-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.phone-audio-btn:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: var(--accent-amber);
  transform: scale(1.05);
}

.phone-audio-btn.active-audio {
  background: rgba(245, 158, 11, 0.9);
  color: #000;
  border-color: #FFFFFF;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

.phone-audio-btn.active-audio .audio-text {
  color: #000;
  font-weight: 800;
}

.audio-icon {
  font-size: 0.85rem;
}

.audio-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* CONTROLES LATERALES DE NAVEGACIÓN PARA COMPUTADORA (EXTERNO AL TELÉFONO) */
.desktop-phone-nav {
  position: absolute;
  right: calc(50% - 225px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(18, 20, 28, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--border-light);
  padding: 14px 10px;
  border-radius: 100px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 25;
  transition: all 0.3s ease;
}

.nav-control-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-control-btn:hover {
  background: var(--accent-amber);
  color: #060709;
  border-color: var(--accent-amber);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.45);
}

.nav-control-btn:active {
  transform: scale(0.95);
}

.nav-video-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-pure);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  padding: 4px 0;
  user-select: none;
}

.counter-sep {
  font-size: 0.6rem;
  opacity: 0.35;
  margin: 2px 0;
}

#currentVideoNum {
  color: var(--accent-amber);
  font-size: 0.78rem;
}

#totalVideoNum {
  color: var(--text-dim);
  font-size: 0.68rem;
}

/* CONTENEDOR TIKTOK VERTICAL SNAP SCROLL */
.tiktok-feed-container {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.tiktok-feed-container:active {
  cursor: grabbing;
}

.tiktok-feed-container::-webkit-scrollbar {
  display: none;
}

.tiktok-slide {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  overflow: hidden;
}

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

/* OVERLAY DE TAP PARA PAUSA/PLAY */
.video-tap-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
}

.play-pause-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.tiktok-slide.is-paused .play-pause-icon {
  opacity: 1;
  transform: scale(1);
}

/* OVERLAY INFERIOR DE INFORMACIÓN DEL VIDEO (DEGRADADO COMPLETO Y SUAVE) */
.tiktok-video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 95px 18px 24px;
  z-index: 15;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.72) 42%,
    rgba(0, 0, 0, 0.25) 75%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.overlay-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.overlay-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.overlay-sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.38;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

/* BARRA DE PROGRESO INFERIOR SCRUBBER */
.phone-timeline-scrubber {
  position: absolute;
  bottom: 8px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  z-index: 30;
}

.scrubber-progress {
  width: 0%;
  height: 100%;
  background: var(--accent-amber);
  border-radius: 3px;
  transition: width 0.15s linear;
}

.phone-home-indicator {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  z-index: 31;
}

/* -------------------- FOOTER CINEMATOGRÁFICO -------------------- */
.cinematic-footer {
  position: relative;
  background: #040507;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 70px 24px 40px;
  z-index: 10;
}

.footer-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-isotype {
  height: 36px;
  width: auto;
  display: block;
}

.footer-brand-title {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-pure);
}

.footer-brand-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--text-pure);
}

.footer-location-txt {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-back-to-top:hover {
  color: var(--text-pure);
}

/* -------------------- ADAPTACIÓN RESPONSIVA (TABLET & MÓVIL) -------------------- */
@media (max-width: 960px) {
  .hero-section {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-title-stage {
    padding: 30px 10px 35px;
  }

  .pill-marca {
    top: -14px;
    left: 4px;
  }
  .pill-vende {
    top: -14px;
    right: 4px;
  }
  .pill-ritmo {
    bottom: -16px;
    left: 4px;
  }
  .pill-color {
    bottom: -16px;
    right: 4px;
  }

  .about-glass-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    gap: 40px;
  }

  .about-visual-column {
    justify-content: center;
    margin-top: 20px;
    flex-direction: column;
  }

  .stacked-pills-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
  }

  .glass-role-pill {
    margin-left: 0 !important;
  }

  .gallery-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-showcase-col {
    min-height: auto;
  }

  .phone-presentation-stage {
    width: 100%;
  }

  .smartphone-mockup {
    width: 300px;
    height: 590px;
  }

  .desktop-phone-nav {
    display: none !important;
  }

  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 100px 16px 50px;
    min-height: auto;
  }

  .floating-pill-nav {
    top: 12px;
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    max-width: calc(100vw - 24px);
  }

  .nav-inner {
    padding: 8px 14px;
  }

  .nav-menu {
    display: none; /* Simplificado en móvil para dar espacio al CTA */
  }

  .btn-white-cta {
    padding: 7px 15px;
    font-size: 0.78rem;
  }

  .hero-kicker-pill {
    font-size: 0.65rem;
    padding: 5px 12px;
    margin-bottom: 18px;
  }

  .hero-header-box {
    margin-bottom: 35px;
  }

  .hero-title-stage {
    padding: 24px 0 28px;
    margin-bottom: 22px;
    width: 100%;
    position: relative;
  }

  .hero-main-title {
    gap: 4px;
  }

  .title-portfolio {
    font-size: 2.2rem;
  }

  .title-filmmaking {
    font-size: 2.3rem;
  }

  .title-edition {
    font-size: 1.15rem;
  }

  /* FRASES QUE SALEN DESDE DENTRO Y FLOTAN EN MÓVIL (4 ESQUINAS SIMÉTRICAS) */
  .floating-pill-badge {
    padding: 5px 9px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.75);
    max-width: 48%;
  }

  .pill-icon {
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  .pill-text {
    font-size: 0.59rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .pill-marca {
    top: -8px;
    left: 2px;
    right: auto;
    bottom: auto;
  }

  .pill-ritmo {
    top: -8px;
    right: 2px;
    left: auto;
    bottom: auto;
  }

  .pill-vende {
    bottom: -10px;
    left: 2px;
    top: auto;
    right: auto;
  }

  .pill-color {
    bottom: -10px;
    right: 2px;
    top: auto;
    left: auto;
  }

  .asset-laptop {
    width: 80px;
    top: -42px;
    right: 6px;
  }

  .asset-cam {
    display: none;
  }

  /* TIMELINE MÁS PEQUEÑA Y FLOTANTE EN MÓVIL */
  .timeline-davinci-card {
    max-width: 100%;
    padding: 10px 12px 14px;
    border-radius: 14px;
  }

  .davinci-title span {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.68rem;
  }

  .davinci-timecode {
    font-size: 0.72rem;
    padding: 2px 7px;
  }

  .davinci-ruler {
    font-size: 0.58rem;
    padding: 2px 4px;
  }

  .track-label {
    width: 22px;
    font-size: 0.6rem;
  }

  .video-track-lane {
    height: 22px;
  }

  .audio-track-lane {
    height: 18px;
  }

  .track-block-label {
    font-size: 0.52rem;
  }

  /* SOBRE MÍ EN MÓVIL */
  .stacked-pills-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
  }

  .glass-role-pill {
    padding: 7px 14px;
    border-radius: 12px;
  }

  .role-icon {
    font-size: 0.9rem;
  }

  .role-text {
    font-size: 0.72rem;
  }

  .profile-photo-wrapper {
    width: 100%;
    max-width: 260px;
    height: 330px;
  }

  .about-metrics-row {
    flex-direction: column;
    gap: 14px;
  }

  /* GALERÍA EN MÓVIL */
  .gallery-info-col {
    text-align: center;
  }

  .category-selector-tabs.compact-tabs {
    justify-content: center;
    margin-bottom: 20px;
  }

  .compact-tabs .cat-tab-btn {
    padding: 7px 14px;
  }

  .compact-tabs .tab-label {
    font-size: 0.84rem;
  }

  .compact-tabs .tab-folder-icon {
    font-size: 0.95rem;
  }

  .smartphone-mockup {
    width: 285px;
    height: 560px;
    border-radius: 40px;
    border-width: 3px;
  }

  .btn-external-quote {
    width: 100%;
    max-width: 285px;
    justify-content: center;
    font-size: 0.84rem;
    padding: 11px 18px;
  }

  /* FOOTER CINEMATOGRÁFICO EN MÓVIL */
  .cinematic-footer {
    padding: 50px 20px 105px; /* Espacio inferior generoso para que no choque con la barra flotante */
    text-align: center;
  }

  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 35px;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-isotype {
    height: 40px;
    margin-bottom: 4px;
  }

  .footer-brand-title {
    font-size: 1.15rem;
  }

  .footer-brand-tagline {
    font-size: 0.8rem;
    max-width: 280px;
    line-height: 1.5;
  }

  .footer-nav-col {
    align-items: center;
  }

  .footer-col-title {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--accent-amber);
    margin-bottom: 4px;
  }

  .footer-nav-list {
    align-items: center;
    gap: 12px;
  }

  .footer-nav-list a {
    font-size: 0.86rem;
    color: var(--text-pure);
    opacity: 0.85;
  }

  .footer-location-txt {
    font-size: 0.82rem;
  }

  .footer-bottom-row {
    flex-direction: column-reverse;
    gap: 18px;
    padding-top: 25px;
    text-align: center;
  }

  .footer-back-to-top {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.76rem;
    color: var(--text-pure);
  }

  .footer-copyright {
    font-size: 0.74rem;
    line-height: 1.6;
    max-width: 310px;
    color: var(--text-dim);
  }
}
