:root {
  /* ---------- BRAND SYSTEM ---------- */
  --bg-page: #f9fafb;
  --bg-card: #ffffff;
  --text-main: #111827;
  --text-soft: #6b7280;
  --border-soft: #e5e7eb;

  /* color corporativo principal (ajústalo a tu color de marca) */
  --brand: #1f4aff;

  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --shadow-card: 0 16px 32px rgba(0,0,0,0.03);
  --shadow-cta: 0 24px 48px rgba(0,0,0,0.08);
}

/* ---------- RESET / BASE ---------- */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- LAYOUT WRAPPER ---------- */
.wrapper {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

@media (min-width: 768px) {
  .wrapper {
    padding-top: 3rem;
    padding-bottom: 6rem;
  }
}

/* ---------- HEADER / PORTADA ---------- */
header {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem 2rem 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 250px;
}

.brand-logo {
  width: auto;
  max-width: 220px;
  height: auto;
  border-radius: 0.5rem;
  overflow: hidden;
}

h1 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.subtitle-main {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-soft);
  max-width: 50ch;
  margin: 0;
  line-height: 1.4;
}

.doc-meta {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-soft);
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-soft);
  min-width: 200px;
}

.doc-meta strong {
  color: var(--text-main);
  font-weight: 600;
}

/* ---------- GENERIC SECTION CARD ---------- */
section.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  section.card {
    padding: 2.5rem 2.5rem;
  }
}

/* ---------- SECTION HEADERS ---------- */
.section-head {
  margin-bottom: 1rem;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 0.5rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-soft);
  margin: 0;
  max-width: 60ch;
  line-height: 1.5;
}

/* ---------- FLEX / GRID BLOCKS ---------- */
.flex-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px,100%),1fr));
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px,100%),1fr));
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

/* ---------- SUB-CARDS / TAGS / BULLETS ---------- */
.mini-card {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1rem 1.25rem;
}

.mini-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.mini-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.case-block {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.case-block strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}

/* ---------- CHECKLIST ---------- */
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px,100%),1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.check-item {
  font-size: 0.95rem;
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 0.75rem 1rem;
  line-height: 1.4;
  color: var(--text-main);
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.check-bullet {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 0.375rem;
  background: var(--brand);
  box-shadow: 0 8px 16px rgba(31,74,255,0.4);
}

/* ---------- PRICING / ALCANCE ---------- */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px,100%),1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pricing-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-soft);
  padding: 1.5rem;
}

.pricing-box h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.pricing-box p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.price-tag {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* ---------- NEXT STEPS LIST ---------- */
.next-steps-list {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  counter-reset: steps;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.next-steps-list li {
  counter-increment: steps;
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  display: flex;
  gap: 0.5rem;
}

.next-steps-list li::before {
  content: counter(steps) ".";
  font-weight: 600;
  color: var(--brand);
  min-width: 1.25rem;
  line-height: 1.4;
}

/* ---------- CTA BOX ---------- */
.cta-box {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 2rem;
  font-weight: 500;
  box-shadow: var(--shadow-cta);
  letter-spacing: -0.02em;
}

/* ---------- LEGAL NOTE ---------- */
.legal-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 1rem;
  line-height: 1.4;
}

/* ---------- CONTACT / FOOTER ---------- */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.contact-photo {
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  background: #d1d5db;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
}

.contact-info h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.contact-info p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-soft);
}

footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-soft);
  padding: 2rem 0 4rem;
}

footer .legal {
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.4;
}
