/*
Theme Name: Calafate Capital
Theme URI: https://calafatecapital.com
Author: Calafate Capital
Author URI: https://calafatecapital.com
Description: Institutional Light Theme for Calafate Capital based on corporate logo colors and Swiss Private Banking guidelines.
Version: 1.9.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calafate-capital
Tags: light-mode, custom-menu, featured-images, full-width-template, translation-ready
*/

/* ==========================================================================
1. TAILWIND CORE DIRECTIVES
   ========================================================================== */
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";

/* ==========================================================================
   2. DESIGN TOKENS & SYSTEM VARIABLES (SWISS PRIVATE BANKING LIGHT MODE)
   ========================================================================== */

  /* Forzar a Tailwind a usar la pila serif de Calafate Capital */
.font-serif,
h1, h2, h3, h4 {
  font-family: var(--font-serif) !important;
}

:root {
  /* Brand Palette — Calafate Capital & Swiss Systematic Standards */
  --color-bg-main: #FFFFFF;
  --color-bg-card: #F8FAFC;
  --color-bg-card-alt: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-dark: #CBD5E1;
  
  --color-text-main: #1A2F4C;        /* Navy Blue del Isotipo */
  --color-text-muted: #475569;       /* Slate Grey para lectura institucional */
  --color-text-subtle: #64748B;
  
  --color-accent: #C5A059;           /* Dorado Institucional */
  --color-accent-hover: #A3803C;     /* Dorado oscuro para interacción sobre blanco */
  --color-navy-brand: #1A2F4C;


  /* Strict Institutional Typography Hierarchy */
  --font-serif: 'Cinzel', 'Trajan Pro', 'Cormorant Garamond', Cormorant, serif !important;
  --font-sans: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', Consolas, monospace;
}

/* ==========================================================================
   3. BASE STYLES & GLOBALS
   ========================================================================== */
html, body, .site-body {
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  color: var(--color-navy-brand);
  letter-spacing: -0.01em;
}

h1{
  font-size: 2.9rem;
  font-weight: 500 !important;
  text-transform: uppercase !important;
}

h2{
  font-size: 2rem;
}

/* Vincular la clase personalizada font-cinzel a la variable de marca */
.font-cinzel {
  font-family: var(--font-serif) !important;
}

::selection {
  background-color: rgba(26, 47, 76, 0.12);
  color: var(--color-navy-brand);
}

/* Tabular numbers formatting for financial data (Bloomberg style alignment) */
.financial-data,
.stat-value,
.metric-value,
.hub-metric-num,
.calafate-perf-table td {
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   4. UTILITIES & COLOR HELPERS
   ========================================================================== */
.text-main { color: var(--color-text-main); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-accent-hover { color: var(--color-accent-hover); }
.border-color-custom { border-color: var(--color-border); }

.font-mono-numbers {
  font-family: var(--font-mono) !important;
  letter-spacing: -0.02em;
}

/* Reemplazo de degradado genérico por Dorado Sólido Institucional */
.text-gold-institutional {
  color: var(--color-accent-hover);
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
header.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-menu .current-menu-item > a,
.nav-menu a:hover,
.nav-fallback-menu a:hover {
  color: var(--color-accent-hover) !important;
}

.nav-fallback-menu {
  color: var(--color-text-muted);
}

.nav-fallback-menu a {
  transition: color 0.2s ease;
}

.nav-divider {
  height: 1.25rem;
  width: 1px;
  opacity: 0.25;
  background-color: var(--color-navy-brand);
}

.header-cta-btn {
  font-size: 11px !important;
  padding: 0.5rem 1.25rem !important;
  letter-spacing: 0.15em;
  border-radius: 2px !important; /* Estructura geométrica nítida */
}

.mobile-toggle-btn {
  color: var(--color-navy-brand);
}

.mobile-drawer {
  background-color: var(--color-bg-main);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-link {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--color-navy-brand);
}

.mobile-cta-wrapper {
  border-top: 1px solid var(--color-border);
}

/* Brand Wordmark Logo Container */
.brand-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 4px 0;
  transition: opacity 0.25s ease;
}

.brand-container:hover { opacity: 0.88; }

/* ==========================================================================
   6. FRONT PAGE HERO & LAYOUT SECTIONS
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 0;
  padding-bottom: 6rem;
  overflow: hidden;
  background-color: var(--color-bg-main);
  border-bottom: 1px solid var(--color-border);
}

.hero-section > .relative {
  padding-top: 9rem;
}

/* Overlay Lateral Gradiente Azul Marino / Blanco para Máxima Legibilidad */
.hero-video-wrapper,
.hero-brand-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 250, 252, 0.82) 45%, 
    rgba(255, 255, 255, 0.2) 100%
  );
  pointer-events: none;
}

.hero-video-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  opacity: 0.75;
}

/* Eliminado el resplandor difuminado (glow) de IA por una estructura limpia */
.hero-badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.5rem;
  background-color: var(--color-accent-hover);
}

.section-main-bg,
.section-card-bg,
.section-letters-bg {
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--color-border);
}

.section-main-bg { background-color: var(--color-bg-main); }
.section-card-bg { background-color: var(--color-bg-card); }
.section-letters-bg { 
  background-color: var(--color-bg-card-alt); 
  border-bottom: none; 
}

/* Tarjetas Institucionales: Geometría sobria con bordes finos de 2px a 4px */
.institutional-card {
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.institutional-card:hover {
  border-color: var(--color-navy-brand);
  box-shadow: 0 4px 12px rgba(26, 47, 76, 0.06);
}

.pillar-number-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 1.25rem;
  background: var(--color-bg-card-alt);
  border: 1px solid var(--color-border);
  color: var(--color-navy-brand);
}

.institutional-header {
  padding-top: 8rem !important;
}

.institutional-inquiries{
  background-color: #e1e7ed !important;
}

.int-in-text{
  font-size: 1.02rem !important;
}

.int-in-text-aviso{
font-family: 'Inter' !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    font-size: 14px !important;
}

.text-infraestructure {
    font-family: 'Inter' !important;
    text-transform: uppercase;
    font-weight: 500 !important;
    font-size: 16px !important;
}

/* ==========================================================================
   7. STRATEGY TOGGLE & METRICS STRIP
   ========================================================================== */
.strategy-toggle {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-bg-card-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px;
}

.strategy-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.strategy-pill.active {
  background-color: var(--color-navy-brand) !important;
  color: #FFFFFF !important;
  border-color: var(--color-navy-brand) !important;
}

.strategy-pill.inactive {
  background-color: transparent !important;
  color: var(--color-text-muted) !important;
  border-color: transparent !important;
}

.strategy-pill.inactive:hover {
  color: var(--color-navy-brand) !important;
}

@media (max-width: 640px) {
  .strategy-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .strategy-pill {
    flex: 1;
    text-align: center;
    padding: 6px 10px;
    font-size: 10px;
  }
}

/* ==========================================================================
   8. INSTITUTIONAL OVERVIEW & STRATEGY HEADERS
   ========================================================================== */
.calafate-overview-box {
  background: var(--color-bg-card);
  padding: 32px 38px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  margin-bottom: 45px;
}

.calafate-overview-title {
  color: var(--color-navy-brand);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px 0;
  font-family: var(--font-brand-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calafate-overview-desc {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.calafate-header-block {
  margin-bottom: 40px;
  width: 100%;
}

.calafate-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.calafate-kicker {
  color: var(--color-accent-hover);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.calafate-title {
color: var(--color-navy-brand);
    font-size: 32px;
    font-weight: 300;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.calafate-subtitle {
  color: var(--color-text-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 14px;
}

.calafate-badges-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.calafate-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 2px;
  text-transform: uppercase;
}

.calafate-badge.gold-badge {
  border-color: rgba(197, 160, 89, 0.3);
  color: var(--color-accent-hover);
}

.calafate-highlights-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  gap: 15px;
}

.calafate-highlight-item {
  flex: 1 1 0px;
  min-width: 0;
}

.highlight-label {
  display: block;
  color: var(--color-navy-brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
  white-space: nowrap;
}

.highlight-value {
    display: block;
    color: #000;
    font-size: 13px;
    font-weight: 300;
    white-space: nowrap;
}

.highlight-value.text-gold {
  color: var(--color-accent-hover);
}

.calafate-strategy-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 70px 0 50px 0;
  width: 100%;
}

.calafate-strategy-divider .divider-line {
  flex-grow: 1;
  height: 1px;
  background: var(--color-border);
}

.calafate-strategy-divider .divider-badge {
  color: var(--color-navy-brand);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 5px 14px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: var(--color-bg-card);
  text-transform: uppercase;
  margin: 0 16px;
  white-space: nowrap;
}

/* ==========================================================================
   9. STATS CARDS, TABLES & DISCLAIMERS
   ========================================================================== */
.metric-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: border-color 0.25s ease;
}

.metric-card:hover {
  border-color: var(--color-navy-brand);
}

.metric-label {
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  font-size: 11px;
  text-transform: uppercase;
}

.metric-value {
  font-family: var(--font-mono);
  color: var(--color-navy-brand);
}

.metric-subtext {
  color: var(--color-text-subtle);
  font-size: 12px;
}

.calafate-stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 35px 0;
  width: 100%;
}

.calafate-stats-group {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 20px 24px;
}

.calafate-stats-header {
  color: var(--color-navy-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

h4.calafate-stats-header {
  font-family: var(--font-brand-sans) !important;
}

.calafate-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border);
}

.calafate-stat-row:last-child { border-bottom: none; }
.calafate-stat-row .stat-label { color: var(--color-text-muted); font-size: 13px; }
.calafate-stat-row .stat-value { 
  color: var(--color-text-main); 
  font-size: 13px; 
  font-weight: 600; 
  font-family: var(--font-mono);
}
.calafate-stat-row .stat-value.positive { color: #047857; }
.calafate-stat-row .stat-value.negative { color: #B91C1C; }
.calafate-stat-row .stat-value.highlight { color: var(--color-navy-brand); }

.calafate-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
}

.calafate-perf-table,
.track-record-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--color-text-main);
  font-size: 13px;
  text-align: center;
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.calafate-perf-table th,
.track-record-table th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-navy-brand);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-color: var(--color-bg-card-alt);
  font-weight: 700;
}

.calafate-perf-table td,
.track-record-table td {
  padding: 10px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 12px;
}

.calafate-perf-table .year-cell { font-weight: 700; color: var(--color-navy-brand); }
.calafate-perf-table td.positive, .perf-positive { color: #047857; background: rgba(4, 120, 87, 0.03); }
.calafate-perf-table td.negative, .perf-negative { color: #B91C1C; background: rgba(185, 28, 28, 0.03); }
.calafate-perf-table td.empty { color: #94A3B8; }
.calafate-perf-table .total-cell, .perf-summary-col {
  font-weight: 700;
  background: var(--color-bg-card);
  border-left: 1px solid var(--color-border);
  color: var(--color-navy-brand);
}

.calafate-disclaimer-wrapper {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.calafate-disclaimer-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  max-width: 850px;
  text-align: left;
}

.calafate-shield-icon, .calafate-calendar-icon {
  width: 20px;
  height: 20px;
  color: var(--color-navy-brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.calafate-disclaimer-text {
  font-size: 11px;
  line-height: 1.6;
  color: var(--color-text-subtle);
  margin: 0;
}

.calafate-disclaimer-text strong { color: var(--color-navy-brand); font-weight: 600; }

.calafate-disclaimer-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.calafate-disclaimer-item:last-child {
    margin-bottom: 0;
}

.calafate-disclaimer-divider {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 12px 0;
}

/* ==========================================================================
   10. BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.calafate-btn-institutional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: transparent;
  color: var(--color-navy-brand);
  border: 1px solid var(--color-navy-brand);
  padding: 11px 26px;
  border-radius: 2px; /* Geometría sobria suiza */
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.calafate-btn-institutional:hover {
  background-color: var(--color-navy-brand);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(26, 47, 76, 0.12);
}

.btn-accent {
  background-color: var(--color-navy-brand) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--color-navy-brand) !important;
}

.btn-accent:hover {
  background-color: #0F1E33 !important;
}

.calafate-pdf-icon {
  width: 15px;
  height: 15px;
  transition: stroke 0.25s ease;
  stroke: var(--color-navy-brand);
}

.calafate-btn-institutional:hover .calafate-pdf-icon { stroke: #FFFFFF; }

/* ==========================================================================
   11. MEDIA QUERIES
   ========================================================================== */
@media (min-width: 768px) {
  .hero-section {
    padding-top: 0;
    padding-bottom: 8rem;
  }

  .hero-section > .relative {
    padding-top: 10rem;
  }
}

@media (max-width: 768px) {
  .calafate-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .calafate-badges-container {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .calafate-disclaimer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .calafate-btn-institutional {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  .calafate-highlights-grid {
    flex-direction: column;
    gap: 16px;
  }
  .calafate-highlight-item {
    width: 100%;
  }
}

/* ==========================================================================
   12. SWISS INSTITUTIONAL LUXURY REFINEMENTS
   ========================================================================== */
.section-swiss-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 1024px) {
  .section-swiss-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.governance-card,
.governance-card-swiss {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.governance-card:hover,
.governance-card-swiss:hover {
  border-color: var(--color-navy-brand);
}

.infrastructure-badge,
.infrastructure-badge-swiss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-bg-card-alt);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.infrastructure-badge span.dot,
.infrastructure-badge-swiss span.dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #047857;
}

.swiss-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--color-bg-card-alt);
  border: 1px solid var(--color-border);
  color: var(--color-navy-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.swiss-icon-wrapper-transparent {
  width: 80px;
  height: 80px;
  color: var(--color-navy-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}


.calafate-mandate-clean {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    margin: 20px 0 28px 0;
}

.mandate-title-clean {
    display: block;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--color-navy-brand);
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.calafate-mandate-list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calafate-mandate-list-clean li {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 6px;
    position: relative;
    padding-left: 14px;
}

.calafate-mandate-list-clean li:last-child {
    margin-bottom: 0;
}

.calafate-mandate-list-clean li::before {
    content: "•";
    color: var(--color-navy-brand);
    position: absolute;
    left: 0;
    font-size: 14px;
    line-height: 1;
    top: 2px;
}

.calafate-mandate-list-clean li strong {
    color: var(--color-text-main);
}

/* ==========================================================================
   13. EXECUTIVE PROFILE & LEADERSHIP SECTION
   ========================================================================== */
.calafate-profile-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 10px;
}

.calafate-portrait-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.calafate-portrait-frame {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 4px;
  background: var(--color-border);
  border: 1px solid var(--color-navy-brand);
}

.calafate-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  filter: grayscale(15%);
  transition: filter 0.3s ease;
}

.calafate-portrait-frame:hover .calafate-portrait-img {
  filter: grayscale(0%);
}

.calafate-portrait-caption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

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

.calafate-portrait-role {
  font-family: var(--font-sans);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--color-accent-hover);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calafate-bio-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-navy-brand);
  font-weight: 400;
  margin-bottom: 24px;
}

.calafate-bio-text p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.calafate-bio-text strong {
  color: var(--color-navy-brand);
  font-weight: 600;
}

.calafate-cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.calafate-cred-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 14px 18px;
  border-radius: 2px;
}

.calafate-cred-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-navy-brand);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.calafate-cred-value {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
}

@media (max-width: 868px) {
  .calafate-profile-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   14. TRACK RECORD HUB PAGE & GLOW REMOVAL
   ========================================================================== */

.hub-card-container {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s ease;
}

.hub-card-container:hover {
  border-color: var(--color-navy-brand);
}

.hub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.hub-strategy-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-navy-brand);
  margin-top: 0.25rem;
}

.hub-card-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  min-height: 3.5rem;
}

.hub-metrics-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  margin-bottom: 2rem;
}

.hub-metric-col {
  display: flex;
  flex-direction: column;
}

.hub-metric-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-navy-brand);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.hub-metric-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

.hub-metric-num.green { color: #047857; }
.hub-metric-num.white { color: var(--color-navy-brand); }
.hub-metric-num.red   { color: #B91C1C; }
.hub-metric-num.gray  { color: #64748B; font-weight: 400; font-size: 0.7rem; }

@media (max-width: 640px) {
  .hub-metrics-box {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }
}

.text-dd-red { color: #B91C1C; }

/* ============================================
   METRICS DISCLAIMER - Institutional Footer
   ============================================ */

.metrics-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.metrics-disclaimer p {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-subtle);
  margin: 0;
}

.metrics-disclaimer .disclaimer-term {
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
}

@media (max-width: 768px) {
  .metrics-disclaimer {
    margin-top: 2rem;
    padding-top: 1.25rem;
  }
  
  .metrics-disclaimer p {
    font-size: 10px;
    line-height: 1.6;
  }
}

/* ==========================================================================
   PARTNER CUSTODY LOGO (SWISSQUOTE)
   ========================================================================== */
.partner-custody-wrapper {
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.partner-custody-label {
  font-family: var(--font-brand-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-accent-hover);
  text-transform: uppercase;
  line-height: 1;
  margin: 0 auto;
}

.partner-custody-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.25s ease;
  margin: 0 auto;
}

.partner-custody-logo:hover {
  opacity: 1;
}

.cargo{
    font-weight: 400 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.04em;
    color: var(--color-accent-hover) !important;
}

/* Watermark Vector Hero Background */
.hero-watermark-container {
  position: relative;
  background-color: var(--color-bg-main);
  overflow: hidden;
}

.hero-watermark-container::after {
  content: '';
  position: absolute;
  top: 45%;
  right: -2%; /* Lo acerca ligeramente al borde */
  transform: translateY(-50%);
  width: 67%; /* Crece de 55% a 62% para envolver sutilmente el espacio */
  height: 100%;
  background-image: url('images/calafate-mountain-vector.svg');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
  opacity: 0.05; /* Se mantiene en la elegancia sutil */
  pointer-events: none;
  z-index: 1;
}

/* Estilos para el Formulario Institucional de Calafate Capital */
.institutional-form-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    color: #0f172a;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #94a3b8;
}

.form-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.btn-institutional-submit {
    background-color: #0f172a;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-institutional-submit:hover {
    background-color: #1e293b;
}

@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Estilo sobrio para errores de Contact Form 7 */
.wpcf7-not-valid-tip {
    color: #991b1b !important; /* Rojo burdeos institucional en lugar de rojo brillante */
    font-size: 0.75rem !important;
    font-family: monospace !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
}

.wpcf7-not-valid {
    border-color: #fca5a5 !important; /* Borde suave en lugar del rojo fuerte */
}