/* ===== Variables OXXO ===== */
:root {
  --oxxo-bg: #fff;
  --oxxo-red: #e90024;
  --oxxo-purple: #251051;
  --oxxo-white: #ffffff;
  --oxxo-amarillo:#f6d404;
  --oxxo-shadow: rgba(0, 0, 0, 0.377);
  --oxxo-radius: 45px;
  --oxxo-radius-sm: 15px;
  --countdown-orange: #e85d04;
  --font-primary: "Amino-Medium", sans-serif;
  --font-bold: "Amino-Black", sans-serif;
  --font-alt-bold: "Amino-Alt-Black", sans-serif;
}



@font-face {
  font-family: "Amino-Medium";
  src: url("./assets/font/Amino-Medium.otf")format("opentype")
}

@font-face {
  font-family: "Amino-Black";
  src: url("./assets/font/Amino-Black.otf")format("opentype");
}
@font-face {
  font-family: "Amino-Alt-Black";
  src: url("./assets/font/Amino-Alt-Black.otf")format("opentype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
  color: var(--oxxo-purple);
  scrollbar-width: thin;
  scrollbar-color: var(--oxxo-red) var(--oxxo-bg);
}

*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--oxxo-bg);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--oxxo-red);
  border-radius: 20px;
  border: 3px solid var(--oxxo-bg);
}

b{
  font-family: var(--font-alt-bold);

}

header {
  color: #fff;
  text-align: center;
  height: 60px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 32px 0px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.22);
  border-width: 1px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.2);
  border-image: initial;
  flex-direction: row;
  justify-content: space-between;
  img{
    height: 40px;
    width: auto;

  }
}

.logo-container{
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  text-decoration: underline;
  line-height: 1;
  overflow: auto;
  span{
    text-decoration: underline;
  }
}

/* Header nav desktop: estilos como antes (subrayado + botón Premios) */
.header-nav {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  text-decoration: underline;
}
.header-nav-link {
  text-decoration: underline;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.header-nav-link span {
  text-decoration: underline;
}


/* Hamburger: oculto en desktop */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  border-radius: 4px;
  transition: background 0.2s;
}
.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Menú móvil: oculto en desktop */
.header-nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.header-nav-mobile.is-open {
  pointer-events: auto;
  opacity: 1;
}
.header-nav-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.header-nav-mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  max-width: 85vw;
  height: 180px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 60px 1rem 1rem;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.header-nav-mobile.is-open .header-nav-mobile-panel {
  transform: translateX(0);
}
.header-nav-mobile-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  font-size: 1.75rem;
  line-height: 1;
  border: none;
  background: transparent;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
}
.header-nav-mobile-close:hover {
  background: rgba(0, 0, 0, 0.06);
}
.header-nav-mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  transition: background 0.2s;
}
.header-nav-mobile-link:hover {
  background: rgba(0, 0, 0, 0.06);
}

section {
padding-top: 50px;
  text-align: center;
  height:  100dvh ;
}

.section1 {
  
  background-image: url("./assets/img/1fondofull1.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  display: grid;
  grid-template-columns: 1fr;
  align-content: space-evenly;
    img{
      height: 100%;
      height: 250px;
    }
}

.section1-a{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  height: 70dvh;
  justify-content: space-around;
    img{
      width: auto;
      height: 100%;
      max-height: 50dvh;
    }

  }

  .section1-a-text{
    font-size: 1.1rem;
    font-family: var(--font-primary);
    text-align: center;
    padding: 0.5rem 1rem;
    background-color: var(--oxxo-amarillo);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 32px 0px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    img{
      width: 35px;
      height: auto;
      margin-right: 0.5rem;
      padding: 0px;
    }
  }

.section1-container{
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  height: 100%;
  width: 100%;
  gap: 3rem;
}

.section1-b {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  height: 70dvh;
  overflow: auto;
  /*padding-top: 100px;*/
}

.section1-b-a{
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: .5rem;
}

/* Contador regresivo */
.countdown-widget {
  background: var(--oxxo-amarillo);
  border-radius: 16px;
  padding: .5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 430px;
  gap: .3rem;
  margin: 0 auto;
}
.countdown-label {
  font-family: var(--font-bold);
  font-size: 1.25rem;
  color: var(--countdown-orange);
  width: 100%;
  text-align: left;
}
.countdown-blocks {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: space-evenly;
  width: 100%;
  img{
    width: 60px;
    height: auto;
    padding: 0px;
  }
}
.countdown-block {
  background: var(--oxxo-purple);
  border-radius: 10px;
  padding: 0.5rem ;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.countdown-number {
  font-family: var(--font-bold);
  font-size: 1.2rem;
  color: var(--oxxo-white);
  line-height: 1;
}
.countdown-unit {
  font-size: 0.6rem;
  color: var(--oxxo-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}
.countdown-sep {
  color: #555;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  padding-bottom: 1rem;
}
.countdown-footer {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
  text-align: center;
}

.btn-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
  max-width: 350px;
  a{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}


.btn-whatsapp{
  position: fixed;
  bottom: 18%;
  right: 0px;
  z-index: 1000;
  width: 100%;
  max-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-whatsapp .btn{
  background-color: #21c063;
  border-color: #21c063;
  box-shadow: 3px 5px 6px #0000006e;
  display: flex;
  height: 100px;
  width: 110px;
  border-radius: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  svg{
    height: auto;
    width: 20px;
    fill: var(--oxxo-white);
  }
}

.btn-whatsapp .btn:hover{
  background-color: var(--oxxo-red);
  border-color: var(--oxxo-red);

  span{
    color: var(--oxxo-white);
  }
}

.btn-whatsapp .whatsapp-btn-text{
  display: flex;
  flex-direction: column;
  width: 130px;
  height: 120px;
  border-radius: 50%;
  align-items: center;
  background-color: var(--oxxo-red);
  color: var(--oxxo-white);
  cursor: pointer;
  box-shadow: rgb(0 0 0 / 76%) 6px 6px 4px -1px;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  line-height: 1;
  img{
    width: auto;
    height: 50px;
    padding-bottom: .5rem;
  }
}

.whatsapp-btn-text{
  svg{
    height: 20px;
    width: 20px;
    fill: var(--oxxo-white);
  }
}

.btn {
  border-radius: 15px;
  background-color: var(--oxxo-red);
  padding: 0.5rem 1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 350px;
  text-align: center;
  border: 2px solid var(--oxxo-red);
  display: block;

  span {
    color: var(--oxxo-white);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3 ;
  }

  &:hover {
    background-color: transparent;
    border-color: var(--oxxo-red);

    span {
      color: var(--oxxo-white);
    }
  }

  &  &.btn-secondary {
    background-color: transparent !important;
    border: 2px solid var(--oxxo-red);

    span {
      color: var(--oxxo-red);
    }

    &:hover {
      background-color: var(--oxxo-red);

      span {
        color: #fff;
      }
    }
  }
}


.promo-title{
  box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 32px 0px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  padding: .5rem 2rem;
  background: rgb(37 16 81 / 78%);
  border-width: 1px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.2);
  border-image: initial;
  text-align: left;
  width: 100%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: .5rem;
}

.promo-title-steps{
     box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 32px 0px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 1rem  .5rem;
    background: rgb(37 16 81 / 78%);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.2);
    border-image: initial;
    text-align: left;
    max-width: 300px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}
  .section-title{
    font-family: var(--font-bold);
    font-size: 1.7rem;
    color: var(--oxxo-white);
    b{
      color: var(--oxxo-amarillo);
      font-weight: 300;
    }
    }
    .section-description{
      font-family: var(--font-alt-bold);
      font-size: 2.2rem;
      text-transform: uppercase;
      line-height: 1;
      text-align: center;
      color: var(--oxxo-white);
    }
    .section-description-rojo{
      font-family: var(--font-alt-bold);
      font-size: 1rem;
      color: var(--oxxo-purple);
      background-color: var(--oxxo-amarillo);
      padding: 10px;
      border-radius: 10px;
      text-align: center;
      width: 100%;
    }
  

    .section2{
      display: grid;
      grid-template-columns: 1fr 1fr  1fr ;
      gap: .5rem;
      align-items: start;
    }

    .section2-steps{
      display: grid;
      grid-template-columns: 1fr 1fr ;
      gap: .5rem;
      align-items: start;
    }

    .noshadow{
      box-shadow: none;
      min-height: 100px;
      span{
        line-height: 1;
      }
    }
    .section2-b, .section2-d, .section2-c{
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      justify-content: center;
      max-width: 300px;
      .section-description{
        font-size: 2.5rem;
        color: var(--oxxo-red);
      }
      .section-title{
        font-size: 1.1rem;
        font-family: var(--font-primary);
        text-align: left;
        border-left: 1px solid red;
        padding-left: .5rem;
        margin-left: .5rem;
      }
    }

    .section-descriptionComoGano {
      font-family: var(--font-alt-bold);
      font-size: 1.5rem;
      text-transform: uppercase;
      line-height: .8;
      text-align: center;
      color: #251051;
  }

    
    .section3{
    padding: 0px 4rem;
    height: auto;
    }

    /* Carrusel de marcas */
    .marcas {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 90dvw;
      margin: 0 auto;
    }
    .marcas .span-text {
      font-family: var(--font-bold);
      font-size: 1rem;
      padding-top: .5rem;
color: #251051;
    }
    .carrusel {
      width: 100%;
      max-width: 100dvw;
      overflow: hidden;
    }
    .carrusel-container {
      width: 100%;
      overflow: hidden;
    }
    .carrusel-track-wrapper {
      width: 100%;
      overflow: hidden;
    }
    .carrusel-track {
      display: flex;
      flex-direction: row;
      gap: 16px;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .carrusel-track::-webkit-scrollbar {
      display: none;
    }
    .carrusel-item {
      flex-shrink: 0;
      scroll-snap-align: start;
      width: 100px;
      height: 90px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fff;
      border-radius: var(--oxxo-radius-sm);
      padding: 4px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .carrusel-logo {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    .section4{
      padding: 2px 4rem;
      text-align: left;
      overflow-x: hidden;
      height: 20dvh;
      margin-top: 2rem;
      margin-bottom: 2rem;
    }

    .titleTyC{
      text-align: center;
      padding: .5rem;
      font-size: .8rem;
      font-family: var(--font-bold);
    }

   .bodyTyC{
    font-size: .6rem;
    font-family: var(--font-primary);
   }

  .sorteos-calendario {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0 1rem;
    font-size: 0.6rem;
    font-family: var(--font-primary);
    color: var(--oxxo-purple);
    text-align: left;
  }
  .sorteos-calendario th,
  .sorteos-calendario td {
    border: 1px solid #000;
    padding: 0.5rem 0.4rem;
    vertical-align: top;
  }
  .sorteos-calendario thead th {
    font-family: var(--font-bold);
    font-weight: 700;
    background: var(--oxxo-bg);
  }

  .tyc-facturas-ejemplo {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0 1rem;
    font-size: 0.6rem;
    font-family: var(--font-primary);
    color: var(--oxxo-purple);
    text-align: left;
  }
  .tyc-facturas-ejemplo th,
  .tyc-facturas-ejemplo td {
    border: 1px solid #000;
    padding: 0.5rem 0.4rem;
    vertical-align: top;
  }
  .tyc-facturas-ejemplo thead th {
    font-family: var(--font-bold);
    font-weight: 700;
  }
  .tyc-facturas-ejemplo .tyc-facturas-total-label {
    font-family: var(--font-bold);
    font-weight: 700;
  }

  .plan-premios-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0.5rem 0 1rem;
    -webkit-overflow-scrolling: touch;
  }
  .plan-premios-tabla {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 0.55rem;
    font-family: var(--font-primary);
    color: var(--oxxo-purple);
    text-align: left;
  }
  .plan-premios-tabla th,
  .plan-premios-tabla td {
    border: 1px solid #000;
    padding: 0.35rem 0.3rem;
    vertical-align: top;
    white-space: nowrap;
  }
  .plan-premios-tabla thead th:not(:first-child),
  .plan-premios-tabla tbody td:not(:first-child) {
    text-align: right;
  }
  .plan-premios-tabla thead th {
    background: #d9d9d9;
    font-family: var(--font-bold);
    font-weight: 700;
    white-space: normal;
    max-width: 6rem;
  }
  .plan-premios-tabla tbody td:first-child,
  .plan-premios-tabla tbody th:first-child {
    white-space: normal;
    max-width: 14rem;
  }
  .plan-premios-tabla .plan-premios-total th {
    background: #d9d9d9;
    font-family: var(--font-bold);
    font-weight: 700;
    text-align: left;
  }
  .plan-premios-tabla .plan-premios-total td {
    font-weight: 600;
  }

/* Modales */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.modal-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  background: var(--oxxo-white);
  border-radius: var(--oxxo-radius-sm);
  max-width: 90vw;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-bold);
  font-size: 1.7rem;
  line-height: 1;
  margin: 0;
  padding-right: 0.5rem;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--oxxo-purple);
  border-radius: 4px;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.modal-body {
  overflow-y: auto;
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal-body.popTyC {
  max-height: 70vh;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
}
.modal-body {
  overflow-y: auto;
  color: rgb(55, 65, 81);
  line-height: 1.6;
  flex: 1 1 0%;
}
.cont-premios {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 1rem;
}

.btnPremios {
  background-color: var(--oxxo-red);
  border: 1px solid var(--oxxo-red);
  color: var(--oxxo-white);
  padding: .7rem 2rem;
  border-radius: 30px;
  text-align: center;
  font-size: 1.1rem;
  text-decoration: underline;
  font-weight: 800;
}
.span-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--oxxo-white);
  text-align: center;
  text-transform: uppercase;
}

.cont-premios {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-evenly;
  align-items: center;
  .premio-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    max-width: 200px;
    text-align: center;
    gap: 1rem ;
    img {
      width: 250px;
      max-height: auto;
      padding: 0px 0px 15px 0px;
    }
    .span-number {
      font-size: 22px;
      font-weight: 900;
      color: var(--oxxo-purple);
    }
  }
}

.cont-premios-container{
  width: 100%;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  span{
    font-size: 1.4rem;
    line-height: 1.4;
    text-align: left;
    font-family: var(--font-primary);
    margin-bottom: 1rem;
  }
  img{
    height: 200px;
  }
}

.section1-a-img {
  display: flex;
  flex-direction: column;
  align-items: center;
}


@media (max-width: 640px) {


  .header-nav {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .header-nav-mobile {
    display: block;
  }

  .btn-whatsapp {
    right: 15px;
    max-width: none;
    bottom: 10px;
    align-items: flex-end;
}

  .section1-container {
    grid-template-columns: 1fr;
    gap: 0rem;
}
  .section1 {
    background-image: url("./assets/img/1fondofull1.png");
    background-position: right;
    grid-template-columns: 1fr;
    background-size: cover;
    height: auto;
    gap: 0rem;
}
  .section2 {
    grid-template-columns: 1fr;
    height: auto;
}
.section2-steps{
  grid-template-columns: 1fr;
}
.section1-a{
  align-items: center;
  background-color: #ffffff2b;
  width: auto;
  height: auto;
  max-height: 500px;
  padding: 2rem;
    img{
      padding: 0px;
      max-height: 30dvh;

    }
}

.section1-b {
  padding: 1rem 0rem 0rem 0rem;
  overflow: hidden;
  height: auto;
}

  .countdown-widget {
    padding: 1rem;
    max-width: 100%;
  }
  .countdown-block {
    min-width: 48px;
    padding: 0.45rem 0.6rem;
  }
  .countdown-number {
    font-size: 1.4rem;
  }
  .countdown-unit {
    font-size: 0.55rem;
  }
  .countdown-footer {
    font-size: 0.7rem;
  }

.section1-container2 {
  margin-bottom: 1rem;
}
.modal-body {
  padding: 0rem 0rem 0rem 0rem;
}
.cont-premios {
  flex-direction: column;
  align-items: center;
}

.section4 {
  padding: 2px 0rem;}

  .section-descriptionComoGano {
color: var(--oxxo-white);
text-shadow: 1px 1px 1px var(--oxxo-purple);
  }
  .section-title {
    font-size: 2rem;
}


}

.section1-b {
  gap: 1rem;
}

.section3 {
  padding: 0px 1rem;
}

.section3 {
    padding: 0px 1rem;
    height: auto;
}
.carrusel-item{
  width: 100px;
}

.section1-b {
  padding-left: 0%;
}



/* Google Maps */
.section5  {
  pointer-events: auto;
  display: block;
  margin: 0 auto;
  padding: 2rem;
  margin-bottom: 2rem;
}