/* SASK - Unique Mexican Fintech Theme */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #5eead4;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Outfit', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* Disclosure */
.disclosure {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: white;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Header */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 26px;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.logo img {
  height: 40px; max-width: 180px; object-fit: contain;
  width: auto;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

.nav a:hover, .nav a.active {
  background: #f0fdfa;
  color: var(--primary);
}

.cta-header {
  background: var(--primary) !important;
  color: white !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

.cta-header:hover { background: var(--primary-dark) !important; color: white !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--dark);
  padding: 4px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0d9488 100%);
  color: white;
  padding: 80px 24px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.webp') center/cover;
  opacity: 0.15;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span { color: var(--primary-light); }

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}

.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); color: var(--dark); }

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

.hero-img {
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
}

/* Sections */
.section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 56px;
  height: 56px;
  background: #f0fdfa;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--dark); }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.feature-img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.feature-content h3 { font-size: 1.6rem; margin-bottom: 16px; color: var(--dark); }
.feature-content ul { list-style: none; }
.feature-content li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text);
}
.feature-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Stats */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 24px;
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-num { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.stat-label { opacity: 0.9; margin-top: 6px; font-size: 0.95rem; }

/* FAQ */
.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q:hover { background: #f8fafc; }

.faq-a {
  padding: 0 20px 18px;
  color: var(--text);
  display: none;
}

.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q span { transform: rotate(45deg); }

/* Footer */
.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 60px 24px 30px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 { color: white; margin-bottom: 16px; font-size: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: #94a3b8; }
.footer a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 48px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-content h1 { margin-bottom: 24px; color: var(--dark); }
.legal-content h2 { margin: 32px 0 12px; color: var(--dark); font-size: 1.3rem; }
.legal-content p, .legal-content li { margin-bottom: 12px; color: var(--text); }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }

/* Contact form */
.form {
  max-width: 560px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--dark); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: center; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 16px; }
  .legal-content, .form { padding: 28px 20px; }
  .hero { padding: 50px 16px 70px; }
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 24px;
  animation: pulse 1.5s ease-in-out infinite;
}

.preloader-text {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: #5eead4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* Attractive enhancements */
.card {
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #0d9488 60%, #14b8a6 100%);
}

.section-title {
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Benefits grid */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.benefit {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.benefit:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
}
.benefit-icon { font-size: 2.2rem; margin-bottom: 12px; }

/* Testimonial style */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.testimonial p { font-style: italic; margin-bottom: 16px; color: var(--text); }
.testimonial .author { font-weight: 600; color: var(--dark); }

/* More visual sections */
.highlight-box {
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0;
  border: 1px solid #99f6e4;
}

/* Cookie popup */
.cookie_overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  color: white;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  padding: 20px;
}

.cookie_overlay_visible {
  transform: translateY(0);
}

.cookie_inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cookie_heading {
  font-size: 1.1rem;
  margin-bottom: 6px;
  width: 100%;
}

.cookie_text {
  font-size: 0.9rem;
  opacity: 0.9;
  flex: 1;
  min-width: 280px;
}

.cookie_buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie_button {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.cookie_accept {
  background: var(--accent);
  color: var(--dark);
}

.cookie_necessary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}

.cookie_settings {
  background: #334155;
  color: white;
}
