/* =========================================================
   Reset y base
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4ade80;
  --dark-bg: #0a0a0a;
  --section-bg: rgba(15, 23, 15, 0.85);
  --text-color: #ffffff;
  --text-secondary: #d0d0d0;
  --transition: all 0.4s ease;
  --border-radius: 15px;

  /* Progreso de scroll para el hero (0..1) */
  --heroProgress: 0.5;
}

/* Base */
body {
  font-family: 'Josefin Sans', 'Noto Sans Thai Looped', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: url('../images/nightinnature-bg.png') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
}

body.mobile-menu-open { overflow: hidden; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* =========================================================
   Animaciones globales
   ========================================================= */
.reveal {
  opacity: 0.5;
  transform: translateY(18px);
  filter: saturate(0.95);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}
.reveal.in-view { opacity: 1; transform: none; filter: saturate(1); }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@keyframes sweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* =========================================================
   Header
   ========================================================= */
#mainHeader {
  background-color: rgba(10, 15, 10, 0.95);
  padding: 25px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1200;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
#mainHeader.shrink {
  padding: 12px 0;
  background-color: rgba(8, 12, 8, 0.98);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  position: relative;
}

.logo-img {
  height: 70px;
  width: auto;
  transition: var(--transition);
}
#mainHeader.shrink .logo-img { height: 45px; }

/* Botón menú móvil */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1300;
}
.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 5px;
  transition: var(--transition);
  transform-origin: center;
}
body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Navegación */
.nav-menu {
  display: flex;
  gap: 30px;
}
.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  padding: 5px 0;
  font-size: 1.1rem;
}
#mainHeader.shrink .nav-link { font-size: 1rem; }
.nav-link:hover { color: var(--primary-color); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Selector de idioma */
.language-selector { display: flex; gap: 8px; }
.lang-btn {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--text-color);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  display: flex; align-items: center; gap: 6px;
}
#mainHeader.shrink .lang-btn { padding: 6px 12px; font-size: 0.9rem; }
.lang-btn.active, .lang-btn:hover { background: var(--primary-color); color: var(--dark-bg); }
.flag { font-size: 1.2rem; }
#mainHeader.shrink .flag { font-size: 1rem; }

/* =========================================================
   HERO con crossfade/parallax
   ========================================================= */
.hero-banner {
  height: 100vh;
  min-height: 600px;
  width: 100%;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  margin-top: 0;
  transition: height 0.8s ease-in-out,
              min-height 0.8s ease-in-out,
              transform 0.8s ease-in-out;
  will-change: transform;
}
.hero-banner::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/labgirlsswan-bg.png') no-repeat center center / cover;
  opacity: calc(1 - var(--heroProgress) * 0.45);
  transform: translateY(calc(var(--heroProgress) * -20px)) scale(calc(1 + var(--heroProgress) * 0.05));
  transition: opacity 0.12s linear, transform 0.12s linear;
  will-change: opacity, transform;
}
.hero-banner::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 160px;
  pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, rgba(10, 15, 10, 0) 0%, rgba(10, 15, 10, 0.4) 55%, rgba(10, 15, 10, 0.85) 100%);
  opacity: var(--heroProgress); transition: opacity 0.25s ease;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10, 15, 10, 0.7) 0%, rgba(10, 15, 10, 0.9) 100%);
  z-index: 1;
  opacity: calc(0.95 - var(--heroProgress) * 0.25);
  transition: opacity 0.15s linear;
}
.hero-content {
  position: relative; z-index: 2; color: var(--text-color);
  padding-top: 100px; width: 100%;
  transform: translateY(calc(var(--heroProgress) * -30px));
  transition: transform 0.15s linear;
}
.hero-banner h1 {
  font-size: 4.5rem; margin-bottom: 25px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}
.hero-banner p {
  font-size: 1.7rem; color: #e0e0e0;
  max-width: 800px; margin: 0 auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   Sección: Productoras
   ========================================================= */
.production-section {
  padding: 100px 0; text-align: center; position: relative;
  background: var(--section-bg);
  margin: 40px; border-radius: var(--border-radius);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.production-section h2 {
  font-size: 2.5rem; margin-bottom: 15px; color: var(--primary-color);
}
.description {
  font-size: 1.2rem; margin-bottom: 20px; font-weight: 300; color: var(--text-secondary);
}
.production-section p {
  margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; color: var(--text-secondary);
}
.btn {
  background: var(--primary-color); color: var(--dark-bg); border: none;
  padding: 12px 30px; font-size: 1rem; border-radius: 30px;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; display: inline-block; font-weight: 600;
}
.btn:hover {
  background: #3bc46c; transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(74, 222, 128, 0.3);
}

/* =========================================================
   Sección: Sobre Nosotras
   ========================================================= */
.about-section {
  padding: 100px 0; background: var(--section-bg);
  margin: 40px; border-radius: var(--border-radius);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.about-section h2 {
  text-align: center; font-size: 2.5rem; margin-bottom: 40px; color: var(--primary-color);
}
.intro-text { text-align: center; max-width: 800px; margin: 0 auto 50px; }
.intro-text p { font-size: 1.2rem; color: var(--text-secondary); }

/* Perfiles: GRID 3→2→1 */
.profiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
@media (max-width: 1024px){
  .profiles { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .profiles { grid-template-columns: 1fr; gap: 18px; }
}

.profile-card {
  background: rgba(20, 30, 20, 0.9);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  border: 1px solid rgba(74, 222, 128, 0.15);
  width: 100%;
  max-width: unset;
}
.profile-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(74, 222, 128, 0.2);
}
.profile-image { height: 250px; overflow: hidden; }
.profile-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.5s;
}
.profile-photo--maca  { object-position: top !important; }
.profile-photo--candy { object-position: top !important; }
.profile-photo--caro  { object-position: top !important; }

.profile-card:hover .profile-image img { transform: scale(1.1); }

.profile-content { padding: 20px; }
.profile-content h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--primary-color); }
.profile-content p { color: var(--text-secondary); }

/* Íconos de Instagram */
.profile-social { margin-top: 12px; }
.ig-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:50%;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color:#fff; text-decoration:none; box-shadow:0 2px 8px rgba(0,0,0,.15);
  transition: transform .15s ease;
}
.ig-icon:hover{ transform: translateY(-2px); }
.ig-icon svg{ width:22px; height:22px; display:block; }

/* =========================================================
   Sección: Lab
   ========================================================= */
.lab-section {
  padding: 100px 0; text-align: center; position: relative;
  background: rgba(15, 23, 15, 0.85);
  margin: 40px; border-radius: 15px;
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.lab-section h2 {
  font-size: 2.5rem; margin-bottom: 15px; color: #4ade80;
}
.lab-section .description {
  font-size: 1.2rem; margin-bottom: 40px; font-weight: 300; color: #d0d0d0;
  max-width: 800px; margin-left: auto; margin-right: auto;
}

.lab-content {
  display: flex; gap: 40px; align-items: center; margin: 40px 0;
  text-align: left; flex-wrap: wrap; justify-content: center;
}
.lab-text {
  flex: 1; min-width: 300px;
  background: rgba(20, 30, 20, 0.7);
  padding: 30px; border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.15);
}
.lab-text p { margin-bottom: 20px; color: #d0d0d0; font-size: 1.1rem; line-height: 1.6; }

.lab-image {
  flex: 1; min-width: 300px; max-width: 500px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(74, 222, 128, 0.15);
  transition: all 0.4s ease;
}
.lab-image:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(74, 222, 128, 0.4); }
.lab-image img { width: 100%; height: auto; display: block; transition: transform 0.5s; }
.lab-image:hover img { transform: scale(1.05); }

.lab-actions { text-align: center; margin-top: 56px; }
.lab-btn {
  position: relative; overflow: hidden;
  background: linear-gradient(45deg, #4ade80, #3b82f6); color: #0a0a0a;
  border: none; padding: 15px 35px; font-size: 1.1rem; border-radius: 30px;
  cursor: pointer; transition: all 0.4s ease; text-decoration: none; display: inline-block; font-weight: 600;
  box-shadow: 0 5px 15px rgba(74, 222, 128, 0.3);
}
.lab-btn:hover {
  background: linear-gradient(45deg, #3bc46c, #2563eb);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 222, 128, 0.45);
}
.lab-btn::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; left: -30%; width: 40%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
}
.lab-btn:hover::after { animation: sweep 1.2s ease; }

/* =========================================================
   Sección: Música (resumen con botón centrado)
   ========================================================= */
.music-section {
  position: relative;
  padding: 100px 0;
  background: var(--section-bg);
  margin: 40px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(74, 222, 128, 0.2);
  overflow: hidden;
  text-align: center; /* centra textos y botón */
}
.music-section::before {
  content: "";
  position: absolute; inset: -20%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(74, 222, 128, 0.12) 0%, rgba(59, 130, 246, 0.10) 35%, transparent 70%);
  pointer-events: none;
}
.music-section h2 {
  font-size: 2.5rem; margin-bottom: 12px; color: var(--primary-color); letter-spacing: 0.5px;
}
.music-section h2::after {
  content: ""; display: block; width: 140px; height: 3px; margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.9), rgba(59, 130, 246, 0.9));
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.35);
}
.music-section .description {
  max-width: 880px; margin: 10px auto 26px; color: var(--text-secondary); font-weight: 300;
}
.music-section .btn {
  display: inline-block;
  margin: 0px auto 0; /* esto centra horizontalmente */
}

}

/* =========================================================
   Footer
   ========================================================= */
footer {
  background: rgba(10, 15, 10, 0.95);
  color: var(--text-color);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(74, 222, 128, 0.2);
}

/* =========================================================
   Media queries
   ========================================================= */
@media (max-width: 1199px) {
  .hero-banner h1 { font-size: 3.5rem; }
  .hero-banner p  { font-size: 1.4rem; }
}

@media (max-width: 991px) {
  .hero-banner h1 { font-size: 3rem; }
  .hero-banner p  { font-size: 1.3rem; }

  .production-section,
  .about-section,
  .music-section,
  .lab-section {
    margin: 30px 20px;
    padding: 80px 0;
  }
}

@media (max-width: 767px) {
  .header-content { flex-wrap: wrap; }
  .mobile-menu-toggle { display: flex; }

  .nav-menu {
    position: fixed; top: 0; right: -100%;
    width: 70%; max-width: 300px; height: 100vh;
    background: rgba(10, 15, 10, 0.98);
    flex-direction: column; justify-content: center; align-items: center;
    transition: right 0.3s ease; z-index: 1250; padding: 80px 20px 20px;
  }
  body.mobile-menu-open .nav-menu { right: 0; }

  .language-selector { margin-left: auto; margin-right: 15px; }

  .hero-banner { min-height: 500px; }
  .hero-content { padding-top: 80px; }
  .hero-banner h1 { font-size: 2.5rem; margin-bottom: 15px; }
  .hero-banner p  { font-size: 1.2rem; }

  .production-section,
  .about-section,
  .music-section,
  .lab-section {
    margin: 20px 15px;
    padding: 60px 0;
  }

  .production-section h2,
  .about-section h2,
  .music-section h2,
  .lab-section h2 { font-size: 2rem; }

  .profiles { gap: 30px; }
  .profile-card { max-width: 100%; }

  footer { padding: 25px 0; }
}

@media (max-width: 575px) {
  #mainHeader { padding: 15px 0; }
  #mainHeader.shrink { padding: 8px 0; }

  .logo-img { height: 55px; }
  #mainHeader.shrink .logo-img { height: 40px; }

  .language-selector {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10, 15, 10, 0.95);
    padding: 10px; justify-content: center; display: none;
  }
  .language-selector.mobile-visible { display: flex; }

  .hero-banner { min-height: 450px; }
  .hero-banner h1 { font-size: 2rem; }
  .hero-banner p  { font-size: 1.1rem; padding: 0 10px; }

  .production-section,
  .about-section,
  .music-section,
  .lab-section {
    margin: 15px 10px; padding: 50px 0; border-radius: 10px;
  }

  .production-section h2,
  .about-section h2,
  .music-section h2,
  .lab-section h2 { font-size: 1.8rem; margin-bottom: 20px; }

  .description { font-size: 1.1rem; }

  .production-section p,
  .intro-text p,
  .profile-content p { font-size: 1rem; }

  .btn { padding: 10px 25px; font-size: 0.9rem; }

  .profile-image { height: 200px; }
  .profile-content { padding: 15px; }
  .profile-content h3 { font-size: 1.3rem; }
}

@media (max-width: 374px) {
  .hero-banner h1 { font-size: 1.8rem; }
  .hero-banner p  { font-size: 1rem; }

  .production-section h2,
  .about-section h2,
  .music-section h2,
  .lab-section h2 { font-size: 1.6rem; }
}
