/* Approved identity: October 2026. The official artwork is never reconstructed. */
@font-face {
  font-family: 'KV Cormorant Garamond';
  src: url('fonts/cormorant-garamond-light.ttf') format('truetype');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'KV Cormorant Garamond';
  src: url('fonts/cormorant-garamond-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'KV Cormorant Garamond';
  src: url('fonts/cormorant-garamond-medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'KV Cormorant Garamond';
  src: url('fonts/cormorant-garamond-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

#kv-web,
body.kv-editorial-page {
  --kv-brand-font: 'KV Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --kv-draft-tipografia: var(--kv-brand-font);
  --kv-brand-navy: #0E1F3D;
  --kv-brand-blue: #6B8FB7;
  --kv-brand-powder: #C9D9EA;
  --kv-brand-paper: #F5F7FA;
  --kv-brand-wine: #7A0F26;
  --kv-brand-pearl: #D6D6DF;
  --kv-brand-white: #FFFFFF;
  --kv-draft-azul: #0E1F3D;
  --kv-draft-blanco: #FFFFFF;
  --kv-draft-suave: #C9D9EA;
  --kv-navy: #0E1F3D;
  --kv-ink: #0E1F3D;
  --kv-line: #D6D6DF;
}

/* Official palette across native Elementor sections and editorial templates. */
#kv-web,
body.kv-editorial-page {
  background: var(--kv-brand-paper);
  color: var(--kv-brand-navy);
}

#kv-web :is(.kv-draft-body, .kv-draft-eyebrow),
#kv-web #mirada :is(.kv-perspective-instruction, .kv-perspective-tab, .kv-perspective-panel p),
#kv-web #trayectoria {
  color: var(--kv-brand-navy);
}

#kv-web :is(#inicio, #trayectoria, #cursos) {
  border-color: var(--kv-brand-pearl);
}

#kv-web #kv-question-banner,
#kv-web .elementor-element-3e490de {
  background: var(--kv-brand-powder);
  border-color: var(--kv-brand-powder);
}

#kv-web #trayectoria { background: var(--kv-brand-paper); }
#kv-web #trayectoria > h2 { color: var(--kv-brand-wine); }
#kv-web .kv-reading-progress > span { background: var(--kv-brand-wine); }
#kv-web #inicio nav a[aria-current="location"] { text-decoration-color: var(--kv-brand-wine); }
#kv-web #mirada .kv-perspective-tabs::after { background: var(--kv-brand-wine); }
#kv-web #mirada .kv-perspective-tab[aria-selected="true"] { color: var(--kv-brand-wine); background: var(--kv-brand-paper); }

#kv-web :is(#kv-intro-link, #kv-talks-link, #kv-clinic-link) {
  background: var(--kv-brand-wine);
  border-color: var(--kv-brand-wine);
  color: var(--kv-brand-white);
}

#kv-web :is(#kv-nav-contact, #kv-question-next) {
  background: transparent;
  border-color: var(--kv-brand-wine);
  color: var(--kv-brand-wine);
}

#kv-web #sobre-mi .kv-about-replay {
  color: var(--kv-brand-wine);
  border-bottom-color: var(--kv-brand-wine);
}

#kv-web #blog { background: var(--kv-brand-wine); color: var(--kv-brand-white); }
#kv-web #blog :is(#kv-journal-intro, #kv-journal-intro p, #kv-blog-feed, #kv-blog-feed > p, .kv-editorial-home-card p) { color: var(--kv-brand-paper); }
#kv-web #blog .kv-editorial-home-date { color: var(--kv-brand-pearl); }

#kv-web #blog #kv-journal-link,
#kv-web #contacto #kv-contact-link {
  color: var(--kv-brand-wine);
  background: var(--kv-brand-paper);
  border-color: var(--kv-brand-paper);
}

#kv-web #blog #kv-journal-link :is(a, .elementor-button, .elementor-button-text),
#kv-web #contacto #kv-contact-link :is(a, .elementor-button, .elementor-button-text) { color: inherit; }

#kv-web #contacto .kv-draft-body { color: var(--kv-brand-powder); }
#kv-web #contacto footer .kv-draft-body { color: var(--kv-brand-white); }
#kv-web #contacto footer { border-color: #C9D9EA55; }
#kv-web #contacto .kv-draft-eyebrow { color: var(--kv-brand-white); }

body.kv-editorial-page :is(.kv-editorial-eyebrow, h1, h2, h2 a, .kv-editorial-content a) { color: var(--kv-brand-wine); }
body.kv-editorial-page :is(.kv-editorial-read, .kv-editorial-contact-link) { color: var(--kv-brand-wine); border-color: var(--kv-brand-wine); }
body.kv-editorial-page .kv-editorial-content blockquote { border-color: var(--kv-brand-wine); }
body.kv-editorial-page .kv-editorial-pagination .current { background: var(--kv-brand-wine); color: var(--kv-brand-white); }

#kv-web :is(#kv-question-next, #kv-talks-link, #kv-clinic-link, #kv-intro-link, #kv-nav-contact):focus-visible,
#kv-web #sobre-mi .kv-about-replay:focus-visible,
body.kv-editorial-page a:focus-visible { outline-color: var(--kv-brand-wine); }

#kv-web ::selection,
body.kv-editorial-page ::selection { background: var(--kv-brand-powder); color: var(--kv-brand-navy); }

@media (hover: hover) and (pointer: fine) {
  #kv-web :is(#kv-question-next, #kv-talks-link, #kv-clinic-link, #kv-intro-link, #kv-nav-contact):not([aria-disabled="true"]):hover {
    background: var(--kv-brand-navy);
    border-color: var(--kv-brand-navy);
    color: var(--kv-brand-white);
  }
  #kv-web #blog #kv-journal-link:hover,
  #kv-web #contacto #kv-contact-link:hover {
    background: var(--kv-brand-powder);
    border-color: var(--kv-brand-powder);
    color: var(--kv-brand-navy);
  }
  #kv-web #sobre-mi .kv-about-replay:not(:disabled):not([aria-disabled="true"]):hover {
    background: var(--kv-brand-powder);
    color: var(--kv-brand-navy);
    border-bottom-color: var(--kv-brand-navy);
  }
  body.kv-editorial-page :is(.kv-editorial-read, .kv-editorial-contact-link):hover {
    background: var(--kv-brand-wine);
    border-color: var(--kv-brand-wine);
    color: var(--kv-brand-white);
  }
}

/* One companion family across the home, blog and article templates.
   Typography-only priority also covers Elementor's generated local styles. */
#kv-web,
#kv-web :is(h1, h2, h3, h4, h5, h6, p, a, button, li, blockquote, summary, label, input, textarea, select),
body.kv-editorial-page,
body.kv-editorial-page :is(h1, h2, h3, h4, h5, h6, p, a, button, li, blockquote, summary, label, input, textarea, select) {
  font-family: var(--kv-brand-font) !important;
}

#kv-web :is(h1, h2, h3, h4, h5, h6),
body.kv-editorial-page :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 300 !important;
}

#kv-web :is(p, li, blockquote),
body.kv-editorial-page :is(p, li, blockquote) {
  font-weight: 400;
}

#kv-web :is(a, button, summary),
body.kv-editorial-page :is(a, button, summary) {
  font-weight: 500 !important;
}

/* The serif's smaller x-height needs readable body and navigation sizes. */
#kv-web .kv-draft-body:not(#kv-question-text),
#kv-web #mirada .kv-perspective-panel p,
#kv-web .kv-editorial-home-card p,
body.kv-editorial-page :is(.kv-editorial-intro, .kv-editorial-excerpt, .kv-editorial-empty p, .kv-editorial-content) {
  font-size: 1.25rem;
  line-height: 1.6;
}

#kv-web :is(a, button),
body.kv-editorial-page :is(a, button) {
  font-size: 1.125rem !important;
}

#kv-web :is(.kv-draft-eyebrow, .kv-editorial-home-date),
#kv-web #mirada .kv-perspective-instruction,
body.kv-editorial-page :is(.kv-editorial-eyebrow, .kv-editorial-meta, .kv-editorial-byline, .kv-editorial-footer) {
  font-size: 1rem;
  line-height: 1.5;
}

body.kv-editorial-page :is(h1, h2, h3, h4, h5, h6) a {
  font: inherit !important;
}

#kv-web .kv-draft-title,
#kv-web #mirada .kv-perspective-panel h3,
#kv-web .kv-editorial-home-card h3,
body.kv-editorial-page :is(h1, h2, h3) {
  font-family: var(--kv-brand-font);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.12;
}

#kv-web #kv-hero-name {
  font-family: 'KV Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  font-synthesis: none;
  font-size: clamp(4.4rem, 10.8vw, 8.6rem);
  line-height: 1;
  letter-spacing: -.025em;
}

#kv-web #blog h2#kv-journal-heading,
body.kv-editorial-blog-page .kv-editorial-hero h1 {
  letter-spacing: -.025em;
  line-height: 1.12;
}

#kv-web #kv-header-logo { width: 88px; height: 88px; object-fit: contain; }
#kv-web #kv-footer-logo { width: 96px; height: 96px; object-fit: contain; filter: none; }
body.kv-editorial-page .kv-editorial-brand .kv-editorial-logo { width: 88px; height: 88px; object-fit: contain; }

@media (max-width: 767px) {
  #kv-web #mirada .kv-perspective-tab { font-size: 1rem !important; }
  #kv-web #kv-header-logo,
  body.kv-editorial-page .kv-editorial-brand .kv-editorial-logo { width: 80px; height: 80px; }
}

/* Comfortable touch targets without enlarging the mobile typography. */
@media (max-width: 767px) {
  #kv-web #inicio > :is(div, nav) { gap: .5rem; }
  #kv-web #inicio > :is(div, nav) > a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  #kv-web :is(#sobre-mi, #trayectoria, #kv-question-banner) p > a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
  #kv-web #contacto > h2 { margin-bottom: 1rem; }
}
