/* Grupo X — Soluciones Contables */

:root {
  --color-bg: #f8f7f4;
  --color-surface: #ffffff;
  --color-ink: #0f172a;
  --color-muted: #475569;
  --color-border: rgba(15, 23, 42, 0.08);
  --color-accent: #b8860b;
  --color-accent-soft: rgba(184, 134, 11, 0.12);
  --color-deep: #0c1929;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius-lg: 1rem;
  --radius-xl: 1.35rem;
  --shadow-soft: 0 18px 50px rgba(12, 25, 41, 0.08);
  --shadow-card: 0 4px 24px rgba(12, 25, 41, 0.06);
  --header-h: 6rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.shell {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-deep);
  color: #fff;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 244, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo-wrap {
  width: clamp(4rem, 10vw, 5.5rem);
  height: clamp(4rem, 10vw, 5.5rem);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-lines {
  width: 20px;
  height: 2px;
  background: var(--color-ink);
  box-shadow: 0 -6px 0 var(--color-ink), 0 6px 0 var(--color-ink);
}

.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-ink);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-cta {
  border: 1px solid var(--color-border) !important;
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-ink) !important;
}

.nav-cta:hover {
  border-color: var(--color-accent) !important;
  color: var(--color-deep) !important;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 320px;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.25rem;
    gap: 0;
  }

  .site-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      145deg,
      var(--color-deep) 0%,
      #132a45 48%,
      #1a3a5c 100%
    );
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 50% at 70% 20%,
      rgba(184, 134, 11, 0.15),
      transparent 55%
    ),
    radial-gradient(
      circle at 10% 80%,
      rgba(255, 255, 255, 0.06),
      transparent 40%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-bg {
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
  }
}

.hero-copy {
  color: #e8edf4;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(232, 237, 244, 0.75);
  margin: 0 0 1rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  line-height: 1.1;
}

.hero-slug {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: #f0d78c;
}

.hero-slogan {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  color: #fff;
  margin: 0 0 1.25rem;
  max-width: 28ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: rgba(232, 237, 244, 0.88);
  max-width: 52ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-spotlight {
  margin: 1.35rem 0 0;
  max-width: 38ch;
}

.hero-spotlight-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1rem 0.65rem 0.65rem;
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(240, 215, 140, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-spotlight-link:hover,
.hero-spotlight-link:focus-visible {
  background: rgba(201, 162, 39, 0.32);
  border-color: rgba(240, 215, 140, 0.75);
  transform: translateY(-1px);
}

.hero-spotlight-link:focus-visible {
  outline: 2px solid #f0d78c;
  outline-offset: 3px;
}

.hero-spotlight-label {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-deep);
  background: linear-gradient(135deg, #e8c96a, #d4a84b);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn:focus-visible {
  outline: 2px solid #f0d78c;
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, #d4a84b, #b8860b);
  color: var(--color-deep);
  box-shadow: 0 8px 28px rgba(184, 134, 11, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(184, 134, 11, 0.45);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.hero-panel {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.hero-stat {
  text-align: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-deep);
  line-height: 1.1;
  margin: 0.35rem 0;
}

.hero-stat-hint {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.hero-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-ink);
  line-height: 1.5;
}

/* Ribbon */
.ribbon {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
  padding: 1rem 0;
}

.ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted);
}

.ribbon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* Bloque destacado — servicios internacionales */
.section-highlight {
  position: relative;
  margin: 0;
  padding: clamp(2.75rem, 7vw, 4.75rem) 0;
  background: linear-gradient(
    145deg,
    #0a1524 0%,
    #132a45 45%,
    #0f2844 100%
  );
  color: #e8edf4;
  border-block: 4px solid #c9a227;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.section-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 90% 70% at 85% 20%,
      rgba(201, 162, 39, 0.18),
      transparent 55%
    ),
    radial-gradient(circle at 5% 90%, rgba(255, 255, 255, 0.05), transparent 40%);
  pointer-events: none;
}

.highlight-inner {
  position: relative;
  z-index: 1;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0d78c;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.4);
}

.highlight-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0d78c;
  box-shadow: 0 0 12px rgba(240, 215, 140, 0.9);
}

.highlight-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 1.75rem;
  max-width: 22ch;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

@media (max-width: 900px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }
}

.highlight-copy p {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2.1vw, 1.08rem);
  line-height: 1.7;
  color: rgba(232, 237, 244, 0.92);
}

.highlight-copy p:last-child {
  margin-bottom: 0;
}

.highlight-copy strong {
  color: #fff;
  font-weight: 700;
}

.highlight-callout {
  margin: 0;
  padding: clamp(1.35rem, 3vw, 1.75rem);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.highlight-callout-text {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: #fff;
}

.highlight-cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.section-tint {
  background: linear-gradient(180deg, #f0ebe3 0%, var(--color-bg) 100%);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  color: var(--color-deep);
}

.section-sub {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--color-ink);
}

.prose-wide {
  max-width: 72ch;
}

.callout {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.callout h2 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--color-deep);
}

.callout p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card-elevated {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.card-elevated h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: var(--color-deep);
}

.card-elevated p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.values-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.value-card:hover {
  border-color: rgba(184, 134, 11, 0.35);
  box-shadow: var(--shadow-card);
}

.value-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--color-deep);
}

.value-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* Services */
.services {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.service-card header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.service-num {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin: 0;
  color: var(--color-deep);
  line-height: 1.3;
}

.service-card > p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.service-card ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.service-card li {
  margin-bottom: 0.35rem;
}

/* Contacto */
.section-contact {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, #f0ebe3 50%, var(--color-bg) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--color-deep);
  letter-spacing: -0.01em;
}

.contact-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-deep);
  text-decoration: none;
  word-break: break-word;
  border-bottom: 2px solid var(--color-accent-soft);
  transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.contact-phone-line {
  margin: 0 0 0.35rem;
}

.contact-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.contact-address {
  margin: 0 0 0.75rem;
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.contact-map-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent);
  text-decoration: none;
}

.contact-map-link:hover,
.contact-map-link:focus-visible {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.btn-outline {
  background: var(--color-surface);
  color: var(--color-deep);
  border-color: rgba(15, 23, 42, 0.2);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  background: var(--color-surface);
  transform: translateY(-1px);
}

.btn-outline:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Footer */
.site-footer {
  background: var(--color-deep);
  color: rgba(232, 237, 244, 0.75);
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.footer-tag {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f0d78c;
}

.footer-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(232, 237, 244, 0.9);
  margin: 0.5rem 0 1rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(232, 237, 244, 0.45);
}
