/* ==========================================================================
   VisioSound - Stage Design | Portfolio Web
   Diseño de alta fidelidad basado en la identidad de Víctor Garay
   ========================================================================== */

:root {
  --bg-black: #000000;
  --bg-surface: #070b0e;
  --bg-card: rgba(8, 18, 22, 0.7);
  
  --cyan-primary: #00e5ff;
  --cyan-bright: #14ffec;
  --cyan-glow: rgba(0, 229, 255, 0.35);
  --cyan-subtle: rgba(0, 229, 255, 0.12);
  
  --text-white: #ffffff;
  --text-dim: #d1d5db;
  --text-muted: #8e9aaf;
  
  --font-title: 'Bebas Neue', sans-serif;
  --font-logo-title: 'Bebas Neue', sans-serif;
  --font-logo-sub: 'Roboto', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-black);
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* Contenedor principal con Scroll Snap tipo presentación */
.portfolio-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* Diapositivas individuales (7 páginas exactas) */
.slide {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Márgenes seguros Desktop:
     Top: clamp(1.8rem, 3.2vh, 2.6rem)
     Right: clamp(2.5rem, 4.5vw, 4.5rem) (resguardo de nav-dots)
     Bottom: clamp(3.8rem, 6.8vh, 5.2rem) (resguardo de watermark y ondas)
     Left: clamp(2.5rem, 4.5vw, 4.5rem) (simetría estética) */
  padding: clamp(1.8rem, 3.2vh, 2.6rem) clamp(2.5rem, 4.5vw, 4.5rem) clamp(3.8rem, 6.8vh, 5.2rem);
  overflow: hidden;
  background-color: var(--bg-black);
  box-sizing: border-box;
}

.slide-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInSlide 0.6s ease-out;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   FONDOS DE ONDAS ORIGINALES POR DIAPOSITIVA (Conexión Continua Oficial)
   ========================================================================== */
.slide-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%; /* Estira el fondo en formato horizontal web sin barras negras */
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
}

#slide-1 .slide-bg-layer {
  background-image: url('assets/bg-page-1.png');
}

#slide-2 .slide-bg-layer {
  background-image: url('assets/bg-page-2.png');
}

#slide-3 .slide-bg-layer {
  background-image: url('assets/bg-page-2.png'); /* Continuidad visual exacta de ondas */
}

#slide-4 .slide-bg-layer {
  background-image: url('assets/bg-page-3.png');
}

#slide-5 .slide-bg-layer {
  background-image: url('assets/bg-page-4.png');
}

#slide-6 .slide-bg-layer {
  background-image: url('assets/bg-page-5.png');
}

#slide-7 .slide-bg-layer {
  background-image: url('assets/bg-page-6.png');
}

@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .slide-bg-layer {
    background-size: cover; /* En móvil mantiene su proporción vertical original */
    background-position: center center;
  }
}

/* ==========================================================================
   TIPOGRAFÍA Y TÍTULOS
   ========================================================================== */
.page-title {
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 7.5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--text-white);
  margin-bottom: 2.2rem;
  text-align: center;
  text-transform: uppercase;
}

.page-title.leading-tight {
  line-height: 0.95;
}

.page-title.single-line-title {
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  white-space: nowrap;
  letter-spacing: 0.05em;
  margin-bottom: clamp(0.8rem, 2vh, 1.5rem);
}

.sub-cyan {
  color: var(--cyan-primary);
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.sub-white {
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}

.cyan-txt {
  color: var(--cyan-primary);
}

/* ==========================================================================
   WATERMARK DE VISIOSOUND (Esquina inferior derecha)
   ========================================================================== */
.slide-watermark {
  position: absolute;
  bottom: 22px;
  right: 28px;
  z-index: 12;
  user-select: none;
  pointer-events: none;
}

.watermark-logo-img {
  width: clamp(120px, 14vw, 155px);
  height: auto;
  display: block;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.25));
  transition: var(--transition-smooth);
}

/* ==========================================================================
   PAGE 1: PORTADA / HERO
   ========================================================================== */
.hero-top-badge {
  position: absolute;
  top: 32px;
  right: 36px;
  z-index: 15;
}

.badge-text {
  font-family: var(--font-title);
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  color: var(--text-white);
}

.brand-logo {
  margin-bottom: clamp(1.2rem, 3vh, 2.4rem);
  width: 100%;
  max-width: clamp(340px, 46vw, 560px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.official-brand-logo {
  width: 100%;
  max-width: clamp(320px, 42vw, 540px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.45));
  animation: logoGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes logoGlowPulse {
  0% {
    filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.35));
  }
  100% {
    filter: drop-shadow(0 0 45px rgba(0, 229, 255, 0.6));
  }
}

.hero-info-group {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2.5vh, 1.8rem);
  width: 100%;
}

.info-block {
  text-align: center;
}

.info-block .sub-cyan {
  font-size: clamp(0.85rem, 1.7vw, 1.18rem);
  letter-spacing: 0.16em;
  margin-bottom: 0.3rem;
}

.highlight-name {
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  margin-top: 0.15rem;
  color: var(--text-white);
}

.mt-spaced {
  margin-top: 0.4rem;
}

/* ==========================================================================
   SECCIONES DE VIDEO: PRODUCCIONES EN VIVO & PREVISUALIZACIÓN / WORKFLOW
   ========================================================================== */
.video-slide-content {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.video-slide-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
  max-width: 680px;
  margin: 0 auto clamp(0.8rem, 2vh, 1.5rem);
}

.video-showcase-wrapper {
  width: 100%;
  /* Controlled max-width on desktop, keeping it nicely proportioned with aspect-ratio */
  max-width: min(860px, 92vw, 52vh * 16 / 9);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-screen-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #010a0c;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.16), inset 0 0 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.video-screen-card:hover,
.video-screen-card:focus-visible {
  transform: translateY(-3px) scale(1.015);
  border-color: var(--cyan-primary);
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.38), inset 0 0 30px rgba(0, 229, 255, 0.2);
}

.video-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Exact native 16:9 visualization without cropping any texts/borders */
  object-position: center;
  display: block;
  opacity: 0.88;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.video-screen-card:hover .video-thumb-img {
  opacity: 1;
  filter: contrast(1.06) saturate(1.15);
}

.video-ambient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.22) 0%, transparent 70%);
  filter: blur(25px);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.95; }
}

.stage-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.55;
}

.central-play-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: clamp(56px, 7vw, 74px);
  height: clamp(56px, 7vw, 74px);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 3.5px solid var(--cyan-primary);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.55);
  transition: transform var(--transition-smooth), background-color var(--transition-smooth), color var(--transition-smooth), box-shadow var(--transition-smooth);
  pointer-events: none;
}

.central-play-circle svg {
  margin-left: 3px; /* Centrado óptico del triángulo */
}

.video-screen-card:hover .central-play-circle {
  transform: translate(-50%, -50%) scale(1.14);
  background-color: var(--cyan-primary);
  color: #000;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.85);
}

.video-help-caption {
  font-size: clamp(0.72rem, 1.3vw, 0.84rem);
  letter-spacing: 0.14em;
  color: var(--cyan-primary);
  margin-top: clamp(0.55rem, 1.4vh, 1rem);
  text-transform: uppercase;
  opacity: 0.9;
  font-weight: 600;
}

/* ==========================================================================
   PAGE 3: EXPERIENCIAS DESTACADAS
   ========================================================================== */
.stats-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 1vw, 0.75rem);
  flex-wrap: wrap;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: clamp(1.2rem, 2.6vh, 2rem);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.12);
  backdrop-filter: blur(8px);
}

.stat-item {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1.25vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-white);
  text-transform: uppercase;
}

.stat-item .stat-num {
  color: var(--cyan-primary);
  font-weight: 900;
  margin-right: 2px;
}

.stat-sep {
  color: var(--cyan-primary);
  font-size: 0.9rem;
}

.content-list-group {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.2vh, 1.8rem);
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.experience-card {
  text-align: center;
}

.category-header {
  margin-bottom: clamp(0.35rem, 0.8vh, 0.6rem);
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  letter-spacing: 0.18em;
}

.experience-lines-group {
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 0.6vh, 0.5rem);
}

.experience-line {
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.45vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.exp-chunk {
  display: inline-block;
  transition: color var(--transition-smooth);
  cursor: default;
}

.exp-chunk:hover {
  color: var(--cyan-primary);
}

.dot-sep {
  color: var(--cyan-primary);
  margin: 0 clamp(0.3rem, 0.6vw, 0.6rem);
  font-weight: 700;
  opacity: 0.85;
  display: inline-block;
}

/* ==========================================================================
   PAGE 4: ESCENARIOS PRINCIPALES
   ========================================================================== */
.venues-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1.3vh, 0.95rem);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.venue-item {
  font-size: clamp(0.78rem, 1.35vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-white);
  text-transform: uppercase;
  line-height: 1.4;
  padding: 2px 4px;
  cursor: default;
  user-select: text;
}

.venue-sep {
  color: var(--cyan-primary);
  font-weight: 700;
  margin: 0 0.35rem;
}

.venue-loc {
  color: var(--cyan-primary);
  white-space: nowrap;
}

/* ==========================================================================
   PAGE 6: STACK TECNOLÓGICO (4 Bloques con Logos Monocromo / Duotone)
   ========================================================================== */
.tech-stack-container {
  display: flex;
  flex-direction: column;
  gap: clamp(0.42rem, 1vh, 0.9rem);
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.tech-group {
  text-align: center;
}

.tech-group .category-header {
  margin-bottom: clamp(0.16rem, 0.35vh, 0.3rem);
  font-size: clamp(0.8rem, 1.35vw, 1.05rem);
  letter-spacing: 0.18em;
}

.tech-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.16rem, 0.4vh, 0.32rem);
}

.tech-item-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 0.8vw, 12px);
  padding: 2px 12px;
  border-radius: 6px;
  transition: var(--transition-smooth);
  cursor: default;
  user-select: text;
}

.software-logo-img {
  width: clamp(16px, 1.5vw, 21px);
  height: clamp(16px, 1.5vw, 21px);
  object-fit: contain;
  opacity: 0.88;
  filter: brightness(0.96) drop-shadow(0 0 3px rgba(0, 229, 255, 0.3));
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  vertical-align: middle;
  flex-shrink: 0;
}

.software-logo-img.logo-grandma {
  width: auto;
  max-width: clamp(30px, 2.6vw, 38px);
  height: clamp(13px, 1.3vw, 17px);
}

.software-name {
  font-size: clamp(0.78rem, 1.3vw, 1.02rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-white);
  text-transform: uppercase;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

/* Duotone / Glow reactivo al interactuar */
.tech-item-row:hover {
  background: rgba(0, 229, 255, 0.05);
}

.tech-item-row:hover .software-logo-img {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.95)) drop-shadow(0 0 16px rgba(0, 229, 255, 0.5)) brightness(1.2);
  transform: scale(1.15);
}

.tech-item-row:hover .software-name {
  color: var(--cyan-bright);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.65);
}

/* ==========================================================================
   PAGE 6: CONTACTOS
   ========================================================================== */
.contact-links-container {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2.5vh, 1.8rem);
  width: 100%;
  max-width: clamp(520px, 62vw, 750px);
  margin: 0 auto;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  position: relative;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: var(--text-white);
  flex-grow: 1;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  background: transparent;
  min-width: 0;
}

.contact-link:hover, .contact-link:focus-visible {
  background: rgba(0, 229, 255, 0.08);
  transform: translateX(6px);
}

.icon-circle {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  border: 2px solid var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
  transition: var(--transition-smooth);
}

.contact-link:hover .icon-circle {
  background: var(--cyan-primary);
  color: #000;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
  transform: scale(1.08);
}

.contact-text {
  font-size: clamp(0.95rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.contact-link:hover .contact-text {
  color: var(--cyan-bright);
  text-decoration-color: var(--cyan-bright);
}

.email-text {
  font-size: clamp(0.72rem, 1.3vw, 1.05rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--cyan-primary);
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  background: var(--cyan-primary);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
  transform: scale(1.08);
}

/* ==========================================================================
   NAVEGACIÓN LATERAL (Dots) & FLECHAS
   ========================================================================== */
.slide-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 100;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 0;
}

.nav-dot:hover {
  background: var(--cyan-primary);
  transform: scale(1.3);
}

.nav-dot.active {
  background: var(--cyan-primary);
  border-color: #000;
  box-shadow: 0 0 12px var(--cyan-primary);
  transform: scale(1.35);
}

.slide-arrows {
  position: fixed;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.arrow-btn:hover {
  background: var(--cyan-primary);
  color: #000;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.6);
  transform: translateY(-2px);
}

/* ==========================================================================
   TOAST NOTIFICATION (Copiado exitoso)
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #061e24;
  border: 1px solid var(--cyan-primary);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   MODAL DE VIDEO (SHOWREEL)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.modal-window {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 860px;
  background: #070e12;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.25);
  animation: modalZoomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalZoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}

.modal-title {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.15em;
  font-size: 1.05rem;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--cyan-primary);
  transform: rotate(90deg);
}

.modal-video-container {
  position: relative;
  background: #000;
}

.video-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-stage-player {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #01080a;
}

.stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-stage-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
}

.stage-badge {
  display: inline-block;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--cyan-primary);
  color: var(--cyan-bright);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.stage-sub {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.stage-demo-btn {
  background: var(--cyan-primary);
  color: #000;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.stage-demo-btn:hover {
  background: var(--cyan-bright);
  box-shadow: 0 0 25px var(--cyan-primary);
  transform: scale(1.04);
}

.modal-footer {
  padding: 1rem 1.6rem;
  border-top: 1px solid rgba(0, 229, 255, 0.15);
  background: #050a0d;
}

.modal-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-hint code {
  color: var(--cyan-primary);
  background: rgba(0, 229, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   RESPONSIVE (Móviles y Tablets)
   ========================================================================== */
@media (max-width: 768px) {
  .slide {
    padding: clamp(1.2rem, 2.5vh, 1.8rem) clamp(1rem, 3.5vw, 1.4rem) clamp(4rem, 8vh, 5.2rem);
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
  }
  
  .hero-top-badge {
    top: clamp(12px, 2vh, 18px);
    right: clamp(14px, 3vw, 20px);
  }
  
  .badge-text {
    font-size: 1.15rem;
  }

  .brand-logo {
    max-width: clamp(240px, 75vw, 330px);
    margin-bottom: clamp(0.8rem, 2vh, 1.4rem);
  }

  .highlight-name {
    font-size: clamp(1.1rem, 3.8vw, 1.4rem);
    letter-spacing: 0.16em;
  }
  
  .slide-watermark {
    bottom: 12px;
    right: 16px;
  }
  
  .watermark-logo-img {
    width: 95px;
  }
  
  .slide-bg-layer {
    background-size: cover;
  }
  
  .slide-nav {
    right: 8px;
    gap: 8px;
  }
  
  .nav-dot {
    width: 8px;
    height: 8px;
  }
  
  .slide-arrows {
    display: none; /* En móvil se utiliza deslizamiento táctil */
  }

  .page-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: clamp(0.8rem, 1.8vh, 1.2rem);
  }

  .page-title.single-line-title {
    font-size: clamp(1.35rem, 5.2vw, 2.1rem);
    white-space: nowrap;
    letter-spacing: 0.04em;
    margin-bottom: clamp(0.6rem, 1.6vh, 1rem);
  }
  
  .video-showcase-wrapper {
    max-width: 96%;
  }

  .video-slide-subtitle {
    font-size: clamp(0.76rem, 2.7vw, 0.88rem);
    margin-bottom: clamp(0.5rem, 1.4vh, 0.9rem);
    line-height: 1.35;
  }

  .central-play-circle {
    width: 48px;
    height: 48px;
  }

  .central-play-circle svg {
    width: 24px;
    height: 24px;
    margin-left: 2px;
  }

  .video-help-caption {
    font-size: 0.68rem;
    margin-top: 0.45rem;
  }

  .stats-badge {
    padding: 4px 12px;
    margin-bottom: clamp(0.6rem, 1.4vh, 0.9rem);
  }

  .stat-item {
    font-size: clamp(0.66rem, 2.4vw, 0.78rem);
    letter-spacing: 0.1em;
  }
  
  .content-list-group {
    gap: clamp(0.65rem, 1.5vh, 1rem);
  }

  .experience-card .category-header {
    font-size: clamp(0.74rem, 2.6vw, 0.86rem);
    margin-bottom: 0.2rem;
  }

  .experience-lines-group {
    gap: 0.2rem;
  }

  .experience-line {
    font-size: clamp(0.72rem, 2.4vw, 0.84rem);
    line-height: 1.35;
  }
  
  .venues-grid {
    gap: clamp(0.28rem, 0.8vh, 0.45rem);
  }
  
  .venue-item {
    font-size: clamp(0.64rem, 2.3vw, 0.76rem);
    letter-spacing: 0.03em;
    line-height: 1.28;
  }

  .venue-sep {
    margin: 0 0.2rem;
  }

  .tech-stack-container {
    gap: clamp(0.35rem, 0.9vh, 0.62rem);
  }

  .tech-group .category-header {
    font-size: clamp(0.7rem, 2.3vw, 0.82rem);
    margin-bottom: 0.1rem;
    letter-spacing: 0.14em;
  }

  .tech-items {
    gap: clamp(0.06rem, 0.2vh, 0.14rem);
  }

  .tech-item-row {
    gap: 6px;
    padding: 1px 6px;
  }

  .software-logo-img {
    width: clamp(13px, 3.4vw, 16px);
    height: clamp(13px, 3.4vw, 16px);
    opacity: 0.9;
  }

  .software-logo-img.logo-grandma {
    max-width: clamp(24px, 5.8vw, 30px);
    height: clamp(11px, 2.8vw, 14px);
  }

  .software-name {
    font-size: clamp(0.66rem, 2.2vw, 0.76rem);
    letter-spacing: 0.06em;
  }
  
  .contact-links-container {
    gap: clamp(0.65rem, 1.4vh, 0.95rem);
    max-width: 350px;
  }

  .contact-row {
    gap: 0.45rem;
  }

  .icon-circle {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .icon-circle svg {
    width: 20px;
    height: 20px;
  }

  .copy-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 6px;
  }

  .contact-link {
    gap: 0.65rem;
    padding: 0.35rem 0.5rem;
  }
  
  .contact-text {
    font-size: clamp(0.76rem, 2.9vw, 0.88rem);
  }
  
  .email-text {
    font-size: clamp(0.58rem, 2.4vw, 0.74rem);
    letter-spacing: 0.005em;
    white-space: nowrap;
  }
}
