/* =============================================================
   PLANTILLA: Paulo VI (Josefinos de Murialdo)
   Paleta logo papal: Rojo burdeos #8B1A1A + Dorado #D4A017
   Fuente headings: Outfit | Cuerpo: Source Sans 3
   overrideColors: true → los colores del backend se ignoran
   Referencia: Spellman (hero impactante, stats institucionales)
   ============================================================= */

/* ── Variables locales de la plantilla ──────────────────────── */
.template-paulo_vi {
  --pv-bg: #FBF8F3;          /* Fondo cálido crema */
  --pv-bg-dark: #3A0808;     /* Footer y header oscuro (burdeos profundo) */
  --pv-text: #8B1A1A;        /* Headings: rojo burdeos del logo papal */
  --pv-text-body: #4A4A4A;   /* Cuerpo: gris cálido legible */
  --pv-text-muted: #6B6B6B;  /* Texto secundario */
  --pv-border: #E8DDD3;      /* Bordes suaves cálidos */
  --pv-white: #ffffff;
  --pv-accent-line: 3px solid var(--color-secondary);
  --pv-font-heading: 'Outfit', system-ui, sans-serif;
  --pv-font-body: 'Source Sans 3', system-ui, sans-serif;
}

/* ── Tipografía ─────────────────────────────────────────────── */
.template-paulo_vi body {
  font-family: var(--pv-font-body);
  color: var(--pv-text-body);   /* gris azulado, no negro puro */
  background-color: #fff;
}

/* Headings en azul marino — NO aplica dentro de secciones oscuras */
.template-paulo_vi h1,
.template-paulo_vi h2,
.template-paulo_vi h3,
.template-paulo_vi h4 {
  font-family: var(--pv-font-heading);
  color: var(--pv-text);
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* Headings en contextos oscuros (hero, footer, section--dark) → siempre blancos */
.pv-hero__content h1,
.pv-hero__content h2,
.pv-section--dark h1,
.pv-section--dark h2,
.pv-section--dark h3,
.pv-footer h2,
.pv-footer h3,
.pv-mobile-menu__header h1,
.template-paulo_vi .pv-hero__title {
  color: #ffffff !important;
  font-family: var(--pv-font-heading);
}

/* Page headers con bg-primary también necesitan texto blanco */
.template-paulo_vi .bg-primary h1,
.template-paulo_vi .bg-primary h2,
.template-paulo_vi .bg-primary h3,
.template-paulo_vi .bg-primary p {
  color: #ffffff !important;
}
.template-paulo_vi .bg-primary .text-white\/60,
.template-paulo_vi .bg-primary .text-white\/80 {
  color: rgba(255,255,255,0.72) !important;
}

/* Respetar utilidades text-white de Tailwind cuando el CSS del template sería más específico */
.template-paulo_vi h1.text-white,
.template-paulo_vi h2.text-white,
.template-paulo_vi h3.text-white,
.template-paulo_vi h4.text-white,
.template-paulo_vi p.text-white {
  color: #ffffff !important;
}


/* ══════════════════════════════════════════════════════════════
   HEADER — Tres niveles: topbar + marca + nav
   ══════════════════════════════════════════════════════════════ */

.pv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 16px rgba(14, 27, 62, 0.18);
}

/* ── Nivel 1: Topbar negra moderna con contacto y redes sociales ─── */
.pv-topbar {
  background-color: #000000;
  color: #ffffff;
  padding: 0.5rem 0;
  font-size: 0.75rem;
}

.pv-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Contacto: teléfono y email */
.pv-topbar__resources {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pv-topbar__link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pv-topbar__link:hover {
  color: var(--color-secondary);
  transform: translateY(-1px);
}

.pv-topbar__link svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

/* Redes sociales más grandes y destacadas */
.pv-topbar__social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pv-topbar__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 0.25rem;
  transition: all 0.25s ease;
  position: relative;
}

.pv-topbar__social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pv-topbar__social-link:hover::before {
  opacity: 1;
}

.pv-topbar__social-link svg {
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
  z-index: 1;
}

.pv-topbar__social-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* WhatsApp con color verde al hover */
.pv-topbar__social-link--whatsapp:hover {
  color: #25D366;
}

/* Responsive: ajustes para móvil */
@media (max-width: 767px) {
  .pv-topbar__resources {
    gap: 1rem;
  }
  
  .pv-topbar__link span {
    font-size: 0.7rem;
  }
  
  .pv-topbar__social {
    gap: 0.65rem;
  }
  
  .pv-topbar__social-link {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .pv-topbar__social-link svg {
    width: 0.95rem;
    height: 0.95rem;
  }
}

/* ── Barra principal unificada: Logo + Menú en una línea (estilo Spellman) ─── */
.pv-header__main {
  background-color: #ffffff;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pv-header__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 2rem;
}

.pv-header__logo-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  flex-shrink: 0;
}

.pv-header__logo {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
}

.pv-header__logo-placeholder {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--pv-font-heading);
  flex-shrink: 0;
}

.pv-header__institution { 
  display: flex; 
  flex-direction: column;
  gap: 0.1rem;
}

.pv-header__institution-name {
  font-family: var(--pv-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pv-text);
  line-height: 1.2;
}

.pv-header__institution-slogan {
  font-size: 0.7rem;
  color: var(--pv-text-muted);
  font-style: italic;
  line-height: 1.2;
}

/* Navegación desktop en la misma línea */
.pv-header__nav-desktop {
  display: none;
  flex: 1;
  justify-content: flex-end;
}

@media (min-width: 1024px) {
  .pv-header__nav-desktop {
    display: flex;
  }
}

.pv-header__nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pv-header__nav-links li {
  display: flex;
  align-items: center;
}

/* Enlaces normales del menú */
.pv-header__nav-links li:not(.pv-nav-cta) a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 1rem;
  color: var(--pv-text);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.pv-header__nav-links li:not(.pv-nav-cta) a:hover {
  color: var(--color-primary);
  background-color: rgba(139, 26, 26, 0.05);
}

.pv-header__nav-links li:not(.pv-nav-cta) a.active {
  color: var(--color-primary);
  font-weight: 700;
}

/* Flecha para items con dropdown */
.pv-nav-arrow {
  width: 1rem;
  height: 1rem;
  margin-left: 0.15rem;
  transition: transform 0.2s ease;
}

/* Dropdown menu */
.pv-nav-dropdown {
  position: relative;
}

.pv-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
  border: 1px solid #e5e7eb;
}

/* Mostrar dropdown al hover */
.pv-nav-dropdown:hover .pv-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Rotar flecha al hover */
.pv-nav-dropdown:hover .pv-nav-arrow {
  transform: rotate(180deg);
}

/* Items dentro del dropdown */
.pv-header__nav-links .pv-dropdown-menu li {
  display: block;
  width: 100%;
  margin: 0;
}

.pv-header__nav-links .pv-dropdown-menu a,
.pv-header__nav-links li:not(.pv-nav-cta) .pv-dropdown-menu a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1.25rem;
  color: var(--pv-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pv-header__nav-links .pv-dropdown-menu a:hover,
.pv-header__nav-links li:not(.pv-nav-cta) .pv-dropdown-menu a:hover {
  background-color: rgba(139, 26, 26, 0.08);
  color: var(--color-primary);
}

/* Botón CTA resaltado (Admisiones) */
.pv-header__nav-links .pv-nav-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  margin-left: 0.5rem;
  border-radius: 0.375rem;
  background-color: var(--color-secondary);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(212, 160, 23, 0.3);
}

.pv-header__nav-links .pv-nav-cta a:hover,
.pv-header__nav-links .pv-nav-cta a.active {
  background-color: color-mix(in srgb, var(--color-secondary) 88%, black);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.4);
}

/* Botón hamburguesa para móvil */
.pv-header__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.pv-header__hamburger:hover {
  background-color: rgba(139, 26, 26, 0.08);
}

.pv-header__hamburger svg {
  width: 1.75rem;
  height: 1.75rem;
}

@media (min-width: 1024px) {
  .pv-header__hamburger {
    display: none;
  }
}

/* ── Menú móvil ─── */
.pv-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0,0,0,0.55);
}
.pv-mobile-menu.open { display: block; }

.pv-mobile-menu__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(18rem, 86vw);
  height: 100%;
  background-color: #fff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.pv-mobile-menu__header {
  background-color: var(--color-primary);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.pv-mobile-menu__title {
  font-family: var(--pv-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.pv-mobile-menu__close {
  background: none; border: none; color: white;
  cursor: pointer; padding: 0.25rem;
  border-radius: 0.25rem; transition: background-color 0.2s;
}
.pv-mobile-menu__close:hover { background-color: rgba(255,255,255,0.15); }

.pv-mobile-menu__links {
  list-style: none; padding: 0.5rem 0; margin: 0; flex: 1;
}

.pv-mobile-menu__link {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--pv-text);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #edf2f7;
  transition: background-color 0.15s, color 0.15s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.pv-mobile-menu__link:hover {
  background-color: var(--pv-bg);
  color: var(--color-primary);
}

/* Toggle para items con submenú */
.pv-mobile-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
}

.pv-mobile-arrow {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease;
}

.pv-mobile-menu__item--dropdown.is-open .pv-mobile-arrow {
  transform: rotate(180deg);
}

/* Submenú móvil */
.pv-mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  background-color: rgba(139, 26, 26, 0.03);
  transition: max-height 0.3s ease;
}

.pv-mobile-menu__item--dropdown.is-open .pv-mobile-submenu {
  max-height: 500px;
}

.pv-mobile-submenu li {
  margin: 0;
}

.pv-mobile-submenu a {
  display: block;
  padding: 0.7rem 1.5rem 0.7rem 2.5rem;
  color: var(--pv-text);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.15s, color 0.15s;
}

.pv-mobile-submenu a:hover {
  background-color: rgba(139, 26, 26, 0.08);
  color: var(--color-primary);
}

.pv-mobile-menu__link--highlighted {
  background-color: var(--color-secondary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 0.25rem;
  margin: 0.2rem 0.75rem;
  border-bottom-color: transparent;
}

.pv-mobile-menu__link--highlighted:hover {
  background-color: color-mix(in srgb, var(--color-secondary) 88%, black);
  color: #fff;
}

.pv-mobile-menu__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #edf2f7;
}
.pv-mobile-menu__cta {
  display: block;
  text-align: center;
  background-color: var(--color-secondary);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 0.25rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════
   HERO — Diseño Spellman: limpio, moderno, stats flotantes
   ══════════════════════════════════════════════════════════════ */

.pv-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .pv-hero { min-height: 85vh; } }

.pv-hero__bg { position: absolute; inset: 0; z-index: 0; }
.pv-hero__bg img,
.pv-hero__video,
.pv-hero__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pv-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 26, 26, 0.88) 0%,
    rgba(139, 26, 26, 0.72) 50%,
    rgba(58, 8, 8, 0.85) 100%
  );
  z-index: 1;
}

.pv-hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #8B1A1A 0%, #5C0000 100%);
  z-index: 1;
}

/* Stats flotantes estilo Spellman (card en esquina superior derecha) */
.pv-hero__stats-float {
  position: absolute;
  top: 6.5rem;
  right: 2rem;
  z-index: 20;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: none;
  gap: 2rem;
}
@media (min-width: 1024px) { 
  .pv-hero__stats-float { display: flex; }
}
@media (min-width: 1200px) {
  .pv-hero__stats-float {
    top: 7rem;
    right: 4rem;
    padding: 2rem 2.5rem;
    gap: 2.5rem;
  }
}

.pv-hero__stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  min-width: 85px;
}

.pv-hero__stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.pv-hero__stat-icon svg {
  width: 100%;
  height: 100%;
}

.pv-hero__stat-value {
  font-family: var(--pv-font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.pv-hero__stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pv-text-body);
  text-transform: capitalize;
  line-height: 1.3;
  max-width: 90px;
}

/* Contenido principal del hero */
.pv-hero__content {
  position: relative;
  z-index: 10;
  max-width: 720px;
  padding: 2rem 0;
}
@media (min-width: 768px) {
  .pv-hero__content {
    padding: 3rem 0;
  }
}

.pv-hero__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.pv-hero__title {
  font-family: var(--pv-font-heading);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  letter-spacing: -0.02em;
}

.pv-hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: rgba(255,255,255,0.95);
  margin-bottom: 2.5rem;
  line-height: 1.65;
  max-width: 580px;
  font-weight: 400;
}

.pv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Botones estilo Spellman: rectangulares, sólidos, modernos */
.pv-hero__btn-primary {
  background-color: var(--color-secondary);
  color: #ffffff;
  padding: 1rem 2.25rem;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pv-hero__btn-primary:hover {
  background-color: color-mix(in srgb, var(--color-secondary) 88%, black);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.45);
}

.pv-hero__btn-secondary {
  background-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.95rem 2.1rem;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pv-hero__btn-secondary:hover {
  background-color: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-3px);
}
}


/* ══════════════════════════════════════════════════════════════
   SECCIONES GENERALES
   ══════════════════════════════════════════════════════════════ */

.template-paulo_vi .section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

/* ── Encabezado compacto de páginas internas ─── */
.pv-page-header {
  background-color: var(--pv-bg);
  border-bottom: 1px solid var(--pv-border);
  padding: 1.75rem 0 2rem;
}

.pv-page-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pv-page-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--pv-text-muted);
  margin-bottom: 0.75rem;
}

.pv-page-header__breadcrumb a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
}

.pv-page-header__breadcrumb a:hover {
  text-decoration: underline;
}

.pv-page-header__current {
  color: var(--pv-text-muted);
  max-width: 20rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-page-header__title {
  font-family: var(--pv-font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--pv-text);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.pv-page-header__desc {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--pv-text-muted);
  max-width: 640px;
  line-height: 1.6;
}

/* ── Home SPA: scroll vertical con secciones alternadas ─── */
.pv-home {
  scroll-behavior: smooth;
}

.pv-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pv-text-welcome {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.pv-text-welcome__body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--pv-text-body);
}

.pv-text-centered {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.pv-text-centered__body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--pv-text-muted);
  text-align: justify;
}

/* Sección con fondo suave explícita */
.pv-section { 
  padding: 5.5rem 0; 
}
@media (max-width: 767px) {
  .pv-section { padding: 3.5rem 0; }
}
.pv-section--warm { background-color: var(--pv-bg); }
.pv-section--dark {
  background-color: var(--color-primary);
  color: #fff;
}
.pv-section--dark h2,
.pv-section--dark h3 { color: #fff; }
.pv-section--dark p { color: rgba(255,255,255,0.88); }

/* ── Título de sección estilo Spellman (moderno, minimalista) ─── */
.template-paulo_vi .section-title,
.section-title-cm {
  text-align: center;
  margin-bottom: 3.5rem;
}

.template-paulo_vi .section-title h2,
.section-title-cm h2 {
  font-family: var(--pv-font-heading);
  color: var(--pv-text);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.template-paulo_vi .section-title h2::after,
.section-title-cm h2::after {
  content: '';
  display: block;
  width: 4rem;
  height: 4px;
  background-color: var(--color-secondary);
  margin: 0.85rem auto 0;
  border-radius: 3px;
}

.template-paulo_vi .section-title p,
.section-title-cm p {
  color: var(--pv-text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

.template-paulo_vi .section-title-line { display: none; }

/* ══════════════════════════════════════════════════════════════
   CARDS DE NOTICIAS / ARTÍCULOS
   ══════════════════════════════════════════════════════════════ */

.template-paulo_vi .card-hover {
  background-color: #fff;
  border: 1px solid var(--pv-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
}
.template-paulo_vi .card-hover:hover {
  box-shadow: 0 8px 32px rgba(14,27,62,0.12);
  transform: translateY(-3px);
}
.template-paulo_vi .card-hover h3 {
  font-family: var(--pv-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pv-text);
}

.template-paulo_vi .badge-primary {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.65rem;
  background-color: color-mix(in srgb, var(--color-primary) 10%, white);
  color: var(--color-primary);
  border-radius: 2rem;
}

.template-paulo_vi .link-primary { color: var(--color-secondary); font-weight: 600; }
.template-paulo_vi .link-primary:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   MISIÓN / VISIÓN / VALORES
   ══════════════════════════════════════════════════════════════ */

.pv-mvv {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .pv-mvv { grid-template-columns: repeat(3, 1fr); } }

.pv-mvv__item {
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--pv-border);
  transition: box-shadow 0.25s;
}
.pv-mvv__item:hover { box-shadow: 0 6px 24px rgba(14,27,62,0.1); }

.pv-mvv__icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: color-mix(in srgb, var(--color-primary) 8%, white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.pv-mvv__title {
  font-family: var(--pv-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pv-text);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-secondary);
  display: inline-block;
}

.pv-mvv__text {
  font-size: 0.855rem;
  color: var(--pv-text-muted);
  line-height: 1.7;
  text-align: justify;
}

.pv-mvv__list {
  list-style: none; padding: 0; margin: 0;
}
.pv-mvv__list li {
  font-size: 0.855rem;
  color: var(--pv-text-muted);
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  line-height: 1.5;
}
.pv-mvv__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ══════════════════════════════════════════════════════════════
   TIMELINE — Reseña histórica
   ══════════════════════════════════════════════════════════════ */

.pv-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Línea central vertical */
.pv-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .pv-timeline::before { left: 1rem; }
}

.pv-timeline__item {
  position: relative;
  width: 50%;
  padding-bottom: 3rem;
}

.pv-timeline__item:nth-child(odd) {
  padding-right: 3rem;
  align-self: flex-start;
}

.pv-timeline__item:nth-child(even) {
  padding-left: 3rem;
  margin-left: 50%;
}

@media (max-width: 767px) {
  .pv-timeline__item { width: 100%; margin-left: 0 !important; padding-left: 3rem !important; padding-right: 0 !important; }
}

.pv-timeline__dot {
  position: absolute;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background-color: var(--color-secondary);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--color-primary);
  top: 0.25rem;
}

.pv-timeline__item:nth-child(odd) .pv-timeline__dot { right: -0.5rem; }
.pv-timeline__item:nth-child(even) .pv-timeline__dot { left: -0.5rem; }

@media (max-width: 767px) {
  .pv-timeline__item .pv-timeline__dot { left: 0.625rem !important; right: auto !important; }
}

.pv-timeline__year {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--color-primary);
  padding: 0.2rem 0.65rem;
  border-radius: 2rem;
  margin-bottom: 0.5rem;
}

.pv-timeline__card {
  background: #fff;
  border: 1px solid var(--pv-border);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(14,27,62,0.07);
}

.pv-timeline__title {
  font-family: var(--pv-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pv-text);
  margin-bottom: 0.5rem;
}

.pv-timeline__desc {
  font-size: 0.82rem;
  color: var(--pv-text-muted);
  line-height: 1.65;
}

/* Estadísticas sobre el timeline */
.pv-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .pv-stats { grid-template-columns: repeat(4, 1fr); } }

.pv-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid var(--pv-border);
  border-radius: 0.5rem;
}
.pv-stat__value {
  font-family: var(--pv-font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.pv-stat__label {
  font-size: 0.75rem;
  color: var(--pv-text-muted);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   TEXTO CON IMAGEN — Secciones Catequesis / Pastoral
   ══════════════════════════════════════════════════════════════ */

.pv-text-image {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .pv-text-image { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .pv-text-image--reverse .pv-text-image__img { order: 2; } }

.pv-text-image__img {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(14,27,62,0.12);
}
.pv-text-image__img img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  display: block;
}

.pv-text-image__title {
  font-family: var(--pv-font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--pv-text);
  margin-bottom: 0.5rem;
}
.pv-text-image__title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background-color: var(--color-secondary);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.pv-text-image__subtitle {
  font-size: 0.9rem;
  color: var(--pv-text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.pv-text-image__body {
  font-size: 0.9rem;
  color: var(--pv-text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.pv-text-image__list {
  list-style: none;
  padding: 0; margin: 0 0 1.5rem;
}
.pv-text-image__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--pv-text-muted);
  padding: 0.35rem 0;
}
.pv-text-image__list li::before {
  content: '✓';
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.pv-text-image__btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 0.2rem;
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.pv-text-image__btn:hover {
  background-color: color-mix(in srgb, var(--color-primary) 84%, black);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════
   GALERÍA — Tabs + grid
   ══════════════════════════════════════════════════════════════ */

.pv-gallery-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.pv-gallery-tab {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--pv-border);
  cursor: pointer;
  background-color: #fff;
  color: var(--pv-text);
  transition: all 0.2s;
}
.pv-gallery-tab:hover,
.pv-gallery-tab.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pv-gallery-tab__label {
  line-height: 1.2;
}

.pv-gallery-tab__count {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(30, 58, 110, 0.08);
  color: var(--pv-text-muted);
}

.pv-gallery-tab:hover .pv-gallery-tab__count,
.pv-gallery-tab.active .pv-gallery-tab__count {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

/* Iconos SVG institucionales */
.pv-icon {
  display: block;
  flex-shrink: 0;
}

.pv-icon--zoom {
  width: 1.75rem;
  height: 1.75rem;
  color: #fff;
}

.pv-icon--control {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
}

.pv-icon--mvv,
.pv-icon--resource {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-primary);
}

.pv-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}
@media (min-width: 640px) { .pv-gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.pv-gallery-item {
  border: none;
  padding: 0;
  background: none;
  border-radius: 0.375rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  display: block;
  width: 100%;
}
.pv-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.pv-gallery-item:hover img { transform: scale(1.06); }
.pv-gallery-item__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  opacity: 0;
}
.pv-gallery-item:hover .pv-gallery-item__overlay {
  background: rgba(14,27,62,0.45);
  opacity: 1;
}

/* ── Lightbox / visor modal ─── */
.pv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 15, 35, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.pv-lightbox[hidden] {
  display: none !important;
}

.pv-lightbox__content {
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.pv-lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 5rem);
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.pv-lightbox__caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  text-align: center;
  margin: 0;
  max-width: 640px;
}

.pv-lightbox__counter {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  margin: 0;
}

.pv-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.pv-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.pv-lightbox__nav--prev { left: 1rem; }
.pv-lightbox__nav--next { right: 1rem; }

@media (max-width: 640px) {
  .pv-lightbox__nav { width: 2.25rem; height: 2.25rem; font-size: 1.5rem; }
  .pv-lightbox__nav--prev { left: 0.5rem; }
  .pv-lightbox__nav--next { right: 0.5rem; }
}

.pv-gallery-empty {
  text-align: center;
  color: var(--pv-text-muted);
  padding: 2rem 0;
}

/* ── Noticias: filtros y artículo ─── */
.pv-news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pv-news-filters .pv-gallery-tab {
  cursor: default;
}

.pv-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--pv-text-muted);
}

.pv-article__image {
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 20px rgba(14, 27, 62, 0.1);
}

.pv-article__image img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  display: block;
}

.pv-article__content {
  color: var(--pv-text-body);
  line-height: 1.8;
}

.pv-article__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pv-border);
}

/* ══════════════════════════════════════════════════════════════
   RECURSOS INSTITUCIONALES — Cards centradas con icono
   ══════════════════════════════════════════════════════════════ */

.pv-resources-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .pv-resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pv-resources-grid { grid-template-columns: repeat(3, 1fr); } }

.pv-resource-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.75rem;
  background-color: #fff;
  border: 1px solid var(--pv-border);
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, transform 0.2s;
}
.pv-resource-card:hover {
  box-shadow: 0 8px 28px rgba(14,27,62,0.12);
  transform: translateY(-3px);
}
.pv-resource-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 8%, white);
}
.pv-resource-card__title {
  font-family: var(--pv-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pv-text);
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-secondary);
  display: inline-block;
}
.pv-resource-card__desc {
  font-size: 0.825rem;
  color: var(--pv-text-muted);
  line-height: 1.6;
  text-align: justify;
}

/* ══════════════════════════════════════════════════════════════
   QUICK LINKS — Sección con fondo oscuro
   ══════════════════════════════════════════════════════════════ */

.pv-quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .pv-quick-links { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .pv-quick-links { grid-template-columns: repeat(5, 1fr); } }

.pv-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1.5rem 0.75rem;
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.5rem;
  color: white;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s;
  backdrop-filter: blur(4px);
}
.pv-quick-link:hover { background-color: rgba(255,255,255,0.18); }
.pv-quick-link__icon { font-size: 1.75rem; }

/* ══════════════════════════════════════════════════════════════
   FOOTER — Dark navy, 3 columnas
   ══════════════════════════════════════════════════════════════ */

.pv-footer {
  background-color: var(--pv-bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 0;
}

.pv-footer__grid {
  display: grid;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .pv-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }

.pv-footer__logo {
  height: 3rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.92);
  margin-bottom: 0.75rem;
  display: block;
}

.pv-footer__name {
  font-family: var(--pv-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.2rem;
}

.pv-footer__slogan {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}

.pv-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.55rem;
  font-size: 0.815rem;
  color: rgba(255,255,255,0.65);
}
.pv-footer__contact-item svg {
  width: 0.9rem; height: 0.9rem;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.pv-footer__contact-item a { color: rgba(255,255,255,0.65); text-decoration: none; }
.pv-footer__contact-item a:hover { color: white; }

.pv-footer__section-title {
  font-family: var(--pv-font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pv-footer__links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.pv-footer__links a {
  font-size: 0.815rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.pv-footer__links a::before {
  content: '›';
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.pv-footer__links a:hover { color: white; }

.pv-footer__social {
  display: flex; gap: 0.5rem; margin-top: 1rem;
}
.pv-footer__social a {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: all 0.2s;
}
.pv-footer__social a:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.pv-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 1.5rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}
@media (min-width: 768px) {
  .pv-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.pv-footer__bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.pv-footer__bottom a:hover { color: rgba(255,255,255,0.75); }

/* ══════════════════════════════════════════════════════════════
   BOTONES GLOBALES — sobrescriben la plantilla default
   ══════════════════════════════════════════════════════════════ */

.template-paulo_vi .btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 0.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}
.template-paulo_vi .btn-primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 84%, black);
  transform: translateY(-1px);
}

.template-paulo_vi .btn-secondary {
  background-color: var(--color-secondary);
  color: #fff;
  border-radius: 0.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}
.template-paulo_vi .btn-secondary:hover {
  background-color: color-mix(in srgb, var(--color-secondary) 84%, black);
  transform: translateY(-1px);
}

.template-paulo_vi .btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 0.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}
.template-paulo_vi .btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* Pages header strip */
.template-paulo_vi .bg-primary { background-color: var(--color-primary) !important; }

/* Breadcrumbs */
.template-paulo_vi .text-primary { color: var(--color-primary) !important; }

/* ── Formulario de contacto ─── */
.template-paulo_vi input,
.template-paulo_vi textarea,
.template-paulo_vi select {
  border-color: var(--pv-border);
  border-radius: 0.25rem;
  font-family: var(--pv-font-body);
}
.template-paulo_vi input:focus,
.template-paulo_vi textarea:focus,
.template-paulo_vi select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
  outline: none;
}

/* ── Scrollbar ─── */
.template-paulo_vi ::-webkit-scrollbar { width: 5px; }
.template-paulo_vi ::-webkit-scrollbar-track { background: var(--pv-bg); }
.template-paulo_vi ::-webkit-scrollbar-thumb {
  background-color: color-mix(in srgb, var(--color-primary) 35%, white);
  border-radius: 3px;
}

/* ── Animación scroll indicator ─── */
@keyframes pv-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Hero stats (Spellman-like) ─────────────────────────────── */
.template-paulo_vi .section-title-cm h2 { color: var(--pv-text); font-family: var(--pv-font-heading); }
.template-paulo_vi .section-title-cm h2::after { background: var(--color-secondary); }

/* ── Autoridades ────────────────────────────────────────────── */
.pv-authorities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem 1.5rem;
  justify-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.pv-authority {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  max-width: 200px;
  font: inherit;
  color: inherit;
  transition: transform 0.25s ease;
}

.pv-authority:hover,
.pv-authority:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.pv-authority__avatar {
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-secondary) 30%, transparent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pv-authority:hover .pv-authority__avatar,
.pv-authority:focus-visible .pv-authority__avatar {
  transform: scale(1.12);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--color-secondary) 45%, transparent),
    0 10px 24px rgba(139, 26, 26, 0.2);
}

.pv-authority__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pv-authority__initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--pv-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
}

.pv-authority__name {
  display: block;
  font-family: var(--pv-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pv-text);
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.pv-authority__role {
  display: block;
  font-size: 0.85rem;
  color: var(--pv-text-muted);
  margin: 0;
  line-height: 1.35;
}

/* Modal de autoridad */
.pv-authority-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.pv-authority-modal[hidden] {
  display: none;
}

.pv-authority-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 8, 0.65);
  backdrop-filter: blur(4px);
}

.pv-authority-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  border: 1px solid var(--pv-border);
  animation: pvAuthorityIn 0.25s ease;
}

@keyframes pvAuthorityIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pv-authority-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pv-authority-modal__close:hover {
  background: var(--color-primary);
  color: #fff;
}

.pv-authority-modal__close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.pv-authority-modal__avatar {
  width: 8.5rem;
  height: 8.5rem;
  margin: 0.25rem auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-secondary) 35%, transparent);
}

.pv-authority-modal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pv-authority-modal__name {
  font-family: var(--pv-font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pv-text);
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.pv-authority-modal__role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin: 0 0 1rem;
}

.pv-authority-modal__bio {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--pv-text-body);
  border-top: 1px solid var(--pv-border);
  padding-top: 1rem;
}

.pv-authority-modal__bio p {
  margin: 0 0 0.75rem;
}

.pv-authority-modal__bio p:last-child {
  margin-bottom: 0;
}

.pv-authority-modal__bio[hidden] {
  display: none;
}

/* ── Mapa / ubicación ───────────────────────────────────────── */
.pv-map {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pv-map .section-title-cm {
  width: 100%;
}

.pv-map__frame {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  border: 3px solid var(--color-primary);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--color-secondary) 30%, transparent),
    0 12px 32px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16 / 9;
  max-height: 420px;
  background: #f3f4f6;
}

.pv-map__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pv-map__actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.pv-map__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--pv-font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  border: 2px solid var(--color-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pv-map__link svg {
  width: 1rem;
  height: 1rem;
}

.pv-map__link:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.pv-map--empty code {
  font-size: 0.85em;
}

/* ══════════════════════════════════════════════════════════════
   SLIDER PAULO VI — Carrusel de imágenes hero
   ══════════════════════════════════════════════════════════════ */

.pv-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .pv-slider {
    height: 500px;
  }
}

.pv-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.pv-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.pv-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.pv-slider__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pv-slider__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pv-slider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(58, 8, 8, 0.65) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.pv-slider__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.pv-slider__content-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.template-paulo_vi .pv-slider__subtitle {
  display: inline-block;
  font-family: var(--pv-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1.25rem;
  border-radius: 0.25rem;
  margin-bottom: 1.25rem;
  animation: slideInLeft 0.8s ease;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.template-paulo_vi .pv-slider__title {
  font-family: var(--pv-font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: #ffffff !important;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  animation: slideInLeft 0.8s ease 0.2s both;
}

.template-paulo_vi .pv-slider__description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #ffffff !important;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 2.5rem;
  animation: slideInLeft 0.8s ease 0.4s both;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.pv-slider__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-secondary);
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-family: var(--pv-font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.35);
  animation: slideInLeft 0.8s ease 0.6s both;
}

.pv-slider__btn:hover {
  background-color: #f0b820;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(240, 184, 32, 0.5);
}

.pv-slider__btn svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.pv-slider__btn:hover svg {
  transform: translateX(4px);
}

/* Controles de navegación */
.pv-slider__controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.pv-slider__control {
  pointer-events: all;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pv-slider__control:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.pv-slider__control svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (max-width: 768px) {
  .pv-slider__controls {
    padding: 0 1rem;
  }
  
  .pv-slider__control {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .pv-slider__control svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Indicadores (dots) */
.pv-slider__indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.pv-slider__indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.pv-slider__indicator.is-active {
  background-color: var(--color-secondary);
  width: 2rem;
  border-radius: 0.375rem;
}

.pv-slider__indicator:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Animaciones */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .pv-slider__content {
    padding: 0 1.5rem;
  }
  
  .pv-slider__subtitle {
    font-size: 0.85rem;
  }
  
  .pv-slider__btn {
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   ESTADÍSTICAS INSTITUCIONALES PAULO VI
   ══════════════════════════════════════════════════════════════ */

.pv-stats {
  background-color: #ffffff;
  padding: 5rem 2rem;
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pv-stats__container {
  width: fit-content;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 220px));
  justify-content: center;
  justify-items: center;
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.pv-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 1.25rem;
  animation: fadeInUp 0.8s ease;
  width: 100%;
}

.pv-stats__icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 50%;
  color: var(--pv-text);
  transition: all 0.3s ease;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pv-stats__item:hover .pv-stats__icon {
  transform: translateY(-5px);
  background-color: var(--pv-text);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(139, 26, 26, 0.2);
}

.pv-stats__icon svg {
  width: 100%;
  height: 100%;
}

.pv-stats__value {
  font-family: var(--pv-font-heading);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 900;
  color: var(--pv-text);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}

.pv-stats__label {
  font-family: 'Caveat', cursive, var(--pv-font-body);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: #444444;
  font-weight: 600;
  line-height: 1.2;
  text-transform: capitalize;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .pv-stats {
    padding: 3.5rem 1.5rem;
  }

  .pv-stats__container {
    grid-template-columns: 1fr;
    gap: 3rem;
    width: 100%;
  }

  .pv-stats__icon {
    width: 4rem;
    height: 4rem;
    padding: 1rem;
  }

  .pv-stats__value {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .pv-stats__label {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
  }
}

