/* ============================================
   TU DOSIS FINANCIERA - PREMIUM LANDING STYLES
   ============================================ */

/* ============================================
   VARIABLES CSS - Paleta estricta de branding
   ============================================ */
:root {
  /* Colores principales */
  --bg-primary: #0A0A0F;
  --bg-card: #1A1A24;
  --bg-card-hover: #222230;

  /* Colores de acento */
  --dorado: #E5B800;
  --verde: #00D474;
  --verde-dark: #00A85C;
  --blanco: #FFFFFF;
  --gris-claro: #A0A0B0;
  --gris-medio: #6B6B7B;
  --gris-oscuro: #2A2A34;
  --amarillo: #FFE500;

  /* Efectos */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow-verde: rgba(0, 212, 116, 0.4);
  --glow-dorado: rgba(229, 184, 0, 0.3);

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--blanco);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  color: var(--blanco);
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--gris-claro);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  overflow: hidden;
}

/* Animated gradient background */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(229, 184, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(0, 212, 116, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(229, 184, 0, 0.05) 0%, transparent 50%);
  animation: gradient-shift 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes gradient-shift {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(1.1) translate(-2%, 2%);
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.logo {
  width: 280px;
  height: auto;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.1s forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--gris-claro);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

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

/* ============================================
   SOCIAL PROOF
   ============================================ */
.social-proof {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--dorado);
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* ============================================
   FORMULARIO
   ============================================ */
.subscribe-form {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 500px) {
  .form-group {
    flex-direction: row;
  }
}

.subscribe-form input[type="email"] {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--gris-oscuro);
  color: var(--blanco);
  padding: 16px 20px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all var(--transition-base);
}

.subscribe-form input[type="email"]::placeholder {
  color: var(--gris-medio);
}

.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(0, 212, 116, 0.15);
}

/* ============================================
   BUTTON CTA
   ============================================ */
.btn-cta {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-dark) 100%);
  color: var(--bg-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-cta span {
  position: relative;
  z-index: 1;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-cta:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-verde);
}

.btn-cta:hover::before {
  opacity: 1;
}

.btn-cta:active {
  transform: scale(0.98);
}

.btn-cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Pulse animation for CTA */
.btn-cta:not(:disabled) {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 116, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(0, 212, 116, 0.2);
  }
}

/* ============================================
   FORM FEEDBACK
   ============================================ */
.form-feedback {
  margin-top: 1rem;
  padding: 12px 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(0, 212, 116, 0.15);
  border: 1px solid var(--verde);
  color: var(--verde);
  animation: fadeIn 0.3s ease;
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #F87171;
  animation: shake 0.4s ease;
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(26, 26, 36, 0.3) 50%, var(--bg-primary) 100%);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

/* ============================================
   CARDS (Glassmorphism)
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--verde);
  box-shadow: 0 12px 40px rgba(0, 212, 116, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.card p {
  color: var(--gris-claro);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================
   SOLUTION SECTION
   ============================================ */
.solution-section {
  background: var(--bg-primary);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .solution-grid {
    gap: 3rem;
  }
}

.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.solution-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 116, 0.1);
  border-radius: 12px;
}

.solution-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.solution-content p {
  color: var(--gris-claro);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(26, 26, 36, 0.5) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-base);
}

.testimonial:hover {
  transform: translateY(-4px);
  border-color: var(--dorado);
  box-shadow: 0 8px 30px rgba(229, 184, 0, 0.1);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--bg-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-text {
  color: var(--blanco);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.testimonial-author {
  margin: 0;
  font-size: 0.9rem;
}

.testimonial-author strong {
  color: var(--blanco);
}

.testimonial-author span {
  color: var(--gris-medio);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(180deg, rgba(26, 26, 36, 0.5) 0%, rgba(0, 212, 116, 0.05) 100%);
  text-align: center;
  padding: 100px 20px;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: var(--gris-claro);
  margin-bottom: 2.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--glass-border);
  padding: 60px 20px 40px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  width: 200px;
  height: auto;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-logo:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--gris-claro);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--dorado);
}

.footer-links .divider {
  color: var(--gris-medio);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-links a:hover {
  background: var(--dorado);
  border-color: var(--dorado);
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--gris-medio);
}

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.cards-grid .fade-in:nth-child(1) { transition-delay: 0.1s; }
.cards-grid .fade-in:nth-child(2) { transition-delay: 0.2s; }
.cards-grid .fade-in:nth-child(3) { transition-delay: 0.3s; }

.solution-grid .fade-in:nth-child(1) { transition-delay: 0.1s; }
.solution-grid .fade-in:nth-child(2) { transition-delay: 0.2s; }
.solution-grid .fade-in:nth-child(3) { transition-delay: 0.3s; }

.testimonials-grid .fade-in:nth-child(1) { transition-delay: 0.1s; }
.testimonials-grid .fade-in:nth-child(2) { transition-delay: 0.2s; }
.testimonials-grid .fade-in:nth-child(3) { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
  .hero {
    padding: 80px 20px 40px;
  }

  .logo {
    width: 220px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  section {
    padding: 60px 20px;
  }

  .cta-section {
    padding: 80px 20px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-dorado {
  color: var(--dorado);
}

.text-verde {
  color: var(--verde);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .hero-bg,
  .btn-cta,
  .social-links {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
