* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0b0b0b;
  color: #f3efe6;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

/* ---------- Selector ---------- */

.demo-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  background: #0b0b0b;
  color: #f3efe6;
  border-bottom: 1px solid #262626;
}

.demo-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 14px;
  white-space: nowrap;
}
.demo-brand span { color: #d23a2a; }

.demo-tag {
  font-size: 11px;
  color: #a8a29a;
  white-space: nowrap;
}

.demo-switch {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.demo-switch::-webkit-scrollbar { display: none; }

.demo-switch button {
  border: 0;
  background: #1a1a1a;
  color: #a8a29a;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.demo-switch button:hover { color: #f3efe6; }
.demo-switch button[aria-pressed="true"] { background: #f3efe6; color: #0b0b0b; }
.demo-switch button:focus-visible { outline: 2px solid #d23a2a; outline-offset: 2px; }

.demo-hint {
  font-size: 11px;
  color: #6f6a63;
  white-space: nowrap;
}

.site {
  padding-top: 56px;
  min-height: 100dvh;
  animation: site-in 260ms ease-out both;
}

@keyframes site-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= AUTORIDAD ================= */

.site--authority {
  --a-ink: #0b0b0b;
  --a-paper: #f3efe6;
  --a-gold: #c9a227;
  --a-soft: #a8a29a;
  background: var(--a-ink);
  color: var(--a-paper);
  font-family: "DM Sans", sans-serif;
}

.a-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px 48px;
}

.a-mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.a-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 13px;
  color: var(--a-soft);
}
.a-links a { text-decoration: none; }
.a-links a:hover { color: var(--a-paper); }

.a-nav-cta {
  font-size: 13px;
  text-decoration: none;
  color: var(--a-gold);
  border-bottom: 1px solid var(--a-gold);
  padding-bottom: 2px;
}

.a-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100dvh - 56px - 74px);
}

.a-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px 64px 48px;
}

.a-hero h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(48px, 6.6vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 13ch;
}

.a-sub {
  margin: 28px 0 0;
  max-width: 40ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--a-soft);
}

.a-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.a-button {
  display: inline-block;
  border: 0;
  background: var(--a-gold);
  color: #0b0b0b;
  padding: 15px 22px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.a-button:hover { background: #b08d1f; }
.a-button:focus-visible { outline: 2px solid var(--a-paper); outline-offset: 3px; }

.a-textlink {
  font-size: 13px;
  color: var(--a-paper);
  text-decoration: none;
  border-bottom: 1px solid #4a4a4a;
  padding-bottom: 2px;
}
.a-textlink:hover { border-color: var(--a-paper); }

.a-facts {
  display: flex;
  gap: 44px;
  margin: 56px 0 0;
  padding: 0;
}
.a-facts div { max-width: 150px; }
.a-facts dt {
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  line-height: 1;
}
.a-facts dd {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--a-soft);
}

.a-portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #111;
}
.a-portrait::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 38%;
  background: var(--a-gold);
  transform: translate(-30%, 30%);
  z-index: 0;
}
.a-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  animation: portrait-in 900ms ease-out both;
}
@keyframes portrait-in {
  from { transform: scale(1.04); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}
.a-portrait figcaption {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  font-size: 10px;
  color: rgba(243, 239, 230, 0.6);
}

.a-method {
  padding: 120px 48px;
}
.a-method h2 {
  margin: 0;
  max-width: 18ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.a-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}
.a-list h3 {
  margin: 0 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
}
.a-list p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--a-soft);
}

.a-principle {
  background: var(--a-gold);
  color: #0b0b0b;
  padding: 120px 48px;
}
.a-quote {
  margin: 0;
  max-width: 20ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.a-quote-note {
  margin: 24px 0 0;
  font-size: 12px;
  color: rgba(11, 11, 11, 0.65);
}

.a-close {
  padding: 120px 48px 140px;
}
.a-close h2 {
  margin: 0;
  max-width: 16ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.a-close p {
  margin: 20px 0 32px;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--a-soft);
}

.a-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 48px 40px;
  font-size: 11px;
  color: var(--a-soft);
}

/* ================= PRODUCTO ================= */

.site--product {
  --p-bg: #05070a;
  --p-panel: #0c1118;
  --p-line: #1c2534;
  --p-ink: #e8eef5;
  --p-soft: #8b97a6;
  --p-lime: #c8f751;
  background: var(--p-bg);
  color: var(--p-ink);
  font-family: "Space Grotesk", sans-serif;
}

.p-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px 40px;
}
.p-mark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.p-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 13px;
  color: var(--p-soft);
}
.p-links a { text-decoration: none; }
.p-links a:hover { color: var(--p-ink); }
.p-nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--p-lime);
  text-decoration: none;
  border-bottom: 1px solid var(--p-lime);
  padding-bottom: 2px;
}

.p-hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 56px;
  align-items: center;
  padding: 72px 40px 96px;
}

.p-kicker {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--p-lime);
}

.p-hero h1 {
  margin: 0;
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 11ch;
}

.p-sub {
  margin: 26px 0 0;
  max-width: 42ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--p-soft);
}

.p-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.p-button {
  display: inline-block;
  border: 0;
  background: var(--p-lime);
  color: #05070a;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.p-button:hover { background: #b4e03f; }
.p-button:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 3px; }

.p-ghost {
  display: inline-block;
  border: 1px solid var(--p-line);
  background: transparent;
  color: var(--p-ink);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.p-ghost:hover { border-color: var(--p-soft); }
.p-ghost:focus-visible { outline: 2px solid var(--p-lime); outline-offset: 3px; }

.p-panel {
  background: var(--p-panel);
  border: 1px solid var(--p-line);
  padding: 20px;
}

.p-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.p-label {
  display: block;
  font-size: 12px;
  color: var(--p-soft);
  margin-bottom: 6px;
}
.p-amount {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.p-delta {
  font-size: 12px;
  font-weight: 700;
  color: var(--p-lime);
  background: rgba(200, 247, 81, 0.1);
  padding: 5px 8px;
}

.p-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 132px;
  margin: 22px 0 18px;
}
.p-chart span {
  flex: 1;
  height: var(--h);
  background: var(--p-lime);
  opacity: 0.85;
  transform-origin: bottom;
  animation: bar-in 600ms ease-out both;
}
.p-chart span:nth-child(1) { animation-delay: 40ms; }
.p-chart span:nth-child(2) { animation-delay: 70ms; }
.p-chart span:nth-child(3) { animation-delay: 100ms; }
.p-chart span:nth-child(4) { animation-delay: 130ms; }
.p-chart span:nth-child(5) { animation-delay: 160ms; }
.p-chart span:nth-child(6) { animation-delay: 190ms; }
.p-chart span:nth-child(7) { animation-delay: 220ms; }
.p-chart span:nth-child(8) { animation-delay: 250ms; }
.p-chart span:nth-child(9) { animation-delay: 280ms; }
.p-chart span:nth-child(10) { animation-delay: 310ms; }
.p-chart span:nth-child(11) { animation-delay: 340ms; }
.p-chart span:nth-child(12) { animation-delay: 370ms; }
@keyframes bar-in {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.p-table { border-top: 1px solid var(--p-line); }
.p-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--p-line);
  font-size: 13px;
}
.p-row-head {
  color: var(--p-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.p-ok { color: var(--p-lime); }
.p-wait { color: #d7a64a; }
.p-panel-note {
  margin: 14px 0 0;
  font-size: 10px;
  color: var(--p-soft);
}

.p-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 80px 40px 96px;
}
.p-features h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.p-features p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--p-soft);
}

.p-pricing {
  padding: 96px 40px 120px;
  border-top: 1px solid var(--p-line);
}
.p-pricing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.p-pricing h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 14ch;
}
.p-pricing-head p {
  margin: 0;
  max-width: 34ch;
  font-size: 14px;
  color: var(--p-soft);
}
.p-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.p-plan {
  background: var(--p-panel);
  border: 1px solid var(--p-line);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.p-plan-featured { background: var(--p-lime); color: #05070a; border-color: var(--p-lime); }
.p-plan h3 { margin: 0; font-size: 15px; letter-spacing: 0.04em; }
.p-price {
  margin: 14px 0 18px;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.p-price span { font-size: 13px; font-weight: 500; opacity: 0.65; }
.p-plan ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 13px;
  line-height: 2;
  color: var(--p-soft);
}
.p-plan-featured ul { color: rgba(5, 7, 10, 0.7); }
.p-plan button { margin-top: auto; }
.p-plan-featured .p-button { background: #05070a; color: var(--p-lime); }

.p-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 40px 40px;
  font-size: 11px;
  color: var(--p-soft);
  border-top: 1px solid var(--p-line);
}

/* ================= CITAS ================= */

.site--care {
  --c-bg: #f6ede3;
  --c-ink: #1e3a2f;
  --c-terra: #c96a4a;
  --c-sand: #e8d9c8;
  --c-soft: #6f7a70;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: "DM Sans", sans-serif;
}

.c-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px 40px;
}
.c-mark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.c-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 13px;
  color: var(--c-soft);
}
.c-links a { text-decoration: none; }
.c-links a:hover { color: var(--c-ink); }
.c-nav-cta {
  background: var(--c-ink);
  color: #f6ede3;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
}

.c-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas: "copy photo" "form photo";
  gap: 24px 40px;
  align-items: start;
  padding: 56px 40px 96px;
}

.c-hero-copy { grid-area: copy; }
.c-book { grid-area: form; }
.c-photo { grid-area: photo; }

.c-hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(40px, 4.8vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.c-sub {
  margin: 24px 0 0;
  max-width: 42ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-soft);
}

.c-book {
  background: #fffaf4;
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(30, 58, 47, 0.12);
  margin-top: 32px;
  max-width: 440px;
}
.c-book-title {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
}
.c-book fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
.c-book legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--c-soft);
}
.c-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.c-chip {
  border: 1px solid var(--c-sand);
  background: transparent;
  color: var(--c-ink);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}
.c-chip:hover { border-color: var(--c-ink); }
.c-chip.is-active { background: var(--c-ink); color: #f6ede3; border-color: var(--c-ink); }
.c-chip:focus-visible { outline: 2px solid var(--c-terra); outline-offset: 2px; }

.c-summary {
  margin: 18px 0 14px;
  font-size: 14px;
  font-weight: 600;
}
.c-button {
  width: 100%;
  border: 0;
  background: var(--c-ink);
  color: #f6ede3;
  padding: 15px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.c-button:hover { background: #162c24; }
.c-button:focus-visible { outline: 2px solid var(--c-terra); outline-offset: 3px; }
.c-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--c-soft);
  text-align: center;
}

.c-photo {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  height: 100%;
  min-height: 560px;
}
.c-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.c-photo figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.c-steps {
  padding: 96px 40px;
  background: var(--c-sand);
}
.c-steps h2 {
  margin: 0 0 40px;
  font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: -0.03em;
  font-weight: 500;
}
.c-step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.c-step-list h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}
.c-step-list p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-soft);
}

.c-space {
  background: var(--c-terra);
  color: #fff7ee;
  padding: 140px 40px;
}
.c-statement {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.c-space-note {
  margin: 24px 0 0;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 247, 238, 0.8);
}

.c-services {
  padding: 96px 40px 120px;
}
.c-services h2 {
  margin: 0 0 28px;
  font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: -0.03em;
  font-weight: 500;
}
.c-services ul {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  max-width: 640px;
}
.c-services li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(30, 58, 47, 0.15);
  font-size: 17px;
}
.c-services b { font-weight: 700; }
.c-services .c-button { width: auto; min-width: 240px; }

.c-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 40px 40px;
  font-size: 11px;
  color: var(--c-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .demo-hint { display: none; }
  .a-hero,
  .p-hero,
  .c-hero {
    grid-template-columns: 1fr;
  }
  .c-hero { grid-template-areas: "copy" "form" "photo"; }
  .a-hero-copy { padding: 56px 24px 24px; }
  .a-portrait { height: 62vw; min-height: 380px; }
  .a-nav, .a-method, .a-close, .a-footer { padding-left: 24px; padding-right: 24px; }
  .a-principle { padding: 96px 24px; }
  .a-list { grid-template-columns: 1fr; gap: 32px; }
  .a-facts { gap: 24px; flex-wrap: wrap; }

  .p-nav, .p-hero, .p-features, .p-pricing, .p-footer { padding-left: 24px; padding-right: 24px; }
  .p-features, .p-plans { grid-template-columns: 1fr; gap: 28px; }
  .p-pricing-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .p-panel { padding: 16px; }

  .c-nav, .c-hero, .c-steps, .c-space, .c-services, .c-footer { padding-left: 24px; padding-right: 24px; }
  .c-photo { height: 64vw; min-height: 340px; }
  .c-hero h1 { font-size: clamp(34px, 7.6vw, 56px); max-width: none; }
  .c-step-list { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .demo-bar { gap: 10px; padding: 0 12px; }
  .demo-tag { display: none; }
  .demo-brand { font-size: 13px; }
  .demo-switch { margin-left: 0; }
  .demo-switch button { padding: 8px 10px; font-size: 11px; }
  .a-links, .p-links, .c-links { display: none; }
  .a-facts dt { font-size: 24px; }
  .a-hero h1, .p-hero h1, .c-hero h1 { font-size: clamp(40px, 11vw, 64px); }
  .p-amount { font-size: 28px; }
  .c-book { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site, .a-portrait img, .p-chart span { animation: none; }
}
