/* ==========================================
   TARJETA MAUXITS V3 - 3D CREATOR PORTFOLIO STYLING
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

:root {
  --bg-dark: #0C0C0C;
  --text-main: #D7E2EA;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Kanit', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: clip;
}

/* Navbar Link Smooth Hover Zoom & Cyberpunk Glow Effect */
.nav-link {
  display: inline-block;
  color: #D7E2EA;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.3s ease, text-shadow 0.3s ease;
  will-change: transform;
  cursor: pointer;
}

.nav-link:hover {
  transform: scale(1.18);
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.8), 0 0 22px rgba(182, 0, 168, 0.6);
}

/* Chrome Metal Hero Heading with External RGB Neon Shadow Glow on Hover */
.hero-heading {
  position: relative;
  display: block;
  width: 100%;
  color: #D7E2EA;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  cursor: pointer;
  z-index: 2;
}

/* Services, Contact & Photo Slide dark text on white background */
#services-section .hero-heading,
#contact-section .hero-heading,
#about-photo-slide .hero-heading {
  color: #0C0C0C;
}

/* Dynamic Smooth Transition for Services Section when Slide 2 (White) is Active */
#services-section {
  transition: border-radius 0.5s ease, margin-top 0.5s ease;
}

#services-section.slide-2-flat-top {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  margin-top: 0 !important;
}




/* External RGB Neon Shadow Layer (Behind opaque text, invisible by default) */
.hero-heading::before {
  content: attr(data-text);
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: -1;
  text-align: center;
  color: #00F0FF;
  
  filter: blur(16px) drop-shadow(0 0 25px #B600A8) drop-shadow(0 0 45px #FF007A);
  opacity: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
  pointer-events: none;
}

/* Activate External RGB Neon Shadow ONLY on Hover */
.hero-heading:hover {
  transform: scale(1.015);
}

.hero-heading:hover::before {
  opacity: 0.95;
  animation: rgbExternalShadowShift 3s linear infinite;
}

@keyframes rgbExternalShadowShift {
  0% {
    color: #00F0FF;
    filter: blur(16px) drop-shadow(0 0 25px #B600A8) drop-shadow(0 0 45px #FF007A);
  }
  33% {
    color: #B600A8;
    filter: blur(16px) drop-shadow(0 0 25px #FF007A) drop-shadow(0 0 45px #00F0FF);
  }
  66% {
    color: #FF007A;
    filter: blur(16px) drop-shadow(0 0 25px #00F0FF) drop-shadow(0 0 45px #B600A8);
  }
  100% {
    color: #00F0FF;
    filter: blur(16px) drop-shadow(0 0 25px #B600A8) drop-shadow(0 0 45px #FF007A);
  }
}

/* Pill Contact Button with Infinite Purple-to-Pink Liquid Gradient Flow */
.contact-btn {
  background: linear-gradient(90deg, #7621B0 0%, #B600A8 25%, #FF007A 50%, #B600A8 75%, #7621B0 100%, #B600A8 125%, #FF007A 150%, #B600A8 175%, #7621B0 200%);
  background-size: 200% 100%;
  animation: buttonGradientInfinite 4s linear infinite;
  box-shadow: 0px 4px 15px rgba(181, 1, 167, 0.4), 0px 0px 12px rgba(255, 0, 122, 0.3) inset;
  outline: 2px solid #FFFFFF;
  outline-offset: -3px;
  border-radius: 9999px;
  color: #FFFFFF;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.contact-btn:hover {
  transform: scale(1.06);
  box-shadow: 0px 8px 30px rgba(181, 1, 167, 0.75), 0px 0px 25px rgba(255, 0, 122, 0.6), 0px 0px 15px rgba(118, 33, 176, 0.5) inset;
  animation-duration: 2.2s;
}

@keyframes buttonGradientInfinite {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: -200% 0%;
  }
}

/* Live Project Ghost Button */
.live-project-btn {
  border: 2px solid #D7E2EA;
  color: #D7E2EA;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.live-project-btn:hover {
  background: rgba(215, 226, 234, 0.15);
  transform: translateY(-2px);
}

/* Marquee Row Container */
.marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
}

/* Character Reveal Text Animation Base */
#animated-about-text {
  white-space: pre-wrap;
}

.char-reveal {
  opacity: 0.2;
  transition: opacity 0.3s ease;
  display: inline;
}

.char-reveal.active {
  opacity: 1;
}

/* ==========================================
   PROJECTS PAGE — OLED BLACK + BRAND CONTROLS
   ========================================== */
html.oled,
html.oled body {
  background-color: #000000;
}

/* Pildoras de filtro (mismo lenguaje que los botones de la landing) */
.filter-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(215, 226, 234, 0.2);
  color: rgba(215, 226, 234, 0.6);
}

.filter-tab:hover {
  border-color: rgba(215, 226, 234, 0.55);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.filter-tab.is-active {
  background: #D7E2EA;
  border-color: #D7E2EA;
  color: #0C0C0C;
  box-shadow: 0 0 22px rgba(215, 226, 234, 0.28);
}

.filter-tab[data-category="LIVE"].is-active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #34d399;
  color: #a7f3d0;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.35);
}

/* Botón secundario Ficha Técnica / Case Study en Modal */
.tech-sheet-btn {
  border: 1px solid rgba(215, 226, 234, 0.3);
  background: rgba(255, 255, 255, 0.03);
  color: #D7E2EA;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  transition: all 0.25s ease;
}

.tech-sheet-btn:hover {
  border-color: #00f0ff;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}

/* Pestañas del Modal (Resumen vs Ficha Técnica) */
.modal-tab-btn {
  color: rgba(215, 226, 234, 0.6);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.modal-tab-btn:hover {
  color: #ffffff;
}

.modal-tab-btn.is-active {
  background: #D7E2EA;
  color: #0C0C0C;
  border-color: #D7E2EA;
  box-shadow: 0 0 16px rgba(215, 226, 234, 0.25);
}



/* Tarjeta de proyecto del catalogo (hereda el borde cromado de la landing) */
.project-card {
  background: #0C0C0C;
  border: 1px solid rgba(215, 226, 234, 0.18);
  border-radius: 30px;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.project-card:hover {
  border-color: rgba(215, 226, 234, 0.85);
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
}

.project-card .project-shot {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-shot {
  transform: scale(1.05);
}

/* Visualizador de audio (vive en style.css de V1; replicado aqui para V3) */
.icon-visualizer .bar {
  background: #D7E2EA;
  animation: equalize 1s infinite;
}

.icon-visualizer .bar:nth-child(1) { height: 60%; animation-delay: -0.2s; }
.icon-visualizer .bar:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.icon-visualizer .bar:nth-child(3) { height: 45%; animation-delay: -0.8s; }

@keyframes equalize {
  0%, 100% { height: 35%; }
  50% { height: 100%; }
}

.paused .icon-visualizer .bar {
  animation-play-state: paused;
  height: 30% !important;
}

/* ==========================================
   FLOATING MUSIC PLAYER (persiste entre landing y projects)
   ========================================== */
#music-player {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1.1rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#music-player:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 240, 255, 0.12);
}

/* En moviles el CTA del hero y la barra inferior tambien viven en la
   esquina inferior izquierda: el reproductor se pasa a la derecha para
   no chocar con ellos. */
@media (max-width: 639px) {
  #music-player {
    left: auto;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100vw - 1.5rem);
  }

  #music-player .mp-info {
    max-width: 110px;
  }
}

#mp-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

#mp-toggle:hover {
  background: #00f0ff;
  color: #0C0C0C;
  transform: scale(1.05);
}

#music-player .mp-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  max-width: 140px;
}

@media (min-width: 640px) {
  #music-player .mp-info {
    max-width: 210px;
  }
}

#music-player .mp-title,
#music-player .mp-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#music-player .mp-bars {
  height: 1rem;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

#music-player .mp-bars .bar {
  width: 2px;
  background: #00f0ff;
}

/* ==========================================
   EXPERIENCES PHOTO WALL (vertical infinite marquee)
   ========================================== */
.exp-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
}

.exp-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
}

.exp-legend-count {
  background: #0c0c0c;
  border-color: #0c0c0c;
  color: #fff;
}

.exp-legend-btn {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.exp-legend-btn:hover {
  transform: translateY(-1px);
  border-color: #9333ea;
}

.exp-legend-btn.is-active {
  background: #9333ea;
  border-color: #9333ea;
  color: #fff;
}

.exp-legend-btn.is-active .exp-dot {
  background: #fff !important;
}

.exp-legend-count.is-active {
  background: #0c0c0c;
  border-color: #0c0c0c;
  color: #fff;
}

.exp-marquee {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  width: 100%;
  height: 50vh;
  min-height: 340px;
  overflow: hidden;
  /* difumina los bordes superior/inferior */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
}

@media (min-width: 640px) {
  .exp-marquee {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    height: 54vh;
  }
}

@media (min-width: 1024px) {
  .exp-marquee {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    height: 56vh;
  }
}

.exp-col-wrap {
  overflow: hidden;
  min-width: 0;
}


.exp-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  animation: exp-scroll var(--exp-dur, 80s) linear infinite;
  will-change: transform;
}

@media (min-width: 640px) {
  .exp-col { gap: 0.85rem; }
}

@media (min-width: 1024px) {
  .exp-col { gap: 1rem; }
}

.exp-col.reverse {
  animation-direction: reverse;
}

/* pausa al interactuar con el muro */
.exp-marquee:hover .exp-col,
.exp-marquee:focus-within .exp-col {
  animation-play-state: paused;
}

@keyframes exp-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -50%, 0); }
}

.exp-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #eceef1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(12, 12, 12, 0.07);
  transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-photo:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(12, 12, 12, 0.22);
}

.exp-photo:focus-visible {
  outline: 3px solid #9333ea;
  outline-offset: 3px;
}

.exp-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-photo:hover img {
  transform: scale(1.06);
}

.exp-photo-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0) 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.exp-photo:hover .exp-photo-veil {
  opacity: 1;
}

.exp-photo-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.exp-photo:hover .exp-photo-meta {
  opacity: 1;
  transform: translateY(0);
}

.exp-photo-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.exp-photo-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  flex-shrink: 0;
}

/* Lightbox */
.exp-lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#exp-lb-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.28s ease;
}

#exp-lb-img.is-ready {
  opacity: 1;
}

.exp-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  z-index: 10;
}

.exp-lb-nav:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #fff;
  color: #0c0c0c;
  transform: translateY(-50%) scale(1.08);
}

.exp-lb-prev { left: -4px; }
.exp-lb-next { right: -4px; }

@media (min-width: 768px) {
  .exp-lb-prev { left: -62px; }
  .exp-lb-next { right: -62px; }
}

.exp-lb-spinner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2.5px solid rgba(255, 255, 255, 0.18);
  border-top-color: #06b6d4;
  border-radius: 999px;
  animation: exp-spin 0.75s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.exp-lb-spinner.is-on { opacity: 1; }

@keyframes exp-spin {
  to { transform: rotate(360deg); }
}

/* Respeta usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .exp-col { animation: none; }
  .exp-marquee {
    height: auto;
    max-height: 70vh;
    overflow-y: auto;
  }
  .exp-photo img,
  .exp-photo,
  .exp-photo-veil,
  .exp-photo-meta { transition: none; }
}

/* Courses & Certifications Infinite Marquee */
.courses-marquee-row {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: courses-scroll 50s linear infinite;
}

.courses-marquee-row.reverse {
  animation-direction: reverse;
}

.courses-marquee-row:hover {
  animation-play-state: paused;
}

@keyframes courses-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.course-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.15);
}

/* Custom Scrollbar for V3 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0C0C0C;
}

::-webkit-scrollbar-thumb {
  background: #2a2e38;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #BBCCD7;
}

/* Enhanced Cyberpunk Glassmorphic Course Cards & Marquee */
.courses-marquee-container {
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.course-card-v2 {
  background: rgba(15, 19, 28, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.course-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transition: 0.5s;
  pointer-events: none;
}

.course-card-v2:hover::before {
  left: 100%;
}

.course-card-v2:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 28px rgba(0, 240, 255, 0.25), inset 0 1px 0 0 rgba(0, 240, 255, 0.4);
}

.course-tag {
  font-size: 9px;
  font-family: 'Kanit', monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.course-tag-ai {
  background: rgba(0, 240, 255, 0.12);
  color: #00F0FF;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.course-tag-security {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.course-tag-cloud {
  background: rgba(168, 85, 247, 0.12);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.course-tag-biz {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.course-tag-marketing {
  background: rgba(244, 63, 94, 0.12);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

