/* ============================================================
   Oscar Cunto André — Sitio Personal
   Paleta ejecutiva institucional · Estilo bufete top
   ============================================================ */

:root {
  --navy: #0a1f44;
  --navy-deep: #061632;
  --gold: #b8a164;
  --gold-soft: #d4be8b;
  --cream: #fafaf7;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #777777;
  --line: #e5e2da;
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 31, 68, 0.12);
  --radius: 4px;
  --radius-lg: 8px;
  --container: 1180px;
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

/* ============================================================
   Header
   ============================================================ */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.site-nav { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  font-size: 0.93rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 2px;
  position: relative;
}

.nav-list a:hover, .nav-list a.active {
  color: var(--navy);
}

.nav-list a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
}

.nav-list a.cta {
  background: var(--navy);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: var(--radius);
}

.nav-list a.cta:hover {
  background: var(--navy-deep);
  color: var(--paper);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-deep);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--paper);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1rem;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 161, 100, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

.hero h1 {
  margin-bottom: 24px;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-credentials {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-credentials li {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.hero-credentials strong {
  color: var(--navy);
  font-weight: 600;
}

.hero-portrait {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-frame {
  width: 360px;
  height: 460px;
  position: relative;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--gold-soft);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  letter-spacing: 0.05em;
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

/* Intro section */
.intro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 48px;
}

.intro-text h2 {
  margin-bottom: 24px;
  max-width: 600px;
}

.intro-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.intro-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: sticky;
  top: 100px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

/* Areas section */
.section-areas {
  background: var(--paper);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.area-card {
  padding: 36px 32px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.area-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}

.area-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
}

.area-card p {
  font-size: 0.95rem;
  margin: 0;
}

.centered-cta {
  text-align: center;
  margin-top: 32px;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding-left: 40px;
  padding-bottom: 40px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.timeline-meta {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* CTA section */
.section-cta {
  background: var(--navy);
  border-top: 0;
}

.cta-banner {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 48px;
  align-items: center;
}

.cta-banner h2 {
  color: var(--paper);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 1.05rem;
  max-width: 540px;
}

.section-cta .btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.section-cta .btn-primary:hover {
  background: var(--gold-soft);
  color: var(--navy);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}

.site-footer h4 {
  color: var(--paper);
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.93rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.footer-brand .brand-mark {
  background: var(--gold);
  color: var(--navy);
  margin-bottom: 16px;
}

.footer-name {
  font-family: var(--serif);
  color: var(--paper);
  font-size: 1.1rem;
  margin: 8px 0 4px;
}

.footer-tag {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 240px;
  margin: 0;
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact p { margin: 0 0 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .hero-grid,
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-portrait { order: -1; }
  .portrait-frame { width: 280px; height: 360px; }
  .portrait-placeholder { font-size: 3rem; }

  .intro-stats { position: static; }

  .cta-banner { grid-template-columns: 1fr; text-align: center; }
  .cta-banner p { margin-left: auto; margin-right: auto; }

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

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-list.open { display: flex; }

  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-list li:last-child a { border: 0; }
  .nav-list a.cta {
    margin-top: 8px;
    text-align: center;
  }

  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  body { font-size: 16px; }
}

/* ============================================================
   Page hero — secundarias
   ============================================================ */

.page-hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 20px;
  max-width: 800px;
}

.page-hero .lede {
  max-width: 720px;
  margin-bottom: 0;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Trayectoria — Timeline detallado
   ============================================================ */

.timeline-detailed {
  margin-top: 32px;
}

.timeline-detailed h3 {
  font-size: 1.35rem;
}

.experience-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.exp-item {
  padding: 40px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.exp-item h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.exp-firm {
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin: 0 0 20px;
}

.exp-bullets {
  margin: 16px 0 0;
  padding: 0 0 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
}

.exp-bullets li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.text-large {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 760px;
}

/* ============================================================
   Áreas detalladas
   ============================================================ */

.areas-detailed {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 32px;
}

.area-detail {
  padding: 48px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
}

.area-detail h2 {
  margin-bottom: 16px;
}

.area-detail > p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 780px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
  line-height: 1.6;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 1px;
  background: var(--gold);
}

.detail-list li strong {
  color: var(--navy);
  font-weight: 600;
}

/* ============================================================
   Contacto
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--paper);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

.form-field label span {
  color: var(--gold);
  margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--paper);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--sans);
}

.checkbox-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-field input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  accent-color: var(--navy);
}

.checkbox-field label {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

.contact-info {
  background: var(--paper);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.contact-block {
  margin: 0 0 16px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.contact-block strong {
  display: block;
  color: var(--navy);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-disclaimer {
  background: var(--cream);
  border-left: 3px solid var(--gold);
}

.contact-disclaimer p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   Empty state, press list, legal article
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 40px 0;
}

.empty-state h2 {
  margin-bottom: 20px;
}

.press-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.press-item {
  padding: 36px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: all 0.25s ease;
}

.press-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}

.press-item h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.legal-article h2 {
  font-size: 1.4rem;
  margin: 40px 0 12px;
}

.legal-article h2:first-of-type {
  margin-top: 0;
}

.legal-article p {
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-update {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ============================================================
   Header con scroll
   ============================================================ */

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Responsive — clases nuevas
   ============================================================ */

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-sidebar { position: static; }

  .form-row { grid-template-columns: 1fr; }

  .area-detail { padding: 32px 28px; }
  .contact-form-wrap { padding: 32px 24px; }

  .exp-item { padding: 28px; }
  .exp-bullets { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page-hero { padding: 48px 0; }
}

/* ============================================================
   Utility — Accesibilidad
   ============================================================ */

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

.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;
}

/* ============================================================
   VISUAL UPGRADE · 2026-06 — imágenes, logo, iconos, polish
   ============================================================ */

/* --- Logo / marca (SVG monograma) --- */
.brand-mark {
  width: 42px;
  height: 42px;
  background: none;       /* el SVG aporta el fondo */
  border-radius: 0;
  padding: 0;
  overflow: visible;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.footer-brand .brand-mark { background: none; margin-bottom: 18px; }

/* --- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Hero: retrato real --- */
.hero { padding: 96px 0 96px; }
.portrait-frame {
  width: 340px;
  height: 416px;
  background: var(--navy-deep);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}
.portrait-badge {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(6, 22, 50, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(184, 161, 100, 0.5);
  border-radius: 100px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  white-space: nowrap;
}
.portrait-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* --- Trust bar (reconocimientos) --- */
.trustbar {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trustbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 40px;
  padding: 26px 24px;
}
.trustbar span {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--navy);
  opacity: 0.72;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.trustbar span + span { position: relative; }
.trustbar span + span::before {
  content: "·";
  position: absolute;
  left: -22px;
  color: var(--gold);
  opacity: 0.7;
}

/* --- Figura con marco editorial (reutilizable) --- */
.media-figure { margin: 0; position: relative; }
.media-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}
.media-figure.framed::after {
  content: "";
  position: absolute;
  top: 16px; left: 16px; right: -16px; bottom: -16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.media-figure figcaption {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* --- Intro: texto + imagen --- */
.intro-grid.has-media {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

/* --- Banda de estadísticas horizontal --- */
.stats-band { background: var(--navy); border-top: 0; padding: 56px 0; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stats-row .stat { align-items: center; }
.stats-row .stat-number { color: var(--gold-soft); font-size: 3rem; }
.stats-row .stat-label { color: rgba(255,255,255,0.7); max-width: 220px; }
.stats-row .stat + .stat { border-left: 1px solid rgba(255,255,255,0.12); }

/* --- Iconos en area cards --- */
.area-card { position: relative; padding-top: 32px; }
.area-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  transition: all .3s ease;
}
.area-icon svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 1.5; }
.area-card:hover .area-icon { background: var(--navy); border-color: var(--navy); }
.area-card:hover .area-icon svg { stroke: var(--gold-soft); }

/* --- Formación: imagen + timeline --- */
.credentials-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}
.credentials-grid .timeline { margin-top: 0; }
.credentials-media { position: sticky; top: 110px; }

/* --- CTA con imagen de fondo --- */
.section-cta {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}
.section-cta .cta-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
  z-index: 0;
}
.section-cta::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--navy-deep) 30%, rgba(6,22,50,0.6) 100%);
  z-index: 1;
}
.section-cta .cta-banner { position: relative; z-index: 2; }

/* --- Page hero con imagen (páginas interiores) --- */
.page-hero--image {
  position: relative;
  background: var(--navy-deep);
  border-bottom: 0;
  padding: 96px 0 80px;
  overflow: hidden;
}
.page-hero--image .ph-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  z-index: 0;
}
.page-hero--image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--navy-deep) 35%, rgba(6,22,50,0.55) 100%);
  z-index: 1;
}
.page-hero--image .container { position: relative; z-index: 2; }
.page-hero--image .eyebrow,
.page-hero--image .section-eyebrow { color: var(--gold-soft); }
.page-hero--image h1 { color: #fff; }
.page-hero--image .lede { color: rgba(255,255,255,0.82); }

/* --- Byline / avatar --- */
.byline {
  display: flex; align-items: center; gap: 16px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.byline img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-soft);
}
.byline-name { font-family: var(--serif); color: var(--navy); font-weight: 600; }
.byline-role { font-size: 0.82rem; color: var(--ink-muted); }

/* --- Responsive del upgrade --- */
@media (max-width: 960px) {
  .intro-grid.has-media { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; gap: 40px; }
  .credentials-media { position: static; order: -1; max-width: 480px; }
  .media-figure.framed::after { right: 0; bottom: -12px; left: 12px; top: 12px; }
}
@media (max-width: 720px) {
  .stats-row { grid-template-columns: 1fr; gap: 28px; }
  .stats-row .stat + .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 28px; }
  .portrait-frame { width: 280px; height: 344px; }
  .trustbar-inner { gap: 10px 30px; }
  .trustbar span { font-size: 0.9rem; }
  .trustbar span + span::before { left: -17px; }
}
