/* =====================================================
   PALETA AUTORIZADA
===================================================== */
:root {
  --blue: #005EB8;
  --cyan: #00ACED;
  --navy: #002677;
  --red: #EF3340;
  --orange: #F88806;
  --coral: #EE8C6B;
  --pink: #FFB2BE;
  --green: #54AD18;
  --dark-green: #00843D;
  --teal: #57BAB7;
  --yellow: #F3D03E;
  --white: #FFFFFF;
  --background: #F4F7FB;
  --gray: #E6EBF1;
  --gray-dark: #68758A;
  --shadow:
    0 22px 60px
    rgba(0, 38, 119, .15);
}
/* =====================================================
   RESET
===================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  color: var(--navy);
  background:
    radial-gradient(
      circle at 5% 15%,
      rgba(0, 172, 237, .16),
      transparent 28%
    ),
    radial-gradient(
      circle at 95% 85%,
      rgba(243, 208, 62, .18),
      transparent 27%
    ),
    var(--background);
}
button {
  font-family: inherit;
}
/* =====================================================
   HEADER
===================================================== */
.header {
  min-height: 74px;
  padding:
    0
    clamp(20px, 5vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom:
    1px solid
    rgba(0, 38, 119, .08);
}
.brand {
  display: flex;
  align-items: center;
  color: var(--blue);
  font-size: 21px;
  font-weight: 900;
}
.brand-logo {
  display: block;
  width: 176px;
  max-width: 100%;
  height: auto;
}
.brand-vs {
  width: 30px;
  height: 30px;
  margin: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--cyan);
  font-size: 10px;
  font-weight: 900;
}
.header-copy {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
/* =====================================================
   HERO
===================================================== */
.hero {
  min-height: 245px;
  padding:
    42px
    clamp(20px, 5vw, 70px)
    70px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(
      120deg,
      var(--navy),
      var(--blue)
    );
}
.hero::before {
  content: "";
  position: absolute;
  width: 370px;
  height: 370px;
  top: -200px;
  right: -110px;
  border-radius: 50%;
  background:
    rgba(0, 172, 237, .35);
}
.hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: 210px;
  bottom: -135px;
  border-radius: 50%;
  background:
    rgba(243, 208, 62, .22);
}
.hero-inner {
  width: min(1180px, 100%);
  margin: auto;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  padding: 7px 14px;
  margin-bottom: 14px;
  border-radius: 30px;
  background:
    rgba(255,255,255,.15);
  font-size: 12px;
  font-weight: 900;
}
.hero h1 {
  max-width: 740px;
  margin-bottom: 14px;
  font-size:
    clamp(36px, 5vw, 62px);
  line-height: .95;
}
.hero h1 span {
  color: var(--cyan);
}
.hero p {
  max-width: 680px;
  color:
    rgba(255,255,255,.83);
  font-size: 16px;
  line-height: 1.5;
}
/* =====================================================
   MAIN
===================================================== */
main {
  width: min(980px, 92%);
  margin:
    -34px
    auto
    70px;
  position: relative;
  z-index: 5;
}
/* =====================================================
   STATUS
===================================================== */
.status {
  min-height: 78px;
  padding: 16px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.status-info {
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  font-weight: 900;
}
.progress {
  flex: 1;
  height: 9px;
  overflow: hidden;
  border-radius: 20px;
  background: #E6EBF1;
}
.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--cyan),
      var(--green)
    );
  transition:
    width .4s ease;
}
.status-actions {
  display: flex;
  gap: 8px;
}
.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--blue);
  background: #EDF4FA;
  font-size: 18px;
  font-weight: 900;
  transition: .2s ease;
}
.icon-button:hover {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-2px);
}
/* =====================================================
   ESCENARIO DE LA MÁQUINA
===================================================== */
.machine-stage {
  min-height: 660px;
  padding:
    34px
    clamp(24px, 4vw, 42px)
    38px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  color: var(--white);
  background:
    linear-gradient(
      150deg,
      var(--navy),
      #00174B
    );
  box-shadow: var(--shadow);
}
.machine-stage::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -180px;
  left: -160px;
  border-radius: 50%;
  background:
    rgba(0, 172, 237, .14);
}
.machine-stage::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -150px;
  bottom: -150px;
  border-radius: 50%;
  background:
    rgba(243, 208, 62, .12);
}
.stage-heading {
  max-width: 560px;
  margin: 0 auto 8px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.stage-heading small {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}
.stage-heading h2 {
  margin-bottom: 6px;
  font-size:
    clamp(27px, 4vw, 38px);
}
.stage-heading p {
  color:
    rgba(255,255,255,.68);
  font-size: 13px;
  line-height: 1.45;
}
/* =====================================================
   MÁQUINA
===================================================== */
.machine {
  width: min(360px, 90%);
  margin:
    24px
    auto
    0;
  position: relative;
  z-index: 2;
}
/* =====================================================
   GLOBO
===================================================== */
.globe {
  width: 84%;
  aspect-ratio: 1;
  margin: auto;
  padding: 21px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border:
    8px solid
    var(--cyan);
  border-radius:
    50%
    50%
    43%
    43%;
  background:
    linear-gradient(
      145deg,
      rgba(0,172,237,.9),
      rgba(0,94,184,.62)
    );
  box-shadow:
    inset 0 0 40px
    rgba(255,255,255,.18),
    0 16px 30px
    rgba(0,0,0,.24);
}
.ball {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  position: relative;
  box-shadow:
    inset -5px -6px 8px
    rgba(0,0,0,.14);
  transition:
    opacity .45s ease,
    transform .45s ease;
}
.ball.used {
  opacity: .08;
  transform:
    scale(.5);
}
.ball:nth-child(1),
.ball:nth-child(7) {
  background: var(--yellow);
}
.ball:nth-child(2),
.ball:nth-child(8) {
  background: var(--red);
}
.ball:nth-child(3) {
  background: var(--orange);
}
.ball:nth-child(4) {
  background: var(--pink);
}
.ball:nth-child(5) {
  background: var(--green);
}
.ball:nth-child(6) {
  background: var(--teal);
}
.ball:nth-child(9) {
  background: var(--cyan);
}
/* =====================================================
   CUERPO DE LA MÁQUINA
===================================================== */
.machine-body {
  width: 100%;
  min-height: 245px;
  margin-top: -13px;
  padding:
    32px
    25px
    22px;
  position: relative;
  border:
    6px solid
    #004A8F;
  border-radius:
    27px
    27px
    20px
    20px;
  background:
    linear-gradient(
      145deg,
      var(--blue),
      #004684
    );
  box-shadow:
    0 18px 32px
    rgba(0,0,0,.26);
}
.machine-logo {
  margin-bottom: 18px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .4px;
}
/* =====================================================
   PERILLA
===================================================== */
.knob-wrapper {
  display: flex;
  justify-content: center;
}
.knob {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border:
    8px solid
    #DCE5EB;
  border-radius: 50%;
  background:
    #748997;
  box-shadow:
    inset 0 0 0 4px
    #516675,
    0 8px 16px
    rgba(0,0,0,.21);
  transition:
    transform .55s ease;
}
.knob::before {
  content: "";
  width: 48px;
  height: 10px;
  border-radius: 10px;
  background: var(--white);
}
.knob.turn {
  transform:
    rotate(180deg);
}
/* =====================================================
   DISPENSADOR
===================================================== */
.dispenser {
  width: 110px;
  height: 50px;
  margin:
    18px
    auto
    0;
  position: relative;
  border:
    5px solid
    #00386E;
  border-radius:
    8px
    8px
    23px
    23px;
  background:
    #001D4A;
}
.dispenser::after {
  content: "";
  width: 76px;
  height: 13px;
  position: absolute;
  left: 50%;
  top: 12px;
  transform:
    translateX(-50%);
  border-radius: 10px;
  background:
    #000F2C;
}
/* =====================================================
   CÁPSULA
===================================================== */
.capsule {
  width: 76px;
  height: 76px;
  position: absolute;
  left: 50%;
  bottom: -48px;
  z-index: 5;
  opacity: 0;
  transform:
    translateX(-50%)
    translateY(-55px)
    scale(.3);
  border:
    4px solid
    var(--white);
  border-radius: 50%;
  background:
    linear-gradient(
      180deg,
      var(--yellow) 0 50%,
      var(--orange) 50%
    );
  box-shadow:
    0 10px 20px
    rgba(0,0,0,.26);
}
.capsule.drop {
  animation:
    capsuleDrop
    .85s
    cubic-bezier(.3,.75,.25,1)
    forwards;
}
@keyframes capsuleDrop {
  0% {
    opacity: 0;
    transform:
      translateX(-50%)
      translateY(-60px)
      scale(.3);
  }
  45% {
    opacity: 1;
    transform:
      translateX(-50%)
      translateY(5px)
      scale(1);
  }
  72% {
    transform:
      translateX(-50%)
      translateY(-7px)
      scale(.94);
  }
  100% {
    opacity: 1;
    transform:
      translateX(-50%)
      translateY(0)
      scale(1);
  }
}
/* =====================================================
   BOTÓN PRINCIPAL
===================================================== */
.dispense-button {
  width: 100%;
  min-height: 54px;
  margin-top: 64px;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  color: var(--navy);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  transition:
    transform .2s ease;
}
.dispense-button:hover {
  transform:
    translateY(-2px);
}
.dispense-button:disabled {
  opacity: .4;
  cursor: default;
  transform: none;
}
/* =====================================================
   MENSAJE INFERIOR
===================================================== */
.machine-message {
  max-width: 540px;
  margin:
    28px
    auto
    0;
  padding: 13px 18px;
  border-radius: 14px;
  text-align: center;
  color:
    rgba(255,255,255,.78);
  background:
    rgba(255,255,255,.07);
  border:
    1px solid
    rgba(255,255,255,.09);
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}
/* =====================================================
   MODALES GENERALES
===================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    rgba(0, 38, 119, .88);
  backdrop-filter:
    blur(8px);
}
.modal.hidden {
  display: none;
}
.modal-box {
  width: min(610px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding:
    clamp(26px, 5vw, 42px);
  border-radius: 26px;
  background: var(--white);
  box-shadow:
    0 30px 80px
    rgba(0,0,0,.28);
  animation:
    modalIn
    .38s ease;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform:
      translateY(24px)
      scale(.95);
  }
  to {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}
/* =====================================================
   POPUP AFIRMACIÓN
===================================================== */
.statement-modal-box {
  width: min(640px, 100%);
}
.popup-top {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.popup-counter {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.popup-tag {
  padding: 7px 12px;
  border-radius: 30px;
  color: var(--blue);
  background:
    rgba(0, 172, 237, .11);
  font-size: 10px;
  font-weight: 900;
}
.statement-label {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}
.statement-card {
  padding: 23px;
  margin-bottom: 22px;
  border-radius: 18px;
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--cyan)
    );
  font-size:
    clamp(20px, 3vw, 28px);
  line-height: 1.17;
  font-weight: 900;
  box-shadow:
    0 12px 24px
    rgba(0,94,184,.19);
}
.popup-question {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 900;
}
/* =====================================================
   BOTONES DE OPINIÓN
===================================================== */
.opinion-buttons {
  display: grid;
  grid-template-columns:
    1fr
    1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.opinion {
  min-height: 64px;
  padding: 12px 16px;
  border:
    2px solid
    var(--gray);
  border-radius: 16px;
  cursor: pointer;
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}
.opinion:hover:not(:disabled) {
  transform:
    translateY(-2px);
}
.opinion.agree:hover:not(:disabled) {
  border-color:
    var(--green);
}
.opinion.disagree:hover:not(:disabled) {
  border-color:
    var(--red);
}
.opinion.selected-agree {
  color: var(--dark-green);
  border-color:
    var(--green);
  background:
    #EFF9EA;
}
.opinion.selected-disagree {
  color: #B7202D;
  border-color:
    var(--red);
  background:
    #FFF0F1;
}
.opinion:disabled {
  cursor: default;
}
/* =====================================================
   RESULTADO
===================================================== */
.result {
  display: none;
  margin-bottom: 14px;
  padding: 15px 17px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}
.result.show {
  display: block;
}
.result.correct {
  color: var(--dark-green);
  background: #ECF8E8;
  border:
    1px solid
    rgba(84,173,24,.2);
}
.result.incorrect {
  color: #9C3B00;
  background: #FFF4E5;
  border:
    1px solid
    rgba(248,136,6,.22);
}
.result strong {
  display: block;
  margin-bottom: 3px;
}
/* =====================================================
   FACT
===================================================== */
.fact-box {
  display: none;
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 17px;
  color: var(--navy);
  background:
    #EBF8F7;
  border:
    2px solid
    rgba(87,186,183,.35);
  animation:
    factReveal
    .42s ease;
}
.fact-box.show {
  display: block;
}
@keyframes factReveal {
  from {
    opacity: 0;
    transform:
      translateY(10px);
  }
  to {
    opacity: 1;
    transform:
      translateY(0);
  }
}
.fact-label {
  display: inline-block;
  margin-bottom: 9px;
  padding: 5px 10px;
  border-radius: 20px;
  color: var(--white);
  background: var(--teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}
.fact-text {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}
/* =====================================================
   BOTONES GENERALES
===================================================== */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.btn {
  min-height: 52px;
  padding:
    0
    27px;
  border: 0;
  border-radius: 40px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  transition:
    transform .2s ease;
}
.btn:hover {
  transform:
    translateY(-2px);
}
.btn-primary {
  flex: 1;
  color: var(--white);
  background:
    linear-gradient(
      90deg,
      var(--blue),
      var(--cyan)
    );
}
.btn-secondary {
  color: var(--blue);
  background: #EDF4FA;
}
/* =====================================================
   MODAL INSTRUCCIONES
===================================================== */
.modal-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--cyan)
    );
  font-size: 30px;
  font-weight: 900;
}
.modal-box h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size:
    clamp(29px, 5vw, 39px);
  line-height: 1;
}
.modal-intro {
  color: var(--gray-dark);
  line-height: 1.5;
}
.instructions {
  margin: 27px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.instruction {
  display: grid;
  grid-template-columns:
    38px
    1fr;
  gap: 13px;
  align-items: center;
  font-size: 14px;
  line-height: 1.4;
}
.number {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}
.instruction:nth-child(1)
.number {
  background: var(--blue);
}
.instruction:nth-child(2)
.number {
  background: var(--orange);
}
.instruction:nth-child(3)
.number {
  background: var(--cyan);
}
.instruction:nth-child(4)
.number {
  background: var(--green);
}
/* =====================================================
   FINAL
===================================================== */
.finish {
  text-align: center;
}
.finish-icon {
  width: 105px;
  height: 105px;
  margin:
    0
    auto
    20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--yellow);
  font-size: 44px;
  font-weight: 900;
}
.finish p {
  max-width: 450px;
  margin:
    12px
    auto
    20px;
  color: var(--gray-dark);
  line-height: 1.5;
}
.score {
  display: inline-flex;
  margin-bottom: 25px;
  padding: 10px 17px;
  border-radius: 30px;
  color: var(--blue);
  background: #EDF6FC;
  font-size: 13px;
  font-weight: 900;
}
/* =====================================================
   STICKERS
===================================================== */
.stickers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin:
    0
    0
    30px;
}
.sticker {
  width: 105px;
  height: 105px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border:
    5px solid
    var(--white);
  border-radius: 50%;
  color: var(--white);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  box-shadow:
    0 9px 22px
    rgba(0,38,119,.18);
}
.sticker:nth-child(1) {
  background: var(--blue);
  transform:
    rotate(-5deg);
}
.sticker:nth-child(2) {
  background: var(--red);
  transform:
    rotate(5deg);
}
.sticker:nth-child(3) {
  background: var(--dark-green);
  transform:
    rotate(-3deg);
}
/* =====================================================
   RESPONSIVE TABLET
===================================================== */
@media
(max-width: 800px) {
  .machine-stage {
    min-height: auto;
  }
}
/* =====================================================
   RESPONSIVE MOBILE
===================================================== */
@media
(max-width: 600px) {
  .header {
    min-height: 64px;
    padding:
      0
      18px;
  }
  .header-copy {
    display: none;
  }
  .brand {
    font-size: 18px;
  }
  .brand-logo {
    width: 152px;
  }
  .hero {
    min-height: auto;
    padding:
      30px
      20px
      55px;
  }
  .hero p {
    font-size: 14px;
  }
  main {
    width:
      calc(100% - 20px);
    margin-top:
      -26px;
  }
  .status {
    padding: 14px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .status-info {
    flex: 1;
    min-width: 155px;
  }
  .progress {
    order: 3;
    flex-basis: 100%;
  }
  .machine-stage {
    padding:
      24px
      16px
      28px;
    border-radius: 20px;
  }
  .stage-heading {
    padding:
      0
      6px;
  }
  .machine {
    width: 245px;
  }
  .ball {
    width: 35px;
    height: 35px;
  }
  .machine-body {
    min-height: 200px;
    padding:
      28px
      20px
      18px;
  }
  .knob {
    width: 70px;
    height: 70px;
  }
  .dispense-button {
    margin-top: 58px;
  }
  .machine-message {
    margin-top: 24px;
    font-size: 12px;
  }
  /* POPUP FULL MOBILE */
  .modal {
    padding: 10px;
    align-items: center;
  }
  .modal-box {
    width: 100%;
    max-height: 94vh;
    padding:
      24px
      18px;
    border-radius: 20px;
  }
  .popup-top {
    margin-bottom: 17px;
  }
  .statement-card {
    padding: 19px;
    font-size: 20px;
  }
  .opinion-buttons {
    grid-template-columns:
      1fr;
  }
  .opinion {
    min-height: 58px;
  }
  .fact-box {
    padding: 17px;
  }
  .fact-text {
    font-size: 13px;
  }
  .modal-actions {
    flex-direction:
      column-reverse;
  }
  .btn {
    width: 100%;
  }
  .sticker {
    width: 87px;
    height: 87px;
    font-size: 9px;
  }
}
@media
(max-width: 380px) {
  .machine {
    width: 220px;
  }
  .ball {
    width: 31px;
    height: 31px;
  }
  .statement-card {
    font-size: 18px;
  }
}
