@font-face {
  font-family: 'Lato';
  src: url('../font/Lato-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../font/Lato-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url('../font/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../font/Lato-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url('../font/Lato-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../font/Lato-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url('../font/Lato-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../font/Lato-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #edb440;
  --profesional-color: #edb440;
  --comercial-color: #4eaa35;
  --educacion-color: #42b5b6;
  --empresa-color: #1c63a2;
  --jugar-color: #edb440;
  --continuar-color: #edb440;
  --dark-bg: #282828;
  --card-bg: #3a3a3a;
  --text-light: #ffffff;
  --text-gray: #a0a0a0;
  --success: #4c8902;
  --error: #dd6a6a;
  --pregunta-bg: #edb440;
  --respuesta-bg: rgba(255, 255, 255, 0.5);
  --respuesta-correcta: rgba(76, 137, 2, 0.64);
  --respuesta-incorrecta: #dd6a6a;
}

body {
  font-family: "Lato", sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 900px;
  position: relative;
}

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

.logo-container {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.logo-container img {
  width: 100px;
  height: auto;
  margin-bottom: 0;
}

.user-info {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 400;
}

.user-info img {
  width: 28px;
  height: 28px;
}

.content-box {
  background: transparent;
  border-radius: 20px;
  padding: 30px 40px;
  max-width: 600px;
  margin: 0 auto;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
  color: var(--primary-color);
  font-weight: 900;
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  line-height: 1.3;
}

.subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
}

/* Botones */
.btn-primary,
.btn-secondary {
  padding: 15px 50px;
  border: 3px solid var(--text-light);
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 380px;
  margin: 25px auto 0;
  display: block;
  font-family: "Lato", sans-serif;
}

.btn-primary {
  background: var(--continuar-color);
  color: var(--text-light);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: none;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 3px solid var(--text-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Variante de logo en formato header (páginas desde Sectores) */
.with-header-logo .logo-container {
  position: fixed;
  top: 50px;
  left: 40px;
  text-align: left;
  margin-bottom: 0;
  z-index: 1000;
}

.with-header-logo .logo-container img {
  width: 60px;
  height: auto;
}

.with-header-logo .logo-container .user-info {
  position: fixed;
  top: 50px;
  right: 40px;
  left: auto;
}

/* Separación del contenido respecto al header */
.with-header-logo .content-box {
  margin-top: 60px;
  padding-top: 20px;
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .content-box {
    padding: 20px 25px;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 13px 40px;
    font-size: 1.1rem;
    max-width: 100%;
  }

  .with-header-logo .logo-container {
    top: 25px;
    left: 20px;
  }
  .with-header-logo .logo-container img {
    width: 40px;
  }
  .with-header-logo .logo-container .user-info {
    position: fixed;
    top: 25px;
    right: 20px;
    left: auto;
    font-size: 0.85rem;
  }
  .with-header-logo .logo-container .user-info img {
    width: 24px;
    height: 24px;
  }
  .with-header-logo .content-box {
    margin-top: 50px;
  }
}
