/* ═══════════════════════════════════════════════════════════
   TRIVELIN ASESORES SL · Corporate stylesheet
   Institutional · Georgia serif + DM Sans
   Palette: cream #faf8f3 · graphite #2a2a2a · purple #602080
   ═══════════════════════════════════════════════════════════ */

:root {
  --graphite:    #2a2a2a;
  --graphite-2:  #1f1f1f;
  --purple:      #602080;
  --purple-dim:  rgba(96, 32, 128, 0.08);

  --cream:       #faf8f3;
  --off-white:   #f5f4ef;
  --light:       #eaebe5;
  --mid:         #c8c9c2;
  --text:        #1f2330;
  --text-muted:  #6b7280;
  --text-subtle: #9ca3af;

  --max-width:   960px;
  --max-narrow:  720px;
  --radius-sm:   4px;

  --serif:       Georgia, 'Times New Roman', serif;
  --sans:        'DM Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: var(--max-narrow); }

.section { padding: 80px 0; }
.section-divider { border-top: 1px solid var(--light); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--graphite);
}
h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.15;
  margin-bottom: 28px;
}
h1 em {
  font-style: italic;
  color: var(--purple);
}
h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  margin-bottom: 20px;
}
h3 {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 10px;
  font-weight: 400;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 20px;
}

p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: var(--text);
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  background: var(--cream);
  border-bottom: 1px solid var(--light);
  padding: 20px 0;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo { display: block; }
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-lang {
  display: flex;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav-lang a {
  color: var(--text-muted);
  padding: 4px 8px;
  transition: color 0.15s, border-color 0.15s;
}
.nav-lang a:hover { color: var(--graphite); }
.nav-lang a.active {
  color: var(--graphite);
  font-weight: 500;
  border-bottom: 1px solid var(--purple);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
}
.hero .container {
  max-width: var(--max-narrow);
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light);
  display: inline-block;
  padding-right: 60px;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Activities ────────────────────────────────────────────── */
.activities {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.activity {
  padding: 32px 0;
  border-top: 1px solid var(--light);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
}
.activity:last-child { border-bottom: 1px solid var(--light); }
.activity-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 500;
  padding-top: 4px;
}
.activity-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--graphite);
  margin-bottom: 10px;
}
.activity-body p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-details {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--light);
}
.contact-details:last-of-type { border-bottom: 1px solid var(--light); }
.contact-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 500;
  padding-top: 4px;
}
.contact-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.contact-value a {
  color: var(--graphite);
  border-bottom: 1px solid var(--mid);
  transition: border-color 0.15s;
}
.contact-value a:hover { border-bottom-color: var(--purple); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--graphite);
  color: var(--cream);
  padding: 60px 0 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.footer-logo { margin-bottom: 32px; }
.footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 248, 243, 0.1);
  margin-bottom: 24px;
}
.footer-about {
  font-size: 13px;
  color: rgba(250, 248, 243, 0.55);
  line-height: 1.7;
  max-width: 360px;
}
.footer-col-title {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b88dd1;
  font-weight: 500;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(250, 248, 243, 0.7);
  padding: 5px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(250, 248, 243, 0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: rgba(250, 248, 243, 0.55);
  border-bottom: 1px solid rgba(250, 248, 243, 0.15);
  transition: color 0.15s, border-color 0.15s;
}
.footer-bottom a:hover {
  color: var(--cream);
  border-bottom-color: rgba(250, 248, 243, 0.5);
}
.footer-lang {
  display: flex;
  gap: 8px;
}
.footer-lang a {
  color: rgba(250, 248, 243, 0.5);
  transition: color 0.15s;
  border: none;
}
.footer-lang a:hover { color: var(--cream); }

/* ── Legal pages ──────────────────────────────────────────── */
.legal-page {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 60px 32px 100px;
}
.legal-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}
.legal-page .legal-date {
  color: var(--text-subtle);
  font-size: 13px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light);
}
.legal-page h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--graphite);
}
.legal-page h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--graphite);
}
.legal-page p {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}
.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal-page ul li {
  padding: 3px 0;
  line-height: 1.7;
  font-size: 15px;
  color: var(--text);
}
.legal-page a {
  color: var(--purple);
  border-bottom: 1px solid var(--purple-dim);
  transition: border-color 0.15s;
}
.legal-page a:hover { border-bottom-color: var(--purple); }
.legal-page strong { color: var(--graphite); font-weight: 500; }
.legal-page .legal-back {
  display: inline-block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
  border-bottom: none;
}
.legal-page .legal-back:hover {
  color: var(--purple);
  border-bottom: none;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 700px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .hero { padding: 70px 0 60px; }
  .activity,
  .contact-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .activity-label,
  .contact-label { font-size: 10px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-inner { padding: 0 20px; }
  .nav-logo img { height: 36px; }
  .legal-page { padding: 40px 20px 80px; }
}
