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

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

:root {
  --primary: #2a64e9;
  --secondary: #01aa8d;
  --navy: #0c1e44;
  --navy-dark: #0f2c64;
  --text-blue: #1e3a5f;
  --background: #f5f8fc;
}

body {
  font-family: 'Rubik', sans-serif;
  background-color: #ffffff;
  color: var(--navy);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
  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: 90px;
  height: auto;
}

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

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

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

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

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

/* Hero Section */
.hero-section {
  background-image: url('assets/fondo-cuadriculado.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
}

.hero-section .container {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.campaign-badge {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.25;
  text-align: center;
  margin-bottom: 1rem;
}

.hero-description {
  color: var(--text-blue);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-description strong {
  font-weight: 600;
  color: var(--navy);
}

.prize-image {
  text-align: center;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 30px rgba(42, 100, 233, 0.2));
}

.prize-image img {
  max-width: 280px;
  width: 100%;
  height: auto;
}

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

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

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

.hero-desktop {
  display: none;
}

/* Benefits Info Section */
.benefits-info {
  background: linear-gradient(180deg, #ffffff 0%, #e9effb 100%);
  padding: 2rem 0 3rem;
  text-align: center;
}

.benefits-info h2 {
  font-size: 1.5rem;
  color: #4b68a4;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.benefits-info > p {
  font-size: 1rem;
  color: #4b68a4;
  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;
}

.benefits-links span {
  color: #4b68a4;
  font-size: 0.875rem;
}

.benefits-terms {
  font-size: 0.75rem;
  color: #4b68a4;
  opacity: 0.85;
  line-height: 1.6;
  max-width: 56rem;
  margin: 0 auto;
}

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

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

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

.benefits-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.benefits-header p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

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

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: 24px;
  text-align: center;
  border: 1px solid #E8EBF0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

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

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

.benefit-icon svg {
  color: var(--primary);
}

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

.benefit-card p {
  font-size: 1rem;
  color: #64748b;
}

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

.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;
  font-weight: 500;
  color: var(--navy-dark);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.cta-button-wrapper {
  text-align: center;
}

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

.cta-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

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

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

.social-section > div > p {
  font-size: 1.125rem;
  color: white;
  margin-bottom: 2rem;
}

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

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

.instagram-preview iframe {
  width: 100%;
  height: 500px;
  border-radius: 16px;
}

.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: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  min-width: 200px;
  transition: all 0.3s;
}

.social-link:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
}

.social-link svg {
  color: rgb(42, 100, 233);
}

.social-link span {
  color: rgb(42, 100, 233);
  font-weight: 600;
  font-size: 0.875rem;
}

/* 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: 29.78px;
  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;
}

/* Responsive */
@media (max-width: 600px) {
  .header-mi-cuenta {
    display: none;
  }
  
  .header-cta-desktop {
    display: none;
  }
  
  .header-cta-mobile {
    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) {
  .header-logo img {
    width: 115px;
  }
  
  .hero-mobile {
    display: none;
  }
  
  .hero-desktop {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
    max-width: 72rem;
    margin: 0 auto;
  }
  
  .hero-text {
    text-align: left;
  }
  
  .hero-desktop .campaign-badge {
    text-align: left;
  }
  
  .hero-desktop .hero-title {
    font-size: 2.5rem;
    text-align: left;
  }
  
  .hero-desktop .hero-description {
    text-align: left;
  }
  
  .hero-desktop .hero-cta {
    text-align: left;
  }
  
  .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero-image img {
    max-width: 400px;
    width: 100%;
    filter: drop-shadow(0 10px 30px rgba(42, 100, 233, 0.2));
  }
  
  .benefits-info h2 {
    font-size: 1.875rem;
  }
  
  .benefits-info > 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: 2rem;
  }
  
  .cta-button-wrapper {
    text-align: left;
  }
  
  .social-container {
    flex-direction: row;
    justify-content: center;
    max-width: 72rem;
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .cft-text {
    font-size: 2.5rem;
  }
  
  .footer-logos img {
    height: 80px;
  }
}
