/* ================================
   HERO CINEMATOGRÁFICO PROFUNDO
================================ */

/* Paleta cinematográfica */
:root {
  --mg-red: #ff3b3b;
  --mg-gold: #ffb347;
  --mg-black: #0a0a0a;
  --mg-purple: #b347ff;

}

.project-hero {
  width: 100%;
  padding-top: 180px;
  padding-bottom: 140px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.9) 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.95)),
    var(--black-deep);
  color: var(--white-pure);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
}


/* Viñeta cinematográfica */
.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

/* Luz lateral cálida */
.project-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,180,80,0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.project-logo {
  width: 780px; /* tamaño cinematográfico */
  max-width: 95%;
  margin-bottom: var(--space-m);
  filter: drop-shadow(0 0 14px rgba(0,0,0,0.7));
}


/* Título cinematográfico */
.project-hero h1 {
  font-family: var(--font-primary);
  font-size: 2.6rem;
  margin-bottom: var(--space-s);
  color: var(--cyan);
  letter-spacing: 1px;
  text-shadow:
    0 0 12px rgba(0,234,255,0.35),
    0 0 22px rgba(0,234,255,0.25);
}

/* Subtítulo atmosférico */
.project-subtitle {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  color: var(--white-pure);
  opacity: 0.85;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
  .project-logo {
    width: 520px; /* grande en iPad horizontal y vertical */
  }
}

@media (max-width: 768px) {
  .project-hero h1 {
    font-size: 2.1rem;
  }

  .project-logo {
    width: 480px;
  }
}

@media (max-width: 480px) {
  .project-logo {
    width: 340px; /* tamaño ideal */
  }

  .project-hero {
    padding-top: 160px; /* ahora sí baja */
    padding-bottom: 30px;
    padding-left: var(--space-l);
    padding-right: var(--space-l);
  }
}


/* ================================
   INFO DEL PROYECTO
================================ */
.project-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  color: var(--white-pure);
}

.project-info {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid var(--cyan);
}

.project-info .info-item {
  margin-bottom: 12px;
  font-size: 1rem;
}

.info-item strong {
  color: var(--cyan);
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 0 8px var(--cyan);
}

.project-info.neon-info .info-item span {
  color: rgba(255, 255, 255, 0.85);
}


/* Responsive: en móvil, en columna */
@media (max-width: 600px) {
  .project-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-item {
    width: 100%;
  }
}

/* ================================
   CONTENIDO PRINCIPAL
================================ */

.project-content {
  padding: var(--space-xl) var(--space-l);
  max-width: 1100px;
  margin: auto;
}

.project-section {
  margin-bottom: var(--space-xl);
}

.project-section h2 {
  font-family: var(--font-primary);
  font-size: 1.9rem;
  color: var(--cyan);
  margin-bottom: var(--space-m);
  margin-top: 30px;
  text-shadow: 0 0 10px rgba(0,234,255,0.25);

}


.project-section p,
.project-section li {
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  color: var(--white-pure);
  opacity: 0.9;
  line-height: 1.65;
}

.project-section ul {
  padding-left: var(--space-l);
}

.project-section ul,
.project-section ul li {
  color: var(--white-pure) !important;
  opacity: 0.9;
  font-family: var(--font-secondary);
  line-height: 1.6;
}

.mg-deliverables-list li {
    display: block !important;
    width: 100% !important;
}



/* ================================
   GALERÍA
================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-l);
  margin-top: var(--space-m);
}

.gallery-grid figure {
  background: #111;
  padding: var(--space-m);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.05);
}

.gallery-grid img {
  width: 100%;
  border-radius: var(--radius);
}

.gallery-item p{
  color: var(--white-pure);
  margin-top: 10px;
}

/* ================================
   RESPONSIVE
================================ */



@media (max-width: 480px) {
  

  .project-hero h1 {
    font-size: 1.6rem;
  }

  .project-subtitle {
    font-size: 1rem;
  }
}


/*Video*/
.video-section {
  text-align: center;
  margin-top: var(--space-xl);
  position: relative;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: auto;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow:
    0 0 25px rgba(0,234,255,0.35),
    0 0 45px rgba(255,0,200,0.25),
    0 0 60px rgba(0,0,0,0.8);
  border: 2px solid rgba(0,234,255,0.4);
}

/* Video */
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
}

#video-modal .website-modal-content {
  width: 90%;
  max-width: 1000px;
  height: auto;
  max-height: 85vh;
  aspect-ratio: 16 / 9;
  position: relative;
}

#video-modal video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 5;
}

#video-modal .website-modal-content::after {
  z-index: 2;
}

.close-video-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10;
}


/* Glow cálido lateral */
.video-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,180,80,0.18), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

/* Viñeta cinematográfica */
.video-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 55%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 2;
}

.video-wrapper {
  animation: videoFadeIn 0.45s ease-out;
}

@keyframes videoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}



/*website*/
.website-section {
  text-align: center;
}

.website-preview img {
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  margin-bottom: var(--space-m);
}

.website-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--cyan);
  color: #000;
  font-family: var(--font-primary);
  font-weight: bold;
  border-radius: var(--radius);
  text-decoration: none;
  transition: 0.3s ease;
}

.website-button:hover {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 0 25px rgba(255,0,200,0.4);
}


/* MOCKUPS */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-l);
  margin-top: var(--space-m);
}

.mockup-item {
  background: #111;
  padding: var(--space-m);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-item img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.mockup-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px rgba(255, 0, 200, 0.25),
              0 0 35px rgba(0, 234, 255, 0.25);
}

.mockup-item figcaption {
  margin-top: var(--space-s);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
}




/*website modal*/
.website-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/*💎 Borde neón (cyan + magenta, estilo Mariachi & Gun)*/
.website-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 25px rgba(0,234,255,0.35),
    0 0 45px rgba(255,0,200,0.25);
  border: 2px solid rgba(0,234,255,0.4);
}


/*🎞️ Animación de entrada (opcional, pero queda brutal)*/
.website-modal-content {
  animation: modalFadeIn 0.45s ease-out;
}

@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/*✨ Glow lateral cálido (luz de estudio cinematográfica)*/
.website-modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,180,80,0.18), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

/*🎬 Viñeta cinematográfica (profundidad real)*/
.website-modal-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 55%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 2;
}


.website-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: relative;
  z-index: 3; /*🖥️ Asegurar que el sitio web quede encima de los efectos*/
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10;
}


/* Títulos */
.mg-process h2,
.mg-visual h2,
.mg-gallery h2,
.mg-cta h2 {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(255,179,71,0.6);
  font-size: 30px;
}

.mg-gallery h2 {
  text-align: center;
}

/* Subtítulos */
.vs-block h3 {
  color: var(--mg-red);
  text-shadow: 0 0 10px rgba(255,59,59,0.6);
  margin-top: 60px;
}

/* Paleta */
.color-swatch {
  background: var(--color);
  width: 120px;
  height: 120px;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255,59,59,0.4), 0 0 15px rgba(255,179,71,0.4);
}

.mg-visual .color-swatch {
  border: 1px solid rgba(255,255,255,0.4);
  color: #dcdcdc;
}

.mg-cta .cta-btn {
  background: var(--mg-red);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(255,59,59,0.7);
  transition: 0.3s ease;
}

.mg-cta .cta-btn:hover {
  background: var(--mg-gold);
  box-shadow: 0 0 25px rgba(255,179,71,0.9);
}

/* Galería */
.mg-gallery img {
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255,59,59,0.4), 0 0 25px rgba(255,179,71,0.4);
}

/* Paleta de color estilo Onda Latina */
.mg-visual .color-palette {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

/* Títulos del sistema visual */
.mg-visual h3 {
  font-size: 1.4rem;
  color: var(--mg-red);
  text-shadow: 0 0 10px rgba(255,59,59,0.6);
  margin-bottom: 8px;
}

/* Textos de tipografías */
.mg-visual .font-sample {
  font-size: 1.2rem;
  color: var(--mg-gold);
  text-shadow: 0 0 8px rgba(255,179,71,0.6);
  margin-bottom: 10px;
}

/* Texto de elementos gráficos */
.mg-visual p,
.mg-visual .font-sample {
  color: #fff !important;
  font-size: 1rem;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
}

/* CTA estilo global */
/* Separación correcta del CTA */
.mg-cta {
  margin-top: 60px;
  margin-bottom: 80px; /* separa del footer */
  text-align: center;
}


.mg-cta h2 {
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,179,71,0.5);
}

.mg-cta .cta-btn {
  background: #ff00c8; /* magenta global */
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
  box-shadow: 0 0 20px rgba(255,0,200,0.7);
  transition: 0.3s ease;
}

.mg-cta .cta-btn:hover {
  background: #00eaff; /* cyan global */
  box-shadow: 0 0 25px rgba(0,234,255,0.9);
}

/* =========================================
   SEPARADOR VISUAL ENTRE SECCIONES
   ========================================= */

.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(58, 244, 232, 0.4), transparent);
  margin: 60px 0;
}

.mg-mockups-section h2 {
    text-align: center !important;
}
