body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('assets/bgmm.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-color: #000000;
}

/* mantiene scroll vertical y oculta scroll horizontal */
html, body {
  overflow-x: hidden; 
  overflow-y: auto;   
}

/*Estilo pasos*/
    .steps {
        position: absolute;
        width: 10px;
        height: auto;
        opacity: 0;
        transition: opacity 0.7s;
}

    .present {
        opacity: 1;
}
/*Fin pasos*/

/*INICIO CONTENEDOR MOVILES*/
@media (max-width: 768px) {
    body {
        background-image: url('assets/bgmmcel.webp');
        background-color: #000000;
    }

    .generalcounter-container {
    gap: 70px;
}
    .housescounter-container {
    gap: 70px;
}
}
/* FIN CONTENEDOR MOVILES*/

/*Header*/
header {
    text-align: center;
    padding: 40px 0 20px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto 40px; 
}

.logo img {
    max-width: 200px;
    height: auto;
}

.logoone {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logoone img {
    max-width: 600px;
    height: auto;
}

/* Sub header contadores*/
/*GRID CONTADOR HOGWARTS Y SORTING*/
.generalcounter-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    max-width: 600px;
    margin: 0 auto;
    justify-items: center;
    padding: 60px 20px;
    box-sizing: border-box;
}


.betozocontainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    max-width: 300px;
    margin: 0 auto;
    justify-items: center;
    /*padding: 60px 20px;*/ /*no necesario/*
    box-sizing: border-box;*/
}

/*GRID CONTADORES DE CASAS*/
.housescounter-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    max-width: 1000px;
    margin: 0 auto;
/*    gap: 50px; VER EL GAP EN @MEDIA*/
    justify-items: center;
    padding: 60px 20px;
    box-sizing: border-box;
}

/*ELEMENTO CONTADOR DE CASA, GENERAL PARA TODOS*/
.house-counter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  padding: 10px 20px 10px 60px; /* más padding izquierdo para espacio del escudo */
  font-family: Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: black;
  width: fit-content;
  margin-left: 40px; /* para evitar que lo que esté a la izquierda se superponga */
}

/*CONTADOR LETRA*/
.count {
    font-family: 'Manufacturing Consent', Arial, sans-serif;
    font-size: 2rem;
    color: #000000;
}

/*EMBLEMA OFFSET*/
.house-counter .badge {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: auto;
  object-fit: contain;
  z-index: 2;
}

/* TXT de contadores*/
.house-counter .count {
  display: inline-block;
  z-index: 1;
}

/* countdown */
.simply-countdown-dark {
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.simply-countdown-dark > .simply-section {
  width: 50px;
  height: 50px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.simply-countdown-dark > .simply-section > div {
  display: flex;
  flex-direction: column;
  line-height: 1;
  align-items: center;
}

.simply-countdown-dark > .simply-section .simply-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.simply-countdown-dark > .simply-section .simply-word {
  font-size: 0.6rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (min-width: 640px) {
  .simply-countdown-dark > .simply-section {
    padding: 1rem;
  }

  .simply-countdown-dark > .simply-section .simply-amount {
    font-size: 1.75rem;
  }

  .simply-countdown-dark > .simply-section .simply-word {
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .simply-countdown-dark > .simply-section {
    padding: 1rem;
  }

  .simply-countdown-dark > .simply-section .simply-amount {
    font-size: 2rem;
  }

  .simply-countdown-dark > .simply-section .simply-word {
    font-size: 0.8rem;
  }
}

/* Personalización de fondo x casa, no creo que se use, faltan categorías */
.house-counter.gry { background-color: white; }
.house-counter.sly { background-color: white; }
.house-counter.rav { background-color: white; }
.house-counter.huf { background-color: white; }


/*Contenido de la web*/
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    max-width: 1300px; /* Esto limita visualmente a max 4 tarjetas por fila, caben hasta 6 si no se limita en 2K, creo */
    margin: 0 auto;
    gap: 90px;
    justify-items: center;
    padding: 60px 20px;
    box-sizing: border-box;
}

.hp {
    font-family: 'Manufacturing Consent', Arial, sans-serif;
    font-size: 4.5rem;
    margin: 20px auto;
    text-align: center;
    grid-column: 1 / -1; /*salto de linea*/
    /* texto centrado*/
    display: block;
    width: 100%;
    /* texto centrado*/
    /*Gradiente de color dorada inicio*/
    color: rgb(218,165,32); /*mozilla base*/
    background: -webkit-linear-gradient(transparent, transparent), -webkit-linear-gradient(top, rgba(218,165,32,1) 0%, rgba(213,173,109,1) 26%, rgba(226,186,120,1) 35%, rgba(163,126,67,1) 45%, rgba(212,175,55,1) 61%, rgba(213,173,109,1) 100%);
    background: -o-linear-gradient(transparent, transparent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /*text-shadow: 0px 0px 10px rgba(212,175,55,.5);*/
    /*Gradiente de color dorada fin*/ 
}

/*salto de linea*/
.grid-break {
    grid-column: 1 / -1;
    height: 0;
    padding: 0;
    margin: 0;
}

/* Tarjetas */
.profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 325px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 50px 20px;
    box-sizing: border-box;
    text-align: center;
    /*nuevos agregados para separación x casa automatico*/
    background: #dac89f; 
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Variable Admins */
.profile-card:has(.social-box.adm) {
    background-image: url('assets/bg/ADM.webp');
}

/* Variable Hogwarts */
.profile-card:has(.social-box.hog) {
    background-image: url('assets/bg/HOG.webp');
}

/* Variable Sorting Hat */
.profile-card:has(.social-box.sor) {
    background-image: url('assets/bg/SOR.webp');
}

/* Variable Gryffindor */
.profile-card:has(.social-box.gry) {
    background-image: url('assets/bg/GRY.webp');
}

/* Variable Slytherin */
.profile-card:has(.social-box.sly) {
    background-image: url('assets/bg/SLY.webp');
}

/* Variable Ravenclaw */
.profile-card:has(.social-box.rav) {
    background-image: url('assets/bg/RAV.webp');
}

/* Variable Hufflepuff */
.profile-card:has(.social-box.huf) {
    background-image: url('assets/bg/HUF.webp');
}

/* NO USADO Variable Marca maldita */
.profile-card:has(.social-box.dmv) {
    background-image: url('assets/bg/DMV.webp');
}

/* Foto de perfil */
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid #dac89f;
}

/* Texto de la tarjeta */
.info {
    margin-top: 20px;
    padding: 0 10px;
}

.social-box {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    padding: 10px 20px;
    display: flex;
    gap: 10px;
}

/* Variable Admins */
.social-box.adm {
    background-color: #778ca3;
}

/* Variable Hogwarts */
.social-box.hog {
    background-color: #474787;
}

/* Variable Sorting Hat */
.social-box.sor {
    background-color: #363029;
}

/* Variable Gryffindor */
.social-box.gry {
    background-color: #a01f23;
}

/* Variable Slytherin */
.social-box.sly {
    background-color: #265920;
}

/* Variable Ravenclaw */
.social-box.rav {
    background-color: #018cb8;
}

/* Variable Huffflepuff */
.social-box.huf {
    background-color: #e2bf21;
}

/* NO USADO Variable Marca maldita */
.social-box.dmv {
    background-color: #badc58;
}

/* Iconos social box*/
.social-box a {
    color: white;
    text-decoration: none;
}

.icon {
    width: 24px;
    height: 24px;
    color: white;
    display: inline-block;
    background-color: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

/* Ubicaciones de los SVG de redes sociales*/
/* Twitter */
.icon-x {
    mask-image: url('assets/icon/x.svg');
    -webkit-mask-image: url('assets/icon/x.svg');
}

/* Kick verde */
.icon-kick {
    mask-image: url('assets/icon/kick.svg');
    -webkit-mask-image: url('assets/icon/kick.svg');
}

/* Kick alt */
.icon-kickalt {
    mask-image: url('assets/icon/kick-alt.svg');
    -webkit-mask-image: url('assets/icon/kick-alt.svg');
}

/* Twitter */
.icon-twitter {
    mask-image: url('assets/icon/twitter.svg');
    -webkit-mask-image: url('assets/icon/twitter.svg');
}

/* Twitch */
.icon-twitch {
    mask-image: url('assets/icon/twitch.svg');
    -webkit-mask-image: url('assets/icon/twitch.svg');
}

/* Instagram */
.icon-instagram {
    mask-image: url('assets/icon/instagram.svg');
    -webkit-mask-image: url('assets/icon/instagram.svg');
}

/* Question */
.icon-question {
    mask-image: url('assets/icon/question.svg');
    -webkit-mask-image: url('assets/icon/question.svg');
}



/*Footer*/
/*Creditos de Footer solo con SVG, no usado actualmente
.svg-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 1rem;  
}

.svg-center {
  width: 50px;
  height: 50px;
padding-bottom: 60px; /* Comentar completo si se está usando la atribución en el index
}*/

.footer-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  background: transparent;
}

.footer-table {
  padding-top: 30px;
    display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  max-width: 350px;
  gap: 2%;
}

/*imagen creditos izquierda*/
.footer-tk {
  max-width: 100px;
  height: auto;
  align-content: right;
}

/*imagen del separador footer*/
.footer-x img {
/*  width: 10%;
  max-width: 40px;*/
  height: 25px;
  opacity: 0.8;
}

/*Imagen creditos derecha*/
.footer-bb {
  max-width: 150px;
  height: auto;
  align-content: left;
}

/*Texto footer de acreditación*/
.attribution {
  text-align: center;
  font-size: 0.55rem;
  color: white;
  padding-bottom: 60px;
}

.betozo {
    font-family: 'Manufacturing Consent', Arial, sans-serif;
    font-size: 2rem;
    margin: 5px auto;
    text-align: center;
    grid-column: 1 / -1; /*salto de linea*/
    /* texto centrado*/
    display: block;
    width: 100%;
    /* texto centrado*/
}

/*BOTON*/
.glow-on-hover {
    width: 220px;
    height: 50px;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left:-2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:active {
    color: #000
}

.glow-on-hover:active:after {
    background: transparent;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}