/* =============================================
   ACADEMIA DE LÍDERES DEL DOJANG TAEKWONDO
   Downsell Page — style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --bg: #0a0a0a;
  --fg: #f2f2f2;
  --red: #ef4444;
  --red-dark: #991b1b;
  --red-mid: #dc2626;
  --red-glow: rgba(239, 68, 68, 0.5);
  --orange: #f97316;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --card-bg: #0f0f0f;
  --font: 'Inter', sans-serif;
  --radius: 0.75rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- Keyframe Animations ---- */
@keyframes siren {
  0%   { background-color: #dc2626; }
  50%  { background-color: #991b1b; }
  100% { background-color: #dc2626; }
}

@keyframes pulse-opacity {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(12px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}

@keyframes timer-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(239,68,68,0.5); }
  50%       { text-shadow: 0 0 22px rgba(239,68,68,0.9), 0 0 40px rgba(239,68,68,0.4); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-scale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes top-bar-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(220,38,38,0.5); }
  50%       { box-shadow: 0 4px 30px rgba(220,38,38,0.9); }
}

/* ---- Top Urgency Banner ---- */
#urgency-banner {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background-color: #dc2626;
  border-bottom: 2px solid #f87171;
  padding: 0.55rem 1rem;
  animation: siren 1s infinite alternate, top-bar-glow 1s infinite alternate;
}

.banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  color: #fff;
}

.banner-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  animation: pulse-opacity 0.9s infinite;
}

.banner-text {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#banner-timer {
  font-weight: 900;
  font-size: 1.15rem;
  background: rgba(0,0,0,0.35);
  padding: 0.2rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- Main Layout ---- */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Headline Section ---- */
.headline-section {
  text-align: center;
  width: 100%;
  margin-bottom: 3rem;
  animation: fade-in-scale 0.55s ease both;
}

.headline-section h1 {
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--red);
  margin-bottom: 1.5rem;
  drop-shadow: 0 0 15px rgba(239,68,68,0.3);
  filter: drop-shadow(0 0 12px rgba(239,68,68,0.25));
  animation: shake 0.55s ease 0.6s both;
}

.headline-section h1 span {
  color: #fff;
}

.headline-section .subheadline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--gray-300);
  font-weight: 500;
  max-width: 680px;
  margin: 0 auto;
  border-left: 4px solid var(--red);
  padding: 0.6rem 1rem;
  text-align: left;
  background: linear-gradient(to right, rgba(127,29,29,0.18), transparent);
  border-radius: 0 8px 8px 0;
}

/* ---- Product Box ---- */
.product-box {
  width: 100%;
  max-width: 900px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(127,29,29,0.45);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 0 40px rgba(220,38,38,0.13);
  position: relative;
  overflow: hidden;
  animation: fade-in-up 0.6s ease 0.2s both;
}

.product-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(220,38,38,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.product-img-wrap {
  width: 100%;
  max-width: 1024px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.5rem;
  background: rgba(0,0,0,0.55);
  border: 1px solid #450a0a;
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-img-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(220,38,38,0.92);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transform: rotate(-5deg);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.product-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
}

.product-title-divider {
  width: 6rem;
  height: 4px;
  background: var(--red);
  margin: 0 auto 2rem;
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(239,68,68,0.8);
}

/* ---- Loss Framing ---- */
.loss-box {
  background: rgba(127,29,29,0.14);
  border: 1px solid rgba(127,29,29,0.38);
  border-radius: 0.85rem;
  padding: 2rem 1.75rem;
}

.loss-box h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #f87171;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.loss-box h3 svg {
  width: 2rem;
  height: 2rem;
  color: var(--red);
  flex-shrink: 0;
}

.loss-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.loss-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--gray-300);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  animation: slide-in-left 0.5s ease both;
}

.loss-list li svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Stagger delay for list items */
.loss-list li:nth-child(1) { animation-delay: 0.1s; }
.loss-list li:nth-child(2) { animation-delay: 0.2s; }
.loss-list li:nth-child(3) { animation-delay: 0.3s; }
.loss-list li:nth-child(4) { animation-delay: 0.4s; }
.loss-list li:nth-child(5) { animation-delay: 0.5s; }

/* ---- Arrow Bounce ---- */
.arrow-bounce {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.arrow-bounce svg {
  width: 3rem;
  height: 3rem;
  color: var(--red);
  filter: drop-shadow(0 0 10px rgba(239,68,68,0.8));
  animation: bounce-down 1.5s ease-in-out infinite;
}

/* ---- Hotmart Widget Area ---- */
.hotmart-wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hotmart-container {
  width: 100%;
  background: #fff;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(220,38,38,0.3);
  outline: 4px solid rgba(239,68,68,0.45);
}

#hotmart-sales-funnel {
  min-height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
}

.hotmart-loading {
  color: #9ca3af;
  font-weight: 500;
  font-size: 1rem;
}

/* ---- Testimonials ---- */
.testimonials {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.testimonial-card {
  background: rgba(17,24,39,0.55);
  border: 1px solid var(--gray-800);
  border-radius: 0.85rem;
  padding: 1.5rem;
  position: relative;
}

.testimonial-card .quote-mark {
  position: absolute;
  top: -0.75rem;
  left: -0.65rem;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: rgba(239,68,68,0.45);
  line-height: 1;
}

.testimonial-card p {
  color: var(--gray-300);
  font-style: italic;
  margin-bottom: 1.1rem;
  font-size: 0.97rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gray-400);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.stars {
  display: flex;
  gap: 1px;
  margin-top: 0.15rem;
}

.stars svg {
  width: 1rem;
  height: 1rem;
  fill: var(--orange);
}

/* ---- Second Urgency Block ---- */
.urgency-block-2 {
  width: 100%;
  max-width: 680px;
  background: #000;
  border: 2px solid var(--red-mid);
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(220,38,38,0.18);
  margin-bottom: 1rem;
}

.urgency-block-2::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
  opacity: 0.6;
}

.urgency-block-2 .clock-icon {
  width: 3.75rem;
  height: 3.75rem;
  color: var(--red);
  margin: 0 auto 1rem;
  display: block;
}

.urgency-block-2 h3 {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.urgency-block-2 .sub {
  color: var(--gray-400);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.timer-display-2 {
  background: rgba(127,29,29,0.4);
  border: 1px solid rgba(239,68,68,0.28);
  border-radius: 0.75rem;
  padding: 1rem 2rem;
  display: inline-block;
  margin-bottom: 1rem;
}

#timer-2 {
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 900;
  color: var(--red);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  animation: timer-pulse 1.2s ease-in-out infinite;
}

.urgency-block-2 .warning-text {
  color: #f87171;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
}

/* ---- Footer ---- */
footer {
  background: rgba(0,0,0,0.9);
  padding: 2.25rem 1.25rem;
  text-align: center;
  border-top: 1px solid #111;
  margin-top: 3rem;
}

footer p {
  color: var(--gray-600);
  font-size: 0.74rem;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Expired state ---- */
.expired-text {
  color: var(--gray-400);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .testimonials {
    grid-template-columns: 1fr;
  }

  .banner-icon.hide-mobile {
    display: none;
  }

  .banner-text {
    font-size: 0.78rem;
  }

  .product-box {
    padding: 1.25rem 1rem;
  }

  .loss-box {
    padding: 1.25rem 1rem;
  }
}
