/* ===== RESET Y ESTILOS BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.game-logo {
  width: 280px;
  max-width: 280px;
  height: auto;
  margin-bottom: 0;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: 
    radial-gradient(ellipse at top, rgba(30, 144, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(65, 105, 225, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(30, 144, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -2;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.9;
}

/* ===== LAYOUT Y CONTENEDORES ===== */
.container {
  min-height: 100vh;
  max-width: 90%;
  width: 100%;
  padding: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-bottom: none;
  pointer-events: none;
}

.content {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1000px;
  width: 90%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(1px);
  border-radius: 20px;
  padding: 25px 30px;
  border: 1px solid rgba(30, 144, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.game-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.game-info {
  text-align: left;
  max-width: 600px;
  flex: 1;
}

/* ===== IMÁGENES Y LOGOS ===== */
.studio-logo {
  width: 75vw;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 15px 40px rgba(30, 144, 255, 0.5)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.3));
  position: relative;
  transition: all 0.5s ease;
  cursor: pointer;
}

.studio-logo::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(45deg, #1e90ff, #4169e1, #8a2be2, #ff6b6b, #1e90ff);
  background-size: 400% 400%;
  border-radius: 25px;
  opacity: 0.2;
  z-index: -1;
  animation: gradientShift 4s ease-in-out infinite;
  transition: all 0.5s ease;
}

.studio-logo::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.4) 0%, transparent 70%);
  border-radius: 20px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.studio-logo:hover {
  filter: drop-shadow(0 20px 60px rgba(30, 144, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
  transform: scale(1.1);
}

.studio-logo:hover::before {
  opacity: 0.35;
  top: -18px;
  left: -18px;
  right: -18px;
  bottom: -18px;
  animation: gradientShift 2s ease-in-out infinite;
}

.studio-logo:hover::after {
  opacity: 1;
  animation: pulseOpacity 2s ease-in-out infinite;
}

.game-logo {
  width: 260px;
  max-width: 80vw;
  height: auto;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.8s ease;
}

.game-logo:hover::before {
  left: 100%;
}

/* ===== ANIMACIONES ===== */
@keyframes glow {
  0%, 100% { 
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); 
  }
  50% { 
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.9)); 
  }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.03); 
  }
}

@keyframes pulseOpacity {
  0%, 100% { 
    opacity: 0.3; 
  }
  50% { 
    opacity: 0.6; 
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes borderGlow {
  0%, 100% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.02);
  }
}

/* Animaciones con carga sincronizada */
.game-info {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.game-logo {
  animation: fadeInUp 0.8s ease-out 0.4s both, pulse 4s ease-in-out infinite;
}

.studio-logo {
  animation: fadeInUp 0.8s ease-out both, pulse 4s ease-in-out infinite;
}

/* ===== TIPOGRAFÍA ===== */
h1 {
  position: relative;
  font-size: clamp(1.5em, 4vw, 2.2em);
  margin: 20px 0;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 25px rgba(30, 144, 255, 0.4);
  background: linear-gradient(45deg, #ffffff, #1e90ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease-in-out infinite;
}

h1:hover {
  animation: pulse 2.5s ease-in-out infinite, glow 2.5s ease-in-out infinite, gradientShift 5s ease-in-out infinite;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #1e90ff, transparent);
  border-radius: 2px;
}

p {
  font-size: clamp(0.9em, 2.5vw, 1.1em);
  line-height: 1.6;
  margin: 0 0 15px 0;
  max-width: 650px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

p::first-letter {
  font-size: 1.3em;
  font-weight: bold;
  color: #4da6ff;
  text-shadow: 0 0 10px rgba(77, 166, 255, 0.5);
}

/* ===== BOTONES DEL JUEGO ===== */
.game-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 1s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 15px;
  font-weight: bold;
  font-size: clamp(0.9em, 2.5vw, 1.1em);
  transition: all 0.4s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  min-width: 180px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(1px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #1e90ff, #4169e1, #6a5acd);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: gradientShift 4s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(30, 144, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: rgba(30, 144, 255, 0.1);
  color: #1e90ff;
  border: 2px solid #1e90ff;
  backdrop-filter: blur(1px);
  position: relative;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(30, 144, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.btn-secondary:hover::after {
  opacity: 1;
}

.btn-secondary:hover {
  background: rgba(30, 144, 255, 0.2);
  color: white;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(30, 144, 255, 0.4);
  border-color: rgba(30, 144, 255, 0.8);
}

.btn-icon {
  font-size: 1.3em;
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: scale(1.2) rotate(5deg);
}

/* ===== ENLACES SOCIALES ===== */
.social-links {
  margin: 15px 0 10px 0;
  text-align: center;
  animation: fadeInUp 0.8s ease-out 1.2s both;
}

.social-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0 auto;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 25px;
  font-size: clamp(0.9em, 2.5vw, 1em);
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(1px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  min-width: 140px;
  justify-content: center;
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.social-btn:hover::before {
  left: 100%;
}

.social-icon {
  width: 1.3em;
  height: 1.3em;
  transition: transform 0.3s ease;
}

.social-text {
  transition: transform 0.3s ease;
}

.social-btn:hover .social-icon {
  transform: scale(1.2) rotate(5deg);
}

.social-btn:hover .social-text {
  transform: translateX(2px);
}

/* Estilos específicos para cada red social */
.social-btn.itch {
  background: linear-gradient(135deg, rgba(250, 92, 92, 0.2), rgba(255, 69, 0, 0.2));
  color: #ff6b6b;
  border-color: rgba(250, 92, 92, 0.3);
}

.social-btn.itch:hover {
  background: linear-gradient(135deg, rgba(250, 92, 92, 0.4), rgba(255, 69, 0, 0.4));
  border-color: rgba(250, 92, 92, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(250, 92, 92, 0.3);
}

.social-btn.twitter {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(30, 30, 30, 0.3));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.social-btn.twitter:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(30, 30, 30, 0.5));
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.social-btn.instagram {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.2), rgba(255, 204, 128, 0.2));
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.3);
}

.social-btn.instagram:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.4), rgba(255, 204, 128, 0.4));
  border-color: rgba(225, 48, 108, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

.social-btn.facebook {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.2), rgba(66, 103, 178, 0.2));
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.3);
}

.social-btn.facebook:hover {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.4), rgba(66, 103, 178, 0.4));
  border-color: rgba(24, 119, 242, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.social-btn.tiktok {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.2), rgba(37, 244, 238, 0.2));
  color: #fe2c55;
  border-color: rgba(254, 44, 85, 0.3);
}

.social-btn.tiktok:hover {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.4), rgba(37, 244, 238, 0.4));
  border-color: rgba(254, 44, 85, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(254, 44, 85, 0.3);
}

/* ===== MEDIA QUERIES PARA RESPONSIVIDAD ===== */
@media (min-width: 1025px) {
  /* Desktop */
  .content {
    padding: 30px 40px;
    max-width: 1100px;
    width: 85%;
  }
  
  .game-section {
    gap: 40px;
  }
  
  .game-logo {
    width: 300px;
  }
  
  .studio-logo {
    width: 65vw;
    max-width: 500px;
  }
  
  .game-buttons {
    gap: 20px;
    justify-content: center;
  }
  
  .btn {
    min-width: 160px;
    padding: 14px 26px;
    font-size: 1em;
  }
  
  h1 {
    font-size: 2.4em;
  }
  
  p {
    font-size: 1.2em;
    max-width: 700px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  /* Tablets y notebooks */
  .content {
    padding: 25px 35px;
    max-width: 900px;
    width: 88%;
  }
  
  .game-section {
    gap: 30px;
  }
  
  .game-logo {
    width: 250px;
  }
  
  .studio-logo {
    width: 70vw;
    max-width: 550px;
  }
  
  .game-buttons {
    gap: 18px;
    justify-content: center;
  }
  
  .btn {
    min-width: 160px;
    padding: 14px 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
    justify-content: flex-start;
    gap: 20px;
  }

  .content {
    padding: 20px 15px;
    margin: 0;
    flex: 1;
    display: flex;
    justify-content: center;
  }
  
  .game-section {
    gap: 20px;
    flex-direction: column !important;
    text-align: center !important;
  }

  .game-logo {
    width: clamp(180px, 55vw, 250px);
    margin: 0 auto 15px auto !important;
    flex-shrink: 1 !important;
  }

  .game-info {
    text-align: center !important;
  }
  
  .studio-logo {
    width: 85vw;
  }
  
  h1 {
    margin: 20px 0;
  }
  
  p {
    padding: 0 10px;
  }
  
  .game-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
    min-width: unset;
    padding: 12px 25px;
  }
}

@media (max-width: 480px) {
  /* Móviles pequeños */
  .container {
    padding: 10px;
    justify-content: flex-start;
    gap: 15px;
  }
  
  .content {
    padding: 20px 12px;
    margin: 0;
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .game-section {
    flex-direction: column !important;
    text-align: center !important;
    gap: 15px;
  }

  .game-logo {
    width: clamp(150px, 70vw, 220px);
    margin: 0 auto 15px auto !important;
    flex-shrink: 1 !important;
  }

  .game-info {
    text-align: center !important;
  }
  
  .studio-logo {
    width: 90vw;
  }
  
  .game-logo {
    width: clamp(150px, 70vw, 220px);
  }
  
  h1 {
    font-size: clamp(1.5em, 6vw, 2em);
  }
  
  p {
    font-size: clamp(0.9em, 4vw, 1.1em);
  }
}
