/* AutoBlack landing — oscuro refinado, acentos oro / azul / rojo (marca) */
:root {
  --bg-deep: #050508;
  --bg-elevated: #0f0f12;
  --text: #e8e6e3;
  --text-muted: #9a9690;
  --gold: #d4af37;
  --gold-dim: #9a7b2c;
  --accent-blue: #1e5a8a;
  --accent-red: #c41e3a;
  --outline: rgba(255, 255, 255, 0.08);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 14px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(212, 175, 55, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(30, 90, 138, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 100%, rgba(196, 30, 58, 0.06), transparent 45%);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: #000;
  z-index: 100;
  border-radius: 8px;
}

.wrap {
  width: min(640px, 92vw);
  margin-inline: auto;
}

/* —— Landing —— */
.landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem 3rem;
  text-align: center;
}

.logo-wrap {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-wrap img {
  display: block;
  width: min(340px, 88vw);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  animation: rise 0.85s 0.08s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 36ch;
  font-size: 1rem;
  animation: rise 0.85s 0.14s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.lang-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--outline);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  animation: rise 0.85s 0.18s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.lang-toggle button {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang-toggle button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.08));
  color: var(--gold);
}

.lang-toggle button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.card {
  width: min(520px, 100%);
  text-align: left;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.75rem);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  animation: rise 0.9s 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.35),
    transparent 40%,
    transparent 60%,
    rgba(30, 90, 138, 0.2)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card h2,
.card-title-split {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.card-title-split span[data-lang-block] {
  display: none;
}

.card-title-split span[data-lang-block].is-active {
  display: inline;
}

.card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.card li {
  margin-bottom: 0.45rem;
}

.card li:last-child {
  margin-bottom: 0;
}

.card > div[data-lang-block]:not(.is-active) {
  display: none;
}

.card > div[data-lang-block].is-active {
  display: block;
}

.card-title-split [data-lang-block]:not(.is-active) {
  display: none;
}

.card-title-split [data-lang-block].is-active {
  display: inline;
}

.hero-lead[data-lang-block]:not(.is-active) {
  display: none;
}

.hero-lead[data-lang-block].is-active {
  display: block;
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid var(--outline);
  background: rgba(0, 0, 0, 0.35);
}

.footer-inner {
  width: min(720px, 94vw);
  margin-inline: auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-dim);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-meta span {
  opacity: 0.6;
  margin: 0 0.35rem;
}

/* —— Legal pages shared —— */
.page-legal .legal-header {
  padding: 1rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--outline);
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
}

.page-legal .legal-logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.page-legal .legal-logo img {
  display: block;
  width: min(260px, 72vw);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  transition: opacity 0.2s, transform 0.2s;
}

.page-legal .legal-logo:hover img {
  opacity: 0.92;
  transform: scale(1.02);
}

.page-legal .legal-logo:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 4px;
}

.page-legal .legal-main {
  width: min(720px, 92vw);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-legal .legal-footer {
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--outline);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-legal .legal-footer a {
  color: var(--gold);
}
