/* ==========================================================================
   Tax Capital — Estrategia, Planeación y Defensa Fiscal
   ========================================================================== */

:root {
  --bg: #0a0908;
  --bg-alt: #111009;
  --bg-panel: #161409;
  --bg-card: #17150f;
  --gold: #c9a227;
  --gold-light: #f0d68c;
  --gold-dark: #8a6c1d;
  --gold-soft: rgba(201, 162, 39, 0.16);
  --white: #f6f4ee;
  --silver: #d6d3c8;
  --muted: #a29c8c;
  --border: rgba(201, 162, 39, 0.22);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 4px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--silver);
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", serif;
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold {
  color: var(--gold);
}
.white {
  color: var(--white);
}

section[id] {
  scroll-margin-top: 90px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(
    135deg,
    var(--gold-light),
    var(--gold) 55%,
    var(--gold-dark)
  );
  color: #17150c;
  box-shadow: 0 10px 25px rgba(201, 162, 39, 0.25);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(201, 162, 39, 0.4);
}
.btn--outline {
  border: 1px solid var(--border);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

/* ---------- Icons (inline SVG injected by JS) ---------- */
i[data-icon] {
  display: inline-flex;
  width: 1.6em;
  height: 1.6em;
  vertical-align: -0.14em;
}
i[data-icon] svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  background: #050504;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--muted);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}
.topbar__info {
  display: flex;
  gap: 26px;
}
.topbar__info a,
.topbar__social a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s;
}
.topbar__info a:hover,
.topbar__social a:hover {
  color: var(--gold);
}
.topbar__social {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(10, 9, 8, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__logo {
  height: auto;
  width: 60px;
  object-fit: cover;
  border-radius: 3px;
}
/* .brand__logo { height: 66px; width: 66px; object-fit: cover; border-radius: 3px; } */
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand__tag {
  font-size: 9.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav__list {
  display: flex;
  gap: 38px;
}
.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--silver);
  padding: 8px 0;
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.active {
  color: var(--gold);
}
.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.header__cta {
  flex-shrink: 0;
  margin-left: 200px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 540;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.nav-overlay.open {
  display: block;
  opacity: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 600;
}
.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--gold);
  transition: all 0.3s var(--ease);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  /* min-height: 92vh; */
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.is-active {
  opacity: 1;
}
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.3s ease;
}
.hero__dot.is-active {
  background: var(--gold);
}
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 9, 8, 0.4);
  color: var(--gold);
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}
.hero__arrow:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--gold);
}
.hero__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero__arrow--prev {
  left: 24px;
}
.hero__arrow--next {
  right: 24px;
}
@media (max-width: 768px) {
  .hero__arrow {
    display: none;
  }
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 80% 15%,
      rgba(201, 162, 39, 0.14),
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 40% at 10% 90%,
      rgba(201, 162, 39, 0.08),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(10, 9, 8, 0.88) 0%,
      rgba(13, 12, 9, 0.82) 60%,
      rgba(10, 9, 8, 0.88) 100%
    );
  z-index: 0;
}
.hero__board {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  max-width: 60vw;
  max-height: 60vw;
  background-image:
    linear-gradient(
      45deg,
      rgba(201, 162, 39, 0.05) 25%,
      transparent 25%,
      transparent 75%,
      rgba(201, 162, 39, 0.05) 75%
    ),
    linear-gradient(
      45deg,
      rgba(201, 162, 39, 0.05) 25%,
      transparent 25%,
      transparent 75%,
      rgba(201, 162, 39, 0.05) 75%
    );
  background-size: 80px 80px;
  background-position:
    0 0,
    40px 40px;
  opacity: 0.5;
  mask-image: radial-gradient(circle, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 75%);
  z-index: 0;
}
.hero__contents {
  position: relative;
  z-index: 1;
  display: grid;
  /* max-width: 760px; */
}
.hero__content {
  grid-area: 1 / 1 / -1 / -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.hero__content.is-active {
  opacity: 1;
  pointer-events: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  padding-left: 44px;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}
.eyebrow.center {
  padding-left: 0;
  text-align: center;
  display: block;
}
.eyebrow.center::before {
  display: none;
}

.hero__title {
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero__subtitle {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 1000px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 18px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat__num,
.stat__suffix {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
  display: inline;
}
.stat__label {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 20px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 24px;
  }
}

/* ==========================================================================
   Pillars strip
   ========================================================================== */
.pillars {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar {
  text-align: center;
  padding: 0 12px;
}
.pillar__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  font-size: 24px;
  background: var(--gold-soft);
}
.pillar h3 {
  font-size: 26px;
  margin-bottom: 8px;
}
.pillar p {
  font-size: 17.5px;
  color: var(--muted);
}

/* ==========================================================================
   Ticker de servicios
   ========================================================================== */
.ticker {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 18px 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: ticker-scroll 34s linear infinite;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
.ticker__item {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker__dot {
  color: var(--gold);
  font-size: 10px;
}
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   About / Quiénes Somos
   ========================================================================== */
.about {
  padding: 120px 0;
  background: var(--bg);
}
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  /* align-items: center; */
}
.about__media {
  position: relative;
}
.frame-corner {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 90px;
  height: 90px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  z-index: 2;
}
.about__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.about__badge {
  position: absolute;
  /* bottom: -24px; */
  right: -24px;
  background: linear-gradient(
    135deg,
    var(--gold-light),
    var(--gold) 60%,
    var(--gold-dark)
  );
  color: #17150c;
  padding: 22px 26px;
  border-radius: var(--radius);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  text-align: center;
}
.about__badge-num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}
.about__badge-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2.9rem, 4.4vw, 3.6rem);
  margin-bottom: 22px;
}
.section-title.center {
  text-align: center;
}
.section-lead {
  color: var(--muted);
  font-size: 18.5px;
  max-width: 820px;
}
.section-lead.center {
  margin: 0 auto 56px;
  text-align: center;
}

.about__content p {
  margin-bottom: 18px;
  font-size: 18px;
  color: var(--muted);
}

.about__content p {
  &.eyebrow {
    font-size: 14.5px;
  }
}

.about__values {
  margin: 30px 0 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value i {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 50%;
  margin-top: 3px;
  font-size: 13px;
}
.value h4 {
  font-size: 26px;
  margin-bottom: 4px;
  color: var(--white);
}
.value p {
  font-size: 16.5px;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why {
  background: var(--bg-panel);
  padding: 90px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.why__item {
  border-left: 1px solid var(--border);
  padding-left: 22px;
}
.why__num {
  font-family: "Cormorant Garamond", serif;
  font-size: 50px;
  color: var(--gold);
  font-weight: 700;
}
.why__item h4 {
  margin: 10px 0 8px;
  font-size: 26px;
}
.why__item p {
  font-size: 16.5px;
  color: var(--muted);
}

/* ==========================================================================
   Equipo
   ========================================================================== */
.team {
  padding: 120px 0;
  background: var(--bg);
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team__item {
  text-align: center;
  padding: 0 10px;
}
.team__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  font-size: 22px;
  background: var(--gold-soft);
}
.team__item h4 {
  font-size: 26px;
  margin-bottom: 8px;
}
.team__item p {
  font-size: 16.5px;
  color: var(--muted);
}

/* ==========================================================================
   Perfil de cliente
   ========================================================================== */
.client-profile {
  padding: 120px 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.client-profile__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.client-profile__col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px;
}
.client-profile__col h3 {
  font-size: 26px;
  margin-bottom: 22px;
}
.client-profile__col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 4px;
}
.client-profile__col li {
  font-size: 16.5px;
  color: var(--silver);
  padding-left: 24px;
  position: relative;
}
.client-profile__col--yes {
  border-color: var(--border);
}
.client-profile__col--yes h3 {
  color: var(--gold);
}
.client-profile__col--yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}
.client-profile__col--no li {
  color: var(--muted);
}
.client-profile__col--no li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
}
.client-profile__col--no .btn {
  margin-top: 26px;
}

/* ==========================================================================
   Diagnóstico estratégico
   ========================================================================== */
.diagnostic {
  padding: 120px 0;
  background: var(--bg);
}
.diagnostic__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.diagnostic__content .eyebrow {
  font-size: 14.5px;
}
.diagnostic__content p {
  margin-bottom: 18px;
  font-size: 16.5px;
  color: var(--muted);
}
.diagnostic__panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.diagnostic__panel h4 {
  font-size: 26px;
  margin-bottom: 22px;
}
.diagnostic__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}
.diagnostic__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.diagnostic__list i {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 50%;
  margin-top: 2px;
  font-size: 11px;
}
.diagnostic__list span {
  font-size: 16.5px;
  color: var(--silver);
}
.diagnostic__note {
  font-size: 15.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin: 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  padding: 120px 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq__list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 28px;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--gold);
  font-size: 42px;
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item p {
  font-size: 16.5px;
  color: var(--muted);
  padding-bottom: 24px;
  margin: 0;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  padding: 120px 0;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 42px 34px;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    background 0.35s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: #1b180f;
}
.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 24px;
}
.service-card h3 {
  font-size: 26px;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 16px;
}
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card__list li {
  font-size: 14.5px;
  color: var(--silver);
  padding-left: 18px;
  position: relative;
}
.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #171409, #0f0d08);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: 36px;
  margin-bottom: 8px;
}
.cta-banner p {
  max-width: 800px;
  color: var(--muted);
  font-size: 17.5px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  padding: 120px 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.info-item i {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  font-size: 17px;
}
.info-item h4 {
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--white);
}
.info-item p {
  font-size: 15.5px;
  color: var(--muted);
}
.info-item a:hover {
  color: var(--gold);
}

.contact__social {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.contact__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  transition:
    background 0.25s,
    color 0.25s;
}
.contact__social a:hover {
  background: var(--gold);
  color: #17150c;
}

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea {
  resize: vertical;
}
.form-submit {
  width: 100%;
}
.form-note {
  margin-top: 14px;
  font-size: 16px;
  color: var(--gold);
  text-align: center;
  min-height: 18px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #050504;
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer__brand p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 18px 0 20px;
}
.footer .brand__logo {
  height: auto;
  width: 44px;
}
.footer .brand__name {
  font-size: 20px;
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  transition:
    background 0.25s,
    color 0.25s;
}
.footer__social a:hover {
  background: var(--gold);
  color: #17150c;
}

.footer__col h4 {
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 22px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer__col a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.25s;
}
.footer__col a:hover {
  color: var(--gold);
}
.footer__contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--muted);
}
.footer__contact i {
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__bottom p {
  font-size: 14.5px;
  color: var(--muted);
}
.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  font-size: 14.5px;
  color: var(--muted);
}
.footer__legal a:hover {
  color: var(--gold);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #17150c;
  border-radius: 50%;
  font-size: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s var(--ease);
  z-index: 400;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- WhatsApp floating button ---------- */
/* En escritorio el botón "Consulta Privada" del header cumple la función
   de agendar cita por WhatsApp; el flotante solo se muestra en móvil,
   donde ese botón se oculta (ver breakpoint 860px). */
.whatsapp-float {
  display: none;
  position: absolute;
  top: -20px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 650;
  text-decoration: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.whatsapp-float__label {
  background: rgba(10, 9, 8, 0.92);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 12px 18px 10px;
  border-radius: 30px;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}
.whatsapp-float__icon {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.whatsapp-float__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: whatsappPulse 2.2s infinite;
}
.whatsapp-float:hover .whatsapp-float__icon {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.whatsapp-float i {
  font-size: 44px;
  position: relative;
  top: -2%;
  left: 3%;
}
.whatsapp-float svg {
  fill: currentColor;
  stroke: none;
}
.whatsapp-float-hidden {
  display: none;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .about__media {
    max-width: 420px;
    margin: 0 auto;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__stats {
    grid-template-columns: repeat(2, auto);
    row-gap: 28px;
  }
  .team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .diagnostic__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 860px) {
  .topbar {
    font-size: 11px;
  }
  .header__cta {
    display: none;
  }
  .brand__tag {
    display: none;
  }
  .whatsapp-float {
    display: flex;
    top: -30px;
    right: 66px;
    gap: 8px;
  }
  .whatsapp-float__label {
    font-size: 11.5px;
    padding: 8px 14px;
  }
  .whatsapp-float__icon {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }
  .whatsapp-float i {
    font-size: 38px;
    top: -1%;
    left: 1%;
  }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85%);
    height: 100vh;
    background: #0b0a08;
    border-left: 1px solid var(--border);
    padding: 110px 30px 40px;
    transition: right 0.4s var(--ease);
    z-index: 550;
  }
  .nav.open {
    right: 0;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
  }
  .nav__list {
    flex-direction: column;
    gap: 26px;
  }
  .hamburger {
    display: flex;
  }
  .pillars__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .contact__form {
    padding: 30px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .cta-banner__inner {
    text-align: center;
    justify-content: center;
  }
  .client-profile__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }
  .topbar__info {
    gap: 16px;
  }
  .topbar__info a span {
    display: none;
  }
  .hero {
    padding-top: 120px;
  }
  .pillars__grid {
    grid-template-columns: 1fr;
  }
  .why__grid {
    grid-template-columns: 1fr;
  }
  .services__grid {
    grid-template-columns: 1fr;
  }
  .team__grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .about__badge {
    position: static;
    margin-top: -40px;
    margin-left: 24px;
    display: inline-flex;
    flex-direction: column;
  }
}
