/* Fuentes alojadas en el propio dominio (sin llamadas a terceros) */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/playfair-display-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --cream: #f5eee2;
  --cream-2: #ece2d1;
  --paper: #fbf7f0;
  --black: #141112;
  --black-2: #1e1a1b;
  --ink: #1b1617;
  --muted: #5d5254;
  --line: #dccfb9;
  --burgundy: #7a1c2e;
  --burgundy-dark: #5a1220;
  --burgundy-soft: #a3485a;
  --on-dark: #f5eee2;
  --on-dark-muted: #c9bcab;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--burgundy); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

/* Palabras destacadas: burdeos en negrita */
.hl { color: var(--burgundy); font-weight: 700; }
.dark .hl { color: #e3a3ae; }
h1 em, h2 em { font-style: italic; font-weight: 600; color: var(--burgundy); }
.dark h2 em { color: #e3a3ae; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .76rem; font-weight: 600; color: var(--burgundy);
  margin-bottom: 1.2em;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.dark .eyebrow { color: #e3a3ae; }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 36em; }

/* Botones */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  letter-spacing: .02em;
  padding: .95em 1.6em; border-radius: var(--radius);
  background: var(--burgundy); color: var(--cream); border: 1px solid var(--burgundy);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer; font-family: var(--sans);
}
.btn:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.dark .btn-ghost { color: var(--on-dark); border-color: var(--on-dark); }
.dark .btn-ghost:hover { background: var(--on-dark); color: var(--black); }
.btn-small { padding: .55em 1.1em; font-size: .88rem; }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 2px solid var(--burgundy-soft); outline-offset: 3px; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 238, 226, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--burgundy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; }
.brand-role { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); font-weight: 600; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--burgundy); }

/* Hero */
.hero { padding: 80px 0 96px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 64px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-photo { position: relative; margin: 0; }
.hero-photo::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 2px solid var(--burgundy); border-radius: var(--radius);
}
.hero-photo picture, .hero-photo img { position: relative; border-radius: var(--radius); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(20, 17, 18, .55); }
.hero-photo figcaption {
  position: absolute; left: -20px; bottom: 32px;
  background: var(--black); color: var(--on-dark);
  padding: 14px 20px; border-left: 4px solid var(--burgundy);
  font-size: .85rem; line-height: 1.35; max-width: 240px;
}
.hero-photo figcaption strong { display: block; font-family: var(--serif); font-size: 1.05rem; }

/* Banda negra */
.dark { background: var(--black); color: var(--on-dark); }
.band { padding: 34px 0; border-top: 4px solid var(--burgundy); }
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.pillars div { display: flex; flex-direction: column; padding-left: 16px; border-left: 1px solid rgba(245, 238, 226, .2); }
.pillars strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.pillars span { color: var(--on-dark-muted); font-size: .88rem; }

/* Secciones */
.section { padding: 104px 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.dark .section-head p { color: var(--on-dark-muted); }

/* Servicios */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card {
  padding: 40px 40px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper); position: relative; transition: background .25s ease;
}
.card:hover { background: #fff; }
.card-num { font-family: var(--serif); font-style: italic; color: var(--burgundy); font-size: 1rem; display: block; margin-bottom: 14px; }
.card p { color: var(--muted); }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { padding: 6px 0 6px 22px; position: relative; font-size: .96rem; }
.card li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 1px; background: var(--burgundy); }

/* IA */
.ia-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.ia-grid p { color: var(--on-dark-muted); }
.ia-list { list-style: none; margin: 0; padding: 0; counter-reset: ia; }
.ia-list li {
  counter-increment: ia; display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px;
  padding: 22px 0; border-bottom: 1px solid rgba(245, 238, 226, .15);
}
.ia-list li:first-child { border-top: 1px solid rgba(245, 238, 226, .15); }
.ia-list li::before { content: counter(ia, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: #e3a3ae; font-size: 1.2rem; grid-row: span 2; }
.ia-list strong { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.ia-list span { color: var(--on-dark-muted); font-size: .95rem; }

/* Trayectoria */
.career-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--burgundy); }
.timeline li { position: relative; padding: 0 0 36px 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px;
  background: var(--cream); border: 2px solid var(--burgundy); border-radius: 50%;
}
.timeline li.current::before { background: var(--burgundy); }
.tl-date { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); font-weight: 600; }
.timeline h3 { margin: 4px 0 6px; }
.timeline p { color: var(--muted); margin: 0; }

.achievements { display: grid; gap: 16px; }
.achievement { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--burgundy); padding: 22px 26px; }
.achievement strong { font-family: var(--serif); font-size: 1.12rem; display: block; margin-bottom: 4px; }
.achievement p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Certificaciones */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert { border: 1px solid var(--line); background: var(--paper); padding: 22px 24px; }
.cert-issuer { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); font-weight: 600; }
.cert h3 { font-size: 1.08rem; margin: 6px 0 0; }

/* Método */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.step-num { display: block; font-family: var(--serif); font-style: italic; color: var(--burgundy); font-size: 2rem; line-height: 1; margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: .97rem; }

/* Sobre mí */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: center; }
.about-photo { position: relative; margin: 0; }
.about-photo::after {
  content: ""; position: absolute; inset: -18px 18px 18px -18px;
  background: var(--burgundy); z-index: 0; border-radius: var(--radius);
}
.about-photo picture, .about-photo img { position: relative; z-index: 1; border-radius: var(--radius); }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about p { color: var(--muted); max-width: 40em; }
.tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--ink); border-radius: 999px; padding: .3em 1em; font-size: .86rem; }

/* Cita */
.quote { padding: 96px 0; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 880px; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; }
.quote cite { display: block; margin-top: 20px; font-family: var(--sans); font-style: normal; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: #e3a3ae; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.contact-grid p { color: var(--on-dark-muted); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { border-bottom: 1px solid rgba(245, 238, 226, .15); }
.contact-list li:first-child { border-top: 1px solid rgba(245, 238, 226, .15); }
.contact-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; color: var(--on-dark); text-decoration: none; transition: color .2s ease, padding .2s ease;
}
.contact-list a:hover { color: #e3a3ae; padding-left: 12px; }
.contact-list small { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact-list span { font-family: var(--serif); font-size: 1.3rem; }
.contact-list .arrow { font-family: var(--sans); font-size: 1.3rem; color: #e3a3ae; }

/* Pie */
.site-footer { background: var(--black-2); color: var(--on-dark-muted); padding: 28px 0; font-size: .88rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-row p { margin: 0; }
.footer-row a, .footer-row button { color: var(--on-dark); }
.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

/* Banner de cookies */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 560px; margin-left: auto;
  background: var(--black); color: var(--on-dark);
  border-top: 4px solid var(--burgundy); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  font-size: .92rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 14px; color: var(--on-dark-muted); }
.cookie-banner strong { color: var(--on-dark); font-family: var(--serif); font-size: 1.1rem; display: block; margin-bottom: 6px; }
.cookie-banner a { color: #e3a3ae; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1 1 auto; text-align: center; }
.cookie-banner .btn-ghost { color: var(--on-dark); border-color: var(--on-dark); }
.cookie-banner .btn-ghost:hover { background: var(--on-dark); color: var(--black); }

/* Página legal */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .ia-grid, .career-grid, .about, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { max-width: 420px; }
  .about-photo { max-width: 340px; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { height: 64px; }
  .nav-links li:not(:last-child) { display: none; }
  .brand-role { display: none; }
  .hero { padding: 48px 0 72px; }
  .hero-photo { margin-right: 24px; }
  .hero-photo figcaption { left: -8px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .cards, .steps, .certs { grid-template-columns: 1fr; }
  .card { padding: 32px 24px; }
  .section { padding: 72px 0; }
  .about-photo { margin-left: 18px; }
  .contact-list span { font-size: 1.1rem; word-break: break-word; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 64px; }
.stat { padding: 28px 20px 26px 0; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--burgundy); }
.stat-label { font-size: .92rem; color: var(--muted); max-width: 16em; }

/* Clientes */
.clients { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.clients-title { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.client-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; }
.client-list li { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); opacity: .8; }

/* Formación */
.credentials { margin-top: 96px; }
.certs { grid-template-columns: repeat(4, 1fr); }
.cert p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.cert-featured { grid-column: span 2; background: var(--black); color: var(--on-dark); border-color: var(--black); border-left: 4px solid var(--burgundy); }
.cert-featured .cert-issuer { color: #e3a3ae; }
.cert-featured h3 { font-size: 1.4rem; }
.cert-featured p { color: var(--on-dark-muted); }
.cert-featured .hl { color: #e3a3ae; }

/* Inversor */
.investor { background: var(--burgundy-dark); color: var(--on-dark); position: relative; overflow: hidden; }
.investor::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border: 1px solid rgba(245, 238, 226, .15); border-radius: 50%;
}
.investor::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px;
  border: 1px solid rgba(245, 238, 226, .12); border-radius: 50%;
}
.investor .wrap { position: relative; z-index: 1; }
.investor .eyebrow { color: var(--cream-2); }
.investor h2 em { color: var(--cream-2); }
.investor .section-head p { color: rgba(245, 238, 226, .82); }
.investor .hl { color: var(--on-dark); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(245, 238, 226, .45); text-underline-offset: 4px; }
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.holding {
  background: var(--cream); color: var(--ink); padding: 32px 30px 28px; border-radius: var(--radius);
  display: flex; flex-direction: column; border-top: 4px solid var(--black);
  transition: transform .25s ease, box-shadow .25s ease;
}
.holding:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6); }
.holding h3 { font-size: 1.8rem; margin: 10px 0 12px; }
.holding p { color: var(--muted); font-size: .96rem; flex: 1; }
.holding .hl { color: var(--burgundy); text-decoration: none; }
.holding-sector { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy); font-weight: 600; }
.holding-role { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.investor-note { margin: 40px 0 0; font-size: 1.05rem; color: rgba(245, 238, 226, .85); }
.investor-note a { color: var(--on-dark); font-weight: 600; }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .portfolio { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .certs { grid-template-columns: 1fr; }
  .cert-featured { grid-column: auto; }
  .client-list li { font-size: 1.05rem; }
}
.holding-link { color: inherit; text-decoration: none; }
.holding-link:hover { color: var(--burgundy); }
