:root {
    --principal: #c52b3a;
    --hover-principal: #9c212d;
    --soft-principal: #fff1ee;

    --acento: #44ace4;

    --gray-principal: #343434;

    --blanco: #ffffff;

    --texto: #000000;
    --gray: #d4d5d4;

    --card-color: #f8f9fa;
    --border-gray: #ededed;
    --border-radius: 12px;

    --titulo-font: "Inter Variable", sans-serif;
    --titulo-size: 2rem;
    --padd-top-section: 1.5rem;
    --padd-top: 6rem;
    --padd-bottom: 6rem;
}

* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff;
    color: var(--texto);
    font-family: "Rubik Variable", sans-serif;
}

a {
    color: var(--gray-principal);
    text-decoration: none;
}
.link-color{
    color: var(--hover-principal);
}
::selection {
    background-color: #e54e56;
}

/*** inicio header ***/

.header-middle {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 3vw;
}

.logo-header {
    display: block;
    width: 120px;
    margin: 0 auto;
    padding: 1rem 0;
}

.form-search {
    width: 600px;
    margin: 0 auto;
    position: relative;
}

.input-header-search {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    padding: 0 1.4rem;
    font-size: 16px;
    border: 1px solid #dddddd;
    background: var(--blanco);
    outline: none;
    transition: border 0.3s;
}

.btn-search {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    border: 0;
    background: var(--principal);
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s;
}

.btn-search img {
    fill: var(--blanco);
    width: 18px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    transition: all 0.6s;
}

.btn-search:hover {
    background-color: var(--hover-principal);
}

.header-bottom {
    background-color: var(--principal);
}

.list-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin-bottom: 0;
    padding: 0;
}

.list-menu > li > a {
    padding: 0.5rem 1rem;
}

.link-item-menu {
    color: var(--blanco);
    display: block;
    text-decoration: none;
    padding: 0.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
}

.link-item-menu:hover {
    background-color: var(--hover-principal);
}

.btn-item-menu {
    color: var(--blanco);
    background-color: transparent;
    border: none;
    display: block;
    text-decoration: none;
    padding: 0.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
}

.btn-item-menu:hover {
    background-color: var(--hover-principal);
}

/* modal canjear cupon */
.btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(156, 33, 45, 0.25);
}

.modal-dialog-cupon {
    text-align: center;
}

.modal-dialog-cupon .modal-body {
    padding: 1rem 1.5rem 2rem;
}

.modal-dialog-cupon .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-dialog-cupon .modal-title {
    font-size: 1.4rem;
    padding: 1rem 0;
}

.modal-dialog-cupon .modal-description {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

.modal-dialog-cupon .img-cupon {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
}

.btn-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--principal);
    border: none;
    border-radius: 8px;
    color: var(--blanco);
    margin: 0 auto;
    padding: 8px 16px;
    width: 100%;
    text-align: center;
    transition: all 0.3s;
}

.btn-modal:hover {
    background-color: var(--hover-principal);
    color: var(--blanco);
}

/* menu mobile */

.item-header-middle.mobile {
    display: none;
}

.btn-menu-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--blanco);
    border: 1px solid var(--gray-principal);
    border-radius: 8px;
    cursor: pointer;
}

.icon-menu {
    object-fit: contain;
    width: 24px;
    height: 24px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

.menu-mobile {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    transform: translateX(-1000px);
    background: var(--blanco);
    border-radius: 0;
    width: 310px;
    height: 100vh;
    padding: 1.6rem;
    transition: all 0.6s;
    z-index: 999;
}

.menu-mobile.open {
    transform: translateX(0);
    transition: all 0.6s;
}

.heading-menu-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.heading-menu-mobile p {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.btn-close-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--blanco);
    border: none;
    background-color: transparent;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.icon-close {
    object-fit: contain;
    width: 20px;
    height: 20px;
}

.list-menu-mobile {
    list-style: none;
    padding-left: 0;
}

.link-menu-mobile {
    display: block;
    color: var(--gray-principal);
    text-decoration: none;
    padding: 0.5rem;
    transition: all 0.6s;
}

.link-menu-mobile:hover {
    color: var(--hover-principal);
}

.btn-item-menu-mobile {
    display: block;
    border: none;
    background-color: transparent;
    color: var(--gray-principal);
    text-decoration: none;
    padding: 0.5rem;
    transition: all 0.6s;
}

.btn-item-menu-mobile:hover {
    color: var(--hover-principal);
}

/*** fin header ***/

/*** inicio index ***/

.banner-section {
    background-color: rgb(243, 244, 247);
    padding-top: 1rem;
}

.img-banner {
    border-radius: 1rem;
    object-fit: cover;
    width: 100%;
}

.swiper-principal .swiper-button-prev,
.swiper-principal .swiper-button-next {
    background-color: var(--blanco);
    color: var(--gray-principal);
    width: 40px;
    height: 40px;
    border-radius: 100%;
    aspect-ratio: 1 / 1;
}

.swiper-principal .swiper-button-next:after,
.swiper-principal .swiper-button-prev:after {
    font-size: 20px;
}

.swiper-principal .swiper-button-next:hover,
.swiper-principal .swiper-button-prev:hover {
    background-color: var(--principal);
    color: var(--blanco);
    transition: all 0.3s;
}

.canva-confeti {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-challenge {
    position: relative;
    background-color: rgb(243, 244, 247);
    overflow: hidden;
    padding: 1rem;
}

.container-votacion {
    position: relative;
    border-radius: 1rem;
    max-width: 1100px;
    padding: 4rem 0;
    margin: 0 auto;
    z-index: 9;
}

.img-hero {
    display: block;
    border-radius: 1rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
}

.container-votacion h1 {
    color: var(--principal);
    font-size: 35px;
    line-height: 1.2;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.container-votacion p {
    text-align: center;
    margin-bottom: 0.5rem;
}

.text-voted {
    color: rgb(102, 102, 102);
    font-size: 1.1rem;
    letter-spacing: 0.2px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.countdown-section {
    border: 1px solid rgb(102, 102, 102);
    border-radius: 8px;
    box-sizing: content-box;
    padding: 10px;
    width: 60px;
}

.countdown-amount {
    color: var(--principal);
    font-size: 24px;
}

.countdown-period {
    color: var(--gray-principal);
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
}

.btn-participar {
    display: block;
    color: var(--blanco);
    background-color: var(--principal);
    border-radius: 8px;
    padding: 10px 20px;
    width: 100%;
    max-width: 420px;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    transition: all 0.3s;
}

.btn-participar:hover {
    background-color: var(--hover-principal);
}

.instrucciones-container {
    text-align: center;
    padding-top: 1rem;
}

.link-instrucciones {
    text-decoration: underline;
    text-align: center;
    transition: all 0.3s;
}

.link-instrucciones:hover {
    text-decoration: none;
}

.challenge-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.title-challenge {
    color: var(--principal);
    font-size: 35px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 0;
}

.grid-challenge {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding-top: 3rem;
    border-top: 1px solid var(--color-principal);
}
.card-premios{
    width: 100%;
    max-width: 243px;
    height: auto;
    perspective: 1000px;
    cursor: pointer;
    aspect-ratio: 2 / 3;
    border-radius: 1rem;
    overflow: hidden;
}
.card-premios.card-anteriores{
    max-width: 400px;
}
.card-inner-premios {
    width: 100%;
    height: 100%;
    background: var(--card-color);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}
/* .card-premios.flipped {
    height: 540px;
} */
.card-premios.flipped .card-inner-premios {
    transform: rotateY(180deg);
}
.card-premios-front,
.card-premios-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 1rem;
    border: 1px solid var(--border-gray);
    padding: .5rem;
}
.card-premios-front {
    background: var(--card-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-premios-back {
    background: var(--card-color);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.iframe-card-premio,
.img-card-premio{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .5rem;
    overflow: hidden;
}

.wrapper-text{
    width: 100%;
    background: var(--card-color);
    padding: 1rem;
}
.wrapper-text h2{
    font-size: 1.125rem;
    color: var(--texto);
    margin-bottom: 0;
}

.card-challenge {
    position: relative;
    overflow: hidden;
    flex: 0 1 450px;
}

.card-inner {
    position: relative;
    background-color: var(--blanco);
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-challenge:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--blanco);
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-front h3 {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    letter-spacing: 0.5px;
    line-height: 45px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    font-weight: 500;
    text-align: center;
}

.card-back {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--blanco);
    border-radius: 1rem;
    border: 1px solid var(--gray-principal);
    color: var(--gray-principal);
    text-align: center;
    padding: 1rem;
    transform: rotateY(180deg);
    z-index: 2;
}

.img-challenge {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 1rem;
}

.grid-card-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.item-card-back {
    flex: 1;
    min-width: 100px;
}

.media-challenge {
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.card_back-description {
    height: 50px;
    overflow: hidden;
    transition: height 0.5s;
    interpolate-size: allow-keywords;
}

.card_back-description:hover {
    height: auto;
    overflow: visible;
}

.btn-vote {
    background-color: var(--principal);
    color: var(--blanco);
    border-radius: 8px;
    border: none;
    padding: 0.5rem;
    width: 150px;
    transition: all 0.3s;
}

.btn-vote:hover {
    background-color: var(--hover-principal);
}
@media screen and (max-width: 1400px) {
    .card-premios{
        width: 100%;
        max-width: 205px;
    }
    .card-premios.card-anteriores{
        width: 100%;
        max-width: 280px;
    }
    .card-premios.card-anteriores .card-premios-front::after{
        display: none;
    }
}

/* modal voting */
.modal-dialog-voting .modal-body {
    padding: 1.5rem;
}

.modal-dialog-voting .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-dialog-voting .modal-title {
    text-align: center;
    font-size: 1.4rem;
    padding-bottom: 1rem;
}

.modal-dialog-voting .btn-enviar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--principal);
    border: none;
    border-radius: 8px;
    color: var(--blanco);
    margin-top: 2rem;
    padding: 8px 16px;
    width: 100%;
    transition: all 0.6s;
}

.modal-dialog-voting .btn-enviar:hover {
    background-color: var(--hover-principal);
    color: var(--blanco);
}

/* chart section */
.chart-section {
    position: relative;
    background-color: #F3F4F7;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.article-card-chart {
    position: relative;
    z-index: 9;
}

.card-chart {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1100px;
    background-color: rgb(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s;
}

.card-chart:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px -7px rgba(0, 0, 0, 0.3);
}

/* .chart-text,
.chart-container {
    flex: 1 1 100px;
} */

.chart-text {
    text-align: center;
}

.chart-heading {
    color: var(--principal);
    font-size: 35px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.chart-description {
    font-size: 19px;
    line-height: 1.5;
}

canvas#chart-challenge {
    max-width: 768px;
    margin: 40px auto;
}

/*** fin index ***/

/*** inicio participar ***/

.form-section {
    padding-bottom: 6rem;
}

.container-form {
    margin: 0 auto;
    max-width: 650px;
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.title-form {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-align: center;
    width: 70%;
    margin: 0 auto;
    padding-bottom: 1rem;
}

.form-group label {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.form-group label span {
    font-size: 0.9rem;
    color: rgb(108, 117, 125);
}

.form-control:focus {
    border-color: #ced4da;
    box-shadow: none;
}

/* inicio files image && video */

.file-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.file-drop-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    width: 100%;
    padding: 20px;
    transition: all 0.3s;
}

.file-drop-area:hover {
    border-color: #007bff;
}

.file-drop-message {
    font-size: 16px;
    color: #666;
}

.file-drop-message .browse-file {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.preview-container {
    margin-top: 20px;
    text-align: center;
}

.preview-file {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    max-height: 200px;
    margin-bottom: 8px;
}

.file-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-info p {
    color: #333;
    font-size: 14px;
    margin: 5px 0;
}

.remove-file-btn {
    background-color: var(--principal);
    border: none;
    border-radius: 5px;
    color: var(--blanco);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    padding: 8px 12px;
}

.remove-file-btn:hover {
    background-color: var(--hover-principal);
}

/* fin files image && video */

.checkbox {
    display: flex;
    justify-content: end;
    align-items: flex-start;
    gap: 0.4rem;
    padding-top: 2rem;
}

.checkbox input {
    margin-top: 0.35rem;
}

.checkbox label {
    line-height: 1.4;
}

.checkbox label a {
    text-decoration: underline;
    transition: all 0.3s;
}

.checkbox label a:hover {
    text-decoration: none;
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    background-color: var(--principal);
    border: 1px solid var(--principal);
    border-radius: 8px;
    box-shadow: none;
    color: var(--blanco);
    font-size: 1rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.submit-btn:hover {
    background-color: var(--hover-principal);
    color: var(--blanco);
}

.pageOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
    max-width: 450px;
    background-color: var(--blanco);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: var(--gray-principal);
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
    padding: 2rem;
}

.body-success {
    width: 100%;
    margin: 0 auto;
}

.message-icon {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
}

.title-success {
    font-size: 1.4rem;
    font-weight: 600;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.description-success {
    font-size: 1.1rem;
}

/*** fin participar ***/

/*** inicio ganadores ***/

.award-hero {
    padding: 1rem 1rem;
}

.img-banner-award {
    border-radius: 1rem;
    width: 100%;
    object-fit: cover;
}

.award-hero h1,
.award-hero h2,
.award-hero p {
    letter-spacing: 0.5px;
}

.award-hero h1 {
    color: var(--principal);
    font-size: 24px;
    line-height: 1.2;
}

.award-hero h2 {
    font-size: 46px;
    line-height: 1.2;
}

.award-hero p {
    font-size: 18px;
    width: 56%;
    margin-left: auto;
    margin-right: auto;
}

.award-section {
    position: relative;
    background-color: #f3f4f7;
    overflow: hidden;
    padding: 4rem 4rem 6rem;
}

.container-grid-awards {
    position: relative;
    z-index: 9;
}

.title-award {
    color: var(--principal);
    font-size: 35px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 2rem;
}

.grid-awards {
    display: flex;
    flex-wrap: wrap;
}

.item-md {
    flex: 0 1 50%;
}

.card-award {
    display: grid;
    grid-template-columns: 0.6fr 0.9fr;
    background-color: rgb(255, 255, 255, .9);
    border-radius: 1rem;
    height: 100%;
}

.card-description {
    padding: 2rem;
}
.card-description.pb-0 {
    padding-bottom: 0;
}

.icon-award {
    font-size: 2rem;
    padding-bottom: 0.5rem;
}
.title-position {
    font-size: 1.5rem;
    color: var(--principal);
    letter-spacing: 0.02rem;
    line-height: 1.1;
    padding-bottom: 0;
}
.title-winner {
    color: var(--principal);
    font-size: 1rem;
    letter-spacing: 0.5px;
    line-height: 1.1;
    padding-bottom: 1.5rem;
}
.votes {
    border-radius: 8px;
    border: 1px solid var(--hover-principal);
    color: var(--principal);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 0;
    padding: 0.5rem 1rem;
}

.icon-award.first {
    font-size: 3rem;
}

.description-winner {
    padding-bottom: 1.5rem;
}
.votes.first {
    font-size: 1rem;
}

.card-award-img {
    overflow: hidden;
}

.award-img {
    border-radius: 1rem;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.secundario-award {
    padding-top: 3rem;
    padding-bottom: 1rem;
}

.past-award-section {
    position: relative;
    background-color: #f3f4f7;
    overflow: hidden;
    padding: 4rem 4rem 6rem;
}

.container-grid-awards-past {
    position: relative;
    z-index: 9;
}

.grid-awards.past {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.item-md.past {
    flex: 0 1 30%;
}

.card-award.past {
    display: flex;
    flex-direction: column;
    background-color: rgb(255, 255, 255, .9);
    border-radius: 1rem;
    height: 100%;
}

.card-award.past .card-award-img {
    aspect-ratio: 2 / 1;
}

/* .past-award-section video::-webkit-media-controls {
    display: block !important;
} */

/*** fin ganadores ***/

/*** inicio instrucciones ***/

.hero-page {
    background-color: #f3f4f7;
    padding: 4rem 0;
    margin-bottom: 4rem;
    text-align: center;
}

.title-page {
    font-size: 24px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.hero-instructions {
    background-color: #f3f4f7;
    padding: 4rem 0;
    text-align: center;
}

.instructions-section {
    padding-bottom: 6rem;
}

.item-instruction {
    display: flex;
    gap: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.number-instruction {
    background-color: var(--principal);
    border-radius: 8px;
    color: var(--blanco);
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
}

.item-instruction,
.item-bases {
    padding-bottom: 1.5rem;
}

.instruccion-item .instrucciones-container {
    text-align: start;
}

.img-instruction {
    width: 100%;
    max-width: 500px;
    padding-bottom: 1rem;
}

.example-description {
    background-color: #edf2f7;
    border-radius: 8px;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
}

.example-description .title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.link-instruction {
    text-decoration: underline;
    transition: all 0.3s;
}

.link-instruction:hover {
    text-decoration: none;
}

/*** fin instrucciones ***/

/*** inicio bases y condiciones ***/

.terms-section {
    padding-bottom: 6rem;
}
.terms-section h1,
.terms-section h2{
    margin-bottom: 1rem;
}
.terms-section p{
    line-height: 1.5rem;
    margin-bottom: 2rem;
}
.terms-section img{
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.terms-section ul{
    list-style: none;
    padding-left: 0; 
}
.terms-section ul li{
    margin-bottom: 1rem;
}
.item-bases h3 {
    line-height: 1.2;
    margin-bottom: 0.5rem;
}


/*** inicio bases y condiciones ***/

/*** inicio preguntas frecuentes ***/

.faq-section {
    padding-bottom: 12rem;
}

.accordion-button {
    background-color: #f3f4f7;
    font-size: 1.15rem;
}

.accordion-button:not(.collapsed) {
    color: var(--principal);
    background-color: var(--blanco);
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button:hover {
    color: var(--principal);
}

.accordion-button:not(.collapsed)::after {
    background-image: var(--bs-accordion-btn-icon);
    filter: invert(19%) sepia(47%) saturate(4494%) hue-rotate(339deg)
        brightness(98%) contrast(87%);
}

.accordion-header:focus-visible {
    outline: none;
}

/*** fin preguntas frecuentes ***/

/*** inicio footer ***/

.text-porta {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.4rem;
    font-size: 0.8rem;
    color: #333;
    letter-spacing: 0.02rem;
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
}

.text-porta svg {
    height: 14px;
    width: auto;
    object-fit: contain;
    margin-top: 2px;
}

/*** fin footer ***/

/* Whatsapp */
.container-btn-contact {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
  }
  
  .btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .5rem;
    transition: all .3s;
  }
  .btn-whatsapp img{
    background: var(--blanco);
    border-radius: 50%;
    border: 2px solid var(--principal);
    object-fit: contain;
  }
  .btn-whatsapp:hover img{
    animation: shake 1s;
    animation-iteration-count: infinite;
    transition: all 1s;
  }
  .text-whatsapp{
    font-size: .9rem;
    font-weight: 500;
    color: var(--principal);
    white-space: nowrap;
    text-align: right;
    letter-spacing: 0.02rem;
    text-shadow: 0 0 2px rgba(0, 0, 0, .2);
    margin-bottom: 0;
    padding: .5rem;
    border-radius: .5rem;
    background: linear-gradient(rgba(214, 209, 196, .5), rgba(214, 209, 196, .5));
    backdrop-filter: blur(12px);
  }
  @keyframes shake{
    0% {
      transform: scale(1);
    }
    35% {
      transform: scale(1.1) rotate(-10deg);
    }
    50% {
      transform: scale(1.1) rotate(10deg);
    }
    75% {
      transform: scale(1.1) rotate(-10deg);
    }
    100% {
      transform: scale(1);
    }
  }
/* Fin Whatsapp */

/*** media queries ***/

@media screen and (min-width: 1800px) {
    .card_back-description {
        overflow: auto;
        max-height: 220px;
    }
    .grid-challenge {
        grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    }
    .card-challenge {
        aspect-ratio: 193 / 122;
    }
}

@media screen and (max-width: 1799px) {
    .grid-card-back {
        flex-direction: column;
    }
    .media-challenge {
        width: 70%;
    }
}

@media screen and (max-width: 1440px) {
    .grid-challenge {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media screen and (max-width: 991.5px) {
    /* header */
    .nav-header {
        border-bottom: 1px solid var(--hover-principal);
    }
    .item-header-middle.mobile {
        display: block;
    }
    .btn-menu-mobile {
        display: flex;
    }
    .logo-header {
        width: 100px;
    }
    .form-search {
        width: 500px;
    }
    .header-bottom {
        display: none;
    }

    /* chart section */
    .card-chart {
        flex-direction: column;
    }
    .chart-heading,
    .chart-description {
        text-align: center;
    }
    .chart-description {
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .chart-text,
    .chart-container {
        flex: unset;
    }

    /* ganadores */
    .item-md,
    .item-md.past {
        flex: 0 1 100%;
        margin-bottom: 3rem;
    }
    .card-award {
        display: flex;
        flex-direction: column;
    }
    .icon-award {
        font-size: 3rem;
    }
    .votes {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    /* header */
    .form-search {
        width: 400px;
    }

    /* index */
    .container-votacion h1 {
        max-width: 100%;
    }

    /* participar */
    .title-form {
        width: 100%;
    }
    .submit-btn {
        max-width: none;
        margin-left: unset;
    }

    /* instrucciones */
    .item-instruction {
        flex-direction: column;
    }
    .number-instruction {
        width: fit-content;
    }
    .card-premios{
        max-width: 100%;
    }
}

@media screen and (max-width: 650px) {
    /* header */
    .nav-header {
        padding-bottom: 1rem;
    }
    .header-middle {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: "logo menu" "search search";
    }
    .item-header-middle:nth-child(1) {
        grid-area: logo;
    }
    .item-header-middle:nth-child(2) {
        grid-area: search;
    }
    .item-header-middle:nth-child(3) {
        grid-area: menu;
    }
    .logo-header {
        margin: 0;
    }
    .form-search {
        width: 100%;
    }
    .btn-menu-mobile {
        margin-left: auto;
    }

}

@media screen and (max-width: 560px) {
    .success-message {
        width: 100%;
        max-width: 90%;
    }
}

@media screen and (max-width: 500px) {
    /* index */
    .card-challenge {
        position: relative;
        overflow: hidden;
        flex: unset;
    }

    .chart-description {
        max-width: 100%;
    }

    /* participar */
    .file-drop-message {
        font-size: 14px;
    }
    .preview-file {
        max-height: 150px;
    }
    .remove-file-btn {
        font-size: 12px;
    }

    /* ganadores */
    .award-section,
    .past-award-section {
        padding: 4rem 1rem 6rem;
    }
}

@media screen and (max-width: 425px) {
    .media-challenge {
        width: 90%;
    }
    /* ganadores */
    .award-hero p {
        width: 90%;
        padding-top: 1rem;
    }
    .description-winner {
        display: none;
    }
    .icon-award,
    .icon-award.first {
        font-size: 2.5rem;
    }
    .votes,
    .votes.first {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 375px) {
    /* index */
    .challenge-section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .text-voted {
        font-size: 1rem;
    }
    .countdown-container {
        gap: 0.5rem;
    }
    .btn-participar {
        max-width: 100%;
    }
    .link-instrucciones {
        font-size: 0.85rem;
    }
    .grid-challenge {
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    }
}
