/* Reset y variables globales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff3b00;
  --primary-dark: #cc2f00;
  --primary-light: #ff6b33;
  --secondary: #ff9500;
  --accent: #ffcc00;
  --dark: #0a0a0a;
  --dark-gray: #1a1a1a;
  --light: #ffffff;
  --text: #f0f0f0;
  --text-secondary: #aaaaaa;
  --gradient: linear-gradient(135deg, #ff3b00 0%, #ff9500 50%, #ffcc00 100%);
  --gradient-reverse: linear-gradient(
    135deg,
    #ffcc00 0%,
    #ff9500 50%,
    #ff3b00 100%
  );
}

body {
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  background-color: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

/* ANIMACIÓN DE CARGA */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
}

.phoenix-loader {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flame {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.7;
  animation: flamePulse 2s ease-in-out infinite;
}

.flame:nth-child(1) {
  animation-delay: 0s;
}

.flame:nth-child(2) {
  animation-delay: 0.2s;
}

.flame:nth-child(3) {
  animation-delay: 0.4s;
}

.phoenix-text {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 2s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 4px;
}

@keyframes flamePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }
}

@keyframes textGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 59, 0, 0.7));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 149, 0, 0.9));
  }
}

/* HEADER CON LOGO CREADORES */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 59, 0, 0.2);
  transition: all 0.3s ease;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--light);
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--light);
  letter-spacing: 1px;
}

.navigation ul {
  list-style: none;
  display: flex;
  gap: 10px;
}

.navigation a {
  color: var(--text);
  padding: 12px 30px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  background: rgba(255, 59, 0, 0.1);
  border: 1px solid rgba(255, 59, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navigation a:hover {
  background: rgba(255, 59, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 59, 0, 0.3);
  border-color: var(--primary);
}

/* EFECTO SCROLL AVANZADO */
.main-scroll-container {
  width: 100%;
  position: relative;
}

/* HERO SECTION CON FONDO COMPLETO */
.parallax-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)),
    url("images/fondosalones.jpeg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 8px;
  line-height: 1.1;
}

.hero-title .letter {
  display: inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(219, 97, 76, 0.5);
  will-change: transform;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-secondary);
  margin-top: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
  font-weight: 300;
  letter-spacing: 2px;
}

.hero-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SECCIÓN DE CREADORES */
.creators-section {
  padding: 80px 5%;
  background: var(--dark);
  position: relative;
  min-height: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.2s;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

/* GRID DE CREADORES RESPONSIVE */
.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.creator-card {
  background: var(--dark-gray);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 59, 0, 0.1);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.creator-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.creator-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 59, 0, 0.2);
  border-color: var(--primary);
}

.creator-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Relación 1:1 para imagen cuadrada */
  overflow: hidden;
}

.creator-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.creator-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.creator-card:hover .creator-image img {
  transform: scale(1.05);
}

/* Badge para profesor */
.professor-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
  z-index: 2;
}

.creator-info {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.creator-name {
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.creator-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  margin: 0 auto 25px auto;
  border-radius: 2px;
}

.creator-description {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px dashed rgba(255, 59, 0, 0.3);
}

.placeholder-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  opacity: 0.7;
  font-style: italic;
}

/* Tarjeta especial para profesor */
.professor-card {
  border: 2px solid rgba(255, 204, 0, 0.2);
}

.professor-card:hover {
  border-color: var(--accent);
}

.professor-card .creator-divider {
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

/* SECCIÓN DE TRANSICIÓN */
.transition-section {
  height: 100px;
  background: linear-gradient(to bottom, var(--dark), transparent);
  position: relative;
}

/* PARTICLES EFFECT */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  animation: particleFloat 20s infinite linear;
  opacity: 0;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* FOOTER */
.footer {
  padding: 50px 5%;
  background: var(--dark-gray);
  text-align: center;
  border-top: 1px solid rgba(255, 59, 0, 0.1);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--light);
  margin-bottom: 20px;
}

.footer-logo i {
  color: var(--primary);
  animation: fireGlow 2s ease-in-out infinite;
}

@keyframes fireGlow {
  0%,
  100% {
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary));
  }
  50% {
    color: var(--accent);
    filter: drop-shadow(0 0 15px var(--accent));
  }
}

.footer p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-divider {
  width: 80px;
  height: 2px;
  background: var(--gradient);
  margin: 30px auto;
  border-radius: 1px;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* EFECTOS DE SCROLL REVEAL */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE PARA CELULAR */
@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }

  .logo {
    font-size: 24px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .navigation a {
    padding: 10px 25px;
    font-size: 14px;
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 4rem);
    letter-spacing: 4px;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
  }

  .creators-section {
    padding: 60px 20px;
  }

  .creators-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0;
  }

  .creator-card {
    margin: 0 auto;
    max-width: 400px;
  }

  .creator-info {
    padding: 25px;
  }

  .creator-name {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .footer {
    padding: 40px 20px;
  }

  .footer-logo {
    font-size: 1.8rem;
  }

  .footer p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.5rem, 12vw, 3rem);
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .logo {
    font-size: 20px;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .navigation a {
    padding: 8px 20px;
    font-size: 13px;
  }

  .creator-card {
    max-width: 100%;
  }

  .creator-info {
    padding: 20px;
  }

  .creator-name {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .footer-logo {
    font-size: 1.5rem;
  }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .creators-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .hero-title {
    font-size: clamp(4rem, 10vw, 6rem);
  }

  .header {
    padding: 20px 30px;
  }
}

/* Para pantallas muy grandes */
@media (min-width: 1400px) {
  .creators-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-content {
    max-width: 1400px;
  }
}
