/* ========================================
   ANKAMA STYLE - MODERN DESIGN
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Lato:wght@300;400;700;900&display=swap');

:root {
  /* Colores oficiales de Ankama */
  --ankama-blue: #1a4d7a;
  --ankama-blue-dark: #0d2d4a;
  --ankama-blue-light: #2a6ba8;
  --ankama-gold: #d4a574;
  --ankama-gold-light: #e8c9a0;
  --ankama-gold-dark: #b8895f;
  --ankama-orange: #e67e22;
  --ankama-red: #c0392b;
  --ankama-green: #27ae60;
  
  /* Colores de fondo */
  --bg-dark: #0a1628;
  --bg-darker: #050b14;
  --bg-card: rgba(26, 77, 122, 0.15);
  --bg-card-hover: rgba(26, 77, 122, 0.25);
  
  /* Efectos */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(212, 165, 116, 0.3);
  
  /* Transiciones */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--ankama-blue-dark) 100%);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========================================
   HEADER ESTILO ANKAMA
   ======================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ankama-gold);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

header.scrolled {
  background: rgba(5, 11, 20, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.ct {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

#logotype {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

#logotype img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(212, 165, 116, 0.5));
  transition: var(--transition);
}

#logotype:hover img {
  filter: drop-shadow(0 0 20px rgba(212, 165, 116, 0.8));
  transform: scale(1.05);
}

/* ========================================
   NAVEGACIÓN ESTILO ANKAMA
   ======================================== */

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav {
  display: flex;
  list-style: none;
  gap: 5px;
  align-items: center;
}

.nav > li {
  position: relative;
}

.nav > li > a,
.nav > li.sub {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nav > li > a::before,
.nav > li.sub::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ankama-gold), var(--ankama-gold-light));
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav > li > a:hover::before,
.nav > li.sub:hover::before {
  width: 80%;
}

.nav > li > a:hover,
.nav > li.sub:hover {
  color: var(--ankama-gold);
  background: rgba(212, 165, 116, 0.1);
}

/* Submenú */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(10, 22, 40, 0.98);
  border: 2px solid var(--ankama-gold);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  list-style: none;
  margin-top: 10px;
}

.nav > li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  margin: 0;
}

.submenu li a {
  display: block;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.submenu li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 60%;
  background: var(--ankama-gold);
  transition: width 0.3s ease;
}

.submenu li a:hover {
  color: var(--ankama-gold);
  background: rgba(212, 165, 116, 0.1);
  padding-left: 30px;
}

.submenu li a:hover::before {
  width: 4px;
}

/* Iconos */
.ico_caret-down {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.nav > li.sub:hover .ico_caret-down {
  transform: rotate(180deg);
}

/* ========================================
   PANEL DE USUARIO
   ======================================== */

.panel {
  display: flex;
  align-items: center;
  gap: 15px;
}

.panel .link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 165, 116, 0.1);
  border: 2px solid var(--ankama-gold);
  color: var(--ankama-gold);
  text-decoration: none;
  transition: var(--transition);
  font-size: 16px;
}

.panel .link:hover {
  background: var(--ankama-gold);
  color: var(--bg-darker);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Idiomas */
.lang {
  display: flex;
  list-style: none;
  gap: 8px;
}

.lang li a {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
}

.lang li.active a,
.lang li a:hover {
  border-color: var(--ankama-gold);
  transform: scale(1.1);
}

.lang li a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   BOTÓN JUGAR
   ======================================== */

.boton1 {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--ankama-gold), var(--ankama-gold-light));
  border-radius: 50%;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  cursor: pointer;
  z-index: 999;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--bg-darker);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.boton1::before {
  content: 'JUGAR';
}

.boton1:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 40px rgba(212, 165, 116, 0.6);
}

.boton1::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--ankama-gold);
  opacity: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

/* ========================================
   MAIN CONTENT
   ======================================== */

main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  padding: 60px 0;
}

.ct main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 30px;
}

/* ========================================
   MODAL LOGIN
   ======================================== */

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.98), rgba(26, 77, 122, 0.95));
  border: 2px solid var(--ankama-gold);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  backdrop-filter: blur(10px);
}

.modal h1 {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  color: var(--ankama-gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

#breadcrump {
  list-style: none;
  margin-bottom: 30px;
  padding: 15px;
  background: rgba(212, 165, 116, 0.1);
  border-left: 4px solid var(--ankama-gold);
  border-radius: 8px;
}

#breadcrump li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

#middle form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#middle label {
  color: var(--ankama-gold-light);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

#middle label span {
  color: var(--ankama-red);
}

#middle input[type="text"],
#middle input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(212, 165, 116, 0.3);
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  transition: var(--transition);
}

#middle input:focus {
  outline: none;
  border-color: var(--ankama-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
}

#middle button {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--ankama-gold), var(--ankama-gold-light));
  border: none;
  border-radius: 10px;
  color: var(--bg-darker);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

#middle button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .ct {
    padding: 0 20px;
  }
  
  nav {
    display: none;
  }
  
  .panel .menu {
    display: flex;
  }
}

@media (max-width: 768px) {
  header .ct {
    height: 70px;
  }
  
  #logotype img {
    height: 50px;
  }
  
  .boton1 {
    width: 60px;
    height: 60px;
    font-size: 12px;
    right: 15px;
  }
  
  main {
    margin-top: 70px;
  }
  
  .modal {
    padding: 30px 20px;
  }
}


/* ========================================
   MODAL LOGIN MEJORADO
   ======================================== */

.form-group {
  margin-bottom: 20px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  font-size: 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--ankama-gold);
}

.forgot-link {
  color: var(--ankama-gold-light);
  text-decoration: none;
  transition: var(--transition);
}

.forgot-link:hover {
  color: var(--ankama-gold);
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--ankama-gold), var(--ankama-gold-light));
  border: none;
  border-radius: 12px;
  color: var(--bg-darker);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  background: linear-gradient(135deg, var(--ankama-gold-light), var(--ankama-gold));
}

.btn-login:active {
  transform: translateY(0);
}

.register-link {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 165, 116, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.register-link a {
  color: var(--ankama-gold);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.register-link a:hover {
  color: var(--ankama-gold-light);
  text-decoration: underline;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 30px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.9), rgba(26, 77, 122, 0.8));
  z-index: 1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(26, 77, 122, 0.2) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: 4em;
  font-weight: 900;
  background: linear-gradient(135deg, var(--ankama-gold), var(--ankama-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(212, 165, 116, 0.3);
  animation: float 3s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.5em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--ankama-gold), var(--ankama-gold-light));
  color: var(--bg-darker);
  box-shadow: var(--shadow-md);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid var(--ankama-gold);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--ankama-gold-light);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
  padding: 80px 30px;
  background: rgba(10, 22, 40, 0.5);
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 3em;
  text-align: center;
  background: linear-gradient(135deg, var(--ankama-gold), var(--ankama-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(26, 77, 122, 0.15);
  border: 2px solid rgba(212, 165, 116, 0.3);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(212, 165, 116, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.feature-card:hover {
  background: rgba(26, 77, 122, 0.25);
  border-color: var(--ankama-gold);
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  left: 100%;
}

.feature-icon {
  font-size: 3em;
  color: var(--ankama-gold);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.feature-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5em;
  color: var(--ankama-gold-light);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.feature-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
  padding: 60px 30px;
  background: linear-gradient(135deg, rgba(26, 77, 122, 0.2), rgba(10, 22, 40, 0.8));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: rgba(212, 165, 116, 0.1);
  border: 2px solid rgba(212, 165, 116, 0.3);
  border-radius: 15px;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(212, 165, 116, 0.15);
  border-color: var(--ankama-gold);
  transform: scale(1.05);
  box-shadow: var(--shadow-gold);
}

.stat-number {
  font-family: 'Cinzel', serif;
  font-size: 3em;
  font-weight: 900;
  background: linear-gradient(135deg, var(--ankama-gold), var(--ankama-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 10px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: rgba(5, 11, 20, 0.95);
  border-top: 2px solid var(--ankama-gold);
  padding: 60px 30px 30px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-family: 'Cinzel', serif;
  color: var(--ankama-gold);
  margin-bottom: 20px;
  font-size: 1.3em;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--ankama-gold);
  padding-left: 5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 165, 116, 0.1);
  border: 2px solid var(--ankama-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ankama-gold);
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--ankama-gold);
  color: var(--bg-darker);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(212, 165, 116, 0.2);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9em;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
