/*
Theme Name: Gonzales & Ramirez Legal Pro
Theme URI: https://gonzalesramirez.hn
Author: Gonzales & Ramirez
Author URI: https://gonzalesramirez.hn
Description: Tema Pro para despacho de abogados Gonzales & Ramirez — La Esperanza, Intibucá, Honduras
Version: 8.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: gr-legal
*/

/* ============================================================
   DESIGN SYSTEM v5 — PALETA CLARA, CREMA Y ORO ELEGANTE
   Fondo blanco roto / crema — no oscuro
   ============================================================ */
:root {
  /* Fondos claros */
  --bg-base:       #faf9f7;   /* crema muy suave */
  --bg-surface:    #ffffff;   /* blanco puro para cards */
  --bg-elevated:   #f4f1ec;   /* crema más pronunciada */
  --bg-subtle:     #f0ece4;   /* secciones alternadas */

  /* Sección oscura para hero y CTA (contraste intencional) */
  --bg-dark:       #1a1d22;
  --bg-dark-2:     #21252c;
  --bg-dark-card:  #282d36;

  /* Acentos dorados */
  --gold:          #b8943a;   /* dorado más oscuro — contrasta sobre blanco */
  --gold-light:    #d4a84b;
  --gold-dim:      rgba(184,148,58,0.1);
  --gold-border:   rgba(184,148,58,0.25);
  --gold-text:     #9a7928;   /* dorado muy oscuro para texto sobre blanco */

  /* Texto sobre fondos claros */
  --text-primary:   #1a1d22;   /* casi negro */
  --text-secondary: #4a5568;   /* gris oscuro */
  --text-muted:     #7a8694;   /* gris medio */
  --text-light:     #a0aab4;   /* gris claro */

  /* Texto sobre fondos oscuros */
  --text-on-dark:        #f0ece4;
  --text-on-dark-muted:  #8a9ab0;

  /* Bordes */
  --border:        rgba(26,29,34,0.1);
  --border-hover:  rgba(184,148,58,0.4);

  /* Estado */
  --danger:        #c53030;
  --success:       #276749;

  /* Aliases para compatibilidad con código existente */
  --color-dark:       var(--bg-dark);
  --color-dark-2:     var(--bg-dark-2);
  --color-dark-3:     var(--bg-dark-card);
  --color-dark-card:  var(--bg-dark-card);
  --color-gold:       var(--gold);
  --color-gold-light: var(--gold-light);
  --color-gold-dark:  var(--gold-text);
  --color-white:      #ffffff;
  --color-text:       var(--text-primary);
  --color-text-muted: var(--text-secondary);
  --color-border:     var(--border);
  --color-danger:     var(--danger);
  --color-success:    var(--success);

  /* Tipografía */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  /* Espaciado */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container:  1200px;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  /* Sombras — más sutiles sobre fondos claros */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

  --transition: 0.22s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-text); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
p { margin-bottom: var(--space-sm); }

/* ============================================================
   UTILITIES
   ============================================================ */
.container  { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.text-gold  { color: var(--gold); }
.text-center{ text-align: center; }
.sr-only    { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* Secciones: todas claras excepto las marcadas --dark */
.section          { padding: var(--space-2xl) 0; }
.section--light   { background: var(--bg-base); }
.section--white   { background: var(--bg-surface); }
.section--cream   { background: var(--bg-subtle); }
.section--elevated{ background: var(--bg-elevated); }

/* Secciones oscuras (hero, cta, footer) */
.section--dark  { background: var(--bg-dark); }
.section--dark2 { background: var(--bg-dark-2); }
.section--dark3 { background: var(--bg-dark-card); }

/* Label */
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}
.section-label::before {
  content: ''; width: 20px; height: 2px;
  background: var(--gold); border-radius: 2px; flex-shrink: 0;
}

/* Title — sobre fondo claro */
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  color: var(--text-primary); margin-bottom: 0.75rem;
}
.section-title span { color: var(--gold); }

/* Title — sobre fondo oscuro */
.section--dark .section-title,
.section--dark2 .section-title { color: #ffffff; }
.section--dark .section-title span,
.section--dark2 .section-title span { color: var(--gold-light); }

.section-subtitle {
  font-size: 1rem; color: var(--text-secondary); max-width: 580px;
}

/* Divider */
.gold-divider {
  width: 56px; height: 3px; border: none;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0.75rem 0 1.5rem;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.03em; cursor: pointer; border: none;
  transition: all var(--transition); text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold); color: #fff;
  box-shadow: 0 2px 12px rgba(184,148,58,0.25);
}
.btn--primary:hover {
  background: var(--gold-text); color: #fff;
  box-shadow: 0 4px 20px rgba(184,148,58,0.35);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent; color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--outline-light {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.btn--whatsapp {
  background: #25D366; color: #fff;
  box-shadow: 0 2px 10px rgba(37,211,102,0.2);
}
.btn--whatsapp:hover {
  background: #1db954; color: #fff;
  box-shadow: 0 4px 18px rgba(37,211,102,0.35);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold-border); padding: 0.55rem 1.1rem; font-size: 0.82rem;
}
.btn--ghost:hover { background: var(--gold-dim); }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed; inset: 0;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.45s ease, visibility 0.45s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700;
  color: var(--gold-light); letter-spacing: 0.12em;
}
.preloader-bar {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: var(--gold-light); animation: preload 1.1s ease forwards;
}
@keyframes preload { from { width:0; } to { width:100%; } }

/* ============================================================
   HEADER — oscuro para contraste con fondo claro de la página
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26,29,34,0.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(26,29,34,1);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1.5rem;
}

.nav-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex-shrink: 0; }
.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1rem; font-weight: 800; color: #fff;
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-main { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.1; }
.nav-logo-sub  { font-size: 0.68rem; color: rgba(255,255,255,0.45); letter-spacing: 0.05em; }

.nav-menu { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 0.45rem 0.8rem;
  font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--gold-light);
  background: rgba(184,148,58,0.1);
}

.nav-menu .has-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.5; }

.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 210px;
  background: var(--bg-dark-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  padding: 0.4rem; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all var(--transition); z-index: 100;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 0.55rem 0.8rem; font-size: 0.84rem;
  color: rgba(255,255,255,0.65); border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-dropdown a:hover { color: var(--gold-light); background: rgba(184,148,58,0.1); padding-left: 1rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: all var(--transition); }

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--bg-dark); border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-direction: column; padding: 1rem; gap: 0.2rem; align-items: stretch;
    transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: all 0.3s ease; z-index: 999;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(0,0,0,0.2);
    border-left: 2px solid var(--gold); margin: 0.2rem 0 0.2rem 1rem;
  }
}

/* ============================================================
   HERO — fondo oscuro con foto, contraste máximo
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--bg-dark); overflow: hidden; padding-top: 68px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(130deg,
    rgba(26,29,34,0.97) 0%,
    rgba(26,29,34,0.82) 55%,
    rgba(26,29,34,0.65) 100%);
}
.hero-overlay::after {
  content: '';
  position: absolute; top: 15%; right: 10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,148,58,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }

.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(184,148,58,0.12); border: 1px solid rgba(184,148,58,0.28);
  border-radius: 100px; padding: 0.35rem 1rem;
  font-size: 0.75rem; font-weight: 600; color: var(--gold-light);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 700; line-height: 1.12; color: #fff; margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: normal; display: block; color: var(--gold-light);
}

.hero-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,0.65);
  max-width: 520px; margin-bottom: 2.25rem; line-height: 1.8;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: var(--space-xl); }

.hero-trust {
  display: flex; align-items: center; gap: 1.75rem;
  padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
}
.trust-item span { color: var(--gold-light); font-weight: 700; }

/* Hero stats sidebar */
.hero-stats {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.75rem; z-index: 2;
}
.hero-stat {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); padding: 1.25rem 1.75rem;
  text-align: center; min-width: 140px;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition);
}
.hero-stat:hover { border-color: rgba(184,148,58,0.3); }
.hero-stat__num {
  font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700;
  color: var(--gold-light); line-height: 1;
}
.hero-stat__label {
  font-size: 0.7rem; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.07em; margin-top: 0.3rem;
}
@media (max-width: 900px) { .hero-stats { display: none; } }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--bg-dark-2);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.9rem 0;
}
.trust-bar-inner {
  display: flex; align-items: center; gap: 2rem;
  overflow-x: auto; scrollbar-width: none;
}
.trust-bar-inner::-webkit-scrollbar { display: none; }
.trust-bar-item {
  display: flex; align-items: center; gap: 0.5rem;
  white-space: nowrap; font-size: 0.8rem; color: rgba(255,255,255,0.4); flex-shrink: 0;
}
.trust-bar-item strong { color: rgba(255,255,255,0.65); font-weight: 600; }
.trust-bar-sep { color: rgba(255,255,255,0.15); }

/* ============================================================
   PRACTICE AREA CARDS — sobre fondo claro
   ============================================================ */
.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.practice-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.75rem;
  transition: all var(--transition);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
}
.practice-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); opacity: 0; transition: opacity var(--transition);
}
.practice-card:hover {
  border-color: var(--gold-border); transform: translateY(-4px);
  box-shadow: var(--shadow-lg); color: inherit;
}
.practice-card:hover::before { opacity: 1; }

.practice-card__icon {
  width: 48px; height: 48px;
  background: var(--gold-dim); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; font-size: 1.3rem;
  border: 1px solid var(--gold-border);
}
.practice-card__title {
  font-family: var(--font-serif); font-size: 1.1rem;
  color: var(--text-primary); margin-bottom: 0.5rem;
}
.practice-card__desc {
  font-size: 0.86rem; color: var(--text-secondary); line-height: 1.65; flex: 1; margin-bottom: 1.1rem;
}
.practice-card__link {
  font-size: 0.8rem; color: var(--gold); font-weight: 700; letter-spacing: 0.03em;
}

/* ============================================================
   SINGLE PRACTICE PAGE
   ============================================================ */
.practice-single-grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start;
}
@media (max-width: 900px) { .practice-single-grid { grid-template-columns: 1fr; } }

.ps-block {
  border-radius: var(--radius-md); padding: 1.5rem;
  margin-bottom: 1rem;
}
.ps-block--problema { background: #fff5f5; border-left: 3px solid var(--danger); }
.ps-block--solucion { background: #f0faf5; border-left: 3px solid var(--success); }
.ps-block--garantia { background: #fffbf0; border-left: 3px solid var(--gold); }
.ps-block h3 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 0.5rem; font-family: var(--font-sans); font-weight: 700;
}
.ps-block--problema h3 { color: var(--danger); }
.ps-block--solucion h3 { color: var(--success); }
.ps-block--garantia h3 { color: var(--gold-text); }
.ps-block p { color: var(--text-primary); margin: 0; line-height: 1.75; }

.practice-detail-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1.5rem;
  list-style: none; padding: 0; margin: 1.5rem 0;
}
.practice-detail-list li {
  display: flex; align-items: flex-start; gap: 0.45rem;
  font-size: 0.88rem; color: var(--text-primary);
}
.practice-detail-list li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
@media (max-width: 900px) { .practice-detail-list { grid-template-columns: 1fr; } }

.practice-cta-inline {
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  border-radius: var(--radius-md); padding: 1.75rem;
  text-align: center; margin-top: 2rem;
}
.practice-cta-inline h3 { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0.4rem; }
.practice-cta-inline p { color: var(--text-secondary); margin-bottom: 1.25rem; }
.practice-cta-inline .btn-group { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Sidebar */
.sidebar-cta-card, .sidebar-team-card, .sidebar-other-areas {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-cta-card { text-align: center; border-top: 3px solid var(--gold); }
.sidebar-cta-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.sidebar-cta-card p  { font-size: 0.84rem; color: var(--text-secondary); margin-bottom: 1rem; }
.sidebar-cta-card .btn { width: 100%; justify-content: center; margin-bottom: 0.5rem; }

.sidebar-team-card h4, .sidebar-other-areas h4 {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold-text); margin-bottom: 0.9rem; font-family: var(--font-sans); font-weight: 700;
}
.sidebar-team-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
}
.sidebar-team-item:last-child { border-bottom: none; }
.sidebar-team-item__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; color: #fff; flex-shrink: 0;
}
.sidebar-team-item__name  { font-size: 0.83rem; color: var(--text-primary); font-weight: 600; }
.sidebar-team-item__role  { font-size: 0.73rem; color: var(--text-muted); }

.sidebar-other-areas ul { list-style: none; padding: 0; }
.sidebar-other-areas li a {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.42rem 0; font-size: 0.84rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border); transition: all var(--transition);
}
.sidebar-other-areas li:last-child a { border-bottom: none; }
.sidebar-other-areas li a:hover { color: var(--gold); padding-left: 0.3rem; }

/* ============================================================
   ABOUT / NOSOTROS — fondo claro
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center;
}
.about-img-main {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  position: relative; box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.about-images { position: relative; }
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); color: #fff;
  border-radius: var(--radius-md); padding: 1.1rem 1.5rem;
  text-align: center; font-weight: 700; box-shadow: var(--shadow-md);
}
.about-badge__num  { font-size: 2rem; font-family: var(--font-serif); line-height: 1; }
.about-badge__text { font-size: 0.72rem; opacity: 0.9; }

/* Texto en about sobre fondo claro */
.about-text h2, .about-text p { color: var(--text-primary); }

.mvv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.75rem;
}
.mvv-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.1rem;
  transition: all var(--transition);
}
.mvv-card:hover { border-color: var(--gold-border); box-shadow: var(--shadow-sm); }
.mvv-card h4 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold-text); margin-bottom: 0.4rem; font-family: var(--font-sans); font-weight: 700;
}
.mvv-card p { font-size: 0.84rem; color: var(--text-secondary); margin: 0; }

@media (max-width: 768px) {
  .about-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .mvv-grid    { grid-template-columns: 1fr; }
  .about-badge { right: 0; bottom: -12px; }
}

/* ============================================================
   TEAM — Diseño Circular Profesional v7
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

/* Tarjeta base — overflow VISIBLE para que la sombra circular se vea */
.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;                       /* ← CLAVE: no recortar las sombras */
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 2.5rem 1.5rem 1.75rem;
  position: relative;
}

/* Línea dorada superior al hacer hover */
.team-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0; transition: opacity var(--transition);
}
.team-card:hover { border-color: rgba(184,148,58,0.25); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 8px 24px rgba(184,148,58,0.12); }
.team-card:hover::before { opacity: 1; }

/* ── Contenedor circular de foto ── */
.team-card__img {
  width:  148px;
  height: 148px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.35rem;
  background: linear-gradient(135deg, #f8f5ef, #ece8df);
  display: flex; align-items: center; justify-content: center;
  /* Capas de sombra: blanco → anillo dorado → brillo suave → profundidad */
  box-shadow:
    0 0 0 4px var(--bg-surface),
    0 0 0 7px rgba(184,148,58,0.40),
    0 0 0 10px rgba(184,148,58,0.10),
    0 12px 36px rgba(0,0,0,0.14),
    0 4px 14px rgba(184,148,58,0.18);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Al hover: anillo dorado más intenso */
.team-card:hover .team-card__img {
  box-shadow:
    0 0 0 4px var(--bg-surface),
    0 0 0 7px rgba(184,148,58,0.65),
    0 0 0 12px rgba(184,148,58,0.15),
    0 16px 48px rgba(0,0,0,0.18),
    0 6px 18px rgba(184,148,58,0.28);
  transform: scale(1.04);
}

/* Imagen dentro del círculo — !important anula los atributos width/height del HTML */
.team-card__img img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: 50%;
  display: block;
}

/* Placeholder con iniciales */
.team-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700;
  color: var(--gold);
  background: linear-gradient(135deg, #f8f5ef, #ece8df);
  border-radius: 50%;
}

/* Info */
.team-card__info  { padding: 0; }
.team-card__name  { font-family: var(--font-serif); font-size: 1rem; color: var(--text-primary); margin-bottom: 0.3rem; line-height: 1.35; font-weight: 600; }
.team-card__role  { display: block; font-size: 0.72rem; color: var(--gold-text); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; }
.team-card__phone { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.team-card__spec  { display: block; font-size: 0.74rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.5rem; line-height: 1.4; }
.team-card__bio   { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; margin: 0.4rem 0 0.5rem; text-align: left; }

/* Íconos sociales */
.team-card__social {
  display: flex; gap: 0.4rem; justify-content: center;
  margin-top: 0.85rem; padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.team-card__social a {
  width: 30px; height: 30px; border: 1.5px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--text-muted); text-decoration: none;
  transition: all var(--transition);
}
.team-card__social a:hover {
  border-color: var(--gold); color: var(--gold); background: rgba(184,148,58,0.08);
  transform: translateY(-2px);
}

/* ============================================================
   STATS — sección con fondo oscuro elegante
   ============================================================ */
.stats-section-wrap {
  background: var(--bg-dark);
  padding: var(--space-2xl) 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stat-card {
  text-align: center; padding: 2rem 1.25rem;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stat-card:last-child { border-right: none; }
.stat-card__num {
  font-family: var(--font-serif); font-size: 3rem; font-weight: 700;
  color: var(--gold-light); line-height: 1;
}
.stat-card__label {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.5rem;
}
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
/* Versión light */
.stat-card.light { border-right-color: var(--border); }
.stat-card.light .stat-card__num { color: var(--gold); }
.stat-card.light .stat-card__label { color: var(--text-muted); }

/* ============================================================
   FAQ — sobre fondo claro
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item  { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; cursor: pointer;
  font-family: var(--font-serif); font-size: 1.02rem; color: var(--text-primary);
  background: none; border: none; width: 100%; text-align: left;
  gap: 1rem; transition: color var(--transition);
}
.faq-question:hover { color: var(--gold-text); }
.faq-icon {
  width: 28px; height: 28px; border: 1.5px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem; color: var(--gold);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--gold); background: var(--gold-dim); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.faq-answer-inner {
  padding-bottom: 1.25rem; color: var(--text-secondary);
  font-size: 0.93rem; line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 500px; }

/* ============================================================
   CONTACT — sobre fondo claro
   ============================================================ */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 3.5rem; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.contact-info-item:hover { border-color: var(--gold-border); box-shadow: var(--shadow-md); }
.contact-info-icon {
  width: 44px; height: 44px; background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-text h4 {
  font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 0.2rem; font-family: var(--font-sans); font-weight: 700;
}
.contact-info-text p    { color: var(--text-primary); font-size: 0.92rem; margin: 0; }
.contact-info-text a    { color: var(--text-primary); }
.contact-info-text a:hover { color: var(--gold); }

.contact-form-box {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 2.25rem; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--bg-elevated);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.7rem 0.95rem; color: var(--text-primary);
  font-family: var(--font-sans); font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,148,58,0.1);
}
.form-group select { cursor: pointer; background-color: var(--bg-elevated); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-privacy { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 1rem; }
.form-privacy a { color: var(--gold); }
.form-notice { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.88rem; margin-top: 0.75rem; display: none; }
.form-notice--success { background: #f0faf5; border: 1px solid rgba(39,103,73,0.25); color: var(--success); }
.form-notice--error   { background: #fff5f5; border: 1px solid rgba(197,48,48,0.25); color: var(--danger); }
.honeypot-field { display: none !important; }

@media (max-width: 768px) {
  .contact-wrap    { grid-template-columns: 1fr; gap: 2rem; }
  .form-row        { grid-template-columns: 1fr; }
  .contact-form-box{ padding: 1.5rem; }
}

/* ============================================================
   CTA BANNER — oscuro para contraste
   ============================================================ */
.cta-banner {
  background: var(--bg-dark);
  padding: var(--space-2xl) 0; text-align: center;
}
.cta-banner h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3.5vw, 2.3rem); color: #fff; margin-bottom: 0.75rem; }
.cta-banner p  { color: rgba(255,255,255,0.55); max-width: 520px; margin: 0 auto 2rem; }
.cta-banner .btn-group { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

/* ============================================================
   FOOTER — oscuro
   ============================================================ */
.site-footer { background: var(--bg-dark-2); border-top: 1px solid rgba(255,255,255,0.06); padding-top: var(--space-2xl); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.footer-logo-icon {
  width: 34px; height: 34px; background: var(--gold);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 0.9rem; font-weight: 800; color: #fff;
}
.footer-logo-text { font-family: var(--font-serif); font-size: 1rem; color: #fff; font-weight: 700; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.38); line-height: 1.65; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.45rem; }
.footer-social a {
  width: 34px; height: 34px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.4); transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.footer-col h4 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold-light); margin-bottom: 1rem; font-family: var(--font-sans); font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-col ul li a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; font-size: 0.78rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom a { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: var(--gold-light); }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem;
}
.whatsapp-float__btn {
  width: 54px; height: 54px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); font-size: 1.5rem;
  text-decoration: none; transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-pulse 3s ease infinite;
}
.whatsapp-float__btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0); }
  60%     { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 10px rgba(37,211,102,0); }
}
.whatsapp-float__tooltip {
  background: var(--bg-dark); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); padding: 0.4rem 0.75rem;
  font-size: 0.78rem; color: #fff; white-space: nowrap;
  opacity: 0; transform: translateX(6px); transition: all var(--transition); pointer-events: none;
}
.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; transform: translateX(0); }

.back-to-top {
  position: fixed; bottom: 90px; right: 1.75rem;
  width: 40px; height: 40px; background: var(--bg-surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer; z-index: 890;
  opacity: 0; visibility: hidden; transition: all var(--transition); font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { border-color: var(--gold); color: var(--gold); box-shadow: var(--shadow-md); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0; z-index: 950; display: none;
}
.cookie-banner.visible { display: block; }
.cookie-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.cookie-text { font-size: 0.83rem; color: rgba(255,255,255,0.45); }
.cookie-text a { color: var(--gold-light); }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ============================================================
   PAGE HERO — interior pages
   ============================================================ */
.page-hero {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: calc(68px + 3.5rem) 0 3rem;
}
.page-hero .section-label { color: var(--gold-light); }
.page-hero .section-title { color: #fff; }
.page-hero .section-title span { color: var(--gold-light); }
.page-hero p { color: rgba(255,255,255,0.55); }
.breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-bottom: 0.85rem; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.35); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb-sep { opacity: 0.35; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   SCROLLBAR & SELECTION
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-elevated); }
::-webkit-scrollbar-thumb { background: rgba(184,148,58,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(184,148,58,0.5); }
::selection { background: rgba(184,148,58,0.18); color: var(--text-primary); }

/* ============================================================
   RESPONSIVE GENERAL
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 480px) {
  .hero-actions  { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-group     { flex-direction: column; }
  .btn-group .btn{ width: 100%; justify-content: center; }
  .stats-grid    { grid-template-columns: repeat(2,1fr); gap: 0; }
}

/* ============================================================
   TESTIMONIALS SECTION — v6.0
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-xl);
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.testimonial-card__stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.testimonial-card__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin-top: auto;
}
.testimonial-card__avatar {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark,#8a6920) 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-card__name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.testimonial-card__role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Rating summary bar */
.rating-summary {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-secondary);
}
.rating-summary strong { color: var(--text-primary); }
.rating-summary .stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 3px; }

/* ============================================================
   BLOG SECTION — v8.0 Premium redesign
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: var(--space-xl);
}
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
  position: relative;
}
.blog-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.10), 0 6px 20px rgba(184,148,58,0.12);
  transform: translateY(-5px);
  border-color: rgba(184,148,58,0.30);
}
/* Línea dorada top al hover */
.blog-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  opacity: 0; transition: opacity 0.28s ease;
  z-index: 1;
}
.blog-card:hover::before { opacity: 1; }

/* Contenedor de imagen (thumbnail) */
.blog-card__thumb-wrap {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
}
.blog-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-subtle);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__thumb { transform: scale(1.04); }

.blog-card__thumb--empty {
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-elevated) 60%, rgba(184,148,58,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__thumb-icon {
  font-size: 2.8rem;
  opacity: 0.45;
}
/* Badge de categoría sobre la imagen */
.blog-card__cat-badge {
  position: absolute;
  top: 10px; left: 12px;
  background: var(--gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  z-index: 2;
}

/* Cuerpo de la tarjeta */
.blog-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.blog-card__date, .blog-card__rtime {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.blog-card__title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}
.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card__title a:hover { color: var(--gold-text); }
.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.2rem;
}
/* Footer de la tarjeta: autor + enlace */
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin-top: auto;
  flex-wrap: wrap;
}
.blog-card__author {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.blog-card__link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s, color 0.2s;
  white-space: nowrap;
}
.blog-card__link:hover { gap: 8px; color: var(--gold); }

/* ── Imagen antigua (compatibilidad) ── */
.blog-card__img {
  width: 100%; aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0;
  background: var(--bg-subtle);
}
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__img--placeholder {
  background: linear-gradient(135deg, var(--bg-subtle), var(--bg-elevated));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--gold);
}

.blog-cta {
  text-align: center;
  margin-top: 2.5rem;
}
.blog-cta a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--gold-text); font-weight: 600; text-decoration: none; font-size: 0.95rem;
  border-bottom: 1px solid rgba(154,121,40,0.3); padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.blog-cta a:hover { color: var(--gold); border-color: var(--gold); }

/* ============================================================
   CONTACT SPLIT LAYOUT — v6.0
   ============================================================ */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; gap: 2rem; } }

.contact-split__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-split__info h2 { color: #fff; }
.contact-split__info h2 span { color: var(--gold-light); }
.contact-split__info p { color: rgba(255,255,255,0.65); }

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}
.contact-info-item__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-info-item a { color: var(--gold-light); text-decoration: none; }
.contact-info-item a:hover { color: #fff; }

.contact-split__form {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
@media (max-width: 480px) { .contact-split__form { padding: 1.25rem; } }

/* ============================================================
   SEO CONTENT GRID (landing pages) — v6.0
   ============================================================ */
.seo-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 960px) { .seo-content-grid { grid-template-columns: 1fr; } }

.seo-content-main { min-width: 0; }

.seo-content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 90px;
}
@media (max-width: 960px) { .seo-content-sidebar { position: static; } }

/* Sidebar cards */
.sidebar-cta-card {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sidebar-cta-card h3 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.1rem;
}
.sidebar-cta-card p { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.sidebar-cta-card .btn { justify-content: center; }

.sidebar-team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.sidebar-team-card h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.sidebar-team-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-team-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-team-item__avatar {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark,#8a6920) 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-team-item__name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.sidebar-team-item__role { font-size: 0.78rem; color: var(--text-muted); }

.sidebar-other-areas {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.sidebar-other-areas h4 {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.sidebar-other-areas ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-other-areas a {
  color: var(--gold-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}
.sidebar-other-areas a:hover { color: var(--gold); }

/* ============================================================
   PROCESS STEPS — v6.0
   ============================================================ */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}
.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.process-step__num {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark,#8a6920) 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(184,148,58,0.3);
}
.process-step__body {}
.process-step__body h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.process-step__body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   PROBLEM/SOLUTION/GUARANTEE BLOCKS — v6.0
   ============================================================ */
.ps-block {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}
.ps-block h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.ps-block p { font-size: 0.9rem; line-height: 1.65; margin: 0; }

.ps-block--problema {
  background: rgba(220,53,69,0.06);
  border-left: 4px solid #dc3545;
}
.ps-block--problema h3 { color: #c0392b; }
.ps-block--problema p  { color: var(--text-secondary); }

.ps-block--solucion {
  background: rgba(40,167,69,0.06);
  border-left: 4px solid #28a745;
}
.ps-block--solucion h3 { color: #1e7e34; }
.ps-block--solucion p  { color: var(--text-secondary); }

.ps-block--garantia {
  background: rgba(184,148,58,0.08);
  border-left: 4px solid var(--gold);
}
.ps-block--garantia h3 { color: var(--gold-text); }
.ps-block--garantia p  { color: var(--text-secondary); }

/* ============================================================
   PRACTICE DETAIL LIST — v6.0
   ============================================================ */
.practice-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
}
@media (max-width: 600px) { .practice-detail-list { grid-template-columns: 1fr; } }
.practice-detail-list li {
  padding: 0.45rem 0 0.45rem 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.practice-detail-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
  top: 0.55rem;
}

/* ============================================================
   GOLD DIVIDER — v6.0
   ============================================================ */
.gold-divider {
  border: none;
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  border-radius: 2px;
  margin: 1.25rem 0 1.5rem;
}

/* ============================================================
   RESPONSIVE ADDITIONS v6.0
   ============================================================ */
@media (max-width: 768px) {
  .contact-split { grid-template-columns: 1fr; }
  .seo-content-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .process-step__num { width: 36px; height: 36px; font-size: 1rem; }
}
@media (max-width: 480px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .practice-detail-list { grid-template-columns: 1fr; }
}

/* ============================================================
   v7.0 — BANNER DE ANUNCIO SUPERIOR
   ============================================================ */
.top-banner {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  animation: bannerSlide 4s ease infinite;
  padding: 0.55rem 0;
  text-align: center;
  position: relative;
  z-index: 1001;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@keyframes bannerSlide {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.top-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.top-banner a { color: #fff; text-decoration: none; }
.top-banner a:hover { text-decoration: underline; color: rgba(255,255,255,0.9); }
.top-banner__text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.top-banner__text::before, .top-banner__text::after {
  content: '—';
  margin: 0 0.5rem;
  opacity: 0.5;
}
/* Push hero padding when banner is visible */
body.has-top-banner .hero { padding-top: calc(68px + 42px); }

/* ============================================================
   v7.0 — PRACTICE CARDS — ICONOS MEJORADOS
   ============================================================ */
.practice-card__icon {
  width: 62px;
  height: 62px;
  font-size: 1.7rem;
  background: linear-gradient(145deg, rgba(184,148,58,0.12), rgba(184,148,58,0.04));
  border: 1.5px solid rgba(184,148,58,0.22);
  box-shadow: 0 2px 10px rgba(184,148,58,0.1), inset 0 1px 0 rgba(255,255,255,0.7);
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

/* Gold fill on hover */
.practice-card__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity 0.28s ease;
  border-radius: inherit;
}

.practice-card:hover .practice-card__icon {
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(184,148,58,0.38);
  transform: scale(1.08) rotate(-4deg);
}

.practice-card:hover .practice-card__icon::after { opacity: 1; }

/* Keep emoji above the fill layer */
.practice-card__icon > *,
.practice-card__icon > span:first-child,
.practice-card .practice-card__icon {
  position: relative;
  z-index: 1;
}

/* ============================================================
   v7.0 — HERO — IMAGEN DE FONDO CONFIGURABLE
   ============================================================ */
/* Higher default opacity — more visible */
.hero-bg {
  opacity: 0.18;
}

/* Cuando se carga imagen desde Customizer */
.hero-bg.has-custom-image {
  opacity: var(--hero-opacity, 0.22);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: none;
}

/* ============================================================
   v7.0 — IMÁGENES EN SECCIONES
   ============================================================ */
/* Contenedor de imagen cambiable */
.section-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.section-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.section-img-frame:hover img { transform: scale(1.03); }

/* SVG placeholder for about section */
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--bg-elevated), #ece7df);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  color: var(--gold);
  font-size: 5rem;
  flex-direction: column;
  gap: 0.5rem;
}

.about-img-placeholder svg {
  width: 80%;
  height: auto;
  max-width: 260px;
  opacity: 0.4;
}

/* ============================================================
   v7.0 — TESTIMONIO CON FOTO (si se carga imagen)
   ============================================================ */
.testimonial-card__avatar.has-photo {
  padding: 0;
  background: none;
}

.testimonial-card__avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ============================================================
   v7.0 — CONTACT SPLIT ITEMS (override naming)
   ============================================================ */
.contact-split__items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-split__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.contact-split__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-split__item a { color: rgba(255,255,255,0.65); }
.contact-split__item a:hover { color: var(--gold-light); }

/* ============================================================
   v7.0 — RESPONSIVE UPDATES
   ============================================================ */
@media (max-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .team-card__img { width: 120px !important; height: 120px !important; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-card { padding: 1.75rem 1rem 1.25rem; }
  .team-card__img { width: 110px !important; height: 110px !important; }
}

/* ============================================================
   SINGLE POST — v8.0
   ============================================================ */

/* ── Hero del artículo ── */
.single-post__hero {
  position: relative;
  padding: 5rem 0 3.5rem;
  background: var(--bg-dark);
  overflow: hidden;
  margin-top: 72px; /* altura del header */
}
.single-post__hero.has-image {
  padding: 5.5rem 0 4rem;
}
.single-post__hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.35) saturate(0.7);
  transition: transform 8s ease;
}
.single-post__hero:hover .single-post__hero-bg { transform: scale(1.03); }
.single-post__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,29,34,0.4) 0%, rgba(26,29,34,0.75) 100%);
}
.single-post__hero-content {
  position: relative; z-index: 1;
  max-width: 860px;
}

/* Breadcrumb */
.single-post__breadcrumb {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.single-post__breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.single-post__breadcrumb a:hover { color: var(--gold-light); }
.single-post__breadcrumb span:last-child { color: rgba(255,255,255,0.35); }

.single-post__cat {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 12px; border-radius: 100px;
  text-decoration: none;
  margin-bottom: 0.9rem;
}
.single-post__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700; line-height: 1.3;
  color: #fff;
  margin-bottom: 1.1rem;
}
.single-post__meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(255,255,255,0.6);
}
.single-post__meta-item {
  display: inline-flex; align-items: center; gap: 5px;
}

/* ── Layout principal ── */
.single-post__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: var(--space-2xl) 0;
  align-items: start;
}
@media (max-width: 900px) {
  .single-post__layout { grid-template-columns: 1fr; gap: 2rem; }
  .single-post__sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 600px) {
  .single-post__sidebar { grid-template-columns: 1fr; }
}

/* ── Contenido del artículo ── */
.single-post__content {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.single-post__content h2 {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary); margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold-dim);
}
.single-post__content h3 {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600;
  color: var(--text-primary); margin: 1.75rem 0 0.6rem;
}
.single-post__content p { margin-bottom: 1.25rem; }
.single-post__content a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.single-post__content a:hover { color: var(--gold); }
.single-post__content ul, .single-post__content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.single-post__content li { margin-bottom: 0.4rem; }
.single-post__content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif); font-style: italic;
  color: var(--text-primary);
  margin: 1.5rem 0;
}
.single-post__content img {
  max-width: 100%; border-radius: var(--radius); margin: 1rem 0;
}
.single-post__content figure { margin: 1.5rem 0; }
.single-post__content figcaption {
  font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 0.4rem;
}

/* Tags */
.single-post__tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.single-post__tag {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem; padding: 4px 12px;
  border-radius: 100px; text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.single-post__tag:hover { background: var(--gold-dim); color: var(--gold-text); border-color: var(--gold-border); }

/* Navegación anterior / siguiente */
.single-post__nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.single-post__nav-item { display: flex; flex-direction: column; gap: 0.25rem; }
.single-post__nav-item--next { text-align: right; }
.single-post__nav-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.single-post__nav-title { font-family: var(--font-serif); font-size: 0.92rem; color: var(--gold-text); text-decoration: none; line-height: 1.4; font-weight: 600; }
.single-post__nav-title:hover { color: var(--gold); }
@media (max-width: 560px) { .single-post__nav { grid-template-columns: 1fr; } }

/* ── Sidebar ── */
.single-post__sidebar {
  position: sticky; top: 90px;
}
.sp-sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.sp-sidebar-card--cta {
  background: var(--bg-dark);
  border: 1px solid rgba(184,148,58,0.25);
  text-align: center;
}
.sp-sidebar-card--cta .sp-sidebar-card__icon {
  font-size: 2.5rem; margin-bottom: 0.75rem; display: block;
}
.sp-sidebar-card--cta .sp-sidebar-card__title { color: #fff; }
.sp-sidebar-card--cta .sp-sidebar-card__text { color: rgba(255,255,255,0.6); font-size: 0.87rem; line-height: 1.6; margin-bottom: 1.25rem; }
.sp-sidebar-card--cta strong { color: rgba(255,255,255,0.9); }
.sp-sidebar-card__title {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 1rem;
}
.sp-sidebar-services { list-style: none; padding: 0; margin: 0; }
.sp-sidebar-services__item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}
.sp-sidebar-services__item:last-child { border-bottom: none; }
.sp-sidebar-services__item a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.sp-sidebar-services__item a:hover { color: var(--gold-text); }
.sp-sidebar-contact { list-style: none; padding: 0; margin: 0; }
.sp-sidebar-contact li {
  padding: 0.45rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.84rem; color: var(--text-secondary); display: flex; gap: 0.5rem;
}
.sp-sidebar-contact li:last-child { border-bottom: none; }
.sp-sidebar-contact a { color: var(--text-secondary); text-decoration: none; }
.sp-sidebar-contact a:hover { color: var(--gold-text); }

/* ── Related / CTA bar ── */
.single-post__related { padding-top: var(--space-2xl); }
.single-post__cta-bar { padding: var(--space-2xl) 0; }
