/* ---------- Reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --accent: oklch(0.62 0.19 300);
  --accent-soft: oklch(0.62 0.19 300 / 0.1);
  --bg: oklch(0.98 0.006 60);
  --bg-alt: oklch(0.95 0.01 60);
  --ink: #1a1a1a;
  --ink-soft: #5b5b5b;
  --ink-faint: #8a8a8a;
  --border: #e5e5e5;
  --border-soft: #d8d8d8;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1160px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 8px 20px oklch(0.62 0.19 300 / 0.35); }

.btn-secondary {
  border: 1px solid var(--border-soft);
  color: var(--ink);
  background: transparent;
}
.btn-secondary:hover { background: #fff; }

.btn-header { padding: 10px 20px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 60px;
  position: relative;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-faint);
}
.main-nav a { color: inherit; transition: color 0.15s ease; }
.main-nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 60px 70px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  margin: 20px auto 0;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

.hero-steps {
  margin: 18px auto 0;
  max-width: 480px;
  color: #4a4a4a;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-steps strong { color: var(--accent); }

.hero-question {
  margin: 18px auto 0;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* ---------- Portfolio carousel ---------- */
.portfolio {
  padding: 20px 60px 70px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.carousel-wrap { position: relative; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.carousel-arrow:hover { opacity: 1; }
.carousel-arrow-left { left: 4px; }
.carousel-arrow-right { right: 4px; }
.carousel-arrow[disabled] { opacity: 0.2; cursor: default; }

.carousel-track {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: 250px;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  scroll-snap-align: start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
  border-radius: 12px;
}

.portfolio-placeholder {
  width: 100%;
  aspect-ratio: 1.4;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), oklch(0.62 0.19 260));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.portfolio-name { font-size: 14px; font-weight: 600; padding: 0 4px; }
.portfolio-desc { font-size: 11px; color: var(--ink-faint); padding: 0 4px 4px; }

.portfolio-next {
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px dashed var(--border-soft);
  box-shadow: none;
  color: #a8a8a8;
}
.portfolio-next:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; transform: none; }
.portfolio-next i { font-size: 20px; }
.portfolio-next span { font-size: 11px; text-align: center; }

.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.carousel-dots:empty { display: none; }
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-soft);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.dot.is-active { background: var(--accent); transform: scale(1.3); }

/* ---------- Proceso ---------- */
.proceso {
  padding: 70px 60px;
  background: var(--bg-alt);
  display: flex;
  justify-content: center;
}

.proceso-inner { max-width: 640px; }

.section-title-left { text-align: left; }

.proceso-steps {
  color: #3a3a3a;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proceso-extra { margin-top: 24px; }
.proceso-extra-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: center;
}
.proceso-extra-title i { color: var(--accent); }
.proceso-extra p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.6;
}

/* ---------- Pricing ---------- */
.pricing { padding: 70px 60px; }

.pricing-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}

.price-card {
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08); }

.price-card-featured { border: 2px solid var(--accent); }

.price-strike {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
  text-decoration-line: line-through;
}
.price-strike-hidden { visibility: hidden; }

.price-amount { font-size: 32px; font-weight: 700; }
.price-amount span { font-size: 15px; color: var(--ink-faint); font-weight: 500; }
.price-amount-text { font-size: 18px; font-weight: 600; color: var(--accent); }

.price-desc { font-size: 13px; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }

.price-card-body { flex: 1; }

.price-card .btn { margin-top: 18px; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 20px 60px 70px; }

.testimonials-track {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
}

.testimonial-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 320px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
}

.stars { color: var(--accent); font-size: 14px; margin-bottom: 10px; }

.testimonial-quote { font-size: 14px; color: #3a3a3a; line-height: 1.6; margin: 0; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name { font-size: 13px; font-weight: 600; }
.author-role { font-size: 11px; color: var(--ink-faint); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-title { font-size: 13px; font-weight: 600; }
.footer-title-brand { font-family: var(--font-display); font-size: 16px; }

.social-icons {
  display: flex;
  gap: 14px;
  font-size: 18px;
  margin-top: 8px;
  color: var(--ink-soft);
}
.social-icons a { transition: color 0.15s ease; }
.social-icons a:hover { color: var(--accent); }

.footer-nav {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.footer-nav a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header { padding: 18px 24px; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .site-header.is-open .main-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .btn-header { display: none; }

  .hero { padding: 56px 24px 50px; }
  .hero-title { font-size: 36px; }

  .portfolio, .proceso, .pricing, .testimonials { padding-left: 24px; padding-right: 24px; }

  .carousel-track { grid-auto-columns: 44vw; gap: 12px; }

  .pricing-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 24px 8px;
    margin: 0 -24px;
  }
  .price-card { flex: 0 0 78vw; min-width: 0; max-width: 320px; scroll-snap-align: start; }

  .testimonials-track { justify-content: flex-start; }
  .testimonial-card { width: 85vw; max-width: 320px; scroll-snap-align: start; }

  .site-footer { padding: 32px 24px; flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .carousel-track { grid-auto-columns: 46vw; }
  .testimonial-card { width: 85vw; max-width: 100%; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 340px;
  width: calc(100% - 40px);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.cookie-text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cookie-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  background: var(--bg-alt);
  border-radius: 12px;
}
.cookie-settings-panel[hidden] { display: none; }

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.cookie-toggle input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.cookie-save {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.cookie-save:hover { text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 10px;
}

.btn-sm { padding: 10px 18px; font-size: 13px; flex: 1; }

.cookie-link {
  display: block;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-faint);
  text-align: center;
}
.cookie-link:hover { color: var(--accent); }

@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
}
