@font-face {
  font-family: 'AvantGardeAchos';
  src: url('../assets/fonts/avant-garde-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  width: 100%; height: 100%;
  background: #000; overflow: hidden;
  font-family: 'AvantGardeAchos', 'Helvetica Neue', Arial, sans-serif;
}

/* ─── SCREENS ─── */
.screen {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease;
}
.screen.active { opacity: 1; pointer-events: all; }

.courier-fab {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(17,17,17,0.88);
  color: rgba(255,255,255,0.68);
  font-family: inherit;
  font-size: 0.95rem;
  z-index: 9999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, transform 0.15s, background 0.2s;
  line-height: 1;
  padding-top: 0.32rem;
  padding-bottom: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.courier-fab:hover {
  opacity: 0;
  background: rgba(28,28,28,0.96);
  transform: scale(1.03);
}
.courier-fab:active { transform: scale(0.97); }

/* ─── SCREEN 1 ─── */
#screen-logo { flex-direction: column; gap: 3rem; }
#screen-logo .logo { width: clamp(200px, 55vw, 480px); height: auto; }

.start-btn {
  padding: 0.9em 2.2em; border-radius: 99px; border: none;
  background: #fff; color: #000; font-family: inherit;
  font-size: clamp(1.1rem, 2.9vw, 1.35rem); font-weight: 900;
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1;
  cursor: pointer; transition: transform 0.15s, background 0.15s;
  transform: translateY(-3px);
  padding-top: calc(0.9em + 0.12em);
  padding-bottom: calc(0.9em - 0.2em);
}
.start-btn:hover  { transform: translateY(-3px) scale(1.06); background: #e0e0e0; }
.start-btn:active { transform: translateY(-3px) scale(0.97); }

/* ─── SCREEN 2 ─── */
#screen-video { align-items: flex-start; }
#screen-video video {
  max-width: 100%; max-height: 100%;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@media (min-width: 768px) {
  #screen-video { align-items: center; }
  #screen-video video {
    width: auto; height: 100%;
    max-width: 100%;
    object-fit: contain;
  }
}

/* ─── SCREEN 3 ─── */
#screen-huevos { flex-direction: column; justify-content: space-between; }

.btn-zone {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 20;
}

.middle-zone {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
}

.divider { width: 100%; height: 1px; background: rgba(255,255,255,0.15); position: relative; z-index: 10; }

.question-text {
  font-size: clamp(2.8rem, 11vw, 7rem); font-weight: 900;
  color: #fff; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 0.95;
  text-align: center; position: relative; z-index: 1; user-select: none;
}
.question-text img {
  width: clamp(180px, 42vw, 340px);
  height: auto;
  display: block;
}

.eggs-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 2vw; z-index: 5;
  pointer-events: none;
  will-change: transform;
}

.egg-shell {
  display: flex;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

#screen-huevos.active .egg-shell {
  pointer-events: all;
}

@keyframes roll-from-left {
  from { transform: translateX(-160%) rotate(-540deg); opacity: 0; }
  to   { transform: translateX(0)     rotate(0deg);   opacity: 1; }
}
@keyframes roll-from-right {
  from { transform: translateX(160%) rotate(540deg); opacity: 0; }
  to   { transform: translateX(0)    rotate(0deg);  opacity: 1; }
}

.egg-shell.roll-left {
  animation: roll-from-left  0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.35s;
}
.egg-shell.roll-right {
  animation: roll-from-right 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.55s;
}

.egg {
  height: auto; cursor: pointer;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.7));
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#egg1 { width: clamp(90px,  22vw, 170px); }
#egg2 { width: clamp(110px, 27vw, 210px); }

.egg.up   { transform: rotate(0deg); }
.egg.down { transform: rotate(180deg); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.4em 2.4em; border-radius: 1.6em;
  border: 2.5px dashed rgba(255,255,255,0.5);
  background: transparent; color: #fff;
  font-size: clamp(1.25rem, 4vw, 1.85rem); font-weight: 800;
  line-height: 1.05; text-align: center; cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.3s, border-color 0.3s, transform 0.15s, box-shadow 0.3s;
  font-family: inherit; min-width: 200px;
  position: relative; overflow: hidden;
  padding-top: calc(1.4em + 0.2em);
  padding-bottom: calc(1.4em - 0.32em);
}
.btn:hover  { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.85); transform: scale(1.04); }
.btn:active { transform: scale(0.97); }

.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.18);
  transform: scaleX(0);
  transform-origin: left;
  transition: none;
  border-radius: inherit;
}
.btn.egg-near::after {
  transform: scaleX(1);
  transition: transform 2s linear;
}
.btn.egg-near {
  border-color: rgba(255,255,255,0.9);
  border-style: solid;
}
#btn-si {
  padding-top: calc(1.4em + 0.08em);
  padding-bottom: calc(1.4em - 0.2em);
}

/* ─── NO TENGO HUEVOS FLOW ─── */
.form-screen {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem; width: 100%;
  max-width: min(360px, 90vw);
  padding: 2rem;
}

.options-wrap { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; }

.btn-option {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1.8em 2em;
  border-radius: 1.6em;
  border: 2px dashed rgba(255,255,255,0.5);
  background: transparent; color: #fff;
  font-family: inherit; cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
  padding-top: calc(1.8em + 0.2em);
  padding-bottom: calc(1.8em - 0.32em);
}
.btn-option strong { font-size: clamp(1.35rem, 4.5vw, 1.9rem); font-weight: 900; line-height: 1.2; }
.btn-option span   { font-size: clamp(0.95rem, 2.8vw, 1.1rem); font-weight: 400; opacity: 0.8; }
.btn-option:hover  { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.85); }
.btn-option:active { transform: scale(0.97); }

.form-label {
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  font-weight: 700; color: #fff;
  text-align: center; line-height: 1.3;
}

.form-input {
  width: 100%; background: transparent;
  border: none; border-bottom: 1.5px solid rgba(255,255,255,0.45);
  color: #fff; font-family: inherit;
  font-size: clamp(1rem, 3vw, 1.2rem);
  padding: 0.5em 0; outline: none; text-align: center;
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus { border-bottom-color: rgba(255,255,255,0.9); }

.btn-submit {
  padding: 0.9em 3em; border-radius: 99px;
  border: 2px solid rgba(255,255,255,0.45);
  background: transparent; color: #fff;
  font-family: inherit; font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  font-weight: 700; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
  padding-top: calc(0.9em + 0.2em);
  padding-bottom: calc(0.9em - 0.32em);
}
.btn-submit:hover  { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.85); }
.btn-submit:active { transform: scale(0.97); }
.btn-submit.highlighted { border-color: #5bbcff; box-shadow: 0 0 0 1px #5bbcff; }

.confirm-wrap { gap: 1.2rem; color: #fff; }
.confirm-title {
  font-size: clamp(1.4rem, 5.5vw, 2rem);
  font-weight: 900; text-align: center; line-height: 1.25;
}
.confirm-eggs { display: flex; gap: 1rem; align-items: center; justify-content: center; }
.confirm-eggs img { height: clamp(55px, 14vw, 90px); width: auto; }
.confirm-text  { font-size: clamp(0.9rem, 2.8vw, 1.1rem); text-align: center; line-height: 1.5; }
.confirm-usenlos { font-size: clamp(1rem, 3.5vw, 1.4rem); font-weight: 900; text-align: center; }
.btn-link {
  display: block; padding: 0.85em 2em; border-radius: 99px;
  border: 2px solid rgba(255,255,255,0.55);
  background: transparent; color: #fff;
  font-family: inherit; font-size: clamp(1.1rem, 3.4vw, 1.35rem);
  font-weight: 700; text-decoration: none; text-align: center;
  width: 100%; transition: background 0.2s;
  line-height: 1;
  padding-top: calc(0.85em + 0.08em);
  padding-bottom: calc(0.85em - 0.12em);
}
.btn-link:hover { background: rgba(255,255,255,0.08); }

/* ─── TENGO HUEVOS SCREEN ─── */
.si-wrap {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 1.4rem; width: 100%;
  max-width: min(360px, 90vw);
  padding: 2rem; color: #fff;
}
.screen-back {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  padding-top: 0.38rem;
  padding-bottom: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.screen-back:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.85);
}
.screen-back:active { transform: scale(0.96); }
.si-title {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 900; text-align: center; line-height: 1.2;
}
.si-gif {
  width: 100%; aspect-ratio: 4/3;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 0.5rem; overflow: hidden;
  position: relative; background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
}
.si-gif img { width: 100%; height: 100%; object-fit: cover; display: block; }
.si-gif-placeholder { font-size: 1.2rem; font-weight: 700; opacity: 0.4; }
.si-text {
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  font-weight: 700; text-align: center; line-height: 1.4;
}

/* ─── REAL EGGS FORM ─── */
.real-form {
  display: flex; flex-direction: column;
  justify-content: space-between;
  width: 100%; height: 100%;
  padding: 4rem 2.5rem 3rem;
  max-width: 420px;
  margin: 0 auto;
}
.real-form-fields { display: flex; flex-direction: column; gap: 0.2rem; }
.real-section-label {
  font-size: clamp(0.9rem, 2.8vw, 1.1rem);
  font-weight: 700; color: #fff;
  margin-top: 1.6rem; margin-bottom: 0.5rem;
}
.real-input {
  width: 100%; background: transparent;
  border: none; border-bottom: 1.5px solid rgba(255,255,255,0.45);
  color: #fff; font-family: inherit;
  font-size: clamp(0.9rem, 2.8vw, 1.05rem);
  padding: 0.55em 0; outline: none;
  margin-bottom: 0.2rem;
}
.real-input::placeholder { color: rgba(255,255,255,0.35); }
.real-input:focus { border-bottom-color: rgba(255,255,255,0.9); }
.real-pago-zone {
  min-height: 80px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 0.8em;
  margin-top: 0.5rem;
  display: flex; align-items: center; justify-content: center;
}
.real-pago-placeholder { color: rgba(255,255,255,0.2); font-size: 0.85rem; }
.btn-real-submit {
  padding: 1em 2.5em; border-radius: 99px;
  border: 2px dashed rgba(255,255,255,0.55);
  background: transparent; color: #fff;
  font-family: inherit; font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  font-weight: 800; cursor: pointer; width: 100%;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 1.5rem;
  line-height: 1;
  padding-top: calc(1em + 0.2em);
  padding-bottom: calc(1em - 0.32em);
}
.btn-real-submit:hover  { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.85); }
.btn-real-submit:active { transform: scale(0.97); }

/* ─── COURIER SCREEN ─── */
#screen-courier {
  background: #fff;
  color: #111;
  align-items: stretch;
  justify-content: stretch;
  z-index: 10000;
}
.courier-wrap {
  width: 100%;
  min-height: 100%;
  padding: 1.8rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 540px;
  margin: 0 auto;
}
.courier-back {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(17,17,17,0.12);
  border-radius: 999px;
  background: #f4f4f4;
  color: #111;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  padding-top: 0.38rem;
  padding-bottom: 0;
  cursor: pointer;
}
.courier-title {
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #111;
}
.courier-stamp {
  font-size: 0.9rem;
  color: rgba(17,17,17,0.65);
  margin-top: -0.35rem;
}
.courier-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.courier-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(17,17,17,0.6);
}
.courier-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid rgba(17,17,17,0.25);
  background: transparent;
  color: #111;
  font-family: inherit;
  font-size: 1.1rem;
  outline: none;
  padding: 0.6rem 0 0.5rem;
}
.courier-input:focus { border-bottom-color: #111; }
.courier-signature {
  margin-top: 0.4rem;
  border: 1.5px solid rgba(17,17,17,0.18);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
}
.courier-canvas {
  display: block;
  width: 100%;
  height: 220px;
  touch-action: none;
  background: #fff;
}
.courier-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}
.courier-clear,
.courier-save {
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.courier-clear {
  border: 1px solid rgba(17,17,17,0.18);
  background: transparent;
  color: #111;
  padding: 0.8rem 1.1rem 0.6rem;
}
.courier-save {
  border: none;
  background: #111;
  color: #fff;
  padding: 0.8rem 1.3rem 0.6rem;
}
