@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

.poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.poppins-thin-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.poppins-extralight-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.poppins-light-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.poppins-regular-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.poppins-medium-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.poppins-semibold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.poppins-bold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.poppins-extrabold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.poppins-black-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: italic;
}

.white {
    color: #fff;
}


/* ---------- Base ----------- */
body {
    font-family: "Poppins";
    color: #fff;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp .6s ease-out forwards;
    background-image: url('../img/fondodaysoneucerin-Lineaestetica2.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /* O usa "contain" según prefieras */
    background-attachment: fixed;
    /* Opcional: fija el fondo al hacer scroll */
    min-height: 100vh;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rowFadeInPop {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animated-row {
    opacity: 0;
    animation: rowFadeInPop .45s ease-out forwards;
}

.container-slim {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

h1 {
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 0 #9164cc;
    font-weight: 800;
    letter-spacing: .3px;
    margin: 0 0 4px 0;
}

/* ---------- Countdown / Meta ----------- */
.countdown {
    background: #ffe4ea;
    color: #42275c;
    border: 1px solid #9164cc;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    margin-top: 6px;
    font-weight: 500;
}

.meta {
    font-size: 0.9rem;
    color: #ddd;
}

/* ---------- Search ----------- */
.search-box {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box input {
    width: min(420px, 90%);
    border-radius: 8px;
    border: 2px solid #9164cc;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}

.highlight-text {
    background: #eee84f;
    color: #42275c;
    font-weight: 700;
    border-radius: 3px;
    padding: 0 2px;
}

/* ---------- Table wrapper + table ----------- */
.table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 80vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    color: #333;
    font-size: 14px;
}

thead th {
    background: linear-gradient(to bottom, #42275c, #9164cc);
    color: #fff;
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: .4px;
}

tbody td {
    padding: 12px;
    border-bottom: 1px solid #e6e6e6;
    vertical-align: top;
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

tbody tr:hover {
    background: #e0f7fa;
}

/* ---------- Ganadores ----------- */
.winner {
    background: #eee84f !important;
    box-shadow: inset 0 0 0 2px #666666;
    font-weight: bold;
}

/* ---------- Animación de actualización ----------- */
.updated-row {
    animation: flashUpdate .7s ease-in-out;
}

@keyframes flashUpdate {
    0% {
        background: #fff6a0;
    }

    100% {
        background: inherit;
    }
}

/* ---------- Mobile Cards ----------- */
@media (max-width: 600px) {
    body {
        padding: 14px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .search-box input {
        width: 100%;
        font-size: 16px;
        padding: 12px 14px;
    }

    .table-wrapper {
        background: transparent;
        box-shadow: none;
        max-height: none;
        overflow-y: visible;
    }

    table {
        display: block;
        background: transparent;
    }

    thead {
        display: none;
    }

    tbody {
        display: block;
    }

    tbody tr {
        display: block;
        margin: 14px 0;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
        position: relative;
    }

    tbody tr::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 6px;
        background: linear-gradient(90deg, #42275c, #9164cc);
    }

    tbody td {
        display: block;
        padding: 14px 16px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    tbody td:last-child {
        border-bottom: none;
    }

    tbody td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: #9164cc;
        margin-bottom: 6px;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: .4px;
    }

    tbody tr:hover {
        background: #fff;
    }
}

.bg-success {
    background-color: #9164cc !important;
}


#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(#e3caff, #ad80ff, #9164cc);
background-image: url('https://ranking-dayson-eucerin.lineaestetica.co/img/fondodaysoneucerin-Lineaestetica2.jpg');
 background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /* O usa "contain" según prefieras */
    background-attachment: fixed;
    /* Opcional: fija el fondo al hacer scroll */
    min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 3s ease-out forwards;
  animation-delay: 3s;
}

.logo-container {
  text-align: center;
}

/* Hide Content Initially */
#content {
  display: none;
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeOut {
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
p{
  font-size: 40px;

}

@keyframes fadeInText {
  100% {
    opacity: 1;
  }
}

/* ===== Footer ===== */
.site-footer{
  margin-top: 24px;
  padding: 16px 12px;
  background: rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
}
.site-footer .footer-inner{
  max-width: 1000px;
  margin: 0 auto;
  color: #f3f3f3;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.site-footer .sep{ opacity:.6 }
.site-footer a{ color:#c9ffd5; text-decoration: underline; }
.site-footer a:hover{ color:#ffffff; }

/* ===== Modal términos ===== */
.modal-terms{
  position: fixed; inset: 0;
  display: none;
  z-index: 2000;
}
.modal-terms.is-open{ display: block; }
.modal-terms__backdrop{
  position:absolute; inset:0; background: rgba(0,0,0,.5);
}
.modal-terms__dialog{
  position: absolute; left:50%; top:50%;
  transform: translate(-50%, -50%);
  width: min(680px, 92vw);
  background:#fff; color:#222;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  padding: 18px 20px 20px;
}
.modal-terms__close{
  position:absolute; right:10px; top:8px;
  border:0; background:transparent; font-size:26px; line-height:1;
  cursor:pointer; color:#666;
}
.modal-terms__close:hover{ color:#000; }
.modal-terms__content{
  margin-top: 10px;
  max-height: 60vh; overflow:auto;
}
.modal-terms__dialog h3{
  margin:0 28px 8px 0; font-weight:800;
}

#sellosFunnel {
  background: linear-gradient(to bottom right, #fafafa, #f5f3ff);
  border-radius: 12px;
  padding: 8px;
}

#sellosFunnel { width: 100%; }
@media (max-width: 640px) {
  #sellosFunnel .apexcharts-data-labels text { font-size: 8px !important; }
}
div#countdown {
    display: none !important;
}