/* ============================================
   GRUPO DE FISCALISTAS — Sistema de Diseño
   Estética: Dark Premium · Legal/Corporate Luxury
   ============================================ */

:root {
  /* Burdeos */
  --gf-burgundy: #6B1424;
  --gf-burgundy-dark: #3a0a13;
  --gf-burgundy-deep: #220308;
  --gf-burgundy-light: #8a1c2e;
  --gf-burgundy-glow: rgba(107, 20, 36, 0.4);

  /* Dorados */
  --gf-gold: #C9A961;
  --gf-gold-soft: #d4b878;
  --gf-gold-bright: #e6c878;

  /* Neutros oscuros */
  --gf-bg: #0a0608;
  --gf-bg-soft: #120a0d;
  --gf-bg-card: #1a1013;
  --gf-bg-elevated: #221619;
  --gf-line: rgba(201, 169, 97, 0.15);
  --gf-line-strong: rgba(201, 169, 97, 0.3);

  /* Textos */
  --gf-text: #e8e4dc;
  --gf-text-soft: #b8b2a8;
  --gf-text-mute: #807a72;
  --gf-text-faint: #5a554f;
  --gf-white: #ffffff;
  --gf-cream: #f5f0e6;

  /* Tipografía */
  --font-body: 'Roboto', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --t-fast: 0.2s;
  --t-base: 0.4s;
  --t-slow: 0.7s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gf-text);
  background: var(--gf-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--gf-burgundy); color: var(--gf-white); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--gf-cream);
  letter-spacing: 0.005em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gf-gold);
  font-weight: 500;
  font-family: var(--font-body);
  position: relative;
  padding-left: 32px;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; position: absolute;
  left: 0; top: 50%;
  width: 22px; height: 1px;
  background: var(--gf-gold);
}

.eyebrow-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gf-gold);
  font-weight: 500;
}
.eyebrow-arrow::after {
  content: "";
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--gf-gold);
}

/* Variante centrada con líneas a ambos lados, en vino burgundy */
.eyebrow-bothsides {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gf-burgundy);
  font-weight: 600;
}
.eyebrow-bothsides::before,
.eyebrow-bothsides::after {
  content: "";
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--gf-burgundy);
}

/* Subtítulo de alianzas: banderín guinda con letras cream */
.alianzas-subtitle {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.85rem 2.8rem;
  background: var(--gf-burgundy);
  color: var(--gf-cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(58, 10, 19, 0.25);
}

/* Section-head con eyebrow-bothsides + subtitle en bloques separados centrados */
.section-head:has(.eyebrow-bothsides) {
  text-align: center;
}
.section-head .eyebrow-bothsides {
  display: inline-flex;
}
.section-head .alianzas-subtitle {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 700px) { .container { padding: 0 1.25rem; } }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 6, 8, 0.92);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--gf-line);
  transition: all var(--t-base);
}
.site-header.scrolled {
  background: rgba(10, 6, 8, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 0 60px var(--gf-burgundy-glow);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 2rem;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-mark {
  height: 50px; width: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 700px) { .brand-mark { height: 42px; } }

.nav-menu {
  display: flex; align-items: center; gap: 0;
  flex: 1; justify-content: center;
}
.nav-menu li { display: flex; align-items: center; }
.nav-menu li + li::before {
  content: "";
  display: inline-block;
  width: 1px; height: 14px;
  background: var(--gf-line-strong);
  margin: 0 0.5rem;
}
.nav-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gf-text);
  padding: 0.5rem 0.6rem;
  position: relative;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--gf-gold); }
.nav-link.active { color: var(--gf-gold); font-weight: 600; }
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 1px;
  background: var(--gf-gold);
}
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--gf-burgundy);
  color: var(--gf-white) !important;
  padding: 0.85rem 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
  transition: all var(--t-fast);
  flex-shrink: 0;
  border-radius: 2px;
  border: 1px solid var(--gf-gold-soft);
}
.nav-cta:hover {
  background: var(--gf-burgundy-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--gf-burgundy-glow);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--gf-cream);
  transition: all var(--t-fast);
}
@media (max-width: 1100px) {
  .nav-link { padding: 0.5rem 0.55rem; font-size: 0.72rem; letter-spacing: 0.14em; }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 80px; left: 0; right: 0;
    flex-direction: column;
    background: var(--gf-bg);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--t-base);
    border-top: 1px solid var(--gf-line);
    height: calc(100vh - 80px);
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-menu li { width: 100%; }
  .nav-menu li + li::before { display: none; }
  .nav-link { padding: 1rem 0; font-size: 0.95rem; display: block; width: 100%; }
}

/* HERO HOME */
.hero-home {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  background: var(--gf-burgundy-deep);
  overflow: hidden; margin: 0;
}
/* Variante banner: la imagen ya trae todo el texto, sin overlay */
.hero-home.hero-banner {
  min-height: 0;
  aspect-ratio: 1600 / 399;
  max-height: 480px;
}
.hero-home.hero-banner .hero-home-bg::after { display: none; }
.hero-home.hero-banner .hero-home-bg {
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-home-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center right;
}
.hero-home-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(34,3,8,0.92) 0%,
      rgba(58,10,19,0.78) 35%,
      rgba(58,10,19,0.4) 60%,
      rgba(58,10,19,0.15) 100%);
}
.hero-home-content {
  position: relative; z-index: 2;
  width: 100%; padding: 5rem 0;
}
.hero-home h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  line-height: 1.0;
  color: var(--gf-cream);
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.hero-home h1::after {
  content: ""; display: block;
  width: 80px; height: 1.5px;
  background: var(--gf-gold);
  margin-top: 2rem;
}
.hero-home .hero-tagline {
  display: block; margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--gf-gold-soft);
  max-width: 540px;
}

/* SECCIONES BASE */
.section { padding: 6rem 0; position: relative; }
.section-sm { padding: 4rem 0; }
.bg-soft { background: var(--gf-bg-soft); }
.bg-deep { background: var(--gf-burgundy-deep); }

.section-head { text-align: center; margin-bottom: 4rem; }
.section-head .eyebrow,
.section-head .eyebrow-arrow { margin-bottom: 1rem; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
  font-weight: 500;
}
.section-head h2 em { font-style: italic; color: var(--gf-gold); }

/* Eventos: títulos en color vino */
.page-eventos .section-head h2,
.page-eventos .evento-content .titulo {
  color: var(--gf-burgundy);
}
.page-eventos .section-head h2 em {
  color: var(--gf-gold);
}
.page-eventos .evento-content .subtitulo {
  color: var(--gf-burgundy);
  opacity: 0.85;
}
.section-head .lead {
  color: var(--gf-text-soft);
  max-width: 720px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.7;
}

/* ESTADOS */
.estados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .estados-grid { grid-template-columns: 1fr; } }
.estado-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--gf-line);
}
.estado-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 40px var(--gf-burgundy-glow);
  border-color: var(--gf-line-strong);
}
.estado-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
  filter: brightness(0.85);
}
.estado-card:hover img { transform: scale(1.06); filter: brightness(1); }
.estado-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(34,3,8,0.95) 100%);
  pointer-events: none;
}
.estado-card .label {
  position: absolute;
  bottom: 1.75rem; left: 1.75rem;
  z-index: 2;
  color: var(--gf-cream);
  display: flex; align-items: center; gap: 0.7rem;
}
.estado-card .label svg {
  color: var(--gf-gold);
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.estado-card .ciudad {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: block; line-height: 1.1;
  color: var(--gf-cream);
}
.estado-card .estado {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gf-gold-soft);
}

/* ALIANZAS */
.alianzas-row {
  display: grid; align-items: center;
  gap: 2.5rem; margin-top: 3rem;
}
.alianzas-row.row-1 { grid-template-columns: repeat(6, 1fr); }
.alianzas-row.row-2 { grid-template-columns: repeat(9, 1fr); margin-top: 1.5rem; }
@media (max-width: 1000px) {
  .alianzas-row.row-1 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .alianzas-row.row-2 { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
}
@media (max-width: 600px) {
  .alianzas-row.row-1 { grid-template-columns: repeat(2, 1fr); }
  .alianzas-row.row-2 { grid-template-columns: repeat(3, 1fr); }
}
.alianza-logo {
  max-height: 64px; max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.55);
  transition: all var(--t-base);
  margin: 0 auto;
}
.alianzas-row.row-2 .alianza-logo { max-height: 48px; }
.alianza-logo:hover {
  filter: brightness(0) invert(1) opacity(1);
  transform: scale(1.08);
}

/* STATS BAND */
.stats-band {
  background: linear-gradient(135deg, var(--gf-burgundy-deep) 0%, var(--gf-burgundy-dark) 100%);
  padding: 4rem 0; margin: 0;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--gf-line-strong);
  border-bottom: 1px solid var(--gf-line-strong);
}
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(201,169,97,0.18), transparent 55%),
    radial-gradient(ellipse at 75% 50%, rgba(201,169,97,0.12), transparent 55%);
}
.stats-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 800px; margin: 0 auto;
  text-align: center;
}
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-item {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--gf-line-strong);
  color: var(--gf-cream);
}
.stat-item:last-child { border-right: none; }
@media (max-width: 600px) {
  .stat-item { border-right: none; border-bottom: 1px solid var(--gf-line-strong); padding: 1.5rem; }
  .stat-item:last-child { border-bottom: none; }
}
.stat-item .stat-icon { color: var(--gf-gold); margin-bottom: 1rem; display: inline-flex; }
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 500;
  line-height: 1; margin-bottom: 0.5rem;
  color: var(--gf-cream); display: block;
}
.stat-item .stat-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gf-gold);
  font-weight: 400; font-style: italic;
}

/* PAGE TITLE BAR */
.page-title-bar { display: flex; justify-content: flex-end; }
.page-title-bar .title-tab {
  background: var(--gf-burgundy);
  color: var(--gf-cream);
  padding: 1.3rem 3.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--gf-gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
@media (max-width: 700px) {
  .page-title-bar .title-tab { padding: 1rem 2rem; font-size: 1.2rem; }
}

/* PAGE HERO */
.page-hero {
  position: relative;
  min-height: 380px;
  background-color: var(--gf-burgundy-deep);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,6,8,0.4) 0%, rgba(10,6,8,0.92) 100%);
}
/* Variante light: sin degradado oscuro y con el title-tab destacado */
.page-hero.page-hero-light::after { display: none; }
.page-hero.page-hero-light .title-tab {
  background: rgba(58, 10, 19, 0.95);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.page-hero .container {
  position: relative; z-index: 2;
  padding-top: 5rem; padding-bottom: 0;
  width: 100%;
  display: flex; justify-content: flex-end;
}

/* QUIENES SOMOS */
.quienes-somos { padding: 6rem 0 4rem; }
.quienes-somos h2 {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}
.quienes-somos .subtitle {
  text-align: center;
  color: var(--gf-gold);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}
.quienes-somos .text {
  max-width: 880px; margin: 0 auto;
  text-align: justify;
  font-size: 1.02rem; line-height: 1.85;
  color: var(--gf-text-soft);
}
.quienes-somos .text p + p { margin-top: 1.4rem; }
.quienes-somos .text strong { color: var(--gf-gold); font-weight: 500; }

/* FILOSOFIA & CULTURA */
.fil-cul-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem; max-width: 1000px; margin: 0 auto;
}
@media (max-width: 800px) { .fil-cul-grid { grid-template-columns: 1fr; } }
.fil-cul-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.6);
  border: 1px solid var(--gf-line);
  transition: all var(--t-base);
}
.fil-cul-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 40px var(--gf-burgundy-glow);
  border-color: var(--gf-line-strong);
}
.fil-cul-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
  filter: brightness(0.75);
}
.fil-cul-card:hover img { transform: scale(1.04); filter: brightness(0.9); }
.fil-cul-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,6,8,0.95) 100%);
}
.fil-cul-card .content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2; padding: 2.25rem;
  color: var(--gf-cream);
}
.fil-cul-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
  color: var(--gf-cream);
  text-transform: uppercase;
}
.fil-cul-card h3::after {
  content: ""; display: block;
  width: 36px; height: 1px;
  background: var(--gf-gold);
  margin-top: 0.6rem;
}
.fil-cul-card p {
  font-size: 0.95rem; line-height: 1.6;
  color: var(--gf-text);
}

/* MEJOR OPCION */
.mejor-opcion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3.5rem;
}
@media (max-width: 1000px) { .mejor-opcion-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mejor-opcion-grid { grid-template-columns: 1fr; } }
.opcion-card {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border: 1px solid var(--gf-line);
  transition: all var(--t-base);
  background: #0a0608;
}
.opcion-card:hover {
  transform: translateY(-4px);
  border-color: var(--gf-gold-soft);
  box-shadow: 0 14px 36px rgba(0,0,0,0.7), 0 0 30px var(--gf-burgundy-glow);
}
.opcion-card img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.8s var(--ease-out);
  display: block;
}
.opcion-card:hover img { transform: scale(1.03); }
.opcion-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,6,8,0.85) 80%, rgba(10,6,8,0.98) 100%);
  pointer-events: none;
}
.opcion-card .content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2; padding: 1.75rem;
  color: var(--gf-cream);
}
.opcion-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--gf-cream);
}
.opcion-card h4::before {
  content: "";
  display: inline-block;
  width: 8px; height: 1px;
  background: var(--gf-gold);
  vertical-align: middle;
  margin-right: 0.6rem;
}
.opcion-card p {
  font-size: 0.85rem; line-height: 1.55;
  color: var(--gf-text-soft);
}

/* QUOTE */
.firma-quote {
  text-align: center;
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, var(--gf-bg-soft) 0%, var(--gf-burgundy-deep) 100%);
  position: relative;
  border-top: 1px solid var(--gf-line);
}
.firma-quote::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(107,20,36,0.2), transparent 60%);
}
.firma-quote .container { position: relative; z-index: 2; }
.firma-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.4;
  color: var(--gf-cream);
  max-width: 980px; margin: 0 auto;
  letter-spacing: 0.01em;
}
.firma-quote p::before {
  content: '\201C'; color: var(--gf-gold);
  font-size: 2.5em; line-height: 0;
  vertical-align: -0.4em; margin-right: 0.1em;
  font-family: var(--font-display);
}
.firma-quote p::after {
  content: '\201D'; color: var(--gf-gold);
  font-size: 2.5em; line-height: 0;
  vertical-align: -0.4em; margin-left: 0.1em;
  font-family: var(--font-display);
}

/* TRAYECTORIA */
.trayectoria-intro {
  text-align: center;
  max-width: 720px; margin: 0 auto 4rem;
}
.trayectoria-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500; margin: 1rem 0;
}
.trayectoria-intro p { color: var(--gf-text-soft); font-size: 1.05rem; }
.trayectoria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem; max-width: 920px; margin: 0 auto;
}
@media (max-width: 800px) { .trayectoria-grid { grid-template-columns: 1fr; } }
.cv-card {
  position: relative;
  aspect-ratio: 3/4.5;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1013 0%, #0a0608 100%);
  border: 1px solid var(--gf-line-strong);
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  display: block;
  text-decoration: none;
  font: inherit;
  width: 100%;
  text-align: center;
}
.cv-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.8), 0 0 60px var(--gf-burgundy-glow);
  border-color: var(--gf-gold);
}
.cv-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(107,20,36,0.5), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(0,0,0,0.7), transparent 60%);
}
.cv-card .gf-badge {
  position: absolute;
  top: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gf-burgundy-light), var(--gf-burgundy-dark));
  border: 2px solid var(--gf-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gf-gold);
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 6px 20px rgba(107,20,36,0.6);
}
.cv-card .cv-illustration {
  position: absolute;
  top: 7.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2; width: 70%;
  aspect-ratio: 1;
}
.cv-card .cv-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  padding: 1.75rem 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--gf-line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85) 30%);
}
.cv-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gf-cream);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.cv-card .role {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gf-gold);
  font-weight: 500;
  display: block; margin-bottom: 1.2rem;
}
.cv-card .arrow {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gf-gold);
  align-items: center; justify-content: center;
  color: var(--gf-gold);
  transition: all var(--t-fast);
}
.cv-card:hover .arrow {
  background: var(--gf-gold);
  color: var(--gf-burgundy-deep);
}

/* CV CARDS CON IMAGEN COMPLETA (nuevas) */
.cv-card-img {
  padding: 0 !important;
  overflow: hidden;
  aspect-ratio: 9/16;
  position: relative;
}
.cv-card-img::before { display: none !important; }
.cv-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-base) var(--ease-out);
}
.cv-card-img:hover .cv-card-image {
  transform: scale(1.03);
}
.cv-card-hover-arrow {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gf-gold);
  background: rgba(10, 6, 8, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gf-gold);
  transition: all var(--t-fast);
  z-index: 3;
}
.cv-card-img:hover .cv-card-hover-arrow {
  background: var(--gf-gold);
  color: var(--gf-burgundy-deep);
  transform: translateX(-50%) translateY(-3px);
}

/* CV MODAL */
.cv-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  animation: fadeIn 0.3s var(--ease-out);
}
.cv-modal.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cv-modal-content {
  max-width: 920px; width: 100%;
  background: var(--gf-bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.9), 0 0 80px var(--gf-burgundy-glow);
  border: 1px solid var(--gf-line-strong);
  animation: slideUp 0.4s var(--ease-out);
  margin: auto;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cv-modal-header {
  background: linear-gradient(135deg, var(--gf-burgundy-dark) 0%, var(--gf-burgundy) 100%);
  color: var(--gf-cream);
  padding: 2.5rem 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.cv-modal-header::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(201,169,97,0.15), transparent 70%);
}
.cv-modal-header::after {
  content: ""; position: absolute;
  bottom: 0; left: 2.5rem;
  width: 60px; height: 2px;
  background: var(--gf-gold);
}
.cv-modal-header > * { position: relative; z-index: 2; }
.cv-modal-header h2 {
  font-family: var(--font-display);
  color: var(--gf-cream);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.cv-modal-header .role {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gf-gold);
  font-weight: 500;
}

/* Header con foto del Dr */
.cv-modal-header-photo {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
}
.cv-modal-header-photo .cv-header-photo {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gf-gold);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  background: var(--gf-burgundy-deep);
}
.cv-modal-header-photo .cv-header-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.cv-modal-header-photo .cv-header-text {
  flex: 1 1 auto;
}
.cv-modal-header-photo .role {
  display: block;
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  .cv-modal-header-photo {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }
  .cv-modal-header-photo .cv-header-photo {
    width: 110px;
    height: 110px;
  }
}
.cv-modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: var(--gf-cream);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  z-index: 3;
}
.cv-modal-close:hover {
  background: var(--gf-burgundy-deep);
  color: var(--gf-gold);
}
.cv-modal-body { padding: 2.5rem; background: var(--gf-bg-card); }
@media (max-width: 600px) {
  .cv-modal-header, .cv-modal-body { padding: 2rem 1.5rem; }
}
.cv-section { margin-bottom: 2.5rem; }
.cv-section:last-child { margin-bottom: 0; }
.cv-section h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gf-gold);
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gf-line);
  position: relative;
}
.cv-section h3::before {
  content: ""; position: absolute;
  bottom: -1px; left: 0;
  width: 36px; height: 1px;
  background: var(--gf-gold);
}
.cv-section p {
  color: var(--gf-text-soft);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}
.cv-section p strong { color: var(--gf-gold); font-weight: 500; }
.cv-list { list-style: none; padding: 0; margin: 0; }
.cv-list li {
  padding: 0.7rem 0 0.7rem 1.75rem;
  position: relative;
  color: var(--gf-text-soft);
  line-height: 1.65;
  border-bottom: 1px solid var(--gf-line);
  font-size: 0.95rem;
}
.cv-list li:last-child { border-bottom: none; }
.cv-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--gf-gold);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.5;
}
.cv-list li strong { color: var(--gf-cream); font-weight: 500; }
.cv-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 2.5rem;
}
@media (max-width: 600px) {
  .cv-stat-grid { grid-template-columns: 1fr 1fr; }
}
.cv-stat {
  background: var(--gf-bg-elevated);
  border: 1px solid var(--gf-line);
  border-radius: 8px;
  padding: 1.4rem 1rem;
  text-align: center;
}
.cv-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gf-gold);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.cv-stat .lbl {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gf-text-mute);
}
.cv-pending {
  text-align: center;
  padding: 1.5rem;
  background: var(--gf-bg-elevated);
  border: 1px dashed var(--gf-line-strong);
  border-radius: 8px;
  color: var(--gf-text-mute);
  font-style: italic;
  font-size: 0.9rem;
}

/* SERVICIOS */
.hero-servicios {
  position: relative;
  min-height: 480px;
  background-color: var(--gf-burgundy-deep);
  background-size: cover; background-position: center;
  display: flex; align-items: center;
  text-align: center;
}
.hero-servicios::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,6,8,0.65) 0%, rgba(10,6,8,0.85) 100%);
}
.hero-servicios .container {
  position: relative; z-index: 2; width: 100%;
}
.hero-servicios .quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2.5rem);
  line-height: 1.3;
  color: var(--gf-cream);
  max-width: 1000px; margin: 0 auto;
}
.hero-servicios .quote-decorator {
  width: 60px; height: 1.5px;
  background: var(--gf-gold);
  margin: 0 auto 1.5rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-top: 4rem;
}
@media (max-width: 800px) { .servicios-grid { grid-template-columns: 1fr; } }
.servicio-card {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.55);
  border: 1px solid var(--gf-line);
  transition: all var(--t-base) var(--ease-out);
  background: #0a0608;
}
.servicio-card:hover {
  transform: translateY(-6px);
  border-color: var(--gf-gold);
  box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 50px var(--gf-burgundy-glow);
}
.servicio-card img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 1s var(--ease-out);
  display: block;
}
.servicio-card:hover img { transform: scale(1.03); }
.servicio-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,6,8,0.85) 80%, rgba(10,6,8,0.98) 100%);
  pointer-events: none;
}
.servicio-card .content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2; padding: 2rem;
  color: var(--gf-cream);
}
.servicio-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--gf-cream);
}
.servicio-card h3::before {
  content: "";
  display: inline-block;
  width: 16px; height: 1px;
  background: var(--gf-gold);
  vertical-align: middle;
  margin-right: 0.7rem;
}
.servicio-card p {
  font-size: 0.95rem; line-height: 1.6;
  color: var(--gf-text-soft);
}

/* EVENTOS */
.evento-card {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--gf-line);
  align-items: center;
}
.evento-card:last-child { border-bottom: none; }
@media (max-width: 900px) {
  .evento-card { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
}
.evento-gallery { position: relative; }
.evento-gallery .main-img {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  cursor: pointer;
  position: relative;
  border: 1px solid var(--gf-line);
}
.evento-gallery .main-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-base) var(--ease-out);
}
.evento-gallery .main-img:hover img { transform: scale(1.04); }
.evento-gallery .thumbs {
  display: flex; gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.evento-gallery .thumb {
  flex: 1 1 0;
  min-width: 60px;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--t-fast);
  opacity: 0.65;
}
.evento-gallery .thumb.active { border-color: var(--gf-gold); opacity: 1; }
.evento-gallery .thumb:hover { border-color: var(--gf-gold-soft); opacity: 1; }
.evento-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.evento-content .titulo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: 0.01em;
  color: var(--gf-cream);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.evento-content .subtitulo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gf-gold);
  margin-bottom: 1.25rem;
}
.evento-content .descripcion {
  color: var(--gf-text-soft);
  line-height: 1.8;
  font-size: 0.97rem;
  text-align: justify;
  margin-bottom: 1.5rem;
}
.evento-content .nota-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gf-gold);
  font-weight: 500;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--gf-gold);
  padding-bottom: 0.2rem;
  transition: all var(--t-fast);
}
.evento-content .nota-link:hover { gap: 0.8rem; color: var(--gf-gold-bright); }
.evento-content .nota-link svg { width: 14px; height: 14px; }

.evento-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.7);
  background: var(--gf-bg-card);
  border: 1px solid var(--gf-line);
}
.evento-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.evento-video-wrap .video-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 3;
  background: var(--gf-burgundy);
  color: var(--gf-cream);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  border: 1px solid var(--gf-gold-soft);
}
.evento-video-wrap .video-badge svg { width: 12px; height: 12px; }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 60px var(--gf-burgundy-glow);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--gf-cream);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  border: 1px solid rgba(201,169,97,0.2);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--gf-burgundy);
  color: var(--gf-gold);
  border-color: var(--gf-gold);
}

/* PUBLICACIONES */
.hero-publicaciones {
  position: relative;
  min-height: 460px;
  background-color: var(--gf-burgundy-deep);
  background-size: cover;
  background-position: center right;
  display: flex; align-items: center;
}
.hero-publicaciones::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,6,8,0.95) 0%, rgba(10,6,8,0.65) 50%, rgba(10,6,8,0.3) 100%);
}
.hero-publicaciones .container { position: relative; z-index: 2; width: 100%; }
.hero-publicaciones h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  color: var(--gf-cream);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  max-width: 720px;
}
.hero-publicaciones h1 em {
  display: block;
  color: var(--gf-gold);
  font-style: italic;
  font-weight: 400;
}
.hero-publicaciones .deco {
  width: 60px; height: 1.5px;
  background: var(--gf-gold);
  margin-top: 1.5rem;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px; margin: 0 auto;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr; max-width: 420px; } }
.cat-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55);
  background: var(--gf-bg-card);
  border: 1px solid var(--gf-line);
}
.cat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 50px var(--gf-burgundy-glow);
  border-color: var(--gf-gold);
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.cat-card:hover img { transform: scale(1.04); }

/* YEARS */
.years-section { max-width: 800px; margin: 0 auto; }
.year-accordion { border-bottom: 1px solid var(--gf-line); }
.year-toggle {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.75rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 500;
  color: var(--gf-cream);
  letter-spacing: 0.02em;
  text-align: left;
  transition: color var(--t-fast);
}
.year-toggle:hover { color: var(--gf-gold); }
.year-toggle .chev {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gf-gold);
  transition: transform var(--t-base) var(--ease-out);
  border: 1px solid var(--gf-gold);
  border-radius: 50%;
}
.year-toggle.open .chev { transform: rotate(90deg); }
.year-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.year-content.open { max-height: 20000px; }
.year-content-inner { padding: 0.5rem 0 2rem 0; }
.year-content-inner a, .year-content-inner .item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gf-line);
  color: var(--gf-text-soft);
  transition: all var(--t-fast);
  font-size: 0.95rem;
  line-height: 1.55;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.year-content-inner a:hover {
  color: var(--gf-cream);
  border-left-color: var(--gf-gold);
  background: var(--gf-bg-soft);
  padding-left: 1.5rem;
}
.year-content-inner .date {
  flex: 0 0 auto;
  min-width: 130px;
  color: var(--gf-gold);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
  font-feature-settings: "tnum";
}
.year-content-inner .pending {
  color: var(--gf-text-mute);
  font-style: italic;
  font-size: 0.85rem;
}

/* Etiqueta "Ver PDF" en cada boletín */
.year-content-inner .pdf-tag {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gf-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: all var(--t-fast);
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 3px;
  white-space: nowrap;
}
.year-content-inner .pdf-tag::before {
  content: "";
  display: inline-block;
  width: 11px; height: 13px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/></svg>") center / contain no-repeat;
}
.year-content-inner a:hover .pdf-tag {
  opacity: 1;
  background: var(--gf-gold);
  color: #2a0810;
  border-color: var(--gf-gold);
}
@media (max-width: 600px) {
  .year-content-inner a, .year-content-inner .item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .year-content-inner .date {
    min-width: 0;
  }
  .year-content-inner .pdf-tag {
    margin-left: 0;
  }
}

/* PUB BACK BAR */
.pub-back-bar {
  padding: 1.5rem 0;
  background: var(--gf-bg-soft);
  border-bottom: 1px solid var(--gf-line);
}
.pub-back-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.pub-back-bar a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--gf-text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color var(--t-fast);
}
.pub-back-bar a:hover { color: var(--gf-gold); }
.pub-back-bar .cat-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gf-gold);
  font-weight: 500;
}

/* AUTHOR BLOCK */
.author-block {
  max-width: 800px; margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--gf-bg-card);
  border: 1px solid var(--gf-line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.25rem;
  align-items: center;
}
.author-block .author-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gf-burgundy), var(--gf-burgundy-dark));
  border: 2px solid var(--gf-gold);
  color: var(--gf-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.author-block .author-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gf-cream);
  margin-bottom: 0.25rem;
}
.author-block .author-bio {
  font-size: 0.88rem;
  color: var(--gf-text-soft);
  line-height: 1.5;
}

/* CONTACTO */
.hero-contacto {
  position: relative;
  min-height: 480px;
  background-color: var(--gf-burgundy-deep);
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-contacto::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,6,8,0.85) 0%, rgba(10,6,8,0.4) 50%, rgba(10,6,8,0.1) 100%);
}
/* Variante banner: imagen ya trae el texto */
.hero-contacto.hero-contacto-banner {
  min-height: 0;
  aspect-ratio: 911 / 234;
  max-height: 360px;
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-contacto.hero-contacto-banner::after { display: none; }
.hero-contacto .container { position: relative; z-index: 2; width: 100%; }
.hero-contacto h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--gf-cream);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero-contacto h1::after {
  content: ""; display: block;
  width: 80px; height: 1.5px;
  background: var(--gf-gold);
  margin-top: 1rem;
}

.contacto-main { padding: 6rem 0; }
.contacto-grid {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 2rem; align-items: start;
}
@media (max-width: 1100px) {
  .contacto-grid { grid-template-columns: 1fr 1fr; }
  .contacto-info { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 700px) {
  .contacto-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contacto-info { grid-column: auto; grid-row: auto; }
}

.contacto-quote {
  background: linear-gradient(135deg, var(--gf-burgundy-dark) 0%, var(--gf-burgundy) 100%);
  color: var(--gf-cream);
  padding: 3rem 2rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--gf-gold-soft);
  box-shadow: 0 12px 40px var(--gf-burgundy-glow);
  position: relative;
  overflow: hidden;
}
.contacto-quote::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(201,169,97,0.15), transparent 70%);
}
.contacto-quote > * { position: relative; z-index: 2; }
.contacto-quote h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem; line-height: 1.35;
  color: var(--gf-cream);
  margin-bottom: 1.5rem;
}
.contacto-quote .deco {
  width: 40px; height: 1.5px;
  background: var(--gf-gold);
  margin: 0 auto 1.5rem;
}
.contacto-quote p {
  font-size: 0.92rem; line-height: 1.6;
  color: var(--gf-cream);
  opacity: 0.92;
}

.contacto-form-wrap {
  background: var(--gf-bg-card);
  border: 1px solid var(--gf-line);
  border-radius: 10px;
  padding: 2.5rem;
}
@media (max-width: 600px) { .contacto-form-wrap { padding: 1.75rem 1.25rem; } }

.contacto-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1rem;
}
@media (max-width: 600px) { .contacto-form .form-row { grid-template-columns: 1fr; } }

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--gf-bg-elevated);
  border: 1px solid var(--gf-line);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--gf-cream);
  transition: all var(--t-fast);
}
.contacto-form input:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: var(--gf-gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.12);
  background: var(--gf-bg-card);
}
.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
  color: var(--gf-text-mute);
}
.contacto-form textarea {
  min-height: 150px;
  resize: vertical;
  margin-bottom: 1.5rem;
}
.contacto-form .submit-btn {
  width: 100%;
  padding: 1.1rem 2rem;
  background: var(--gf-burgundy);
  color: var(--gf-cream);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--t-base);
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 0.7rem;
  border: 1px solid var(--gf-gold-soft);
}
.contacto-form .submit-btn:hover {
  background: var(--gf-burgundy-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--gf-burgundy-glow);
}
.form-success-msg {
  display: none;
  padding: 2rem;
  text-align: center;
}
.form-success-msg.show { display: block; }
.form-success-msg h3 {
  color: var(--gf-gold);
  font-family: var(--font-display);
  margin-bottom: 0.75rem;
}

.contacto-info {
  display: flex; flex-direction: column; gap: 1rem;
}
.info-card {
  background: var(--gf-bg-card);
  border: 1px solid var(--gf-line);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: border-color var(--t-fast);
}
.info-card:hover { border-color: var(--gf-gold-soft); }
.info-card .ico {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gf-burgundy), var(--gf-burgundy-dark));
  border: 1px solid var(--gf-gold-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--gf-gold);
}
.info-card .ico svg { width: 22px; height: 22px; }
.info-card .text { font-size: 0.95rem; line-height: 1.55; color: var(--gf-text); }
.info-card .text a { color: var(--gf-text); transition: color var(--t-fast); }
.info-card .text a:hover { color: var(--gf-gold); }
.info-card .text div + div { margin-top: 0.25rem; }
.info-card .small { font-size: 0.85rem; color: var(--gf-text-soft); }
.info-card .social-row {
  display: flex; gap: 0.75rem;
  justify-content: center; align-items: center;
  flex-wrap: wrap;
}
.info-card .social-row a {
  display: inline-flex;
  align-items: center; gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--gf-text);
}
.info-card .social-row svg { width: 18px; height: 18px; color: var(--gf-gold); }

.contacto-map {
  margin-top: 3rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  border: 1px solid var(--gf-line);
  height: 400px;
  filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.85);
}
.contacto-map iframe { width: 100%; height: 100%; border: 0; }

/* FACEBOOK */
.facebook-feed-section {
  background: var(--gf-bg-soft);
  padding: 6rem 0;
}
.facebook-feed-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.facebook-feed-frame {
  width: 100%;
  max-width: 560px;
  background: var(--gf-cream);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 60px var(--gf-burgundy-glow);
  border: 1px solid var(--gf-gold-soft);
  min-height: 720px;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.facebook-feed-frame iframe,
.facebook-feed-frame .fb-page,
.facebook-feed-frame .fb-page span,
.facebook-feed-frame .fb-page iframe {
  max-width: 100% !important;
  border: 0 !important;
  display: block !important;
}
.facebook-feed-frame blockquote {
  margin: 0; padding: 2rem;
  text-align: center;
  color: var(--gf-burgundy);
  font-style: italic;
}
.facebook-feed-frame blockquote a {
  color: var(--gf-burgundy);
  text-decoration: underline;
  font-weight: 500;
}

.facebook-fallback {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.fb-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--gf-gold);
  border: 1px solid var(--gf-gold-soft);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--t-fast);
  text-decoration: none;
}
.fb-direct-link:hover {
  background: var(--gf-gold);
  color: var(--gf-burgundy-deep, #2a0810);
  border-color: var(--gf-gold);
  transform: translateY(-2px);
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--gf-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.5), 0 0 0 4px rgba(37,211,102,0.15);
  transition: transform var(--t-base);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: var(--gf-white); }
.whatsapp-float svg { width: 32px; height: 32px; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.6); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0); }
}

/* FOOTER */
.site-footer {
  background: var(--gf-bg);
  color: var(--gf-text-mute);
  padding: 2.5rem 0 1.75rem;
  text-align: center;
  border-top: 1px solid var(--gf-line);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.site-footer .footer-brand {
  font-family: var(--font-display);
  color: var(--gf-gold);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.site-footer p {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--gf-text-mute);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gf-bg-soft); }
::-webkit-scrollbar-thumb {
  background: var(--gf-burgundy);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gf-burgundy-light); }
