/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --color-bg: #0a0a0f;
  --color-primary: #FF6B00;
  --color-primary-light: #FF8C00;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.65);
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-border: rgba(255, 107, 0, 0.2);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --transition: 0.25s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

/* ============================================================
   Fondo rotado
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: -30%;
  z-index: 0;
  background-image: url('../images/fondo.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: rotate(-9deg);
  transform-origin: top left;
  opacity: 0.87;
  mix-blend-mode: lighten;
  filter: blur(1.75px);
  pointer-events: none;
}

/* ============================================================
   Particle Canvas
   ============================================================ */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   Container — todo en 100vh, sin scroll
   ============================================================ */
.container {
  position: relative;
  z-index: 2;
  width: 1920px;
  max-width: 100%;
  height: 100vh;
  margin: 0 auto;
  padding: clamp(0.5rem, 1.5vh, 1.5rem) clamp(1rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
}

/* ============================================================
   Logo
   ============================================================ */
.logo-wrap {
  flex-shrink: 0;
}

.logo {
  width: 158px;
  height: 74px;
  object-fit: contain;
  margin: 0 auto;
}

/* ============================================================
   Headline
   ============================================================ */
.headline-group {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.headline {
  width: 1252px;
  max-width: 100%;
}

.headline-sub {
  font-family: 'Prompt', sans-serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 3.5vh, 48px);
  line-height: 1;
  letter-spacing: 1.60px;
  text-align: center;
  color: #FFFFFF;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   Headline divider
   ============================================================ */
.headline-divider {
  width: 1063px;
  max-width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #E05B0F -0.09%, #999999 100.09%);
  opacity: 0.93;
  transform: rotate(-0.22deg);
  box-shadow: 0px -2px 4px 0px #E95D0F;
  border-radius: 1px;
  flex-shrink: 0;
}

/* ============================================================
   Countdown
   ============================================================ */
.countdown {
  display: inline-flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(6px, 1vw, 14px);
  flex-shrink: 0;
  width: 1019px;
  max-width: 100%;
}

.countdown-block {
  width: clamp(110px, 12vw, 233px);
  height: clamp(90px, 13vh, 183px);
  backdrop-filter: blur(6.5px);
  -webkit-backdrop-filter: blur(6.5px);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.countdown-value {
  font-family: 'Genos', sans-serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 8.5vh, 128px);
  line-height: 0.85;
  color: #FFF3E9;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.countdown-label {
  font-family: 'Genos', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2.2vh, 36px);
  line-height: 1;
  color: #FFF3E9;
  text-shadow: 0px 4px 48px rgba(235, 85, 0, 1);
  text-align: center;
  margin-top: 4px;
}

/* ============================================================
   Description
   ============================================================ */
.description {
  width: 100%;
  max-width: 960px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.description p {
  font-family: 'Prompt', sans-serif;
  font-weight: 300;
  font-size: clamp(0.75rem, 1.8vh, 24px);
  line-height: 1.5;
  color: #FFF3E9;
}

.description-bold {
  font-weight: 600;
}

.desc-orange {
  color: var(--color-primary);
}

.highlight {
  color: var(--color-primary);
  font-weight: 600;
}

/* ============================================================
   CTA Button
   ============================================================ */
.cta-section {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.btn-cta {
  background: linear-gradient(90deg, #ED5F0F 0%, #070707 100%);
  color: #ffffff;
  font-family: 'Prompt', sans-serif;
  font-size: clamp(1rem, 2.2vh, 30px);
  font-weight: 600;
  padding: clamp(8px, 1.2vh, 14px) clamp(24px, 4vw, 53px);
  border: none;
  border-radius: 37.5px;
  cursor: pointer;
  box-shadow: 0px 0px 12.5px 1.67px #FF5704;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-cta:hover,
.btn-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0px 0px 22px 3px #FF5704;
  outline: none;
}

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

/* ============================================================
   Image Cards
   ============================================================ */
.cards-section {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  flex-shrink: 0;
  overflow: visible;
}

.card {
  position: relative;
  border-radius: 19px;
  overflow: hidden;
  background: #000;
  box-shadow: 10px 3px 20.2px #EB5500;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:not(.card--featured) {
  flex: 0 0 460px;
  width: 460px;
  height: 235px;
  position: relative;
  z-index: 1;
  margin-bottom: 80px;
}

/* Card izquierda — se mete debajo de la central */
.card:first-child {
  margin-right: -3%;
}

/* Card derecha — se mete debajo de la central */
.card:last-child {
  margin-left: -3%;
}

.card--featured {
  flex: 0 0 572px;
  width: 572px;
  height: 292px;
  position: relative;
  z-index: 2;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 3px 30px #EB5500;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: blur(1.5px) brightness(0.9);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.card:hover img {
  transform: scale(1.04);
  filter: blur(0px) brightness(1);
}

.card:first-child {
  background: linear-gradient(180deg, #ffffff 0%, #999999 100%);
}

.card:last-child {
  background: #000000;
}


.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 15, 0.8) 0%,
    rgba(10, 10, 15, 0.2) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 0.75rem 1rem;
  z-index: 2;
}

.card-label {
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   Footer Tagline
   ============================================================ */
.footer-tagline {
  flex-shrink: 0;
}

.footer-tagline p {
  font-family: 'Prompt', sans-serif;
  font-size: clamp(1.2rem, 3vh, 40px);
  line-height: 1.2;
  color: #ffffff;
}

.footer-bold {
  font-weight: 700;
}

.footer-light {
  font-weight: 300;
}

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: #13131a;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: slideUp 0.25s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
  padding: 0;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* ============================================================
   Brevo Placeholder Form
   ============================================================ */
.brevo-placeholder-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.brevo-placeholder-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: left;
}

.brevo-placeholder-form input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.brevo-placeholder-form input[type="email"]:focus {
  border-color: var(--color-primary);
}

.brevo-placeholder-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.btn-submit {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.35);
}

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

.form-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* ============================================================
   Countdown ended
   ============================================================ */
.countdown-ended {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  padding: 1rem 0;
}

/* ============================================================
   Responsive — Large desktop (1440px)
   ============================================================ */
@media (max-width: 1440px) {
  .card:not(.card--featured) {
    flex: 0 0 340px;
    width: 340px;
    height: 174px;
  }

  .card--featured {
    flex: 0 0 422px;
    width: 422px;
    height: 216px;
  }

  .card:not(.card--featured) {
    margin-bottom: 60px;
  }
}

/* ============================================================
   Responsive — Laptop / small desktop (1280px)
   ============================================================ */
@media (max-width: 1280px) {
  .card:not(.card--featured) {
    flex: 0 0 280px;
    width: 280px;
    height: 143px;
  }

  .card--featured {
    flex: 0 0 348px;
    width: 348px;
    height: 178px;
  }

  .countdown-block {
    width: 180px;
    height: 140px;
  }

  .countdown-value {
    font-size: 96px;
  }

  .countdown-label {
    font-size: 28px;
  }

  .headline-sub {
    font-size: 36px;
  }
}

/* ============================================================
   Responsive — Tablet landscape (1024px)
   ============================================================ */
@media (max-width: 1024px) {
  html, body {
    overflow: auto;
    height: auto;
  }

  .container {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 1.5rem 1.5rem 2.5rem;
    justify-content: flex-start;
    gap: 1.5rem;
    overflow: visible;
  }

  .logo {
    width: 120px;
    height: 56px;
  }

  .headline-sub {
    font-size: 30px;
  }

  .headline-group,
  .headline {
    width: 100%;
    max-width: 100%;
  }

  .headline-divider {
    width: 100%;
    max-width: 100%;
  }

  .countdown-block {
    width: 160px;
    height: 126px;
  }

  .countdown-value {
    font-size: 80px;
    line-height: 0.85;
  }

  .countdown-label {
    font-size: 24px;
  }

  .description {
    white-space: normal;
  }

  .description p {
    font-size: 18px;
  }

  .btn-cta {
    font-size: 22px;
    padding: 12px 36px;
  }

  .card:not(.card--featured) {
    flex: 0 0 260px;
    width: 260px;
    height: 133px;
    margin-bottom: 50px;
  }

  .card--featured {
    flex: 0 0 322px;
    width: 322px;
    height: 164px;
  }

  .footer-tagline p {
    font-size: 28px;
  }
}

/* ============================================================
   Responsive — Tablet portrait (768px)
   ============================================================ */
@media (max-width: 768px) {
  .container {
    padding: 1.25rem 1rem 2rem;
    gap: 1.25rem;
  }

  .logo {
    width: 100px;
    height: 47px;
  }

  .headline-sub {
    font-size: 22px;
    letter-spacing: 0.5px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown-block {
    width: 130px;
    height: 102px;
  }

  .countdown-value {
    font-size: 62px;
  }

  .countdown-label {
    font-size: 20px;
  }

  .description p {
    font-size: 15px;
  }

  .btn-cta {
    font-size: 18px;
    padding: 10px 28px;
  }

  /* Cards: columna única */
  .cards-section {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .cards-section .card {
    margin-bottom: 5px;
  }

  .cards-section .card:last-child {
    margin-bottom: 0;
  }

  .card:not(.card--featured),
  .card--featured {
    width: 100%;
    max-width: 460px;
    height: 200px;
    flex: none;
    margin-bottom: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .card--featured {
    z-index: 1;
  }

  .footer-tagline p {
    font-size: 24px;
  }
}

/* ============================================================
   Responsive — Mobile (480px)
   ============================================================ */
@media (max-width: 480px) {
  .container {
    padding: 1rem 0.75rem 1.5rem;
    gap: 1rem;
  }

  .logo {
    width: 90px;
    height: 42px;
  }

  .headline-sub {
    font-size: 18px;
  }

  .countdown-block {
    width: 108px;
    height: 86px;
  }

  .countdown-value {
    font-size: 52px;
  }

  .countdown-label {
    font-size: 16px;
  }

  .description p {
    font-size: 13px;
  }

  .btn-cta {
    font-size: 16px;
    padding: 10px 22px;
    width: 100%;
    max-width: 320px;
  }

  .card:not(.card--featured),
  .card--featured {
    max-width: 100%;
    height: 180px;
  }

  .footer-tagline p {
    font-size: 20px;
  }

  .modal-box {
    padding: 2rem 1.25rem;
  }
}

/* ============================================================
   Responsive — Small mobile (375px)
   ============================================================ */
@media (max-width: 375px) {
  .headline-sub {
    font-size: 15px;
  }

  .countdown-block {
    width: 88px;
    height: 72px;
  }

  .countdown-value {
    font-size: 42px;
  }

  .countdown-label {
    font-size: 14px;
  }

  .description p {
    font-size: 12px;
  }

  .btn-cta {
    font-size: 14px;
    padding: 8px 18px;
  }
}
