html,
body {
  height: 100%;
  min-height: 100%;
  background-color: #000;
}
body {
  font-family: Arial, sans-serif;
  background: url("../img/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.container {
  background: rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  width: auto;
  max-width: inherit;
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.4);
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px #ffffff,
    0 0 20px #ffffff;
}

.subtitle {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 15px;
}

/* ===== MARCADOR DIGITAL ===== */

.scoreboard {
  width: 18rem;
  background: #000;
  padding: 20px 30px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 15px;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
}

.days {
  font-family: "Orbitron", sans-serif;
  font-size: 60px;
  color: #ff2b2b;
  letter-spacing: 8px;
  text-shadow:
    0 0 5px #ff0000,
    0 0 10px #ff0000,
    0 0 20px #ff0000;
}
.marker .time {
  margin-top: 15px;
  font-family: "Orbitron", sans-serif;
  font-size: 26px;
  color: #00ffcc;
  display: grid;
  grid-template-columns: 60px 25px 60px 25px 60px;
  text-align: center;
  justify-content: center;
  justify-items: center;
}
.marker .time span {
  width: auto;
}

.dayCounter {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #ffd700;
}

.phrase {
  margin-top: 20px;
  font-size: 26px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  padding: 15px;
  border-radius: 12px;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: none;
  max-width: 540px;
}

.finished {
  font-size: 22px;
  color: #00ffcc;
  margin-top: 20px;
}
a {
  color: white;
  text-decoration: none;
}

.time_letters {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  gap: 25px;
  margin: auto;
  text-align: center;
  justify-items: center;
  justify-content: center;
}
.bottoms {
  font-size: 11px;
}
.logo {
  width: 180px;
}
.img {
  position: absolute;
  bottom: 0;
  right: 16%;
}
.imgPerson {
  width: 36vh;
  float: right;
  position: sticky;
  bottom: 0;
}

.containers {
  padding: 10px;
  height: 400px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2%;
}
.marker {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px; /* altura inicial */
  color: white;
  text-align: center;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}
.artitle {
  padding: 10px;
  height: auto;
}
.textArtitle {
  color: white;
  font-size: 16px;
}
.linkArtitle {
  background: rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  width: auto;
  max-width: inherit;
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.4);
  display: block;
}
.contend {
  height: auto;
}
.imgArtitle {
  width: 100%;
  height: auto;
}

/* Estado sticky del marcador */
.navmarkr.sticky {
  position: fixed;
  top: 0;
  width: auto;
  border-radius: 10px;
  z-index: 1;
  color: #fff;
}
.navmarkr .scoreboard {
  width: auto;
  background: #000;
  padding: 20px 30px;
  border-radius: 10px;
  margin-top: 0;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
  display: flex;
  position: relative;
}
.sticky_scoreboard {
  text-align: center;
  padding-right: 3em;
}
.navmarkr.sticky h1 {
  font-size: 28px;
  margin: inherit;
  color: #ffee00;
  width: 100%;
}
.navmarkr.sticky .logo {
  width: max-content;
  float: left;
  height: 80px;
}

.navmarkr.sticky .container {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  width: auto;
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.4);
  grid-template-columns: 1fr 2fr 1fr;
  display: grid;
  align-items: center;
  justify-content: stretch;
  justify-items: stretch;
  padding: 0 20px;
}

/* Reducir elementos internos cuando es sticky */
.navmarkr.sticky h1 {
  font-size: 3em !important;
  margin-bottom: 10px;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px #ffffff,
    0 0 20px #ffffff;
}

.navmarkr.sticky .days {
  font-size: 40px !important;
}

.navmarkr.sticky .phrase,
.navmarkr.sticky .subtitle,
.navmarkr.sticky .dayCounter {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.navmarkr.sticky .time {
  display: grid;
  grid-template-columns: 60px 25px 60px 25px 60px;
  margin-top: 15px;
  font-family: "Orbitron", sans-serif;
  font-size: 26px;
  color: #00ffcc;
  letter-spacing: 4px;
  width: auto;
  text-align: center;
}
.navmarkr.sticky .time_letters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  text-align: center;
}
.NumbArtitle {
  background: red;
  color: #ffffff;
  padding: 0.5em;
  border-radius: 100px;
  position: absolute;
}
.contend {
  height: auto;
  top: 250px;
  position: relative;
}
.dnone {
  display: none;
}
.dblock {
  visibility: visible;
}

/* ========================= */
/* 📱 Desk (≤1352px) */
/* ========================= */
@media (min-width: 1352px) and (max-width: 1512px) {
  body {
    align-items: normal;
  }
  .container {
    padding: 15px;
    width: auto;
    height: auto;
    margin-top: 0;
  }
  .logo {
    width: 100px;
  }

  h1 {
    font-size: 2em;
    margin: 0;
  }
  .subtitle {
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 5px;
    width: 100%;
  }
  .scoreboard {
    margin-top: 10px;
  }
  .scoreboard span {
    font-size: 7px;
  }
  .marker .time span {
    font-size: 1em;
  }
  .dayCounter {
    margin: 10px;
    font-size: 13px;
    font-weight: bold;
    color: #ffd700;
  }

  .days {
    font-size: 2.5em;
  }

  .time {
    font-size: 18px;
  }

  .time_letters {
    font-size: 12px;
  }
  .containers {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .phrase {
    font-size: 12px;
    line-height: 1.4;
    text-shadow: 1px 1px 9px rgba(0, 0, 0, 0.78);
    max-width: 300px;
    margin: auto;
    margin-top: 0;
  }
  .img {
    right: 15%;
  }
  .imgPerson {
    width: 40vh;
  }
  .navmarkr.sticky .container {
    grid-template-columns: 1fr 4fr 1fr;
    gap: 15px;
    width: auto;
    text-align: center;
    padding: 0;
  }

  .navmarkr.sticky .logo {
    width: 150px;
    height: auto;
  }

  .navmarkr.sticky h1 {
    font-size: 2.3em !important;
    margin: 0;
  }

  .navmarkr.sticky .days {
    font-size: 20px !important;
  }

  .navmarkr.sticky .time {
    font-size: 13px !important;
    display: grid;
    grid-template-columns: 30px 15px 30px 15px 30px;
    letter-spacing: 0;
  }
  .navmarkr.sticky .time span {
    font-size: 18px !important;
  }
  .navmarkr.sticky .scoreboard {
    padding: 10px 20px;
    width: 14rem;
    margin-top: 0;
  }
  .sticky_scoreboard {
    text-align: center;
    padding-right: 1em;
    font-size: 12px;
  }
  .bottoms {
    font-size: 7px;
  }
  .navmarkr.sticky .time_letters {
    display: grid;
    grid-template-columns: repeat(3, 35px);
    gap: 12px;
    text-align: center;
  }
  .navmarkr.sticky .time_letters span {
    font-size: 7px;
  }
}

/* ========================= */
/* 📱 Desk (≤1024px) */
/* ========================= */
@media (min-width: 1024px) and (max-width: 1280px) {
  body {
    align-items: normal;
  }
  .container {
    padding: 15px;
    width: auto;
    height: auto;
    margin-top: 0;
  }
  .logo {
    width: 100px;
  }

  h1 {
    font-size: 1.5em;
    margin: 0;
  }
  .subtitle {
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 5px;
    width: 100%;
  }
  .scoreboard {
    margin-top: 10px;
  }
  .scoreboard span {
    font-size: 7px;
  }
  .marker .time span {
    font-size: 0.6em;
  }
  .dayCounter {
    margin: 10px;
    font-size: 13px;
    font-weight: bold;
    color: #ffd700;
  }

  .days {
    font-size: 2.5em;
  }

  .time {
    font-size: 18px;
  }

  .time_letters {
    font-size: 12px;
  }
  .containers {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .phrase {
    font-size: 12px;
    line-height: 1.4;
    text-shadow: 1px 1px 9px rgba(0, 0, 0, 0.78);
    max-width: 300px;
    margin: auto;
    margin-top: 0;
  }
  .img {
    right: 16%;
  }
  .imgPerson {
    width: 40vh;
  }
  .navmarkr.sticky .container {
    grid-template-columns: 1fr 4fr 1fr;
    gap: 15px;
    width: auto;
    text-align: center;
    padding: 0 15px;
  }

  .navmarkr.sticky .logo {
    width: 150px;
    height: auto;
  }

  .navmarkr.sticky h1 {
    font-size: 1.7em !important;
    margin: 0;
  }

  .navmarkr.sticky .days {
    font-size: 20px !important;
  }

  .navmarkr.sticky .time {
    font-size: 13px !important;
    display: grid;
    grid-template-columns: 30px 15px 30px 15px 30px;
    letter-spacing: 0;
  }

  .navmarkr.sticky .scoreboard {
    padding: 10px 20px;
    width: 14rem;
    margin-top: 0;
  }
  .sticky_scoreboard {
    text-align: center;
    padding-right: 1em;
    font-size: 12px;
  }
  .bottoms {
    font-size: 7px;
  }
  .navmarkr.sticky .time_letters {
    display: grid;
    grid-template-columns: repeat(3, 35px);
    gap: 12px;
    text-align: center;
  }
  .navmarkr.sticky .time span {
    font-size: 13px !important;
  }
  .navmarkr.sticky .time_letters span {
    font-size: 7px;
  }
  .scoreboard {
    padding: 10px 20px;
  }
}

/* ========================= */
/* 📱 Mobile grande (≤768px) */
/* ========================= */
@media (max-width: 768px) {
  body {
    align-items: normal;
  }
  h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 16px;
  }

  .days {
    font-size: 60px;
  }

  .time {
    font-size: 22px;
  }

  .time_letters {
    font-size: 12px;
  }

  .phrase {
    font-size: 25px;
    margin-top: 20px;
    line-height: 1.4;
    width: 60%;
    text-shadow: none;
  }
  .img {
    right: 0;
  }
  .imgPerson {
    width: 25vh;
  }
  .containers {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .navmarkr.sticky .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navmarkr.sticky .logo {
    width: 100px;
    height: auto;
  }

  .navmarkr.sticky h1 {
    display: block;
    font-size: 1.2rem !important;
    margin: 15px auto;
    text-align: center;
  }

  .navmarkr.sticky .days {
    font-size: 24px !important;
  }

  .navmarkr.sticky .time {
    font-size: 15px !important;
    grid-template-columns: 30px 20px 30px 20px 30px;
    margin-top: 0;
  }
  .navmarkr.sticky .scoreboard {
    padding: 6px 12px;
    box-shadow: none;
    margin-top: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .navmarkr.sticky .time_letters span {
    font-size: 6px;
  }
  .navmarkr.sticky {
    width: 100%;
  }
  .sticky_scoreboard {
    text-align: center;
    padding-right: 0;
  }
      .sticky_scoreboard span {
        font-size: 9px;
    }
}
/* ========================= */
/* 📱 Mobile pequeño (≤480px) */
/* ========================= */
@media (max-width: 480px) {
  body {
    align-items: normal;
  }
  .container {
    padding: 15px;
    width: 340px;
    height: 81%;
    margin-top: 10px;
  }
  .containers {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .logo {
    width: 150px;
  }
  h1 {
    font-size: 22px;
    letter-spacing: 2px;
    display: block;
    margin: 0;
  }
  .subtitle {
    width: 70%;
    margin: auto;
  }
  .days {
    font-size: 48px;
  }

  .time {
    font-size: 18px;
    display: flex;
    justify-content: space-evenly;
  }
  .scoreboard {
    padding: 10px 20px;
  }
  .bottoms {
    font-size: 10px;
  }
  .dayCounter {
    width: 70%;
  }
  .phrase {
    font-size: 16px;
    width: 60%;
    text-shadow: none;
  }
  .img {
    right: 0;
  }
  .imgPerson {
    width: 19vh;
  }
  .contend {
    height: auto;
    top: 300px;
    position: relative;
  }
  .navmarkr.sticky {
    position: fixed;
  }

  .navmarkr.sticky .logo {
    height: 55px;
    width: auto;
  }
  .navmarkr.sticky .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
  }
  .navmarkr.sticky .days {
    font-size: 30px !important;
    letter-spacing: 3px;
  }

  .navmarkr.sticky .time {
    font-size: 17px !important;
    display: grid;
    grid-template-columns: 60px 25px 60px 25px 60px;
    letter-spacing: 0;
  }

  .navmarkr.sticky .scoreboard {
    padding: 5px 10px;
    width: 100%;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
  }
  .time span {
    width: auto;
  }
  .sticky_scoreboard {
    font-size: 11px;
    text-align: center;
    padding-right: 1em;
  }
  .navmarkr.sticky h1 {
    display: block;
    font-size: 1.2rem !important;
    margin: 15px auto;
    text-align: center;
  }
}

/* ========================= */
/* 📱 Extra pequeño (≤360px) */
/* ========================= */
@media (max-width: 360px) {
  body {
    align-items: normal;
  }
  .logo {
    width: 180px;
  }
  .days {
    font-size: 38px;
  }

  .time {
    font-size: 16px;
  }

  .phrase {
    font-size: 13px;
    text-shadow: none;
  }
  .img {
    right: 0;
  }
  .imgPerson {
    width: 20vh;
  }
  .containers {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .navmarkr.sticky .days {
    font-size: 18px !important;
  }

  .navmarkr.sticky .time {
    font-size: 10px !important;
    display: grid;
    grid-template-columns: 60px 25px 60px 25px 60px;
    letter-spacing: 0;
  }
}