/* ===============================
   DjmCode · Alquimia Digital
   Diseño claro, legible y orientado a conversión
================================= */

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #eef5ff;
  --text: #111827;
  --muted: #4b5563;
  --muted-2: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --gold: #d4af37;
  --border: #dbe4f0;
  --shadow: 0 20px 60px rgba(15, 23, 42, .08);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(100% - 40px, 820px);
}

.section {
  padding: 92px 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}

.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219,228,240,.85);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #6d5dfc);
  box-shadow: 0 10px 24px rgba(37,99,235,.25);
}

.brand strong {
  display: block;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  color: #283244;
  font-size: 15px;
  font-weight: 650;
}

.nav-menu a:hover { color: var(--primary); }

.nav-cta {
  padding: 11px 16px;
  background: var(--primary);
  color: white !important;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Hero */
.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 10% 10%, rgba(37,99,235,.12), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(212,175,55,.18), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f6f8fc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 14px;
}

h1, h2, h3 { line-height: 1.08; margin: 0; }

h1 {
  font-size: clamp(44px, 7vw, 82px);
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 24px;
  letter-spacing: -0.025em;
}

.hero-text {
  font-size: 21px;
  color: var(--muted);
  margin: 26px 0 0;
  max-width: 660px;
}

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

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 16px 30px rgba(37,99,235,.22);
}

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

.btn-soft {
  background: white;
  color: var(--primary);
  border-color: var(--border);
}

.trust-row {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-row span {
  display: inline-flex;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  min-height: 500px;
}

.dashboard-card,
.floating-card,
.service-card,
.price-card,
.portfolio-card,
details {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.main-card {
  padding: 28px;
  position: relative;
  z-index: 2;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.pulse {
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(34,197,94,.14);
}

.flow {
  display: grid;
  gap: 12px;
}

.flow div {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg,#f8fbff,#eef5ff);
  border: 1px solid #dbeafe;
  font-weight: 800;
}

.metrics {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metrics div {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.metrics strong {
  font-size: 28px;
  display: block;
}

.metrics small {
  color: var(--muted-2);
  line-height: 1.35;
  display: block;
}

.floating-card {
  position: absolute;
  padding: 18px;
  width: 230px;
  z-index: 3;
}

.floating-card strong { display: block; }
.floating-card span { color: var(--muted); font-size: 14px; }

.floating-card.one { right: 0; top: 36px; }
.floating-card.two { left: 20px; bottom: 30px; }

/* Sections */
.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head p,
.problem p,
.about-copy p,
.included-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
}

.problem {
  background: #fff;
}

.cards-grid,
.pricing-grid,
.portfolio-grid {
  display: grid;
  gap: 22px;
}

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

.service-card,
.price-card,
.portfolio-card {
  padding: 26px;
}

.service-card p,
.price-card p,
.portfolio-card p,
.step p,
details p {
  color: var(--muted);
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 24px;
}

.included {
  background: linear-gradient(180deg, #fff, #f6f8fc);
}

.included-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.included-copy,
.check-list {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
}

.check-list span {
  padding: 14px 14px 14px 38px;
  background: #f8fafc;
  border-radius: 16px;
  position: relative;
  color: #334155;
  font-weight: 700;
}

.check-list span::before {
  content: "✓";
  position: absolute;
  left: 14px;
  color: #16a34a;
}

/* Pricing */
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(37,99,235,.35);
  transform: translateY(-12px);
}

.plan-label {
  color: var(--primary) !important;
  font-weight: 900;
  margin: 0 0 10px;
}

.price {
  color: var(--text) !important;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  margin: 20px 0;
}

.price-card ul {
  padding: 0;
  list-style: none;
  margin: 18px 0 26px;
}

.price-card li {
  color: var(--muted);
  margin-bottom: 8px;
}

.price-card li::before {
  content: "✓ ";
  color: #16a34a;
  font-weight: 900;
}

.price-card .btn { margin-top: auto; }

/* Process */
.timeline {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 16px;
}

.step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 18px;
}

/* Portfolio */
.portfolio {
  background: #fff;
}

.portfolio-grid {
  grid-template-columns: repeat(3,1fr);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  padding: 7px 10px;
  background: var(--surface-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 54px;
  align-items: center;
}

.avatar {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #6d5dfc);
  color: white;
  font-size: 54px;
  font-weight: 900;
  box-shadow: var(--shadow);
  margin: auto;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 880px;
}

details {
  padding: 22px 24px;
}

summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--text);
}

/* Contact */
.contact {
  background:
    radial-gradient(circle at 80% 10%, rgba(37,99,235,.13), transparent 30%),
    #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 44px;
}

.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  gap: 16px;
}

label {
  color: var(--text);
  font-weight: 800;
  display: grid;
  gap: 8px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #cfd8e6;
  background: #fff;
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(37,99,235,.16);
  border-color: var(--primary);
}

.form-note {
  color: var(--muted-2);
  font-size: 14px;
  margin: 0;
}

.footer {
  background: #0f172a;
  color: white;
  padding: 30px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer p {
  margin: 0;
  color: #dbe4f0;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .included-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .pricing-grid,
  .portfolio-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-panel { min-height: 430px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .section { padding: 68px 0; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow);
  }

  .nav-menu.open { display: flex; }

  .nav-menu a {
    padding: 10px 4px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-grid {
    gap: 40px;
  }

  h1 { font-size: clamp(42px, 12vw, 58px); }

  .hero-text {
    font-size: 18px;
  }

  .cards-grid,
  .pricing-grid,
  .portfolio-grid,
  .timeline,
  .check-list {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: static;
    width: auto;
    margin-top: 14px;
  }

  .hero-panel {
    min-height: auto;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}
