/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables de diseño basadas en Tailwind config */
:root {
  --background: hsl(0, 0%, 98%);
  --foreground: hsl(221, 47%, 11%);
  --card: hsl(0, 0%, 100%);
  --primary: #2a64e9;
  --primary-hover: #1e4ec4;
  --secondary: #01aa8d;
  --navy: #0c1e44;
  --navy-dark: #0f2c64;
  --muted: hsl(210, 40%, 96%);
  --muted-foreground: hsl(215, 16%, 47%);
  --border: hsl(214, 32%, 91%);
  --blue-text: #4b68a4;
  --shadow-soft: 0 4px 24px rgba(42, 100, 233, 0.08);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body {
  font-family: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Importar Google Font Rubik */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

/* Container */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  max-width: 80rem;
}

/* Header */
.header {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.header-logo img {
  width: 115px;
  height: 32px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-mi-cuenta {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.3s;
}

.header-mi-cuenta:hover {
  opacity: 0.8;
}

.header-cta-desktop {
  padding: 0.625rem 1.5rem;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(42, 100, 233, 0.25);
}

.header-cta-desktop:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 12px rgba(42, 100, 233, 0.3);
}

.header-cta-mobile {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fcfdfe 0%, #ffffff 100%);
}

.sparkles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

.sparkle-1 { top: 15%; left: 10%; width: 8px; height: 8px; background-color: #fef08a; animation-delay: 0s; }
.sparkle-2 { top: 25%; right: 15%; width: 8px; height: 8px; background-color: #fef3c7; animation-delay: 0.3s; filter: blur(2px); }
.sparkle-3 { top: 60%; left: 20%; width: 6px; height: 6px; background-color: #fde047; animation-delay: 0.6s; }
.sparkle-4 { top: 40%; right: 25%; width: 8px; height: 8px; background-color: #fef08a; animation-delay: 0.4s; filter: blur(2px); }
.sparkle-5 { bottom: 20%; right: 10%; width: 8px; height: 8px; background-color: #fef3c7; animation-delay: 0.3s; }
.sparkle-6 { top: 70%; left: 30%; width: 6px; height: 6px; background-color: #fde047; animation-delay: 0.6s; filter: blur(2px); }
.sparkle-7 { top: 35%; left: 15%; width: 6px; height: 6px; background-color: #fef08a; animation-delay: 0.4s; }
.sparkle-8 { bottom: 30%; right: 20%; width: 8px; height: 8px; background-color: #fef3c7; animation-delay: 0s; filter: blur(2px); }

.hero-content {
  padding: 3rem 0 5rem;
  position: relative;
  z-index: 10;
}

.special-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-title {
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.hero-title-bold {
  font-weight: 500;
}

.hero-title-normal {
  font-weight: 400;
}

.premio-card {
  border-radius: 28px;
  overflow: hidden;
  background-color: var(--primary);
  box-shadow: 0 20px 60px rgba(42, 100, 233, 0.15), 0 8px 24px rgba(42, 100, 233, 0.08);
  max-width: 900px;
  margin: 2rem auto;
}

.premio-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-description {
  font-size: 1rem;
  color: var(--blue-text);
  text-align: center;
  margin: 1.5rem 0;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(42, 100, 233, 0.25);
}

.cta-button:hover {
  opacity: 0.9;
  box-shadow: 0 6px 12px rgba(42, 100, 233, 0.3);
}

/* Benefits intro section */
.benefits-intro {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 3rem;
  background: linear-gradient(180deg, #ffffff 0%, #e9effb 100%);
}

.benefits-intro-content {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}

.benefits-intro h2 {
  font-size: 1.5rem;
  color: var(--blue-text);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.benefits-intro p {
  font-size: 1rem;
  color: var(--blue-text);
  margin-bottom: 1.5rem;
}

.benefits-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.benefits-links a {
  color: var(--primary);
  font-size: 0.875rem;
  text-decoration: underline;
  transition: color 0.3s;
}

.benefits-links a:hover {
  opacity: 0.8;
}

.benefits-terms {
  font-size: 0.75rem;
  color: var(--blue-text);
  opacity: 0.85;
  line-height: 1.6;
  font-weight: 300;
}

.benefits-terms a {
  color: var(--primary);
  text-decoration: underline;
}

.benefits-terms a:hover {
  opacity: 0.7;
}

/* Benefits Section */
.benefits-section {
  padding: 4rem 0 5rem;
  background-color: var(--background);
}

.benefits-header {
  text-align: center;
  margin-bottom: 3rem;
}

.benefits-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.benefits-header p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

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

.benefit-card {
  padding: 2rem;
  border-radius: 24px;
  background-color: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all 0.5s;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(42, 100, 233, 0.15);
  border-color: rgba(42, 100, 233, 0.3);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: rgba(42, 100, 233, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: background-color 0.3s;
}

.benefit-card:hover .benefit-icon {
  background-color: rgba(42, 100, 233, 0.2);
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.benefit-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.benefit-card p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* CTA Section */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 6rem;
  background: linear-gradient(135deg, #e9effb 0%, #ffffff 50%, #e9effb 100%);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--navy-dark);
  font-weight: 500;
  margin-bottom: 2rem;
}

.cta-image-wrapper {
  position: relative;
  padding: 1rem;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0fb 0%, #f5f8fd 100%);
  box-shadow: 0 4px 20px rgba(43, 100, 233, 0.1);
}

.cta-image-wrapper img {
  border-radius: 16px;
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
  display: block;
}

/* Social Media Section */
.social-section {
  padding: 3rem 0 4rem;
  background-color: var(--navy-dark);
}

.social-content {
  text-align: center;
  max-width: 72rem;
  margin: 0 auto;
}

.social-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

.social-content > p {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 2rem;
}

.social-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.instagram-preview {
  width: 100%;
  max-width: 400px;
}

.instagram-preview iframe {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: all 0.3s;
  min-width: 200px;
}

.social-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: rgba(42, 100, 233, 0.3);
}

.social-link svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.social-link span {
  font-weight: 600;
  color: var(--navy);
}

/* Footer */
.footer {
  padding: 4rem 0;
  background-color: white;
  color: var(--navy-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo img {
  width: 115px;
  height: 32px;
  margin-bottom: 1rem;
  transition: opacity 0.3s;
}

.footer-logo img:hover {
  opacity: 0.8;
}

.footer-link {
  color: var(--navy-dark);
  text-decoration: none;
  transition: opacity 0.3s;
  display: block;
}

.footer-link:hover {
  opacity: 0.7;
}

.footer-heading {
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  color: var(--navy-dark);
  transition: opacity 0.3s;
}

.footer-social a:hover {
  opacity: 0.7;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-dark);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s;
}

.footer-contact:hover {
  opacity: 0.7;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--navy-dark);
  opacity: 0.2;
  margin: 2rem 0;
}

.footer-legal {
  margin-bottom: 2rem;
}

.footer-legal p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: 1rem;
}

.footer-legal .cft-text {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.footer-logos img {
  height: 64px;
}

.footer-copyright {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 44, 100, 0.2);
  text-align: center;
}

.footer-copyright p {
  font-size: 0.875rem;
  color: var(--navy-dark);
  opacity: 0.7;
}

/* Animaciones */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s, transform 1s;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s, transform 1s;
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s, transform 1s;
}

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

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s, transform 1s;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Responsive - Mobile first approach */
@media (max-width: 600px) {
  .header-mi-cuenta {
    display: none;
  }

  .header-cta-desktop {
    display: none;
  }

  .header-cta-mobile {
    display: inline-block;
  }

  .premio-card {
    box-shadow: 0 12px 40px rgba(42, 100, 233, 0.12), 0 4px 16px rgba(42, 100, 233, 0.06);
  }
}

@media (min-width: 601px) {
  .header-cta-mobile {
    display: none;
  }

  .header-cta-desktop {
    display: inline-block;
  }
}

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }

  .header-content {
    padding: 1.5rem 0;
  }

  .hero-content {
    padding: 5rem 0;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .benefits-intro h2 {
    font-size: 1.875rem;
  }

  .benefits-intro p {
    font-size: 1.125rem;
  }

  .benefits-header h2 {
    font-size: 2.5rem;
  }

  .benefits-header p {
    font-size: 1.5rem;
  }

  .cta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .cta-content {
    text-align: left;
  }

  .cta-content h2 {
    font-size: 3rem;
  }

  .social-container {
    flex-direction: row;
  }

  .social-content h2 {
    font-size: 2.5rem;
  }

  .social-content > p {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-legal .cft-text {
    font-size: 2.5rem;
  }

  .footer-logos img {
    height: 80px;
  }

  /* Desktop layout for hero */
  .hero-desktop {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
    max-width: 72rem;
    margin: 0 auto;
  }

  .hero-desktop .hero-text-content {
    text-align: left;
  }

  .hero-desktop .special-badge {
    justify-content: flex-start;
  }

  .hero-desktop .premio-card {
    max-width: 450px;
    margin-left: auto;
  }

  .hero-mobile {
    display: none;
  }
}

@media (max-width: 1023px) {
  .hero-desktop {
    display: none;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .cta-content h2 {
    font-size: 3.75rem;
  }
}
