@font-face{
  font-family: 'Inter';
  src: url('../paquetesDescargados/Inter/static/Inter_18pt-Light.ttf') format('truetype');
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter';
}

html, body, *{
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

input, textarea{
  user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
}

:root{
  --color-azul-oscuro: #285260;
  --color-azul-medio: #548C92;
  --color-arena: #AB9072;

  --brand: var(--color-azul-medio);
  --brand-2: var(--color-azul-oscuro);
  --brand-soft: rgba(84, 140, 146, 0.12);

  --border: rgba(0,0,0,0.08);

  --level-beginner-bg: #E7F6EE;
  --level-beginner-text: #1E7A46;
  --level-beginner-border: #B7E4C7;

  --level-intermediate-bg: #FFF4E5;
  --level-intermediate-text: #B26A00;
  --level-intermediate-border: #FFD8A8;

  --level-advanced-bg: #F3E8FF;
  --level-advanced-text: #7B2CBF;
  --level-advanced-border: #D0B3FF;
}

html, body{
  background: rgb(255, 252, 255);
}

a{
  text-decoration: none;
  color: inherit;
}

/* ===== TOPBAR ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 3000;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.container{
  width: 100%;
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 0 0 auto;
}

.brand-logo{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.brand-name{
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1c1c1c;
}

.af-nav{
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.af-nav__link{
  color: rgba(26,26,26,0.70);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.af-nav__link:hover{
  background: rgba(0,0,0,0.04);
  color: rgba(26,26,26,0.92);
}

.af-nav__link.is-active{
  background: var(--brand-soft);
  color: var(--brand-2);
  border: 1px solid rgba(84,140,146,0.35);
}

.af-nav-toggle{
  display: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  line-height: 1;
}

.af-nav-toggle i{
  font-size: 16px;
  color: rgba(26,26,26,0.75);
}

.af-nav-mobile{
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 16px;
  right: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
  padding: 10px;
  z-index: 4000;
}

.af-nav-mobile .af-nav__link{
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
}

.topbar.is-open .af-nav-mobile{
  display: block;
}

.topbar.is-open .af-nav-toggle{
  border-color: rgba(84,140,146,0.35);
}

.contenedorBotonLogin{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.botonesAuth{
  display: flex;
  align-items: center;
  gap: 10px;
}

.botonLogin, .botonSignin{
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--brand);
  line-height: 1;
  cursor: pointer;
}

.botonLogin{
  background-color: var(--brand);
  color: #fff;
}

.botonLogin:hover{
  background-color: var(--brand-2);
  border-color: var(--brand-2);
}

.botonSignin{
  background-color: transparent;
  color: var(--brand);
}

.botonSignin:hover{
  background-color: var(--brand);
  color: #fff;
}

.perfilUsuario{
  display: none;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 10px;
  background-color: #f8f9fa;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  cursor: pointer;
}

.perfilUsuario:hover{
  background-color: #e6f0f2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.perfilCirculo{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.nombreUsuario{
  font-size: 13px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

@media (max-width: 700px){
  .af-nav{
    display: none;
  }

  .af-nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand-name{
    display: none;
  }
}

@media (max-width: 420px){
  .topbar-inner{
    padding: 10px 14px;
  }
}

@media (max-width: 600px){
  .contenedorBotonLogin{
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .botonesAuth{
    gap: 6px;
  }

  .botonLogin, .botonSignin{
    padding: 6px 10px;
    font-size: 12px;
    line-height: 2;
  }
}

/* ===== MAIN ===== */
.al-main{
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 24px 0px;
}

.al-hero{
  position: sticky;
  top: 63px; /* height of topbar */
  z-index: 100;
  background: rgb(255, 252, 255);
  padding: 15px 0 14px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(8px);
  background: rgba(255, 252, 255, 0.95);
}

.al-hero__inner{
  display: grid;
  gap: 18px;
}

.al-title{
  font-size: 70px;
  letter-spacing: -0.03em;
  color: var(--color-azul-medio);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 850px){
  .al-title{
    font-size: 35px;
  }
}

.al-search{
  margin-top: 6px;
}

.al-search__bar{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(0,0,0,0.06);
}

.al-search__icon{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(84,140,146,0.10);
  color: var(--brand-2);
  flex: 0 0 auto;
}

.al-search__input{
  border: none;
  outline: none;
  width: 100%;
  font-size: 15px;
  color: #1c1c1c;
  background: transparent;
}

.al-search__input::placeholder{
  color: rgba(26,26,26,0.55);
}

.al-search__btn{
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  flex: 0 0 auto;
}

.al-search__btn:hover{
  border-color: var(--brand-2);
  background: var(--brand-2);
}

.al-autocomplete{
  margin-top: 10px;
  display: none;
}

.al-filters{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.al-filter{
  border: 1px solid var(--border);
  background: #fff;
  color: rgba(26,26,26,0.78);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.al-filter:hover{
  transform: translateY(-1px);
}

.al-filter.is-active{
  background: var(--brand-soft);
  color: var(--brand-2);
  border-color: rgba(84,140,146,0.35);
}

/* Active state per level keeps level colors but bolder border */
.al-filter--beginner.is-active{
  background: var(--level-beginner-bg);
  color: var(--level-beginner-text);
  border-color: var(--level-beginner-text);
  box-shadow: 0 0 0 2px var(--level-beginner-border);
}
.al-filter--intermediate.is-active{
  background: var(--level-intermediate-bg);
  color: var(--level-intermediate-text);
  border-color: var(--level-intermediate-text);
  box-shadow: 0 0 0 2px var(--level-intermediate-border);
}
.al-filter--advanced.is-active{
  background: var(--level-advanced-bg);
  color: var(--level-advanced-text);
  border-color: var(--level-advanced-text);
  box-shadow: 0 0 0 2px var(--level-advanced-border);
}

.al-filter--beginner{
  background: var(--level-beginner-bg);
  color: var(--level-beginner-text);
  border-color: var(--level-beginner-border);
}

.al-filter--beginner:hover{
  background: #DCF2E5;
}

.al-filter--intermediate{
  background: var(--level-intermediate-bg);
  color: var(--level-intermediate-text);
  border-color: var(--level-intermediate-border);
}

.al-filter--intermediate:hover{
  background: #FFEACC;
}

.al-filter--advanced{
  background: var(--level-advanced-bg);
  color: var(--level-advanced-text);
  border-color: var(--level-advanced-border);
}

.al-filter--advanced:hover{
  background: #EAD9FF;
}

.al-filter__spacer{
  flex: 1 1 auto;
  min-width: 10px;
}

.al-select{
  display: grid;
  gap: 4px;
}

.al-select__label{
  font-size: 11px;
  font-weight: 700;
  color: rgba(26,26,26,0.55);
  padding-left: 4px;
}

.al-select__control{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 650;
  color: rgba(26,26,26,0.85);
  outline: none;
}

.al-section{
  margin-top: 24px;
  padding-bottom: 50px;
}

.al-section__head{
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.al-h2{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-arena);
}

.al-muted{
  font-size: 13px;
  color: rgba(26,26,26,0.62);
  font-weight: 650;
}

.al-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}

.al-card{
  grid-column: span 6;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.08);
  transition: transform .22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .22s ease, border-color .22s ease, background .22s ease;
  position: relative;
  overflow: hidden;
}

/* Shimmer overlay on hover */
.al-card::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(84,140,146,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

.al-card:hover::after{
  opacity: 1;
}

.al-card--link{
  display: block;
  cursor: pointer;
}

.al-card:hover{
  transform: translateY(-10px) scale(1.012);
  box-shadow: 0 40px 80px rgba(84,140,146,0.28), 0 12px 28px rgba(0,0,0,0.10);
  border-color: rgba(84,140,146,0.55);
  background: #fdfffe;
}

.al-card:active{
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 18px 40px rgba(84,140,146,0.18);
  transition-duration: .08s;
}

.al-card--link:focus-visible{
  outline: 3px solid rgba(84,140,146,0.45);
  outline-offset: 3px;
}

.al-pill{
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(84,140,146,0.10);
  color: var(--brand-2);
  font-weight: 800;
  font-size: 13px;
}

.al-card__body{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
  margin-top: 12px;
}

.al-card__content{
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 180px;
}

.al-list{
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  min-width: 0;
}

.al-list li{
  font-size: 13.5px;
  color: rgba(26,26,26,0.80);
  padding-left: 14px;
  position: relative;
  line-height: 1.35;
}

.al-list li::before{
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(84,140,146,0.65);
  position: absolute;
  left: 0;
  top: 8px;
}

.al-card__media{
  width: 100%;
  height: 180px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(84,140,146,0.06);
  overflow: hidden;
  display: grid;
  place-items: center;
  align-self: end;
}

.al-card__media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .30s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.al-card:hover .al-card__media img{
  transform: scale(1.07);
}

.al-level-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 110px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  margin-top: auto;
}

.al-level-tag--beginner{
  background: var(--level-beginner-bg);
  color: var(--level-beginner-text);
  border-color: var(--level-beginner-border);
}

.al-level-tag--intermediate{
  background: var(--level-intermediate-bg);
  color: var(--level-intermediate-text);
  border-color: var(--level-intermediate-border);
}

.al-level-tag--advanced{
  background: var(--level-advanced-bg);
  color: var(--level-advanced-text);
  border-color: var(--level-advanced-border);
}

/* ===== FOOTER ===== */
.alpha-footer{
  width: 100%;
  margin-top: 40px;
  background: var(--color-azul-oscuro);
  color: #ffffff;
  border-top: 1px solid var(--color-arena);
  font-size: 0.9rem;
}

.alpha-footer__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.alpha-footer__logo{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-azul-medio);
  background-color: #ffffff;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.footer-logo-link{
  display: flex;
  align-items: center;
}

.footer-logo-link:hover .alpha-footer__logo{
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(255,255,255,0.25);
}

.alpha-footer__nav{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.alpha-footer__link{
  color: #ffffff;
  opacity: 0.9;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  cursor: pointer;
}

.alpha-footer__link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-arena);
  transition: width 0.2s ease-out;
}

.alpha-footer__link:hover::after{
  width: 100%;
}

.alpha-footer__social{
  display: flex;
  align-items: center;
  gap: 10px;
}

.alpha-footer__icon{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--color-azul-medio);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.9;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out;
  background: rgba(0,0,0,0.05);
}

.alpha-footer__icon i{
  font-size: 0.9rem;
}

.alpha-footer__icon:hover{
  transform: translateY(-1px);
  opacity: 1;
  background-color: var(--color-azul-medio);
  border-color: var(--color-arena);
}

.alpha-footer__bottom{
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 20px 12px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px){
  .al-card{
    grid-column: span 12;
  }

  .al-search__btn{
    display: none;
  }
}

@media (max-width: 720px){

  .al-card__body{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .al-card__content{
    min-height: auto;
  }

  /* mover el tag arriba */
  .al-level-tag{
    order: -1;
    margin-top: 0;
    margin-bottom: 6px;
  }

  /* contenedor de pill + tag */
  .al-card__top{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .al-card__media{
    height: auto;
    min-height: 170px;
    padding: 8px;
  }

  .al-card__media img{
    width: 100%;
    height: auto;
    object-fit: contain;
  }

}

@media (max-width: 520px){
  .al-main{
    padding: 22px 14px 50px;
  }

  .al-search__bar{
    padding: 10px 10px;
  }

  .al-search__icon{
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}

.al-card__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

/* ===== Progress ring on home cards ===== */
.al-card__progress-ring {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.al-ring-svg {
  width: 42px;
  height: 42px;
  transform: rotate(-90deg);
}
.al-ring-bg {
  fill: none;
  stroke: rgba(0,0,0,0.07);
  stroke-width: 3.2;
}
.al-ring-fill {
  fill: none;
  stroke: var(--color-azul-medio);
  stroke-width: 3.2;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.al-card__progress-ring.is-complete .al-ring-fill {
  stroke: #1E7A46;
}
.al-ring-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: var(--color-azul-oscuro);
  letter-spacing: -0.02em;
  pointer-events: none;
}
.al-card__progress-ring.is-complete .al-ring-pct {
  color: #1E7A46;
}
.al-card__progress-ring:not(.is-started):not(.is-complete) .al-ring-pct {
  color: rgba(26,26,26,0.30);
}


/* =============================================
   ANIMACIONES DE ENTRADA — ALPHA LEARNING
   Se activan al añadir .al-ready al body
   ============================================= */

@keyframes alFadeUp {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Ocultar antes de animar */
.al-title,
.al-search,
.al-filters,
.al-section__head,
.al-card {
  opacity: 0;
}

/* Título */
body.al-ready .al-title {
  animation: alFadeUp 0.55s ease both;
  animation-delay: 0.05s;
}

/* Barra de búsqueda */
body.al-ready .al-search {
  animation: alFadeUp 0.55s ease both;
  animation-delay: 0.20s;
}

/* Filtros */
body.al-ready .al-filters {
  animation: alFadeUp 0.55s ease both;
  animation-delay: 0.32s;
}

/* Título de sección */
body.al-ready .al-section__head {
  animation: alFadeUp 0.50s ease both;
  animation-delay: 0.42s;
}

/* Cards — entrada escalonada */
body.al-ready .al-card:nth-child(1) { animation: alFadeUp 0.50s ease both; animation-delay: 0.50s; }
body.al-ready .al-card:nth-child(2) { animation: alFadeUp 0.50s ease both; animation-delay: 0.60s; }
body.al-ready .al-card:nth-child(3) { animation: alFadeUp 0.50s ease both; animation-delay: 0.70s; }
body.al-ready .al-card:nth-child(4) { animation: alFadeUp 0.50s ease both; animation-delay: 0.80s; }
body.al-ready .al-card:nth-child(5) { animation: alFadeUp 0.50s ease both; animation-delay: 0.90s; }
body.al-ready .al-card:nth-child(6) { animation: alFadeUp 0.50s ease both; animation-delay: 1.00s; }
body.al-ready .al-card:nth-child(7) { animation: alFadeUp 0.50s ease both; animation-delay: 1.10s; }


.perfilUsuario {
  display: none;
  align-items: center;
  gap: 5px;
  margin-left: 5px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: #f8f9fa;
  border: 1px solid transparent;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.perfilUsuario:hover {
  background: #e6f0f2;
}
.perfilUsuario a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}
.nombreUsuario {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.perfilCirculo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-azul-medio);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

/* === Premium gold === */
.perfilUsuario.is-premium {
  background: linear-gradient(135deg, rgba(182,138,58,0.13), rgba(210,178,95,0.06));
  border-color: rgba(182,138,58,0.38);
  box-shadow: 0 2px 10px rgba(182,138,58,0.15);
}
.perfilUsuario.is-premium:hover {
  background: linear-gradient(135deg, rgba(182,138,58,0.20), rgba(210,178,95,0.10));
}
.perfilUsuario.is-premium .perfilCirculo {
  background: linear-gradient(135deg, #B68A3A, #D2B25F);
  box-shadow: 0 0 0 2px rgba(182,138,58,0.22);
}
.perfilUsuario.is-premium .nombreUsuario {
  color: #8A6423;
}