/* ==========================================================================
   ¡LO LOGRAMOS! — Landing post 100% firmas
   Paleta: amarillo #f1d469, vino #901913
   Mobile-first; breakpoint desktop a 900px.
   ========================================================================== */

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

:root {
  --color-amarillo: #f1d469;
  --color-vino: #901913;
  --color-vino-svg: #84251c;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-amarillo);
  color: var(--color-vino);
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  line-height: 1.2;
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ---------- Ticker superior ---------- */
.ticker {
  width: 100%;
  overflow: hidden;
  background-color: var(--color-vino);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}

.ticker-track span {
  font-size: clamp(0.75rem, 1.1vw, 1.05rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.55em 0;
  color: var(--color-amarillo);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Hero (sección amarilla) ---------- */
.hero {
  padding: 1.5rem 0.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(180px, 60vw, 280px);
  height: auto;
  margin-bottom: 1rem;
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0.5rem auto 1.25rem;
}

.date-big {
  font-size: clamp(2.37rem, 10.14vw, 3.38rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.date-sep {
  font-size: clamp(2.37rem, 10.14vw, 3.38rem);
  font-weight: 400;
  opacity: 0.7;
}

.date-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.date-block strong {
  font-size: clamp(1.86rem, 7.61vw, 2.54rem);
  font-weight: 700;
}

.date-block small {
  font-size: clamp(0.72rem, 2.6vw, 0.91rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
}

.hero-title {
  margin: 0.5rem auto 1.25rem;
  max-width: 100%;
}

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

.hero-subtitle {
  font-size: clamp(1.44rem, 6vw, 1.86rem);
  font-weight: 600;
  line-height: 1.1;
  max-width: 28ch;
  margin: 0 auto 1.25rem;
}

.hero-subtitle strong {
  font-weight: 600;
}

.hero-arrows {
  display: flex;
  justify-content: center;
  margin: 1.75rem 0 1rem;
}

.hero-arrows img {
  width: clamp(80px, 22vw, 130px);
  height: auto;
}

/* ---------- Fotos de James ---------- */
.hero-photos {
  margin: 0 auto 1.75rem;
  max-width: 480px;
  width: 100%;
}

.hero-photo--mobile {
  display: block;
  width: 100%;
  height: auto;
}

.hero-photo--desktop {
  display: none;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border-radius: 18px;
}

/* ---------- Botón vistazo ---------- */
.btn-vistazo {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 1.25rem;
  padding: 0.95rem 2.5rem;
  background-color: var(--color-vino);
  color: var(--color-amarillo);
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border-radius: 9999px;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-vistazo:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-vistazo:active {
  transform: translateY(0);
}

.hero-note {
  font-size: clamp(0.96rem, 3.6vw, 1.14rem);
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ---------- Sección VIP (formulario) ---------- */
.vip {
  background-color: var(--color-vino);
  color: var(--color-amarillo);
  padding: 2rem 2.5rem 5rem; /* mobile: top reducido para que el icono "suba" y quede simétrico con el icono → texto */
  text-align: center;
}

.vip-icon {
  display: block;
  width: 18%;
  max-width: 99px;
  height: auto;
  margin: 0 auto 2rem; /* mobile: 2rem abajo balancea con el padding-top reducido del .vip */
}

.vip-intro {
  font-size: clamp(1.5rem, 5.52vw, 1.92rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 32ch;
  margin: 0 auto 1.25rem;
}

.br-desktop {
  display: none;
}

.vip-note {
  font-size: clamp(1.3rem, 5.04vw, 1.51rem);
  font-weight: 400;
  line-height: 1.3;
  max-width: 36ch;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.vip-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-row label {
  font-weight: 600;
  font-size: clamp(0.95rem, 3.8vw, 1.1rem);
  text-transform: none;
}

.field-input {
  display: flex;
  flex-direction: column;
}

.field-error:not(:empty) {
  margin-top: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 0.7rem 1rem;
  background-color: transparent;
  border: 2px solid var(--color-amarillo);
  color: var(--color-amarillo);
  font-size: 1rem;
  border-radius: 9999px;
  outline: none;
  font-family: inherit;
  transition: box-shadow 0.2s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  color: rgba(241, 212, 105, 0.55);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  box-shadow: 0 0 0 3px rgba(241, 212, 105, 0.3);
}

input.has-error {
  border-color: #ffb3aa;
  box-shadow: 0 0 0 3px rgba(255, 179, 170, 0.3);
}

.phone-wrapper {
  display: flex;
  gap: 8px;
}

.phone-wrapper select {
  flex-shrink: 0;
  padding: 0.7rem 0.75rem;
  background-color: transparent;
  border: 2px solid var(--color-amarillo);
  color: var(--color-amarillo);
  font-size: 0.95rem;
  border-radius: 9999px;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  max-width: 160px;
}

.phone-wrapper select option {
  background-color: var(--color-vino);
  color: var(--color-amarillo);
}

.phone-wrapper select:focus {
  box-shadow: 0 0 0 3px rgba(241, 212, 105, 0.3);
}

.phone-wrapper input[type="tel"] {
  flex: 1;
  min-width: 0;
}

.field-error {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffd6d0;
  min-height: 0;
}

/* ---------- Checkbox ---------- */
.checkbox-row {
  margin-top: 0.5rem;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  background-color: transparent;
  border: 2px solid var(--color-amarillo);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 8px;
  height: 13px;
  border: 2.5px solid var(--color-amarillo);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.checkbox-text {
  font-size: clamp(0.85rem, 3.2vw, 0.95rem);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.checkbox-text a {
  color: var(--color-amarillo);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-text a:hover {
  opacity: 0.8;
}

/* ---------- Botón ENVIAR ---------- */
.btn-enviar {
  display: block;
  width: 100%;
  max-width: 560px;
  padding: 0.95rem;
  margin: -0.75rem auto 0; /* sube el botón para acercarlo al checkbox */
  background-color: var(--color-amarillo);
  color: var(--color-vino);
  border: none;
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-enviar:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-enviar:active:not(:disabled) {
  transform: translateY(0);
}

.btn-enviar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 4px;
  overflow: hidden;
  max-height: 0;
  padding: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.form-status.success {
  max-height: 100px;
  padding: 0.75rem 1rem;
  background-color: rgba(241, 212, 105, 0.15);
  border: 1px solid var(--color-amarillo);
}

.form-status.error {
  max-height: 100px;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 179, 170, 0.2);
  border: 1px solid #ffb3aa;
  color: #ffd6d0;
}

/* ---------- Footer con countdowns ---------- */
.site-footer {
  background-color: var(--color-amarillo);
  color: var(--color-vino);
  padding: 1.25rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "logo logo"
    "cd1 cd2";
  gap: 1rem 0;
  align-items: center;
}

.footer-logo {
  grid-area: logo;
  justify-self: center;
  width: clamp(140px, 50vw, 220px);
  height: auto;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.countdown-block--left {
  grid-area: cd1;
  border-right: 2px solid var(--color-vino);
  padding-right: 0.5rem;
}

.countdown-block--right {
  grid-area: cd2;
  padding-left: 0.5rem;
}

.countdown-label {
  font-size: clamp(0.75rem, 2.8vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.5rem;
}

.countdown-unit > span:first-child {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
}

.countdown-unit-label {
  font-size: clamp(0.55rem, 2vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.countdown-sep {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 500;
  line-height: 1;
  padding-bottom: 0.7rem;
  opacity: 0.5;
}

/* ---------- Modal éxito ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(144, 25, 19, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background-color: var(--color-amarillo);
  color: var(--color-vino);
  padding: 2.25rem 2rem;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-title {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.modal-body {
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  line-height: 1.35;
}

.modal-btn {
  margin-top: 0.5rem;
  padding: 0.7rem 2rem;
  background-color: var(--color-vino);
  color: var(--color-amarillo);
  border: none;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  align-self: center;
  transition: opacity 0.2s ease;
}

.modal-btn:hover {
  opacity: 0.88;
}

/* ==========================================================================
   DESKTOP — desde 900px
   ========================================================================== */
@media (min-width: 900px) {
  .hero {
    padding: 2rem 1.5rem 3rem;
    position: relative;
  }

  .hero-logo {
    align-self: flex-start;
    width: clamp(220px, 22vw, 360px);
    margin-bottom: 0;
  }

  /* En desktop la fecha queda en el flow, donde antes estaban el botón y la nota */
  .hero-date {
    order: 5;
    margin: 1.5rem auto 0;
    gap: 1rem;
  }

  .date-big {
    font-size: clamp(3.12rem, 4.68vw, 4.06rem);
  }

  .date-sep {
    font-size: clamp(3.12rem, 4.68vw, 4.06rem);
  }

  .date-block strong {
    font-size: clamp(2.18rem, 3.43vw, 2.96rem);
  }

  .date-block small {
    font-size: 1.02rem;
  }

  /* Orden desktop: título → flechas → subtítulo → fotos → botón → nota */
  .hero-title { order: 1; margin: 1rem auto 1.5rem; max-width: 47.25%; width: 47.25%; }
  .hero-arrows { order: 2; }

  .hero-arrows img {
    width: clamp(160px, 44vw, 260px);
  }

  .hero-subtitle {
    order: 3;
    font-size: clamp(3.12rem, 4.8vw, 4.08rem);
    font-weight: 600;
    line-height: 1;
    max-width: 26ch;
    margin-top: 1.25rem;
  }

  .hero-subtitle strong {
    font-weight: 600;
  }
  .hero-photos { order: 4; }
  .btn-vistazo { order: 5; }
  .hero-note { order: 6; }

  /* En desktop: 3 fotos en fila, la del centro desplazada hacia abajo */
  .hero-photos {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    max-width: 70%;
    width: 70%;
    align-items: start;
  }

  .hero-photo--mobile {
    display: none;
  }

  .hero-photo--desktop {
    display: block;
  }

  .hero-photo--center {
    margin-top: 3.5rem;
  }

  .btn-vistazo {
    padding: 1.1rem 4rem;
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
    letter-spacing: 0;
    margin-top: 1rem;
  }

  .hero-note {
    font-size: clamp(1.2rem, 1.6vw, 1.43rem);
  }

  /* VIP section — padding top y bottom iguales para centrar contenido */
  .vip {
    padding: 3.5rem 2rem 3.5rem;
  }

  .vip-icon {
    width: 19%;
    max-width: 104px;
    margin: 0 auto 1rem; /* en desktop el padding-top del .vip ya da espacio simétrico */
  }

  .vip-intro {
    font-size: clamp(1.95rem, 3vw, 2.4rem);
    max-width: 48ch;
  }

  .br-desktop {
    display: inline;
  }

  .vip-note {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    max-width: 52ch;
    margin-bottom: 2.5rem;
  }

  .vip-form {
    max-width: 560px;
  }

  .field-row {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }

  .field-row label {
    flex: 0 0 110px;
    text-align: right;
    margin: 0;
  }

  .field-input {
    flex: 1;
  }

  .checkbox-row {
    flex-direction: column;
    align-items: center;
    padding-top: 0;
  }

  .checkbox-label {
    max-width: 620px;
  }

  /* Footer */
  .site-footer {
    display: flex;
    flex-direction: row;
    grid-template-areas: none;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    gap: 2rem;
  }

  .footer-logo {
    justify-self: auto;
    width: clamp(180px, 18vw, 260px);
  }

  .countdown-block {
    align-items: center;
    flex: 1;
  }

  .countdown-block--left {
    align-items: flex-start;
    border-right: none;
    padding-right: 0;
  }

  .countdown-block--right {
    align-items: flex-end;
    padding-left: 0;
  }
}

/* Extra polish para pantallas anchas */
@media (min-width: 1280px) {
  .hero {
    padding: 2.5rem 2rem 3.5rem;
  }

  .vip {
    padding: 4.25rem 2rem 4.25rem;
  }

  .site-footer {
    padding: 1.5rem 6rem;
  }
}
