/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 16px 0;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.header__logo { display: flex; align-items: center; }
.header__logo img { height: 40px; width: auto; }
.header__nav { display: flex; gap: 24px; align-items: center; }
.header__nav a { font-size: 0.9rem; font-weight: 500; color: #555; transition: color 0.2s; }
.header__nav a:hover { color: #002590; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ce1126; color: #fff;
  font-weight: 600; font-size: 1rem; font-family: inherit;
  padding: 12px 28px; border-radius: 8px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover { background: #a80d1f; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(206,17,38,0.35); }
.btn:active { transform: translateY(0); }
.btn--small { padding: 8px 20px; font-size: 0.85rem; }
.btn--large { padding: 16px 36px; font-size: 1.1rem; box-shadow: 0 4px 14px rgba(206,17,38,0.3); }
.btn--full { width: 100%; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #002590 0%, #001a6e 50%, #0d1b3e 100%);
  overflow: hidden; padding-top: 80px;
}
.hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(206,17,38,0.15) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
}
/* Cuban flag stripe at top */
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, #002590 0%, #002590 40%, #fff 40%, #fff 60%, #ce1126 60%, #ce1126 100%);
}
.hero__content { position: relative; z-index: 1; text-align: center; color: #fff; padding: 60px 0; }
.hero__badge {
  display: inline-block; background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 8px 20px; border-radius: 40px; margin-bottom: 24px;
}
.hero__title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero__title--accent { color: #ff6b7a; }
.hero__subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); max-width: 600px; margin: 0 auto 40px; opacity: 0.85; line-height: 1.7; }
.hero__counter { margin-bottom: 40px; }
.hero__counter-number {
  display: block; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900;
  background: linear-gradient(90deg, #fff, #ff6b7a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__counter-label { font-size: 0.95rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }

/* ===== ABOUT ===== */
.about { padding: 100px 0; background: #fafbff; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800;
  text-align: center; margin-bottom: 16px; color: #1a1a2e;
}
.section-subtitle { text-align: center; max-width: 680px; margin: 0 auto 60px; color: #555; font-size: 1.1rem; }
.about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.about__card {
  background: #fff; border-radius: 16px; padding: 36px 28px;
  border: 1px solid #eef0f6;
  transition: transform 0.2s, box-shadow 0.2s;
}
.about__card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,37,144,0.08); }
.about__card-icon { color: #002590; margin-bottom: 20px; }
.about__card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.about__card p { color: #666; font-size: 0.95rem; line-height: 1.6; }

/* ===== DIFFERENCE ===== */
.difference { padding: 100px 0; }
.difference__timeline { max-width: 640px; margin: 60px auto 0; position: relative; }
.difference__timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, #002590, #ce1126);
}
.difference__item { display: flex; gap: 28px; margin-bottom: 40px; position: relative; }
.difference__item:last-child { margin-bottom: 0; }
.difference__marker {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: #002590; border: 4px solid #fff;
  box-shadow: 0 0 0 2px #002590; z-index: 1;
}
.difference__item:last-child .difference__marker { background: #ce1126; box-shadow: 0 0 0 2px #ce1126; }
.difference__content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: #1a1a2e; }
.difference__content p { color: #666; font-size: 0.95rem; line-height: 1.6; }

/* ===== SIGNUP ===== */
.signup { padding: 100px 0; background: linear-gradient(135deg, #002590, #001a6e); color: #fff; }
.signup .section-title { color: #fff; text-align: left; }
.signup__wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.signup__info > p { opacity: 0.85; margin-bottom: 24px; font-size: 1.05rem; line-height: 1.7; }
.signup__benefits { display: flex; flex-direction: column; gap: 12px; }
.signup__benefits li {
  padding-left: 28px; position: relative; font-size: 0.95rem; opacity: 0.9;
}
.signup__benefits li::before {
  content: '✓'; position: absolute; left: 0; color: #ff6b7a; font-weight: 700;
}
.signup__form {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; opacity: 0.9; }
.form-group input, .form-group select {
  width: 100%; padding: 14px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06); color: #fff; font-size: 1rem;
  font-family: inherit; transition: border-color 0.2s, background 0.2s;
}
.form-group input::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: #ff6b7a; background: rgba(255,255,255,0.1);
}
.form-group select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.form-group select option { background: #1a1a2e; color: #fff; }
.signup__disclaimer { font-size: 0.8rem; opacity: 0.5; margin-top: 12px; text-align: center; }
.signup__form .btn { margin-top: 8px; }

/* Form success state */
.signup__form.is-success .form-group,
.signup__form.is-success .btn,
.signup__form.is-success .signup__disclaimer { display: none; }
.form-success-message { display: none; text-align: center; padding: 20px 0; }
.signup__form.is-success .form-success-message { display: block; }
.form-success-message h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.form-success-message p { opacity: 0.8; font-size: 1rem; }

/* ===== FAQ ===== */
.faq { padding: 100px 0; background: #fafbff; }
.faq__list { max-width: 720px; margin: 60px auto 0; }
.faq__item {
  background: #fff; border-radius: 12px; margin-bottom: 12px;
  border: 1px solid #eef0f6; overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq__item[open] { box-shadow: 0 4px 20px rgba(0,37,144,0.06); border-color: #002590; }
.faq__question {
  padding: 20px 24px; font-weight: 600; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: '+'; font-size: 1.4rem; color: #002590; font-weight: 300; transition: transform 0.2s; }
.faq__item[open] .faq__question::after { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 20px; }
.faq__answer p { color: #666; font-size: 0.95rem; line-height: 1.7; }

/* ===== FOOTER ===== */
.footer { padding: 60px 0 40px; background: #0d1b3e; color: #fff; }
.footer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.footer__brand p { opacity: 0.5; font-size: 0.85rem; margin-top: 8px; }
.footer__social { display: flex; gap: 16px; }
.footer__social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer__social-link:hover { background: rgba(255,255,255,0.15); color: #fff; transform: translateY(-2px); }
.footer__social-link svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; }
.footer__bottom p { font-size: 0.8rem; opacity: 0.4; text-align: center; }

/* ===== ANIMATIONS ===== */
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Staggered delays */
.about__card:nth-child(2).animate-on-scroll { transition-delay: 0.1s; }
.about__card:nth-child(3).animate-on-scroll { transition-delay: 0.2s; }
.difference__item:nth-child(2).animate-on-scroll { transition-delay: 0.1s; }
.difference__item:nth-child(3).animate-on-scroll { transition-delay: 0.2s; }
.difference__item:nth-child(4).animate-on-scroll { transition-delay: 0.3s; }
.faq__item:nth-child(2).animate-on-scroll { transition-delay: 0.05s; }
.faq__item:nth-child(3).animate-on-scroll { transition-delay: 0.1s; }
.faq__item:nth-child(4).animate-on-scroll { transition-delay: 0.15s; }
.faq__item:nth-child(5).animate-on-scroll { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .signup__wrapper { grid-template-columns: 1fr; gap: 40px; }
  .signup .section-title { text-align: center; }
  .signup__form { padding: 28px 20px; }
  .hero { min-height: auto; padding: 120px 0 80px; }
  .footer__top { flex-direction: column; gap: 24px; text-align: center; }
  .header__nav a:not(.btn) { display: none; }
  .about, .difference, .signup, .faq { padding: 72px 0; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.2rem; }
  .btn--large { padding: 14px 28px; font-size: 1rem; }
  .container { padding: 0 16px; }
}
