/* Contable Expertise — V1
   Paleta: carbón #090B0D, oro #F2C230, marfil #F5F3ED
   El oro es acento, no fondo dominante.
*/

:root {
  --ink: #090b0d;
  --ink-soft: #111418;
  --ivory: #f5f3ed;
  --ivory-deep: #ece8dc;
  --gold: #f2c230;
  --gold-deep: #c99a14;
  --muted: #6f6b64;
  --muted-dark: #b8b3a8;
  --line: rgba(245, 243, 237, 0.12);
  --line-ink: rgba(9, 11, 13, 0.1);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --header: 4.25rem;
  --wrap: 72rem;
  --radius: 1.15rem;
  --ease: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--gold);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

.dev-banner {
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.dev-banner code {
  font-size: 0.82em;
}

.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 28rem);
  background: var(--ivory);
  color: var(--ink);
  padding: 0.9rem 1rem;
  border-radius: 0.7rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.92rem;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 11, 13, 0.94);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(calc(100% - 1.5rem), var(--wrap));
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 3.15rem;
  height: 3.15rem;
  flex: 0 0 auto;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.brand-sub {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.nav-desktop {
  display: none;
  margin-left: auto;
  gap: 1.15rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--muted-dark);
  font-size: 0.92rem;
}

.nav-desktop a:hover {
  color: var(--ivory);
}

.header-cta {
  display: inline-flex;
  margin-left: auto;
  min-height: 2.55rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.68rem;
}

.cta-long {
  display: none;
}

.menu-toggle {
  margin-left: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.32rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.1rem;
  height: 1.5px;
  background: var(--ivory);
  display: block;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 45;
}

.nav-mobile {
  position: fixed;
  z-index: 55;
  top: var(--header);
  right: 0;
  width: min(100%, 22rem);
  height: calc(100dvh - var(--header));
  background: var(--ink-soft);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: auto;
}

.nav-mobile[hidden],
.menu-backdrop[hidden] {
  display: none !important;
}

.nav-mobile a {
  text-decoration: none;
  color: var(--ivory);
  font-size: 1.15rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

.nav-mobile .btn {
  margin-top: 1rem;
  justify-content: center;
  color: var(--ink);
}

body.is-menu-open {
  overflow: hidden;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.15rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background var(--ease), color var(--ease), transform var(--ease);
  text-align: center;
  line-height: 1.3;
  white-space: normal;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: #f6d15a;
}

.btn-lg {
  min-height: 3.25rem;
  padding-inline: 1.35rem;
  width: 100%;
  max-width: 28rem;
}

/* Hero */

.hero {
  position: relative;
  padding: 2.4rem 0 3.5rem;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(242, 194, 48, 0.12), transparent 46%),
    linear-gradient(180deg, #090b0d 0%, #0e1114 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 243, 237, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 237, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 70% 40%, black, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.35rem, 8vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-line {
  display: block;
}

.hero-line em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.hero-lead {
  margin: 1.2rem 0 1.5rem;
  color: var(--muted-dark);
  max-width: 38rem;
  font-size: 1.05rem;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.trust-list li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--muted-dark);
  font-size: 0.95rem;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.28rem;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.hero-visual {
  display: none;
  color: rgba(245, 243, 237, 0.28);
}

.globe {
  width: min(100%, 26rem);
  margin-inline: auto;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-ivory,
.section-ivory-deep {
  background: var(--ivory);
  color: var(--ink);
}

.section-ivory-deep {
  background: var(--ivory-deep);
}

.section-ink {
  background: var(--ink);
  color: var(--ivory);
}

.section-ink-soft {
  background: var(--ink-soft);
  color: var(--ivory);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.section-head h2,
.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0;
}

.section-intro {
  color: var(--muted);
  margin: 0.9rem 0 0;
}

.section-ivory .eyebrow,
.section-ivory-deep .eyebrow,
.card-kicker,
.step-num,
.faq summary::after {
  color: #8a6408;
}

.section-ink .section-intro,
.section-ink-soft .section-intro {
  color: var(--muted-dark);
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: #fffdf8;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.3rem;
}

.card-kicker {
  margin: 0 0 0.7rem;
  color: #8a6408;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

h1, h2, h3 {
  overflow-wrap: break-word;
}

.card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
}

.card p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.text-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.12rem;
}

.text-link:hover {
  color: var(--gold-deep);
}

/* Differentiator */

.differentiator {
  position: relative;
  overflow: hidden;
}

.differentiator::before {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -8rem;
  top: -8rem;
  border: 1px solid rgba(242, 194, 48, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.differentiator h2 {
  max-width: 14ch;
}

.diff-list {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 2rem;
  display: grid;
  gap: 0.9rem;
}

.diff-list li {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
  padding-left: 1.6rem;
  position: relative;
}

.diff-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.65rem;
  height: 0.32rem;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.diff-close {
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted-dark);
}

.diff-close em {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
  margin-top: 0.3rem;
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  counter-reset: none;
}

.steps li {
  padding: 0 0 1.2rem 0;
  border-top: 1px solid var(--line-ink);
  padding-top: 1.2rem;
}

.step-num {
  display: block;
  color: var(--gold-deep);
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Pillars */

.pillars {
  display: grid;
  gap: 1.4rem;
}

.pillars h3 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.pillars p {
  margin: 0;
  color: var(--muted-dark);
}

/* About */

.about {
  display: grid;
  gap: 2rem;
}

.about p {
  color: var(--muted);
}

.about-meta {
  color: var(--ink) !important;
  font-weight: 500;
}

.profile-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

/* TODO: sustituir el interior de .profile-frame por fotografía o recurso de marca.
   Placeholder temporal (CE). No es el logotipo. Conservar proporción 4/5. */
.profile-frame {
  width: 100%;
  max-width: 18rem;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-ink);
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, #faf7ef, #efe8d6);
}

.profile-frame span {
  font-family: var(--serif);
  font-size: 3.4rem;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
}

.profile-note {
  margin: 0;
  font-size: 0.9rem;
}

/* FAQ */

.faq-wrap {
  max-width: 48rem;
}

.faq details {
  border-bottom: 1px solid var(--line-ink);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 500;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: #8a6408;
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

/* Final CTA */

.cta-final {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(242, 194, 48, 0.1), transparent 48%),
    var(--ink);
}

.cta-final h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.cta-final p {
  color: var(--muted-dark);
  max-width: 34rem;
  margin: 1rem auto 1.5rem;
}

.cta-final .btn {
  margin-inline: auto;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted-dark);
}

/* Footer */

.footer {
  background: #07090b;
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.8rem;
}

.footer nav,
.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer a {
  text-decoration: none;
  color: var(--muted-dark);
}

.footer a:hover {
  color: var(--ivory);
}

.footer-tag,
.footer-loc,
.footer-email {
  color: var(--muted-dark);
  margin: 0.65rem 0 0;
}

.brand-footer {
  margin-bottom: 0.3rem;
}

.footer-wa {
  color: var(--gold) !important;
  margin-top: 0.4rem;
}

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

/* Reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Breakpoints */

@media (max-width: 379px) {
  .brand-text {
    display: none;
  }
}

@media (min-width: 640px) {
  .trust-list {
    grid-template-columns: 1fr;
  }

  .btn-lg {
    width: auto;
  }

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

  .hero-visual {
    display: block;
  }
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }

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

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (min-width: 430px) {
  .cta-short {
    display: none;
  }

  .cta-long {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .header-cta {
    min-height: 2.6rem;
    font-size: 0.7rem;
    padding: 0.8rem 1.15rem;
    margin-left: 0.75rem;
  }

  .menu-toggle,
  .nav-mobile,
  .menu-backdrop {
    display: none !important;
  }

  .hero {
    padding: 4.5rem 0 5.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .about {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
    gap: 4rem;
  }

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

  .diff-list {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
