/* ============================================================
   Fuentes Harris (F&H Legal) - sistema de marca / brand system
   Paleta oficial: Giants Orange #F15A22 / Onyx #414042 / Seasalt #F7F6F6
   Secundarios: Glaucous #687798 / Vista Blue #92ABE1 / Alice Blue #E1F1FF / Jade #17A766
   ============================================================ */

:root {
  --navy: #414042;        /* Onyx - dark neutral (antes navy) */
  --navy-light: #5B595C;  /* Onyx aclarado, para degradés */
  --gold: #F15A22;        /* Giants Orange - acento principal (antes gold) */
  --gold-dark: #C94A1B;   /* Orange oscurecido, hover */
  --ivory: #F7F6F6;       /* Seasalt */
  --bg: #F7F6F6;          /* Seasalt */
  --slate: #687798;       /* Glaucous - texto secundario */
  --ink: #414042;         /* Onyx - texto principal */
  --line: #E4E3E4;        /* gris claro derivado de Onyx, para bordes */
  --muted: #75747A;       /* gris neutro, texto atenuado */
  --footer-bg: #201F20;   /* Onyx casi negro */
  --footer-panel: #2E2C2E;
  --footer-text: #F7F6F6; /* Seasalt sobre fondo oscuro */
  --footer-muted: #A9A8AC;
  /* Colores de marca disponibles, sin uso forzado en el sistema actual: */
  --vista-blue: #92ABE1;
  --alice-blue: #E1F1FF;
  --jade: #17A766;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; margin: 0; color: var(--navy); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; }
button { font-family: inherit; }

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

/* ---------- Header ---------- */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header .logo img { height: 34px; width: auto; display: block; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.header-nav a.navlink {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
}
.header-nav a.navlink:hover { color: var(--navy); }
.header-right { display: flex; align-items: center; gap: 20px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px;
}
.lang-toggle.on-dark { background: var(--footer-panel); }
.lang-toggle button {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--slate);
}
.lang-toggle.on-dark button { color: var(--footer-muted); }
.lang-toggle button.active { background: var(--navy); color: #FFFFFF; }
.lang-toggle.on-dark button.active { background: var(--gold); color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 999px;
  padding: 13px 26px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 72px 0;
  color: #FFFFFF;
}
.hero.hero-home {
  padding: 96px 0;
  background-image: linear-gradient(180deg, rgba(20,19,20,0.42), rgba(20,19,20,0.90)), url('hero-skyline.jpg');
  background-size: cover;
  background-position: center;
}
.hero-eyebrow { font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 16px; }
.hero-breadcrumb { font-size: 12.5px; color: var(--footer-muted); margin-bottom: 14px; }
.hero h1 { font-size: 42px; font-weight: 700; color: #FFFFFF; line-height: 1.15; max-width: 780px; }
.hero-sub { font-size: 16px; color: var(--footer-text); line-height: 1.6; max-width: 680px; margin-top: 18px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero .btn-outline { color: #FFFFFF; border-color: rgba(255,255,255,0.5); }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.trust-strip .container { display: flex; gap: 36px; flex-wrap: wrap; justify-content: center; }
.trust-item { font-size: 13px; color: var(--slate); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.trust-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ---------- Why Panama ---------- */
.why-panama { background: var(--navy); padding: 64px 0 0; }
.wp-head { max-width: 680px; margin-bottom: 40px; }
.wp-head h2 { color: #FFFFFF; font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.wp-head p { font-size: 15px; color: var(--footer-text); line-height: 1.6; }
.wp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-left: 1px solid rgba(255,255,255,0.12);
  max-width: 1180px;
  margin: 0 auto;
}
.wp-contents { display: contents; }
.wp-tile {
  padding: 34px 36px;
  border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
#wpTilesBottom .wp-tile { border-bottom: none; }
.wp-num { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.wp-label { font-weight: 700; color: #FFFFFF; font-size: 14.5px; margin-bottom: 8px; }
.wp-tile p { font-size: 13px; color: var(--footer-text); line-height: 1.6; }
.wp-photo {
  grid-column: 1 / -1;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: #FFFFFF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 32px; max-width: 820px; }

/* ---------- Jurisdiction tabs (multi-jurisdiction service pages) ---------- */
.juris-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.juris-tab {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: #FFFFFF;
  color: var(--slate);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.juris-tab:hover:not(.active) { border-color: var(--navy); color: var(--navy); }
.juris-tab.active { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.juris-note { font-size: 13.5px; color: var(--muted); line-height: 1.6; max-width: 820px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.section-head h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.section-head p { font-size: 15px; color: var(--muted); line-height: 1.6; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card.on-alt { background: var(--bg); }
.card-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: #FDE7DC;
  padding: 5px 12px;
  border-radius: 999px;
}
.card h3 { font-size: 16px; font-weight: 700; color: var(--navy); }
.card .amount { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 700; color: var(--navy); }
.card p, .card li { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.card ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.card a.card-link { font-size: 13.5px; font-weight: 600; color: var(--navy); border-bottom: 1.5px solid var(--gold); align-self: flex-start; padding-bottom: 1px; }

/* ---------- Novedades (news / updates) ---------- */
a.news-card { text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
a.news-card:hover { border-color: var(--gold); box-shadow: 0 10px 26px rgba(0,0,0,0.07); transform: translateY(-2px); }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-dark); background: #FDE7DC; padding: 4px 11px; border-radius: 999px; }
.news-date { font-size: 12.5px; color: var(--muted); }
.news-card h3 { font-size: 18px; }
.news-card p { font-size: 14px; }
.news-card .card-link { margin-top: 4px; }
.news-empty { font-size: 14.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; padding: 32px; text-align: center; }

.article-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--footer-muted); margin-bottom: 16px; }
.article-back:hover { color: #FFFFFF; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.article-meta .news-badge { background: rgba(241,90,34,0.16); color: var(--gold); }
.article-meta .news-date { color: var(--footer-muted); }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { font-size: 16.5px; line-height: 1.8; color: var(--ink); margin-bottom: 20px; }
.article-body h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 34px 0 14px; }
.article-body ul { padding-left: 20px; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.article-body li { font-size: 16.5px; line-height: 1.7; color: var(--ink); }
.article-body strong { color: var(--navy); }
.article-disclaimer { max-width: 720px; margin: 40px auto 0; font-size: 13px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 20px; }

/* ---------- Pillar cards (homepage services, with photo) ---------- */
.pillar-card {
  border: none;
  justify-content: flex-end;
  min-height: 300px;
  background-size: cover;
  background-position: center;
}
.pillar-card .pillar-num { font-family: 'Playfair Display', serif; font-size: 13px; color: var(--gold); }
.pillar-card h3 { color: #FFFFFF; }
.pillar-card p { color: rgba(255,255,255,0.85); }
.pillar-card a.card-link { color: var(--gold); border-bottom-color: var(--gold); }
.pillar-card a.card-link:hover { color: #FFFFFF; }
.pillar-1 { background-image: linear-gradient(180deg, rgba(65,64,66,0.25), rgba(20,19,20,0.92)), url('card-residencias.jpg'); }
.pillar-2 { background-image: linear-gradient(180deg, rgba(65,64,66,0.25), rgba(20,19,20,0.92)), url('card-realestate.jpg'); }
.pillar-3 { background-image: linear-gradient(180deg, rgba(65,64,66,0.25), rgba(20,19,20,0.92)), url('hero-skyline.jpg'); background-position: 75% center; }

.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #FFFFFF;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Otras areas strip ---------- */
.otras-strip { background: var(--navy); color: #FFFFFF; padding: 30px 0; }
.otras-strip strong { display: block; font-size: 14px; margin-bottom: 6px; }
.otras-strip span { font-size: 13.5px; color: rgba(255,255,255,0.75); }
.otras-strip a { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--gold); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  background: none; border: 1px solid transparent; border-radius: 14px; padding: 16px;
  font-family: 'Inter', sans-serif; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
}
.team-card:hover, .team-card:focus-visible { border-color: var(--line); box-shadow: 0 4px 16px rgba(65,64,66,0.08); outline: none; }
.team-photo { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: 700; font-size: 15.5px; color: var(--navy); }
.team-role { font-size: 12.5px; color: var(--gold-dark); font-weight: 600; }
.team-spec { font-size: 12.5px; color: var(--muted); max-width: 220px; line-height: 1.5; }
.team-more { font-size: 12.5px; font-weight: 600; color: var(--navy); border-bottom: 1.5px solid var(--gold); padding-bottom: 1px; margin-top: 4px; }

/* ---------- Bio modal ---------- */
.bio-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.bio-modal.open { display: flex; }
.bio-modal-backdrop { position: absolute; inset: 0; background: rgba(20,19,20,0.55); }
.bio-modal-box {
  position: relative; background: #FFFFFF; border-radius: 16px; padding: 40px 36px 36px;
  max-width: 460px; width: 100%; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px; box-shadow: 0 20px 60px rgba(20,19,20,0.35);
}
.bio-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: none; font-size: 20px; line-height: 1; color: var(--slate); cursor: pointer;
}
.bio-modal-close:hover { background: var(--line); }
.bio-modal-photo { width: 108px; height: 108px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); margin-bottom: 6px; }
.bio-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-modal-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px; color: var(--navy); }
.bio-modal-role { font-size: 12.5px; color: var(--gold-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.bio-modal-text { font-size: 14.5px; line-height: 1.65; color: var(--slate); margin: 10px 0 0; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  text-align: left; gap: 20px;
}
.faq-q span.q-text { font-size: 16px; font-weight: 600; color: var(--navy); }
.faq-q span.indicator { font-size: 20px; color: var(--gold); font-weight: 400; flex-shrink: 0; }
.faq-a { display: none; margin: 0 0 20px 0; font-size: 14.5px; line-height: 1.6; color: var(--slate); max-width: 700px; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .indicator { content: '\2013'; }

/* ---------- Stat cards (real estate) ---------- */
.stat-card {
  flex: 1; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; display: flex; flex-direction: column; gap: 8px;
}
.stat-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.stat-body { font-size: 13.5px; color: var(--slate); line-height: 1.6; }
.stat-row { display: flex; gap: 20px; }

.re-list { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; }
.re-list li { font-size: 13.5px; color: var(--slate); line-height: 1.5; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy); color: #FFFFFF; padding: 52px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { color: #FFFFFF; font-size: 26px; }
.cta-banner p { color: var(--footer-text); font-size: 14.5px; line-height: 1.6; margin-top: 8px; max-width: 620px; }
.cta-banner.cta-banner-photo {
  background-image: linear-gradient(100deg, rgba(20,19,20,0.94) 30%, rgba(20,19,20,0.55)), url('cta-banner.jpg');
  background-size: cover;
  background-position: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 52px 0 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-logo-plate { background: #FFFFFF; border-radius: 8px; padding: 9px 16px; display: inline-flex; margin-bottom: 14px; }
.footer-logo-plate img { height: 20px; width: auto; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--footer-text); }
.footer-links a:hover { color: var(--gold); }
.footer-links-label { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--footer-muted); margin-bottom: 4px; }
.footer-rule { height: 1px; background: rgba(255,255,255,0.08); margin: 28px 0 18px; }
.footer-bottom { font-size: 12.5px; color: var(--footer-muted); }

/* ---------- Utility ---------- */
.hide { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid.cols-4, .cards-grid.cols-5 { grid-template-columns: 1fr 1fr; }
  #servicios .cards-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: 220px; }
  .team-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .stat-row { flex-direction: column; }
  .hero h1 { font-size: 32px; }
  .wp-grid { grid-template-columns: 1fr 1fr; }
  .wp-tile:nth-child(even) { border-right: none; }
  #wpTilesBottom .wp-tile { border-bottom: 1px solid rgba(255,255,255,0.12); }
}
@media (max-width: 620px) {
  .site-header .container { height: 68px; }
  .site-header .logo img { height: 26px; }
  .header-nav .navlink { display: none; }
  .hero { padding: 48px 0; }
  .hero.hero-home { padding: 56px 0; }
  .hero h1 { font-size: 26px; }
  .cards-grid, .cards-grid.cols-2, .cards-grid.cols-4, .cards-grid.cols-5 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px 0; }
  .footer-top { flex-direction: column; }
  .wp-grid { grid-template-columns: 1fr; }
  .wp-tile { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.12) !important; }
  .wp-photo { min-height: 200px; border-right: none; }
}

/* === Contact modal (form) === */
.fh-modal-overlay {
  position: fixed; inset: 0; background: rgba(32,31,32,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.fh-modal-overlay.open { opacity: 1; pointer-events: auto; }
.fh-modal {
  background: #FFFFFF; border-radius: 18px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto; padding: 36px 32px 30px;
  position: relative; box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  transform: translateY(12px); transition: transform 0.2s ease;
}
.fh-modal-overlay.open .fh-modal { transform: translateY(0); }
.fh-modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: var(--bg-alt, #F6F5F4);
  color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.fh-modal-close:hover { background: var(--line); color: var(--navy); }
.fh-modal h3 { font-size: 22px; margin-bottom: 6px; padding-right: 20px; }
.fh-modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }
.fh-field { margin-bottom: 16px; }
.fh-field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.fh-field input, .fh-field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font-size: 14.5px; font-family: inherit; color: var(--ink);
  background: #FFFFFF; transition: border-color 0.15s;
}
.fh-field input:focus, .fh-field textarea:focus { outline: none; border-color: var(--gold); }
.fh-field textarea { resize: vertical; min-height: 92px; }
.fh-form-submit { width: 100%; border: none; cursor: pointer; margin-top: 4px; }
.fh-form-submit[disabled] { opacity: 0.6; cursor: default; }
.fh-form-error { font-size: 13px; color: #B3261E; margin-top: 12px; line-height: 1.5; display: none; }
.fh-form-error.show { display: block; }
.fh-form-error a { color: #B3261E; font-weight: 600; }
.fh-success { text-align: center; padding: 10px 0 4px; }
.fh-success-icon {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(241,90,34,0.12);
  color: var(--gold-dark); font-size: 26px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px;
}
.fh-success h3 { margin-bottom: 8px; }
.fh-success p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
