/* Visual Aesthetics: Night, Candlelight, Cempasúchil Orange, Deep Indigo, Serif Headings */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-indigo: #0b0e1b;
  --bg-surface: #13182b;
  --bg-card: #1a2038;
  --border-amber: rgba(245, 124, 0, 0.25);
  --border-amber-glow: rgba(255, 152, 0, 0.5);
  --cempasuchil-orange: #f57c00;
  --cempasuchil-bright: #ff9800;
  --candle-gold: #ffe082;
  --candle-warm: #ffb74d;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-amber: #ffcc80;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-indigo);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(245, 124, 0, 0.15) 0%, transparent 70%),
    radial-gradient(circle at 50% 100%, rgba(19, 24, 43, 0.8) 0%, transparent 100%);
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border-amber);
  background: rgba(11, 14, 27, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.candle-icon {
  width: 18px;
  height: 18px;
  color: var(--candle-gold);
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* Hero Section - Above the fold MUST show: Sample video, Upload box, Price, $7.99 button */
.hero-section {
  padding: 1rem 0 3rem 0;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 124, 0, 0.12);
  border: 1px solid var(--border-amber);
  color: var(--candle-warm);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--candle-warm);
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 0.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

/* First-screen Combined Grid Layout (Above the Fold) */
.hero-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-amber);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 124, 0, 0.08);
}

@media (min-width: 768px) {
  .hero-action-grid {
    grid-template-columns: 320px 1fr;
    padding: 2.25rem;
  }
}

/* Sample Video Player Frame */
.sample-video-card {
  position: relative;
  background: #000;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 152, 0, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  aspect-ratio: 9 / 16;
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
}

.sample-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sample-video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 14, 27, 0.85);
  border: 1px solid var(--border-amber);
  color: var(--candle-gold);
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* Upload Box & Checkout Panel */
.upload-card-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.upload-dropzone {
  border: 2px dashed var(--border-amber);
  background: rgba(10, 13, 24, 0.6);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--cempasuchil-bright);
  background: rgba(245, 124, 0, 0.08);
  box-shadow: 0 0 20px rgba(245, 124, 0, 0.15);
}

.upload-icon {
  width: 48px;
  height: 48px;
  color: var(--cempasuchil-bright);
  margin-bottom: 0.75rem;
}

.upload-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
}

.upload-hint {
  font-size: 0.875rem;
  color: var(--candle-warm);
  line-height: 1.4;
}

.photo-preview-container {
  display: none;
  position: relative;
  width: 100%;
  max-height: 220px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-amber-glow);
}

.photo-preview-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.photo-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Pricing & CTA Button */
.price-tag-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.price-value {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.price-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1.1rem 1.75rem;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 25px rgba(245, 124, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 124, 0, 0.5);
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Mandatory First Body Paragraph Section */
.first-body-section {
  max-width: 800px;
  margin: 3.5rem auto 2.5rem auto;
  text-align: center;
  background: rgba(26, 32, 56, 0.5);
  border: 1px solid var(--border-amber);
  border-radius: 1.25rem;
  padding: 2rem;
}

.first-body-p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e2e8f0;
}

/* Section Headings - EXACTLY 3 H2s: Cómo funciona / Cómo debe ser la foto / Preguntas */
.section-heading {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  margin: 4rem 0 2rem 0;
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--cempasuchil-bright);
  margin: 0.75rem auto 0 auto;
  border-radius: 2px;
}

/* Step Cards */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-amber);
  border-radius: 1.25rem;
  padding: 1.75rem;
  text-align: left;
  transition: transform 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-amber-glow);
}

.step-number {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--candle-gold);
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

/* Photo Guidelines Card */
.photo-guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-amber);
  border-radius: 1.25rem;
  padding: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.guide-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
}

@media (min-width: 640px) {
  .guide-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.guide-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: #e2e8f0;
}

.guide-check {
  color: var(--cempasuchil-bright);
  font-weight: bold;
  font-size: 1.2rem;
}

/* FAQ Accordion Section */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-amber);
  border-radius: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-amber);
  margin-top: 5rem;
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: rgba(11, 14, 27, 0.95);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--candle-warm);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Result Page Specifics */
.result-container {
  max-width: 680px;
  margin: 2rem auto;
  text-align: center;
}

.status-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-amber);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(245, 124, 0, 0.2);
  border-top-color: var(--cempasuchil-bright);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 1.5rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.result-video-player {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-amber-glow);
  box-shadow: 0 15px 40px rgba(0,0,0,0.8);
  margin: 1.5rem auto;
}

.result-video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
