@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
*{
    margin: 0;
    padding: 0; 
}
html,body{
    background: #800004 ;
    font-family: "Montserrat", sans-serif;
}
.overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0,0.5);
    z-index: 1000;
    display: none;

}
.container{
    background-image: url('/assets/img/Fondo 3.webp');
    background-size: cover;
    background-position: center;
    padding: 10px;
     /* Centrar verticalmente */
}
.container h1,h2{
    display: flex;
    justify-content: center;
}
.container-1{
    display: flex;
    justify-content: space-around; 
    align-items: center;
    padding-top: 40px;
    align-items: flex-start;
}
.container-2{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
} 
.container-3{
    display: flex;
    justify-content: center ;
}
.participe-pasos{
    display: flex;
    justify-content: center;
    margin-top: 50px;
} 
.dropdown {
  position: relative;
  display: inline-block;
  background:  #2b6244;
  padding: 10px 5px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}
.dropdown span{
    font-size: 18px;
    font-weight: 500;
}
.dropdown-text{
    cursor: pointer;
}
.dropdown-icon {
  cursor: pointer;
  color: #ffff;
}

/* Contenido del dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2f2a2a8a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    width: 96.5%;
    margin-top: 10px;
    border-radius: 10px;
}


.dropdown-content a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
    text-decoration: underline;
}
.dropdown-text,a{
    color: #ffff;
    font-weight: 500;
    text-decoration: none;
    margin: auto;
}

/* Mostrar el dropdown cuando está abierto */
.show {
  display: block;
}
.logo img{
    width: 350px ;
}
.ganadores{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.imagen-principal{
    width: 640px;
    display: contents;
}
.imagen-principal img{
    width: 1024px;
}
.text-premio img{
    width: 1100px;
}
.imagen-bodegon img {
    transform: scale(1.3);
    width: 852px;
}
h1:first-child{
    font-weight: bold;
    font-size: 48px;
    color:  #fff;
    transform: translateY(100px);
}
ol {
    margin-left: 20px; /* Margen a la izquierda de la lista */
    padding-left: 0; /* Padding a la izquierda */
    list-style-type: none; /* Quitamos los números automáticos */
    width: 567px;
  }
.txt-pasos{
    display: flex;
    margin-bottom: 20px;
    max-width: 580px;
    gap: 20px;
}
.txt-pasos .text-paso{
    font-size: 41px !important;
    color: #fff;
}
.text-paso{
    width: 90%;
}
.img-paso3 img{
    border-radius: 10px;
    height: 140px;
    width: auto;
}
.num-pasos{
    background: #2b6244;
    border-radius: 5px;
    font-size: 33px;
    color: #fff;
    font-weight: 800;
    height: fit-content;
    text-align: center;
    width: 40px;
    margin-top: 10px;
}
.pasos p{
    color: rgb(241, 241, 241); /* Texto en color blanco */
    padding: 10px; /* Espaciado interno */
    margin-bottom: 8px; /* Espacio entre elementos de la lista */
    font-size: 41px;
    margin-bottom: 20px;
}

.premios img{
    width: 566px;
}
/* Estilos para el popup */

.content-pop,.content-pop-conditions{
    margin: 0px auto;
    position: relative;
    margin-top: 0;
    padding: 40px;
    width: 80%;
    height: 70vh;
    background-color: #f1f1f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-radius: 20px;
}
.content-pop h2{
    font-size: 60px;
    color: #A2031C;
    font-weight: 900;
    text-align: center;
}
.congratulations{
    width: 657px;
    font-size: 26px;
    text-align: center;
}
.content-pop p span{
    font-weight: bold;
}
.whatsapp{
    background: #004d40;
    padding: 10px 20px;
    border-radius: 10px; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.whatsapp p{
    font-size: 29px;
    font-weight: 900;
    color: white;
}
#popup,#popup-conditions,#popup-ganadores2{
    z-index: 2001;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%,-50%);
}
#close , #close-conditions,#close-ganadores2{
    position: absolute;
    right: -10px;
    top: -10px;
    background: #7C0001;
    padding: 5px;
    border-radius: 50%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 20px;
    height: 20px;

}
#close i{
    color: #fff;
    font-size: 19px;
    font-weight: bold;
}
#open,#open-conditions,#open-ganadores {
    font-weight: bold; 
}
#open,#open-conditions,#open-ganadores:hover{
    cursor: pointer;

}
.search {
    display: flex;
    position: absolute;
    width: 300px;
    margin-left: 10px;
    left: 0;
    border-radius: 10px;
    margin-top: -20px !important;
}

.search input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0;
    margin-right: -1px;
    border-radius: 0 10px 10px 0;
    
}
#dateFilter,#dateFilter2{
    margin-left: 10px;
    border-radius: 10px !important;
}

.search button {
    padding: 10px 20px;
    background: #7C0001;
    color: aliceblue;
    border: none;
    cursor: pointer;
    border-radius: 10px 0 0 10px;
}

.search button i {
    font-size: 16px;
}
/* Estilos de las tablas */
.table-container {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
}
.table-title {
    background-color: #d32f2f;
    color: white;
    text-align: center;
    padding: 10px 10px;
    font-size: 24px;
    border-radius: 10px 10px 0 0;
    font-weight: 700;
    max-width: 330px;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 10px;
    text-align: left;
}
th {
    background-color: #004d40;
    color: white;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}
.termino{
    font-size: 14px;
    color: #004d40;
}
/* Estilos de la Tabla*/
td.gridjs-td {
    padding: 10px 10px !important;
}
.gridjs-td:nth-child(2), /* Segunda columna (DNI) */
.gridjs-td:nth-child(3)  /* Tercera columna (Premio) */
{
  text-align: center; /* Centramos el contenido horizontalmente */
}
th.gridjs-th{
    background-color: #004d40 !important; 
    border: none; 
    border-top: none;
    box-sizing: border-box;
    color: #fff !important; 
    outline: none;
    padding: 14px 24px !important;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
}
.gridjs-container{
    padding: 0 !important;
}
.table-container{
    max-height: 390px;
    overflow-y: auto;
}
.table-container::-webkit-scrollbar{
    width: 5px;
}
.table-container::-webkit-scrollbar-thumb{
    background-color: #A2031C;
    border-radius: 6px;
}
.table-wrapper,.table-wrapper2{
    margin-bottom: 20px;
}
#wrapper , #wrapper2{
    display: contents;
}
.highlighted-cell {
    background-color: red !important;
    color: white;
  }
/*
#wrapper,#wrapper2{
    max-height: 370px;
    overflow-y: auto;
}
#wrapper::-webkit-scrollbar{
    width: 5px;
}
#wrapper::-webkit-scrollbar-thumb{
    background-color: #A2031C;
    border-radius: 6px;
}
#wrapper2::-webkit-scrollbar{
    width: 5px;
}
#wrapper2::-webkit-scrollbar-thumb{
    background-color: #A2031C;
    border-radius: 6px;
}
/* Estilos del popup de terminos y condiciones*/

#popup-content{
    overflow-y: auto;
    padding: 20px 40px;
}
.popup-content::-webkit-scrollbar{
    width: 5px;
}
.popup-content::-webkit-scrollbar-thumb{
    background-color: #A2031C;
    border-radius: 6px;
}
.terms-canal{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.terms-canal h2{
    font-size: 33px;
    text-align: center;
}
.terms-canal p a {
    color: blue;
}
.terms-canal ul{
    padding-left: 50px;
}
.legal{
    display: flex;
    justify-content: center;
}
.legal p{
    text-align: center;
    font-size: 14px;
    color: #FFF;
    width: 80%;
}
.gridjs-search {
    display: none; /* Ocultar el buscador predeterminado de Grid.js */
}

.date-clear {
    position: relative;
    display: none;
}
.date-clear .clear-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
.date-clear input:not(:placeholder-shown) + .clear-icon {
    display: block;
}
.gridjs-head {
    margin-bottom: 0 !important; 
    padding: 0 !important; 
    width: 100%;
}

@media (max-width: 600px) {
    .container-1 {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 40px;
    }
    .logo{
        order: 1;
    }
    .dropdown, .ganadores{
        order: 0;
        display: flex;
        justify-content: center;
    }
    .ganadores{
        flex-direction: row;
    }
    .drop-ganadores{
        width: 50% !important;
    }
    .dropdown span {
        font-size: 14px;
        font-weight: 500;
        text-align: center;
    }
    .dropdown-content{
        margin-top: 27px;
    }
    .imagen-principal img {
        width: 330px;
        
    }
    .dropdown {
        width: 220px;
    }

    img{
        transform: none;
    }
    .logo img {
        width: 250px;
        margin-top: 40px;
    }

    .text-premio img {
        width: 330px;
    }
    h1:first-child {
        font-weight: bold;
        font-size: 33px;
        color: #fff;
        transform: translateY(30px);
    }
    .container h2 {
        font-size: 28px !important;
    }
    .pasos{
        padding: 0 20px;
    }
    .txt-pasos{
        gap: 10px !important;
    }
    .participe-pasos{
        flex-direction: column;
    }
    .imagen-bodegon{
        display: flex;
        justify-content: center;
    }
    .imagen-bodegon img {
        width: 332px;
        transform: none;
    }
    .content-pop h2 {
        font-size: 33px;

    }
    .congratulations{
        width: auto;
        font-size: 14px;
    }
    .whatsapp p {
        font-size: 16px;
    }
    .table-title {
        font-size: 14px;
    }
    .gridjs-tr{
        font-size: 12px !important;
    }
    td.gridjs-td{
        padding: 5px !important;
    }
    th.gridjs-th {
        padding: 5px !important;
    }
    .termino{
        font-size: 12px;
        text-align: center;
    }
    .search{
        width: auto;
        position: relative;
        display: block;
    }
    ol{
        width: auto;
    }
    .txt-pasos .text-paso {
        font-size: 22px !important;
        gap: 15px;
    }
    .num-pasos{
        margin-top: 5px;
        font-size: 16px;
        width: 25px;
        padding: 5px;
    }
    .premios img{
        width: 300px;
        display: none;
    }
    .premios .mobile{
        display: block !important;
        width: 300px;
    }
    
    .premios{
        display: flex;
        justify-content: center;
    }
    .img-paso3 img{
        border-radius: 10px;
        height: 80px;
        width: auto;
    }
    
    .terms-canal h2{
        font-size: 16px;
    }
    .terms-canal h3{
        font-size: 14px;
    }
    .terms-canal p  {
        font-size: 12px;
    }
    #popup-content{
        padding:  10px 10px;
    }
    .search{
        margin-top: 0 !important;
    }
    .search input {
        transform: translateX(-5px);
    }
    .content-pop, .content-pop-conditions{
        gap: 12px !important;
        padding: 20px !important;
    }
    .terms-canal ul{
        padding-left: 20px;
    }
    .terms-canal ul li{
        font-size: 12px;
    } 
    .legal p {
        text-align: center;
        font-size: 12px;
        color: #FFF;
        width: 80%;
        margin-top: 20px;   
    }
    .legal{
        display: flex;
        justify-content: center;
        padding: 30px 0;
    }
    .date-clear .clear-icon {
        display: none !important;
    }

}

@media (min-width: 601px) and (max-width: 860px) {
    .container-1 {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 50px;
    }
    .logo{
        order: 1;
    }
    .dropdown, .ganadores{
        order: 0;
    }
    .ganadores{
        flex-direction: row;
    }
    .dropdown span {
        font-size: 14px;
        font-weight: 400;
    }
    .imagen-principal img {
        width: 640px;
        
    }
    img{
        transform: none;
    }
    h1:first-child {
        font-weight: bold;
        font-size: 43px;
        color: #fff;
        transform: translateY(80px);
    }
    .logo img {
        width: 330px;
    }
    .text-premio img {
        width: 640px;
    }
   
    .container h2 {
        font-size: 40px !important;
    }
    .participe-pasos{
        flex-direction: column;
    }
    .imagen-bodegon{
        display: flex;
        justify-content: center;
    }
    .imagen-bodegon img {
        width: 632px;
        transform: none;
    }
    .content-pop h2 {
        font-size: 33px;
        margin-top: 20px;

    }
    .congratulations{
        width: auto;
        font-size: 14px;
    }
    .whatsapp p {
        font-size: 16px;
    }
    .table-title {
        font-size: 16px;
    }
    .gridjs-tr{
        font-size: 12px !important;
    }
    td.gridjs-td{
        padding: 5px !important;
    }
    th.gridjs-th {
        padding: 5px !important;
    }
    .termino{
        font-size: 12px;
        text-align: center;
    }
    .search{
        width: auto;
    }
    ol{
        width: auto;
        margin: 0;
    }
    .pasos{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .txt-pasos .text-paso{
        font-size: 28px;
    }
    .premios img{
        width: 450px;
    }
    .premios{
        display: flex;
        justify-content: center;
    }
    .img-paso3 img{
        border-radius: 10px;
        height: 100px;
        width: auto;
    }
    
    
    .terms-canal h2{
        font-size: 16px;
    }
    .terms-canal h3{
        font-size: 14px;
    }
    .terms-canal p  {
        font-size: 12px;
    }
    #popup-content{
        padding:  10px 10px;
    }
    .terms-canal ul{
        padding-left: 20px;
    }
    .terms-canal ul li{
        font-size: 12px;
    }  
    .legal p {
        text-align: center;
        font-size: 12px;
        color: #FFF;
        width: 80%;
        margin-top: 20px;
    }
    .legal{
        display: flex;
        justify-content: center;
        padding: 30px 0;
    }
}

@media (min-width:860px) and (max-width: 1360px){
    .logo img{
        width: 300px !important;
    }
    .dropdown span{
        font-size: 16px !important;
    }
    .imagen-principal img{
        width: 700px;
    }
    .container h2{
        font-size: 60px !important;
    }
    .imagen-bodegon img{
        transform: none !important;
        width: 550px !important;
    }
    .text-premio img{
        width: 800px;
    }
    .txt-pasos .text-paso{
        font-size: 28px !important;
        gap: 20px;
    }
    .premios img{
        width: 450px;
    }
    .img-paso3 img{
        border-radius: 10px;
        height: 120px;
        width: auto;
    }
}
@media (min-width:1360px) and (max-width: 1460px) {
    .logo img{
        width: 300px;
    }
    .dropdown span{
        font-size: 16px;
    }
    .imagen-principal img{
        width: 680px !important;
    }
    h1:first-child {
        transform: translateY(85px);
    }
    .container h2{
        font-size: 60px !important;
    }
    .imagen-bodegon img{
        transform: none !important;
        width: 650px !important;
        transform: scale(1.3) !important;
    }
    .text-premio img{
        width: 800px;
    }
    .txt-pasos .text-paso{
        font-size: 28px !important;
        gap: 20px;
    }
    .premios img{
        width: 450px;
    }
    .img-paso3 img{
        border-radius: 10px;
        height: 120px;
        width: auto;
    }
}

