/* --- Global Styles & Font --- */

@font-face {
  font-family: 'pepsi_ownerscompressed';
  src: url('fonts/compressed.woff2') format('woff2'),
    url('fonts/compressed.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'pepsi_owners_regularregular';
  src: url('fonts/regular.woff2') format('woff2'),
    url('fonts/regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}


@font-face {
  font-family: 'Alternate Got No1 Dregular';
  src: url('fonts/alternategotno1d-webfont.woff2') format('woff2'),
    url('fonts/alternategotno1d-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Alternate Got No2 dregular';
  src: url('fonts/alternategotno2d-webfont.woff2') format('woff2'),
    url('fonts/alternategotno2d-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Alternate Got No3 dregular';
  src: url('fonts/alternategotno3d-webfont.woff2') format('woff2'),
    url('fonts/alternategotno3d-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Mulish regular';
  src: url('fonts/mulish-variablefont_wght-webfont.woff2') format('woff2'),
    url('fonts/mulish-variablefont_wght-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Alternate Gothic No1 Dregular';
  src: url('fonts/ufonts.com_alternate-gothic-no1-d-webfont.woff2') format('woff2'),
    url('fonts/ufonts.com_alternate-gothic-no1-d-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Alternate Gothic No1 Regular';
  src: url('fonts/ufonts.com_alternate-gothic-no1-regular_0-webfont.woff2') format('woff2'),
    url('fonts/ufonts.com_alternate-gothic-no1-regular_0-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'druk_bold';
  src: url('fonts/druk-bold-trial-webfont.woff2') format('woff2'),
    url('fonts/druk-bold-trial-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'druk_medium';
  src: url('fonts/druk-medium-trial-webfont.woff2') format('woff2'),
    url('fonts/druk-medium-trial-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'druk_text_bold';
  src: url('fonts/druktext-bold-trial-webfont.woff2') format('woff2'),
    url('fonts/druktext-bold-trial-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'druk_wide_cybold';
  src: url('fonts/drukwide-bold-cy-webfont.woff2') format('woff2'),
    url('fonts/drukwide-bold-cy-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'druk_wide_bold';
  src: url('fonts/drukwide-bold-trial-webfont.woff2') format('woff2'),
    url('fonts/drukwide-bold-trial-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'druk_wide_medium';
  src: url('fonts/drukwide-medium-trial-webfont.woff2') format('woff2'),
    url('fonts/drukwide-medium-trial-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'poppinsbold';
  src: url('fonts/poppins-bold-webfont.woff2') format('woff2'),
    url('fonts/poppins-bold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'poppinsmedium';
  src: url('fonts/poppins-medium-webfont.woff2') format('woff2'),
    url('fonts/poppins-medium-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'poppinsregular';
  src: url('fonts/poppins-regular-webfont.woff2') format('woff2'),
    url('fonts/poppins-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --pepsi-blue: #0f4cff;
  --text-light: #ffffff;
  --bg-dark: #000000;
  --error-red: #ff4d4d;
  --success-green: #4caf50;
  --body-font: 'Mulish regular', Arial, sans-serif !important;
  --title-font: 'Alternate Gothic No1 Regular', Arial, sans-serif;
  --poppins-regular: 'poppinsregular', Arial, sans-serif !important;
  --regular: 'pepsi_owners_regularregular', Arial, sans-serif !important;
  --compressed: 'pepsi_ownerscompressed', Arial, sans-serif !important;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  margin: 0;
  overflow-x: hidden;
  font-family: var(--compressed);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}

.section-title {
  font-family: var(--regular);
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* --- Header --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  flex-wrap: wrap;
}

header nav {
  display: none;
}

header .logo-container {
  margin: 0 auto;
}

header .pepsi-logo,
header .logo-container img {
  width: 60px;
  height: auto;
}

/* --- Hero Section --- */
.hero-section {
  padding: 1rem;
}

.hero-section .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  max-width: 1100px;
  margin: auto;
}

.hero-text img,
.hero-badge img {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.hero-badge img {
  max-width: 180px;
}

/* --- Code Entry --- */
.code-entry-section {
  padding: 2rem 1rem;
}

.code-entry-section .can-tab img {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
}

.code-entry-section .input-group {
  max-width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem;
}

.code-input-container {
  width: 100%;
  position: relative;
}

#code-input {
  background-color: var(--bg-dark);
  border: 2px solid #555;
  border-radius: 12px;
  color: var(--text-light);
  padding: 1rem;
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 3rem);
  transition: border-color 0.3s;
  font-family: var(--compressed);
  width: 100%;
}

#code-input:focus {
  outline: none;
  border-color: var(--pepsi-blue);
}

#code-input.error {
  border-color: var(--error-red) !important;
  background-color: rgba(255, 77, 77, 0.1);
}

/* CORRECCIONES PARA MENSAJES DE ERROR DEL CÓDIGO */
#code-error {
  display: none;
  color: var(--error-red);
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255, 77, 77, 0.1);
  padding: 0.5rem;
  border-radius: 4px;
  border-left: 3px solid var(--error-red);
}

#code-error:not(:empty) {
  display: block !important;
}

#code-error.success-message {
  color: #00c851 !important;
  background: rgba(0, 200, 81, 0.1);
  border-left-color: #00c851;
}

#validate-code-btn {
  background-color: var(--pepsi-blue);
  color: var(--text-light);
  border: none;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--regular);
  text-transform: uppercase;
  letter-spacing: 2px;
}

#validate-code-btn:hover:not(:disabled) {
  background-color: #0036cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 76, 255, 0.4);
}

#validate-code-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Partners Carousel --- */
.partners-section {
  padding: 2rem 0;
  margin: 0 0 4rem;
}

.partners-section.correo {
  display: none !important;
}

.partners-carousel {
  padding: 0 2rem;
}

.partners-carousel .slick-slide {
  margin: 0 0.5rem;
  height: auto;
}

/* NUEVA SOLUCIÓN PARA ALTURA UNIFORME */
.partners-carousel .slick-track {
  display: flex;
  align-items: center;
}

.partners-carousel .slick-slide>div {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  /* Altura fija para todos los elementos */
}

.partners-carousel img {
  width: auto;
  max-width: 100px;
  max-height: 80px;
  /* Altura máxima para las imágenes */
  height: auto;
  object-fit: contain;
  /* Mantiene las proporciones */
  margin: auto;
}

/* --- Participation Form --- */
#participation-form-section {
  position: relative;
  padding: 4rem 1rem 2rem;
}

.form-container {
  max-width: 650px;
  margin: auto;
  border: 4px solid var(--pepsi-blue);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  position: relative;
  background-color: rgba(0, 0, 0, 0.8);
  font-family: var(--compressed);
}

.form-title {
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 300px;
}

.form-title img {
  width: 100%;
  height: auto;
}

#participation-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-align: left;
  position: relative;
}

#participation-form label {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-family: var(--regular);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#participation-form input[type="text"],
#participation-form input[type="email"],
#participation-form input[type="tel"] {
  font-family: var(--compressed);
  background: transparent;
  border: none;
  border-bottom: 2px solid #555;
  color: var(--text-light);
  padding: 0.5rem 0;
  font-size: clamp(1rem, 3vw, 1.5rem);
  transition: all 0.3s;
  width: 100%;
  text-transform: uppercase;
}

#participation-form input:focus {
  outline: none;
  border-color: var(--pepsi-blue);
}

#participation-form input.error {
  border-bottom-color: var(--error-red) !important;
  background-color: rgba(255, 77, 77, 0.05);
}

#participation-form .form-terms {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  text-align: left;
  margin: 1rem 0;
}

#participation-form .form-terms input[type="checkbox"] {
  margin-top: 0.25rem;
  min-width: 20px;
  min-height: 20px;
}

#participation-form .form-terms label {
  font-size: clamp(0.75rem, 2vw, 1rem);
  line-height: 1.4;
  font-family: var(--compressed);
  text-transform: none;
  letter-spacing: normal;
}

#submit-participation-btn {
  background-color: var(--pepsi-blue);
  color: var(--text-light);
  border: none;
  border-radius: 12px;
  width: 100%;
  padding: 1rem;
  font-size: clamp(1rem, 3vw, 1.8rem);
  font-family: var(--regular);
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}

#submit-participation-btn:hover:not(:disabled) {
  background-color: #0036cc;
}

#submit-participation-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-deco-left,
.form-deco-right {
  display: none;
}

/* --- MENSAJES DE ERROR MEJORADOS --- */
.error-message {
  display: none;
  color: var(--error-red);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-weight: 500;
  background: rgba(255, 77, 77, 0.1);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border-left: 3px solid var(--error-red);
  font-family: var(--body-font);
  line-height: 1.4;
}

.error-message:not(:empty) {
  display: block !important;
}

/* Error del formulario principal */
#form-error {
  display: none;
  color: var(--error-red);
  text-align: center;
  margin: 1rem 0 0;
  font-weight: bold;
  font-size: 1rem;
  background: rgba(255, 77, 77, 0.1);
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--error-red);
}

#form-error:not(:empty) {
  display: block !important;
}

/* Errores en campos del formulario */
#nombre-error,
#email-error,
#rut-error,
#telefono-error {
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  font-size: 0.75rem;
  z-index: 1;
}

/* --- Image Grid --- */
.image-grid-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 0;
  gap: 0;
  margin-bottom: 2rem;
}

.image-grid-section img {
  width: 100%;
  height: auto;
  display: block;
}

.grid-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Video Section --- */
.video-section {
  padding: 2rem 1rem;
}

.video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-deco-left,
.video-deco-right {
  display: none;
}

/* --- CTA Section --- */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
}

.cta-badge1 img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.cta-button {
  background: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
  border-radius: 12px;
  padding: 20px 60px 0px;
  cursor: pointer;
  transition: all 0.3s;
}

.cta-button img {
  width: 200px;
  height: auto;
}

.cta-button:hover {
  border: 2px solid var(--pepsi-blue);
}

/* --- Final Graphic --- */
.final-graphic-section {
  padding: 2rem 0;
}

.final-graphic-section img {
  width: 100%;
  height: auto;
}

/* --- Footer --- */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-icons a {
  display: block;
}

.social-icons a img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
}

.footer-nav a {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  color: #fff;
  text-decoration: none;
  padding: 0.25rem;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 700px;
  overflow: hidden;
  overflow-y: auto;
  font-family: var(--compressed);
}

.modal-content img {
  width: 100%;
  display: block;
}

.cuadro-descuento {
  position: absolute;
  text-align: center;
  bottom: 18%;
  width: 100%;
  text-transform: uppercase;
}

.cuadro-descuento p {
  margin: 0 0 10px;
  padding: 0;
}

.background-premio {
  width: 60%;
  background-color: #061eb5;
  border-radius: 5px;
  margin: 0 auto 25px;
  padding: 2px;
}

#modal-code-container {
  padding-top: 0rem;
  text-transform: uppercase;
  font-size: 1.4rem;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s;
  z-index: 10;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

#modal-message-container {
  padding: 1.5rem;
  text-align: center;
  text-transform: uppercase;
}

#modal-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

#modal-message {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  padding: 0 65px;
  line-height: 1.2;
  text-transform: uppercase;
}

#modal-prize-container {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--pepsi-blue);
  border-radius: 12px;
}

#modal-prize-code {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  display: block;
  margin: 0.5rem 0;
  word-break: break-all;
  font-family: var(--regular);
}

.copy-button {
  background: white;
  color: var(--pepsi-blue);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* --- Tablet Styles (768px and up) --- */
@media (min-width: 768px) {
  header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 1.5rem 2rem;
  }

  header nav {
    display: flex;
    gap: 0;
    justify-self: start;
  }

  header nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-family: var(--compressed);
    font-weight: normal;
    letter-spacing: 1px;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    position: relative;
    text-transform: uppercase;
  }

  header nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--pepsi-blue);
    transition: width 0.3s;
  }

  header nav a:hover {
    background-color: var(--pepsi-blue);
    transform: translateY(-2px);
  }

  header nav a:hover::before {
    width: 100%;
  }

  header .logo-container {
    grid-column: 2;
    margin: 0;
  }

  header .pepsi-logo,
  header .logo-container img {
    width: 70px;
  }

  section {
    padding: 3rem 2rem;
  }

  .hero-section .hero-content {
    flex-direction: row;
    gap: 3rem;
  }

  .hero-text img {
    max-width: 480px;
  }

  .hero-badge img {
    max-width: 216px;
  }

  .code-entry-section .can-tab img {
    width: 100px;
  }

  #validate-code-btn {
    padding: 1rem 2rem;
  }

  .form-container {
    padding: 3rem 2.5rem;
  }

  .form-title {
    top: -4rem;
    max-width: 400px;
  }

  .partners-carousel .slick-slide>div {
    height: 120px;
  }

  .partners-carousel img {
    max-width: 110px;
    max-height: 90px;
  }

  #participation-form .form-field {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
  }

  #participation-form label {
    font-size: 1.5rem;
    font-family: var(--compressed);
  }

  #participation-form input[type="text"],
  #participation-form input[type="email"],
  #participation-form input[type="tel"] {
    font-size: 1.5rem;
    font-family: var(--compressed);
    padding: 0.5rem 0;
    text-transform: uppercase;
  }

  #submit-participation-btn {
    font-size: 1.5rem;
    padding: 1rem 2rem;
  }

  #participation-form .form-terms label {
    font-size: 1rem;
  }

  /* Ajustar posición de errores en tablet */
  #nombre-error,
  #email-error,
  #rut-error,
  #telefono-error {
    position: absolute;
    bottom: -25px;
    left: calc(120px + 1rem);
    width: calc(100% - 120px - 1rem);
  }

  .image-grid-section {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .footer-nav {
    flex-direction: row;
    gap: 1rem;
  }
}

/* --- Desktop Styles (1024px and up) --- */
@media (min-width: 1024px) {

  header .pepsi-logo,
  header .logo-container img {
    width: 80px;
  }

  header nav a {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  section {
    padding: 4rem 3rem;
  }

  .hero-text img {
    max-width: 600px;
  }

  .hero-badge img {
    max-width: 240px;
  }

  .code-entry-section .input-group {
    max-width: 600px;
  }

  #validate-code-btn {
    max-width: 550px;
    font-size: 2rem;
  }

  .form-deco-left,
  .form-deco-right,
  .video-deco-left,
  .video-deco-right {
    display: block;
    position: absolute;
    width: 200px;
  }

  .form-deco-left {
    left: 5%;
    top: 0%;
  }

  .form-deco-right {
    right: 5%;
    bottom: 5%;
  }

  .video-deco-left {
    left: 5%;
    top: 22%;
    transform: translateY(-50%);
  }

  .video-deco-right {
    right: 5%;
    top: 90%;
    transform: translateY(-50%);
  }

  .partners-carousel img {
    max-width: 120px;
  }

  .cta-button img {
    width: 250px;
  }

  .partners-carousel .slick-slide>div {
    height: 140px;
  }

  .partners-carousel img {
    max-width: 120px;
    max-height: 100px;
  }

  #participation-form-section {
    padding: 6rem 3rem 4rem;
  }

  .form-title {
    top: -5rem;
    max-width: 500px;
  }

  .form-container {
    max-width: 700px;
    padding: 3rem 2.5rem;
    border-width: 4px;
  }

  #participation-form .form-field {
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
  }

  #participation-form label {
    font-size: 1.8rem;
    font-family: var(--compressed);
  }

  #participation-form input[type="text"],
  #participation-form input[type="email"],
  #participation-form input[type="tel"] {
    font-size: 1.8rem;
    font-family: var(--compressed);
    padding: 0.75rem 0;
    border-bottom-width: 2px;
    text-transform: uppercase;
  }

  #participation-form .form-terms label {
    font-size: 1rem;
  }

  #submit-participation-btn {
    font-size: 1.8rem;
    padding: 1.25rem 2.5rem;
  }

  /* Ajustar posición de errores en desktop */
  #nombre-error,
  #email-error,
  #rut-error,
  #telefono-error {
    left: calc(140px + 1.5rem);
    width: calc(100% - 140px - 1.5rem);
  }
}

/* --- Large Desktop (1440px and up) --- */
@media (min-width: 1440px) {

  .form-deco-left,
  .form-deco-right,
  .video-deco-left,
  .video-deco-right {
    width: 300px;
  }

  .form-deco-left {
    left: 14%;
  }

  .form-deco-right {
    right: 14%;
  }

  .video-deco-left {
    left: 10%;
  }

  .video-deco-right {
    right: 10%;
  }

  .form-title {
    top: -9.5%;
    max-width: 600px;
  }

  .form-title.correo {
    top: -11.5%;
    max-width: 600px;
    margin: 0;
  }

  .form-container {
    max-width: 750px;
    padding: 3.5rem 3rem;
  }

  #participation-form label {
    font-size: 2rem;
    font-family: var(--compressed);
  }

  #participation-form input[type="text"],
  #participation-form input[type="email"],
  #participation-form input[type="tel"] {
    font-size: 2rem;
    font-family: var(--compressed);
    text-transform: uppercase;
  }

  #submit-participation-btn {
    font-size: 2rem;
    padding: 1.5rem 3rem;
  }

  #participation-form .form-terms label {
    font-size: 1.4rem;
    line-height: 1.6;
  }

  #participation-form .form-terms input[type="checkbox"] {
    min-width: 30px;
    min-height: 30px;
  }
}

/* --- Animaciones para el formulario --- */
#participation-form input {
  transition: all 0.3s ease;
}

#participation-form input:focus {
  transform: translateY(-2px);
  border-color: var(--pepsi-blue);
  box-shadow: 0 4px 8px rgba(15, 76, 255, 0.3);
}

#submit-participation-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#submit-participation-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 76, 255, 0.5);
}

#submit-participation-btn:active:not(:disabled) {
  transform: translateY(0);
}

#submit-participation-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#submit-participation-btn:active::after {
  width: 300px;
  height: 300px;
}

/* --- Slick Carousel Override --- */
.slick-prev,
.slick-next {
  z-index: 10;
}

.slick-prev {
  left: 10px;
}

.slick-next {
  right: 10px;
}

/* --- Fade In Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variaciones de animación */
.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Delays para elementos en secuencia */
.fade-in-delay-1 {
  transition-delay: 0.2s;
}

.fade-in-delay-2 {
  transition-delay: 0.4s;
}

.fade-in-delay-3 {
  transition-delay: 0.6s;
}

/* --- Print Styles --- */
@media print {
  body {
    background: white;
    color: black;
  }

  header,
  footer,
  .video-section,
  .modal-overlay {
    display: none;
  }
}

/* Partners Grid - Una sola línea */
.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  flex-wrap: wrap;
}

.partner-item {
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 1;
  flex: 0 0 auto;
}

.partner-logo-container {
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.3s ease;
  padding: 10px;
}

.partner-logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-item:hover {
  transform: scale(1.05);
}

.partner-item.selected {
  transform: scale(1.1);
  opacity: 1 !important;
}

.partner-item.selected .partner-logo-container {
  border: 3px solid #0062ff;
  box-shadow: 0 0 20px rgba(0, 98, 255, 0.4);
  background-color: rgba(0, 98, 255, 0.05);
}

/* Información de cadena seleccionada mejorada */
#selected-chain-info {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

#selected-chain-info p {
  margin: 0;
  font-size: 30px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--druk_medium);
}

#selected-chain-name {
  color: #0062ff;
  font-size: 24px;
  text-transform: uppercase;
}

#change-chain-btn {
  background: #0062ff;
  border: none;
  color: white;
  padding: 10px 25px;
  cursor: pointer;
  border-radius: 25px;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-family: var(--compressed);
}

#change-chain-btn:hover {
  background: #0052d9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 98, 255, 0.3);
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .partners-grid {
    gap: 15px;
    padding: 15px;
  }

  .partner-logo-container {
    width: 100px;
    height: 70px;
  }

  #selected-chain-info {
    flex-direction: column;
    text-align: center;

  }

  #selected-chain-info p {
    font-size: 18px;

  }

  #selected-chain-name {
    font-size: 20px;
  }
}

/* Para pantallas muy pequeñas, permitir scroll horizontal */
@media (max-width: 480px) {
  .partners-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .partners-grid::-webkit-scrollbar {
    height: 6px;
  }

  .partners-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  .partners-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
  }
}

/* Animación de pulso */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

/* Icono de check */
.check-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #4CAF50;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.partner-item {
  position: relative;
}



/* --- Estilos para QR de Burger King --- */
.qr-box {
  background: white;
  padding: 10px;
  border-radius: 15px;
  margin: 20px auto 0 auto;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-box img {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto;
}

.qr-text {
  color: #333;
  font-size: 14px;
  margin: 15px 0 0;
  text-align: center;
  font-weight: 500;
  text-transform: uppercase;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .qr-box {
    padding: 15px;
  }

  .qr-box img {
    width: 150px;
    height: 150px;
  }

  .qr-text {
    font-size: 12px;
    margin: 10px 0 0;
  }
}

/* --- Estilos para secciones deshabilitadas --- */
.disabled-section {
  position: relative;
  pointer-events: none;
  user-select: none;
  filter: grayscale(100%) blur(2px);
  opacity: 0.5;
  transition: all 0.5s ease;
}

.disabled-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Transición suave al habilitar */
.partners-section:not(.disabled-section),
#participation-form-section:not(.disabled-section) {
  filter: none;
  opacity: 1;
}


/* --- MEJORAS PARA MODALES EN MÓVILES --- */
@media (max-width: 768px) {

  /* Ocultar contenedores desktop en móvil */
  .modal-desktop-container {
    display: none !important;
  }

  /* Mostrar contenedor móvil */
  .modal-mobile-container {
    display: block;
    background: var(--pepsi-blue);
    border: 4px solid white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    color: white;
    position: relative;
    max-width: 90vw;
    margin: 0 auto;
  }

  /* Títulos móvil */
  .modal-mobile-title {
    font-family: var(--compressed);
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    line-height: 1;
  }

  .modal-mobile-subtitle {
    font-family: var(--compressed);
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    line-height: 1.3;
    text-transform: uppercase;
  }

  /* Mensaje del premio */
  #modal-message {
    font-family: var(--compressed);
    font-size: 1.3rem;
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    line-height: 1.4;
  }

  /* Texto del código */
  .modal-code-text {
    font-family: var(--compressed);
    font-size: 1rem;
    margin: 20px 0 10px 0;
    text-transform: uppercase;
  }

  /* Caja del código */
  .modal-mobile-container .background-premio {
    background: white;
    color: var(--pepsi-blue);
    padding: 15px;
    border-radius: 10px;
    margin: 10px auto 20px;
    width: fit-content;
    min-width: 200px;
  }

  .modal-mobile-container #modal-prize-code {
    font-family: var(--regular);
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
  }

  /* Botón copiar */
  .modal-mobile-container .copy-button {
    background: white;
    color: var(--pepsi-blue);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-family: var(--compressed);
    font-size: 1.2rem;
    text-transform: uppercase;
    margin: 10px 0;
  }

  /* QR Box para móvil */
  .modal-mobile-container .qr-box {
    background: white;
    padding: 15px;
    border-radius: 15px;
    margin: 20px auto;
    width: fit-content;
  }

  .modal-mobile-container .qr-box img {
    width: 150px;
    height: 150px;
  }

  .modal-mobile-container .qr-text {
    color: var(--pepsi-blue);
    font-size: 1rem;
    margin: 10px 0 0;
    font-family: var(--compressed);
    text-transform: uppercase;
  }

  /* Modal perdedor */
  .modal-mobile-container.modal-lose {
    padding: 40px 25px;
  }

  .modal-mobile-divider {
    width: 80%;
    height: 3px;
    background: white;
    margin: 25px auto;
  }

  .modal-mobile-footer {
    font-family: var(--compressed);
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.4;
    text-transform: uppercase;
  }

  /* Ajustar el contenedor del modal */
  .modal-content {
    padding: 0;
    background: transparent;
  }

  /* Botón cerrar */
  .modal-overlay .close-button {
    background: white;
    color: var(--pepsi-blue);
    font-weight: bold;
    z-index: 20;
  }
}

/* Para desktop mantener diseño original */
@media (min-width: 769px) {
  .modal-mobile-container {
    display: none !important;
  }

  .modal-desktop-container {
    display: block;
  }
}

/* Sincronización de contenido entre versiones */
#modal-code-container:not([style*="display: none"])~.modal-desktop-container #modal-code-container-desktop {
  display: block !important;
}

#modal-qr-container:not([style*="display: none"])~.modal-desktop-container #modal-qr-container-desktop {
  display: block !important;
}



/* --- MEJORAS ADICIONALES PARA MODALES --- */

/* Imágenes decorativas en móvil */
@media (max-width: 768px) {
  .modal-mobile-container {
    position: relative;
    overflow: visible;
  }

  .modal-mobile-deco-left,
  .modal-mobile-deco-right {
    position: absolute;
    width: 80px;
    height: auto;
    z-index: 10;
    /* Cambiado de -1 a 10 para que esté encima */
  }

  .modal-mobile-deco-left {
    left: -40px;
    top: -40px;
    /* Ajustado para que sobresalga arriba */
    transform: rotate(-15deg);
    width: 32% !important;
  }

  .modal-mobile-deco-right {
    right: -40px;
    bottom: -40px;
    /* Ajustado para que sobresalga abajo */
    transform: rotate(15deg);
    width: 32% !important;
  }

  /* Ajustes específicos para el modal perdedor */
  .modal-lose .modal-mobile-deco-left {
    top: -60px;
    /* Mantener arriba también en perdedor */
    width: 32%;
  }

  .modal-lose .modal-mobile-deco-right {
    bottom: -40px;
    /* Mantener abajo también en perdedor */
    top: auto;
    width: 32%;
  }

  /* Ajustar overflow del modal para que se vean las decoraciones */
  .modal-content {
    overflow: visible;
    position: relative;
  }

  /* Asegurar que el modal-overlay permita ver las decoraciones */
  .modal-overlay {
    padding: 3rem 2rem;
    overflow-y: auto;
    overflow-x: visible;
  }
}

/* Mejoras de fuentes para desktop */
@media (min-width: 769px) {

  /* Mensaje principal en desktop */
  #modal-message-desktop {
    font-family: var(--compressed);
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  /* Texto "Tu código de descuento es:" */
  .modal-code-text-desktop {
    font-family: var(--compressed);
    font-size: 1.4rem;
    margin: 15px 0 10px 0;
    text-transform: uppercase;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }

  /* Código del premio en desktop */
  #modal-prize-code-desktop {
    font-family: var(--regular);
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: white;
    text-shadow: none;
    padding: 10px 20px;
  }

  /* Ajustar el contenedor del premio */
  .modal-desktop-container .background-premio {
    background-color: #061eb5;
    border-radius: 8px;
    padding: 5px;
    margin: 15px auto 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  /* Botón copiar en desktop */
  .modal-desktop-container .copy-button {
    font-family: var(--compressed);
    font-size: 1.1rem;
    padding: 10px 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
  }

  /* Mejorar contraste general */
  .cuadro-descuento {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }
}

/* Para pantallas muy pequeñas, ajustar las decoraciones */
@media (max-width: 380px) {

  .modal-mobile-deco-left,
  .modal-mobile-deco-right {
    width: 60px;
  }

  .modal-mobile-deco-left {
    left: -30px;
    top: -30px;
  }

  .modal-mobile-deco-right {
    right: -30px;
    bottom: -30px;
  }
}

/* Animación suave al aparecer las decoraciones */
@keyframes fadeInRotate {
  from {
    opacity: 0;
    transform: rotate(0deg) scale(0.8);
  }

  to {
    opacity: 1;
    transform: rotate(-15deg) scale(1);
  }
}

@keyframes fadeInRotateRight {
  from {
    opacity: 0;
    transform: rotate(0deg) scale(0.8);
  }

  to {
    opacity: 1;
    transform: rotate(15deg) scale(1);
  }
}

@media (max-width: 768px) {
  .modal-mobile-deco-left {
    animation: fadeInRotate 0.5s ease-out forwards;
  }

  .modal-mobile-deco-right {
    animation: fadeInRotateRight 0.5s ease-out forwards;
    animation-delay: 0.2s;
  }
}