:root {
  --color-bg: #0f0f0f;
  --color-text: #f5f5f5;
  --color-accent: #dc2626;
  --color-accent-hover: #b91c1c;
  --color-card-bg: #1a1a1a;
  --color-border: #2d2d2d;
  --color-success: #16a34a;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  font-weight: 700;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin: 0.75rem auto;
  border-radius: 2px;
}

h3 {
  text-align: center;
  font-size: 1.4rem;
  margin: 3rem 0 2rem;
  color: var(--color-text);
}

/* ==== Hero ==== */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0.95) 100%);
  animation: subtleGlow 12s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes subtleGlow {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 2rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.dynamic-text {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.dynamic-text::after {
  content: '';
  position: absolute;
  right: -8px;
  bottom: 2px;
  width: 2px;
  height: 1.2em;
  background: var(--color-accent);
  opacity: 1;
  animation: blinkCursor 1s infinite step-end;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.subtitle {
  font-size: 1.35rem;
  color: #ddd;
  max-width: 750px;
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  position: relative;
  z-index: 3;
}

.btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6);
}

@keyframes pulse {
  0% { box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 6px 30px rgba(220, 38, 38, 0.6); }
  100% { box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4); }
}

.hero .btn {
  animation: pulse 3s infinite;
}

/* ==== Animaciones al hacer scroll ==== */
.section-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 0.8s forwards;
}

.section-animate[data-delay="0"] { animation-delay: 0.1s; }
.section-animate[data-delay="0.1"] { animation-delay: 0.2s; }
.section-animate[data-delay="0.2"] { animation-delay: 0.3s; }
.section-animate[data-delay="0.3"] { animation-delay: 0.4s; }
.section-animate[data-delay="0.4"] { animation-delay: 0.5s; }
.section-animate[data-delay="0.5"] { animation-delay: 0.6s; }

@keyframes fadeInSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== Problema ==== */
.problem {
  padding: 6rem 0;
  background: #111;
  position: relative;
  overflow: hidden;
}

.problem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  animation: scanLine 8s linear infinite;
  z-index: 2;
}

@keyframes scanLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100vw); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: linear-gradient(145deg, #1a1a1a, #151515);
  padding: 2.4rem 2rem;
  border-radius: 18px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.25);
  border-color: var(--color-accent);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--color-accent);
  display: block;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.stat-label {
  font-size: 1.05rem;
  color: #ccc;
  line-height: 1.5;
}

.stat-label small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #888;
}

.examples {
  max-width: 800px;
  margin: 4rem auto 0;
  position: relative;
  z-index: 2;
}

.example-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.example-item {
  background: #1a1a1a;
  border-left: 4px solid var(--color-accent);
  padding: 1.4rem;
  border-radius: 0 12px 12px 0;
  transition: all 0.3s ease;
}

.example-item:hover {
  background: #1f1f1f;
  border-left: 4px solid #ef4444;
}

.example-sender {
  font-size: 0.9rem;
  color: #ff6b6b;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.example-text {
  font-style: italic;
  color: #eee;
  line-height: 1.5;
  font-size: 1.1rem;
}

/* ==== Solución ==== */
.solution {
  padding: 6rem 0;
  background: #0f0f0f;
  position: relative;
  overflow: hidden;
}

.solution::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--color-accent);
  opacity: 0.3;
  z-index: 1;
}

.solution-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.8rem;
  position: relative;
  z-index: 2;
  margin-top: 3rem;
}

.step {
  background: linear-gradient(145deg, #1a1a1a, #151515);
  padding: 2.2rem 1.8rem;
  border-radius: 18px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.step:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 25px rgba(220, 38, 38, 0.25);
  background: linear-gradient(145deg, #1c1c1c, #171717);
}

.step-icon {
  font-size: 2.4rem;
  margin-bottom: 1.3rem;
  display: block;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.step:hover .step-icon {
  transform: scale(1.1) rotate(5deg);
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: 700;
}

.step p {
  color: #bbb;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==== Confianza ==== */
.trust {
  padding: 5rem 0;
  background: #131313;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-lead {
  font-size: 1.3rem;
  color: #ddd;
  margin-bottom: 3rem;
  font-style: italic;
  text-align: center;
}

.trust-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.principle-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.principle-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.15);
}

.principle-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--color-accent);
  display: block;
}

.principle-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: 700;
}

.principle-card p {
  font-size: 1.05rem;
  color: #ccc;
  line-height: 1.6;
}

.trust-quote {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-text);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

/* ==== Beta ==== */
.beta {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
}

.beta-text {
  font-size: 1.4rem;
  max-width: 750px;
  margin: 0 auto 3rem;
  color: #e5e5e5;
}

.beta-text strong {
  color: var(--color-success);
}

.form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form input {
  width: 100%;
  padding: 1.1rem;
  border: 1px solid #444;
  border-radius: 12px;
  font-size: 1.05rem;
  background: #222;
  color: var(--color-text);
  transition: var(--transition);
}

.form input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.fineprint {
  color: #888;
  font-size: 0.95rem;
  margin-top: 1.2rem;
}

/* ==== FAQ ==== */
.faq {
  padding: 5rem 0;
  background: #131313;
  border-bottom: 1px solid var(--color-border);
}

.faq-accordion {
  max-width: 800px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  margin: 0 1.5rem;
}

.faq-question {
  width: 100%;
  padding: 1.4rem 0;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-accent);
  transition: transform 0.3s;
}

.faq-question[aria-expanded="true"]::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  padding: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-answer:not([hidden]) {
  max-height: 200px;
  opacity: 1;
  padding: 0 0 1.4rem 0;
}

/* ==== Footer ==== */
.footer {
  padding: 3rem 0;
  background: #0a0a0a;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer p {
  color: #aaa;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.footer-small {
  font-size: 0.9rem;
  color: #666;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.3rem; }
  .subtitle { font-size: 1.15rem; }
  .stat-number { font-size: 2rem; }
  .btn { padding: 0.9rem 2rem; font-size: 1.1rem; }
}

@media (min-width: 768px) {
  .container { padding: 4rem 2rem; }
}
/* ==== Cuenta regresiva ==== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  background: rgba(220, 38, 38, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  min-width: 80px;
  text-align: center;
}

.countdown-label {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive countdown */
@media (max-width: 768px) {
  .countdown {
    gap: 1rem;
  }
  
  .countdown-number {
    font-size: 2rem;
    min-width: 60px;
    padding: 0.4rem 0.8rem;
  }
  
  .countdown-label {
    font-size: 0.8rem;
  }
}