/* ====== CANVAS BACKGROUND ====== */
#nokey {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--bg);
  pointer-events: none;
}

/* ====== GLOBAL THEME ====== */
:root {
  --bg: #0a0a0a;
  --bg-soft: #151515;
  --border: #252525;
  --text: #d0d0d0;
  --accent: #6b6b6b;
  
  /* Colores personalizados por proyecto */
  --mots-color: #c8b6ff;
  --ares-color: #8b6f47;
  --warhammer-color: #8b1a1a;
  --minds-color: #ffd700;
  --stelar-color: #9b59b6;
  --sure-color: #8b5a3c;
}

* {
  box-sizing: border-box;
}

body {
  /* Sora para textos descriptivos */
  font-family: 'Sora', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

header {
  position: relative;
  z-index: 10001;
}

section, .hero, .modal {
  position: relative;
  z-index: 1;
}

/* Space Grotesk para todos los títulos */
h1, h2, h3, h4, h5, h6,
.hero-title,
.hero-subtitle,
nav a {
  font-family: 'Space Grotesk', sans-serif;
}

/* ====== GLOBAL THEME ====== */
:root {
  --bg: #0a0a0a;
  --bg-soft: #151515;
  --border: #252525;
  --text: #d0d0d0;
  --accent: #6b6b6b;
  
  /* Colores personalizados por proyecto */
  --mots-color: #6b6b6b;
  --ares-color: #6b6b6b;
  --warhammer-color: #6b6b6b;
  --minds-color: #6b6b6b;
  --stelar-color: #6b6b6b;
  --sure-color: #6b6b6b;
  --hexam-color: #6b6b6b;
}

* {
  box-sizing: border-box;
}

body {
  /* Sora para textos descriptivos */
  font-family: 'Sora', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Space Grotesk para todos los títulos */
h1, h2, h3, h4, h5, h6,
.hero-title,
.hero-subtitle,
nav a {
  font-family: 'Space Grotesk', sans-serif;
}

/* ====== NAV ====== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  z-index: 10001;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  transition: 0.25s;
}

nav a:hover {
  background: rgba(255,255,255,0.05);
  color: white;
  transform: translateY(-2px);
}

/* ====== HERO FULLSCREEN ====== */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.85));
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: #b0b0b0;
  margin: 0 0 2rem 0;
  letter-spacing: 0.1em;
}

.hero-text {
  /* Sora para texto descriptivo del hero */
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.85));
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  z-index: 3;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.scroll-indicator span {
  width: 12px;
  height: 12px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  display: inline-block;
  animation: scrollBounce 1.5s infinite;
  opacity: 0.85;
}

@keyframes scrollBounce {
  0% { transform: translateY(0) rotate(45deg); opacity: 0.5; }
  50% { transform: translateY(8px) rotate(45deg); opacity: 1; }
  100% { transform: translateY(0) rotate(45deg); opacity: 0.5; }
}

/* ====== SECTIONS ====== */
section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 25px;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ====== PROJECT GRID ====== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
  width: 100%;
}

/* ====== PROJECT CARDS ====== */
.project {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.project h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.project p {
  /* Sora para descripciones de proyectos */
  font-family: 'Sora', sans-serif;
  margin: 8px 0;
}

.project img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.35s ease;
  margin-bottom: 12px;
}

.project:hover img {
  transform: scale(1.04);
}

.project a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  margin-top: auto;
  transition: 0.25s ease;
  text-align: center;
}

.project a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

/* Colores personalizados por proyecto */

.project-hexam a {
  background: var(--hexam-color);
  color: #ffffff;
}

.project-hexam a:hover {
  background: #6b6b6b;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}

.project-mots a {
  background: var(--mots-color);
  color: #ffffff;
}

.project-mots a:hover {
  background: #6b6b6b;
  box-shadow: 0 4px 12px rgba(200, 182, 255, 0.4);
}

.project-ares a {
  background: var(--ares-color);
  color: white;
}

.project-ares a:hover {
  background: #6b6b6b;
  box-shadow: 0 4px 12px rgba(139, 111, 71, 0.4);
}

.project-warhammer a {
  background: var(--warhammer-color);
  color: white;
}

.project-warhammer a:hover {
  background: #6b6b6b;
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.4);
}

.project-minds a {
  background: var(--minds-color);
  color: #ffffff;
}

.project-minds a:hover {
  background: #6b6b6b;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.project-stelar a {
  background: var(--stelar-color);
  color: white;
}

.project-stelar a:hover {
  background: #6b6b6b;
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
}

.project-sure a {
  background: var(--sure-color);
  color: white;
}

.project-sure a:hover {
  background: #6b6b6b;
  box-shadow: 0 4px 12px rgba(139, 90, 60, 0.4);
}

/* ====== FOOTER ====== */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 25px 20px;
  text-align: center;
  margin-top: 40px;
}

footer p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

footer a {
  color: #b0b0b0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.2s;
}

footer a:hover {
  color: white;
  border-bottom-color: white;
}

/* ====== SKILLS & CONTACT ====== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 1.5rem;
}

.skills-category h3 {
  font-size: 1.5rem;
  color: #b0b0b0;
  margin-bottom: 1rem;
  text-align: center;
}

.skills-category ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.skills-category li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skills-category li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

/* ====== FOOTER ====== */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 25px 20px;
  text-align: center;
  margin-top: 40px;
}

footer p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

footer a {
  color: #b0b0b0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.2s;
}

footer a:hover {
  color: white;
  border-bottom-color: white;
}



/* ====== SCROLL REVEAL ====== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

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

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 5px;
  }
  
  nav a {
    margin: 5px 8px;
    font-size: 0.9rem;
    padding: 8px 12px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-text {
    font-size: 1.2rem;
    padding: 0 15px;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 30px 15px;
  }
  
  .project img {
    height: 200px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  nav a {
    font-size: 0.85rem;
    padding: 6px 10px;
    margin: 4px 5px;
  }
  
  #skills ul {
    grid-template-columns: 1fr;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
  }
}

/* ====== PROJECT MODAL ====== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: var(--bg);
  margin: 40px auto;
  padding: 30px;
  width: 92%;
  max-width: 1400px;
  border-radius: 15px;
  border: 1px solid var(--border);
  position: relative;
  animation: slideDown 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  color: var(--text);
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: 0.3s;
  line-height: 1;
}

.close-modal:hover {
  color: white;
  transform: rotate(90deg);
}

#modal-body h1 {
  font-size: 3rem;
  margin: 0 0 0.5rem 0;
  color: var(--text);
  text-align: center;
}

#modal-body h2 {
  font-size: 1.5rem;
  color: #b0b0b0;
  font-weight: 400;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

#modal-body h3 {
  font-size: 1.8rem;
  color: #b0b0b0;
  margin: 1.5rem 0 1rem 0;
  text-align: center;
}

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 1.5rem 0;
}

.info-item {
  background: transparent;
  padding: 8px 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
}

.info-icon {
  font-size: 1.3rem;
  opacity: 0.8;
}

.info-label {
  color: #b0b0b0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.project-description {
  margin: 1.5rem 0;
  line-height: 1.8;
}

.project-description p {
  font-size: 1.1rem;
  text-align: center;
  font-family: 'Sora', sans-serif;
}

.project-features ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.project-features li {
  background: var(--bg-soft);
  padding: 12px 18px;
  border-radius: 8px;
  border-left: 3px solid #6b6b6b;
  transition: transform 0.2s ease;
  font-family: 'Sora', sans-serif;
}

.project-features li:hover {
  transform: translateX(5px);
  border-left-color: #9b9b9b;
}

.project-gallery {
  margin: 1.5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

/* ====== TEXT ALIGN (JUSTIFY FOR MODALS) ====== */
.modal-content p,
.project-description p,
.project-awards p,
.project-features li {
  text-align: justify;
  text-justify: inter-word;
}


/* ====== PROJECT AWARDS ====== */
.project-awards {
  margin: 3rem 0;
  text-align: center;
}

.project-awards h3 {
  font-size: 2rem;
  color: #b0b0b0;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.awards-grid {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center;     /* Centra verticalmente respecto al título */
  gap: 50px;               /* Espacio entre premios */
  flex-wrap: wrap;         /* Responsive */
  margin: 0 auto;
  max-width: 1200px;       /* Mantiene el grid bien contenido */
}

.award-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.award-item img {
  width: auto;
  height: 180px;           /* Más grandes */
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.1));
}

.award-item img:hover {
  transform: scale(1.12);
}

.award-item p {
  margin-top: 0.6rem;
  font-size: 1rem;
  color: #ffffff;
  text-align: center;
  opacity: 0.9;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .award-item img {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .awards-grid {
    gap: 30px;
  }
  .award-item img {
    height: 130px;
  }
}

@media (max-width: 480px) {
  .awards-grid {
    gap: 20px;
  }
  .award-item img {
    height: 100px;
  }
}



.project-links {
  text-align: center;
  margin: 2rem 0 1rem 0;
}

.play-button {
  display: inline-block;
  padding: 15px 40px;
  background: #6b6b6b;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  font-family: 'Space Grotesk', sans-serif;
}

.play-button:hover {
  background: #8b8b8b;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

#about {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.6;
}

#about h2 {
  text-align: center;
  margin-bottom: 1em;
}

/* Modal responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 25px 18px;
    margin: 5% auto;
  }
  
  #modal-body h1 {
    font-size: 2rem;
  }
  
  #modal-body h2 {
    font-size: 1.2rem;
  }
  
  .project-info-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .close-modal {
    font-size: 30px;
    right: 15px;
    top: 15px;
  }
  
}

/* ====== PROJECT TRAILER ====== */
.project-trailer {
  margin-top: 40px;
}

.trailer-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.05);
}

.trailer-container iframe {
  width: 100%;
  height: 500px;
  display: block;
  background: black;
}

@media (max-width: 768px) {
  .trailer-container iframe {
    height: 300px;
  }
}

/* ====== NAV FADE ANIMATION ====== */
header {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

header.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

header.fade-in {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* === Carrusel fluido e imágenes completas === */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 1rem;
  background: #000;
}

.carousel-slide {
  display: flex;
  width: max-content;
  animation: scrollLoop 35s linear infinite;
}

.carousel-slide img {
  height: 400px; /* igual que ahora, mantiene proporción */
  width: auto;
  object-fit: contain; /* evita cortes, muestra imagen completa */
  flex-shrink: 0;
  border-radius: 12px;
}

/* Animación continua */
@keyframes scrollLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

