/*
Theme Name: Plantilla institucional de la Escuela de Graduados de Doctrina Conjunta EDGC
Theme URI: https://egdc.edu.do/
Author: EGDC
Author URI: https://egdc.edu.do/
Description: Tema institucional de la Escuela de Graduados de Doctrina Conjunta
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edgc
*/

:root {
  --color-primary: #0d3671;
  --color-primary-dark: #0b2c5c;
  --color-secondary: #dc2626;
  --color-text: #374151;
  --color-text-light: #6b7280;
  --color-white: #ffffff;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
}

/* Prevenir scroll horizontal causado por elementos 100vw */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ========================================
   TIPOGRAFÍA - ENCABEZADOS
   ======================================== */

/* Estilos base para encabezados */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 0.75em;
}

/* Encabezado H1 - Títulos principales de página */
h1 {
  font-size: 2.5rem; /* 40px */
  letter-spacing: -0.025em;
}

/* Encabezado H2 - Secciones principales */
h2 {
  font-size: 2rem; /* 32px */
  letter-spacing: -0.02em;
}

/* Encabezado H3 - Subsecciones */
h3 {
  font-size: 1.5rem; /* 24px */
}

/* Encabezado H4 - Títulos de tarjetas/cajas */
h4 {
  font-size: 1.25rem; /* 20px */
}

/* Encabezado H5 - Subtítulos menores */
h5 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
}

/* Encabezado H6 - Etiquetas pequeñas */
h6 {
  font-size: 1rem; /* 16px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Encabezados dentro de contenido (entry-content, wp-block) */
.entry-content h1,
.wp-block h1,
article h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.entry-content h2,
.wp-block h2,
article h2 {
  font-size: 1.875rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gray-200);
}

.entry-content h3,
.wp-block h3,
article h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.entry-content h4,
.wp-block h4,
article h4 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.entry-content h5,
.wp-block h5,
article h5 {
  font-size: 1.125rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.entry-content h6,
.wp-block h6,
article h6 {
  font-size: 0.875rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

/* Responsive - Encabezados más pequeños en móvil */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.375rem;
  }
  h4 {
    font-size: 1.125rem;
  }

  .entry-content h1 {
    font-size: 1.875rem;
  }
  .entry-content h2 {
    font-size: 1.5rem;
  }
  .entry-content h3 {
    font-size: 1.25rem;
  }
}

/* ========================================
   CITAS (BLOCKQUOTE)
   ======================================== */

/* Estilos base para blockquote - Máxima especificidad para sobrescribir prose y layout */
blockquote,
blockquote.wp-block-quote,
blockquote.wp-block-quote.is-layout-flow,
blockquote.wp-block-quote.wp-block-quote-is-layout-flow,
.wp-block-quote,
.wp-block-quote.is-layout-flow,
.prose blockquote,
.prose .wp-block-quote,
.entry-content blockquote,
.entry-content .wp-block-quote,
.entry-content blockquote.wp-block-quote.is-layout-flow,
.edgc-page-content blockquote,
.edgc-page-content .wp-block-quote,
.edgc-page-content blockquote.wp-block-quote.is-layout-flow {
  margin: 1.5rem 0 !important;
  padding: 1.25rem 1.5rem !important;
  border-left: 4px solid var(--color-primary) !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  background-color: #f0f7ff !important;
  font-style: italic !important;
  color: var(--color-primary) !important;
  quotes: none !important;
  border-radius: 0 8px 8px 0 !important;
  box-shadow: 0 2px 8px rgba(13, 54, 113, 0.08) !important;
}

blockquote p,
blockquote.wp-block-quote p,
blockquote.wp-block-quote.is-layout-flow p,
.wp-block-quote p,
.wp-block-quote.is-layout-flow p,
.prose blockquote p,
.entry-content blockquote p,
.entry-content .wp-block-quote p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  color: var(--color-primary) !important;
  font-style: italic !important;
}

blockquote p::before,
blockquote p::after,
.wp-block-quote p::before,
.wp-block-quote p::after {
  content: none !important;
}

blockquote cite,
.wp-block-quote cite,
.wp-block-quote__citation {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--color-text-light);
}

blockquote cite::before,
.wp-block-quote cite::before {
  content: "— ";
}

/* Cita destacada (pullquote) */
.wp-block-pullquote {
  border: none !important;
  padding: 2rem !important;
  text-align: center !important;
}

.wp-block-pullquote blockquote {
  border-left: none !important;
  background: none !important;
  padding: 0 !important;
}

.wp-block-pullquote p {
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  color: var(--color-primary) !important;
}

/* ========================================
   LISTAS (UL, OL)
   ======================================== */

/* Estilos base para listas - Sobrescribir reset de Tailwind */
/* Excluir menús de navegación */
.wp-block-list,
ul.wp-block-list,
ol.wp-block-list,
.entry-content
  ul:not(.transparencia-menu-list):not(.transparencia-submenu):not(
    [class*="menu"]
  ):not([class*="nav"]),
.entry-content ol,
.entry-content .wp-block-list,
.edgc-page-content
  ul:not(.transparencia-menu-list):not(.transparencia-submenu):not(
    [class*="menu"]
  ):not([class*="nav"]),
.edgc-page-content ol,
.edgc-page-content .wp-block-list,
.prose
  ul:not(.transparencia-menu-list):not(.transparencia-submenu):not(
    [class*="menu"]
  ):not([class*="nav"]),
.prose ol,
.prose .wp-block-list,
.transparencia-article ul.wp-block-list,
.transparencia-article ol,
.transparencia-content ul.wp-block-list,
.transparencia-content ol,
article ul.wp-block-list,
article ol {
  margin: 1rem 0 !important;
  padding-left: 1.5rem !important;
  list-style-position: outside !important;
}

/* Lista desordenada - viñetas */
ul.wp-block-list,
.entry-content ul.wp-block-list,
.edgc-page-content ul.wp-block-list,
.prose ul.wp-block-list,
.transparencia-article ul.wp-block-list,
.transparencia-content ul.wp-block-list,
article ul.wp-block-list {
  list-style-type: disc !important;
}

/* Lista ordenada - números */
ol.wp-block-list,
.entry-content ol,
.entry-content ol.wp-block-list,
.edgc-page-content ol,
.prose ol,
.transparencia-article ol,
.transparencia-content ol,
article ol {
  list-style-type: decimal !important;
}

/* Items de lista - Solo para wp-block-list */
.wp-block-list li,
ul.wp-block-list li,
ol.wp-block-list li,
.entry-content .wp-block-list li,
.edgc-page-content .wp-block-list li,
.prose .wp-block-list li,
.transparencia-article .wp-block-list li,
.transparencia-content .wp-block-list li {
  margin-bottom: 0.5rem !important;
  line-height: 1.6 !important;
  color: var(--color-text) !important;
}

/* Viñeta del li - Solo wp-block-list */
.wp-block-list li::marker,
ul.wp-block-list li::marker,
.entry-content .wp-block-list li::marker,
.edgc-page-content .wp-block-list li::marker,
.prose .wp-block-list li::marker {
  color: var(--color-primary) !important;
}

/* Números del ol - Solo wp-block-list */
ol.wp-block-list li::marker,
.entry-content ol.wp-block-list li::marker,
.edgc-page-content ol.wp-block-list li::marker,
.prose ol.wp-block-list li::marker {
  color: var(--color-primary) !important;
  font-weight: 600 !important;
}

/* Listas anidadas - Solo wp-block-list */
.wp-block-list ul,
.wp-block-list ol,
ul.wp-block-list ul,
ul.wp-block-list ol {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.wp-block-list ul ul,
ul.wp-block-list ul ul {
  list-style-type: circle !important;
}

.wp-block-list ul ul ul,
ul.wp-block-list ul ul ul {
  list-style-type: square !important;
}

/* ========================================
   ALINEACIONES DE IMAGEN GUTENBERG
   ======================================== */

/* Alineación izquierda */
.alignleft,
.wp-block-image.alignleft,
.wp-block-image .alignleft,
.edgc-page-content .alignleft,
.edgc-page-content .wp-block-image.alignleft,
.transparencia-article .alignleft,
.transparencia-article .wp-block-image.alignleft,
.transparencia-content .alignleft,
.transparencia-content .wp-block-image.alignleft {
  float: left !important;
  margin: 0.5rem 1.5rem 1rem 0 !important;
  max-width: 50% !important;
}

/* Alineación derecha */
.alignright,
.wp-block-image.alignright,
.wp-block-image .alignright,
.edgc-page-content .alignright,
.edgc-page-content .wp-block-image.alignright,
.transparencia-article .alignright,
.transparencia-article .wp-block-image.alignright,
.transparencia-content .alignright,
.transparencia-content .wp-block-image.alignright {
  float: right !important;
  margin: 0.5rem 0 1rem 1.5rem !important;
  max-width: 50% !important;
}

/* Alineación centro */
.aligncenter,
.wp-block-image.aligncenter,
.wp-block-image .aligncenter,
.edgc-page-content .aligncenter,
.edgc-page-content .wp-block-image.aligncenter,
.transparencia-article .aligncenter,
.transparencia-article .wp-block-image.aligncenter,
.transparencia-content .aligncenter,
.transparencia-content .wp-block-image.aligncenter {
  float: none !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

/* Alineación ancha */
.alignwide,
.wp-block-image.alignwide {
  margin-left: -10%;
  margin-right: -10%;
  max-width: 120%;
  width: 120%;
}

/* Alineación completa (full) */
.alignfull,
.wp-block-image.alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}

/* Estilos de imagen */
.wp-block-image img {
  height: auto;
  max-width: 100%;
  border-radius: 8px;
}

.wp-block-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-align: center;
}

/* Sobrescribir estilos de prose para imágenes alineadas */
.prose figure.alignleft,
.prose figure.wp-block-image.alignleft,
.prose .wp-block-image.alignleft,
.transparencia-article figure.alignleft,
.transparencia-article figure.wp-block-image.alignleft,
.entry-content figure.alignleft,
.entry-content figure.wp-block-image.alignleft {
  float: left !important;
  margin: 0.5rem 1.5rem 1rem 0 !important;
  max-width: 50% !important;
  display: block !important;
}

.prose figure.alignright,
.prose figure.wp-block-image.alignright,
.prose .wp-block-image.alignright,
.transparencia-article figure.alignright,
.transparencia-article figure.wp-block-image.alignright,
.entry-content figure.alignright,
.entry-content figure.wp-block-image.alignright {
  float: right !important;
  margin: 0.5rem 0 1rem 1.5rem !important;
  max-width: 50% !important;
  display: block !important;
}

.prose figure.aligncenter,
.prose figure.wp-block-image.aligncenter,
.prose .wp-block-image.aligncenter,
.transparencia-article figure.aligncenter,
.transparencia-article figure.wp-block-image.aligncenter,
.entry-content figure.aligncenter,
.entry-content figure.wp-block-image.aligncenter {
  float: none !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Asegurar que las imágenes dentro de figure respeten el ancho */
.prose figure img,
.transparencia-article figure img,
.entry-content figure img {
  display: block !important;
  margin: 0 auto !important;
}

/* Limpiar floats */
.entry-content::after,
article::after,
.transparencia-article::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive - Imágenes alineadas */
@media (max-width: 768px) {
  .alignleft,
  .alignright,
  .wp-block-image.alignleft,
  .wp-block-image.alignright {
    float: none;
    margin: 1rem auto;
    max-width: 100%;
  }

  .alignwide,
  .wp-block-image.alignwide,
  .alignfull,
  .wp-block-image.alignfull {
    margin-left: -1rem;
    margin-right: -1rem;
    max-width: calc(100% + 2rem);
    width: calc(100% + 2rem);
  }
}

/* Top Bar Gubernamental */
.gov-top-bar {
  font-size: 13px;
}

.gov-top-bar-toggle {
  color: #93c5fd;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-size: inherit;
}

.gov-top-bar-toggle:hover {
  color: #bfdbfe;
}

.gov-top-bar-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.gov-top-bar-content.open {
  max-height: 500px;
}

/* Header Principal */
.main-header {
  background-color: var(--color-white);
}

.search-box input {
  border: 1px solid var(--color-gray-200);
}

/* Search Box */
.search-box {
  position: relative;
}

.search-box input {
  border-radius: 9999px;
  padding: 0.5rem 3rem 0.5rem 1rem;
  width: 18rem;
  color: var(--color-text);
}

.search-box input::placeholder {
  color: var(--color-text-light);
}

.search-box input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.search-box button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.search-box button:hover {
  background-color: #b91c1c;
}

/* Grid Menu Dropdown */
.grid-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.grid-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 350px;
  max-width: 90vw;
  background-color: var(--color-white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.grid-menu-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.grid-menu-dropdown-header {
  background-color: white;
  color: #1f2937;
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #e5e7eb;
}

.grid-menu-close {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-menu-close:hover {
  color: #b91c1c;
}

.grid-menu-dropdown-content {
  padding: 1.5rem;
}

/* Selector de categorÃƒÂ­a */
.grid-menu-category {
  margin-bottom: 1.5rem;
}

.grid-category-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: white;
  cursor: pointer;
}

.grid-category-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Grid de iconos */
.grid-menu-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s;
}

.grid-icon-item:hover {
  transform: translateY(-2px);
}

.grid-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.grid-icon-item:hover .grid-icon-box {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.grid-icon-box img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.grid-icon-fallback {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.grid-icon-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.grid-icon-box.grid-icon-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #059669;
}

.grid-icon-box.grid-icon-light {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.grid-icon-label {
  font-size: 0.75rem;
  color: var(--color-text);
  text-align: center;
  line-height: 1.3;
  max-width: 80px;
}

/* Acordeones de Enlaces de InterÃƒÂ©s */
.enlace-accordion {
  margin-bottom: 0;
}

.enlace-accordion-header {
  width: 100%;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 8px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
}

.enlace-accordion-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: #0d3671;
  margin: 0;
  flex: 1;
  text-align: left;
}

.enlace-accordion-header:hover h4 {
  color: #1e40af;
}

.enlace-accordion-icon {
  width: 20px;
  height: 20px;
  color: #0d3671;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.enlace-accordion-header.active .enlace-accordion-icon {
  transform: rotate(180deg);
}

.enlace-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.enlace-accordion-content.open {
  max-height: 300px;
  overflow-y: auto;
}

.enlace-accordion-header.active {
  border-bottom: none;
}

.enlace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 8px;
  padding: 16px 8px;
  border-top: 1px solid #e5e7eb;
}

.enlace-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
  padding: 10px 6px;
  border-radius: 8px;
  transition: background-color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.enlace-item:hover {
  background-color: #eff6ff;
  border-color: #93c5fd;
}

.enlace-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.enlace-item:hover .enlace-icon {
  border-color: #60a5fa;
}

.enlace-icon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.enlace-icon svg {
  width: 28px;
  height: 28px;
}

.enlace-title {
  font-size: 11px;
  color: #374151;
  text-align: center;
  line-height: 1.3;
  max-width: 75px;
}

.enlace-empty {
  text-align: center;
  padding: 24px;
  color: #6b7280;
  font-size: 13px;
}

.grid-menu-section h4 {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

.grid-menu-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.grid-menu-section li {
  margin-bottom: 0.5rem;
}

.grid-menu-section a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  padding: 0.25rem 0;
}

.grid-menu-section a:hover {
  color: var(--color-primary);
}

/* Navbar */
.main-nav {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 1rem 0;
  display: block;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Footer */
.main-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.footer-section h5 {
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-credits {
  background-color: var(--color-primary-dark);
  text-align: center;
  padding: 0.75rem;
  font-size: 0.75rem;
}

/* Responsivo */
@media (max-width: 768px) {
  .search-box input {
    width: 12rem;
  }

  .grid-menu-panel {
    width: 100%;
    right: -100%;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* ========================================
   Page Header & Breadcrumb
   ======================================== */

/* Hero de PÃƒÂ¡gina */
.page-hero {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .page-hero {
    min-height: 320px;
  }
}

@media (min-width: 1024px) {
  .page-hero {
    min-height: 380px;
  }
}

/* Breadcrumb */
.page-breadcrumb {
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.page-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.page-breadcrumb li {
  display: flex;
  align-items: center;
}

.page-breadcrumb a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-breadcrumb a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.page-breadcrumb span.font-medium {
  color: var(--color-primary);
}

/* TÃƒÂ­tulo del Hero */
.page-hero h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   PAGE LAYOUT & SIDEBAR
   ======================================== */

/* Contenido de pÃƒÂ¡gina */
.edgc-page-main {
  min-height: 50vh;
}

.edgc-page-container {
  width: 100%;
}

/* Layout a ancho completo */
.edgc-page-full-width {
  width: 100%;
}

/* Estilos del contenido Gutenberg */
.edgc-page-content {
  width: 100%;
}

.edgc-page-content > *:first-child {
  margin-top: 0;
}

/* Sidebar de pÃƒÂ¡gina */
.edgc-page-sidebar {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}

.edgc-sidebar-widget {
  margin-bottom: 1.5rem;
}

.edgc-sidebar-widget:last-child {
  margin-bottom: 0;
}

.edgc-sidebar-widget-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0b4f93;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.edgc-sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edgc-sidebar-widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.edgc-sidebar-widget li:last-child {
  border-bottom: none;
}

.edgc-sidebar-widget a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.edgc-sidebar-widget a:hover {
  color: #0b4f93;
}

/* Responsive sidebar */
@media (max-width: 1024px) {
  .edgc-page-with-sidebar {
    grid-template-columns: 1fr !important;
  }

  .edgc-page-sidebar {
    order: -1;
    margin-bottom: 2rem;
  }
}

/* ========================================
   SECCIÃƒâ€œN DE TRANSPARENCIA
   ======================================== */

/* Header de navegaciÃƒÂ³n */
.transparencia-nav-header {
  background-color: #e0f2fe;
  padding: 1.5rem 0;
}

.transparencia-breadcrumb {
  font-size: 0.875rem;
  color: #0d3671;
  margin-bottom: 0.25rem;
}

.transparencia-breadcrumb a {
  color: #0d3671;
  text-decoration: none;
}

.transparencia-breadcrumb a:hover {
  text-decoration: underline;
}

.transparencia-breadcrumb .separator {
  margin: 0 0.25rem;
}

.transparencia-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0d3671;
  margin: 0;
}

/* Container y Layout */
.transparencia-container {
  padding: 2rem 0 4rem;
  background: #fff;
}

.transparencia-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}

/* Sidebar */
.transparencia-sidebar {
  position: sticky;
  top: 1rem;
  height: fit-content;
  border-right: 1px solid #e5e7eb;
  padding-right: 1rem;
}

/* Título de sección */
.transparencia-sidebar-titulo {
  background: var(--color-primary, #0d3671);
  color: #fff;
  padding: 12px 16px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Botón hamburguesa móvil - Oculto en desktop */
.transparencia-mobile-toggle {
  display: none;
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-primary, #0d3671);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  transition: background 0.2s;
}

.transparencia-mobile-toggle:hover {
  background: var(--color-primary-dark, #0b2c5c);
}

.transparencia-mobile-toggle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Menú móvil y desktop por defecto no mostrados separadamente */
.transparencia-menu-mobile {
  display: none;
}

.transparencia-menu-desktop {
  display: block;
}

.transparencia-menu-all {
  display: block;
}

/* Lista del menÃƒÂº */
.transparencia-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Items del menÃƒÂº */
.transparencia-menu-item {
  position: relative;
}

.transparencia-menu-item > a {
  display: block;
  padding: 0.875rem 1rem;
  color: #0d3671;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 0.375rem 0 0 0.375rem;
  transition: background 0.2s, border-color 0.2s;
  border-right: 4px solid transparent;
}

.transparencia-menu-item > a:hover,
.transparencia-menu-item > a:focus {
  background: #eff6ff;
}

.transparencia-menu-item.active > a {
  background: #eff6ff;
  border-right-color: #0d3671;
  font-weight: 500;
}

/* Items con submenÃƒÂº */
.transparencia-menu-item.has-submenu {
  position: relative;
}

.transparencia-menu-item.has-submenu > a {
  padding-right: 2.5rem;
}

/* Toggle del submenÃƒÂº (flecha) */
.transparencia-menu-item.has-submenu > .submenu-toggle {
  position: absolute;
  right: 0;
  top: 0;
  height: calc(
    0.875rem * 2 + 1rem
  ); /* Igual al padding + line-height del link */
  width: 2.5rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s;
  z-index: 2;
}

.submenu-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.submenu-toggle:hover {
  color: #0d3671;
}

.transparencia-menu-item.has-submenu.open > .submenu-toggle svg {
  transform: rotate(180deg);
}

/* SubmenÃƒÂº */
.transparencia-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  background: white;
  transition: max-height 0.3s ease;
}

.transparencia-menu-item.has-submenu.open > .transparencia-submenu {
  max-height: 3000px;
}

.transparencia-submenu .transparencia-menu-item > a {
  padding: 0.625rem 1rem 0.625rem 1.5rem;
  font-size: 0.875rem;
  border-right: none;
  border-radius: 0;
}

.transparencia-submenu .transparencia-submenu .transparencia-menu-item > a {
  padding-left: 2.5rem;
}

.transparencia-submenu .transparencia-submenu .transparencia-submenu .transparencia-menu-item > a {
  padding-left: 3.5rem;
}

.transparencia-submenu .transparencia-menu-item > a:hover {
  background: #eff6ff;
}

/* Contenido principal */
.transparencia-content {
  min-width: 0;
}

/* Iconos de compartir */
.transparencia-share-icons,
.edgc-share-icons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.edgc-share-icons {
  justify-content: flex-end;
}

.share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #0d3671;
  transition: color 0.2s;
}

.share-icon:hover {
  color: #1e40af;
}

.share-icon svg {
  width: 20px;
  height: 20px;
}

.share-icon-pdf {
  color: #dc2626;
}

.share-icon-pdf:hover {
  color: #b91c1c;
}

/* ArtÃƒÂ­culo */
.transparencia-article {
  line-height: 1.8;
  color: #374151;
}

.transparencia-article h2 {
  font-size: 1.5rem;
  color: #0d3671;
  margin: 2rem 0 1rem;
}

.transparencia-article h3 {
  font-size: 1.25rem;
  color: #0d3671;
  margin: 1.5rem 0 0.75rem;
}

.transparencia-article p {
  margin-bottom: 1rem;
}

.transparencia-article img {
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .transparencia-layout {
    grid-template-columns: 240px 1fr;
    gap: 1rem;
  }

  .transparencia-sidebar {
    max-height: calc(100vh - 3rem);
  }
}

@media (max-width: 768px) {
  .transparencia-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .transparencia-sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: none;
    padding-right: 0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    overflow: visible;
  }

  /* Mostrar botón hamburguesa en móvil */
  .transparencia-mobile-toggle {
    display: flex;
    margin-bottom: 0;
  }

  /* Ocultar título en móvil ya que el botón tiene el texto */
  .transparencia-sidebar-titulo {
    display: none;
  }

  /* Ocultar menú por defecto en móvil */
  .transparencia-menu {
    display: none;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
  }

  /* Mostrar menú cuando está abierto */
  .transparencia-sidebar.menu-open .transparencia-menu {
    display: block;
  }

  /* Si hay menú móvil personalizado, mostrarlo en móvil */
  .transparencia-sidebar.menu-open .transparencia-menu-mobile {
    display: block;
  }

  .transparencia-sidebar.menu-open .transparencia-menu-desktop {
    display: none;
  }

  /* Si solo hay menú general (all), mostrarlo */
  .transparencia-sidebar.menu-open .transparencia-menu-all {
    display: block;
  }

  .transparencia-menu-item > a {
    padding: 1rem;
    border-radius: 0.375rem;
  }
  
  .transparencia-submenu .transparencia-menu-item > a {
    padding-left: 2rem !important;
  }

  .transparencia-submenu .transparencia-submenu .transparencia-menu-item > a {
    padding-left: 3rem !important;
  }

  .transparencia-submenu .transparencia-submenu .transparencia-submenu .transparencia-menu-item > a {
    padding-left: 4rem !important;
  }

  .transparencia-menu-item.active > a {
    border-right: none;
    border-left: 4px solid #0d3671;
  }

  .transparencia-page-title {
    font-size: 1.5rem;
  }
}

/* ========================================
   MENÃƒÅ¡ MÃƒâ€œVIL
   ======================================== */

/* Buscador mÃƒÂ³vil inline expandible */
.mobile-search-inline {
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
  margin-right: 0;
}

.mobile-search-inline.open {
  width: 180px;
  margin-right: 8px;
}

.mobile-search-input {
  width: 100%;
  border: none;
  background: #f3f4f6;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: #374151;
  outline: none;
}

.mobile-search-input::placeholder {
  color: #9ca3af;
}

/* BotÃƒÂ³n buscador mÃƒÂ³vil (cÃƒÂ­rculo rojo) */
.mobile-search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #c41e3a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: background 0.2s;
  flex-shrink: 0;
}

.mobile-search-btn:hover {
  background: #a11830;
}

/* BotÃƒÂ³n toggle cuando estÃƒÂ¡ colapsado */
.mobile-search-toggle.hidden {
  display: none;
}

/* Separador vertical */
.mobile-separator {
  width: 1px;
  height: 28px;
  background: #d1d5db;
  margin: 0 12px;
}

.mobile-separator.hidden {
  display: none;
}

/* BotÃƒÂ³n hamburguesa */
.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #0d3671;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle .hamburger-icon,
.mobile-menu-toggle .close-icon {
  width: 28px;
  height: 28px;
}

/* Por defecto: mostrar hamburguesa, ocultar cerrar */
.mobile-menu-toggle .close-icon {
  display: none;
}

/* Cuando estÃƒÂ¡ abierto: ocultar hamburguesa, mostrar cerrar */
.mobile-menu-toggle.menu-open .hamburger-icon {
  display: none;
}

.mobile-menu-toggle.menu-open .close-icon {
  display: block;
}

.mobile-menu-toggle.hidden {
  display: none;
}

/* Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Panel del menÃƒÂº */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: white;
  z-index: 999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-panel.open {
  right: 0;
}

/* Header del menÃƒÂº mÃƒÂ³vil */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: #0d3671;
  color: white;
}

.mobile-menu-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
}

/* Contenido del menÃƒÂº */
.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list > li {
  border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-list > li > a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu-list > li > a:hover {
  background: #f9fafb;
  color: #0d3671;
}

/* Items con submenÃƒÂº */
.mobile-menu-list > li.has-submenu {
  position: relative;
}

.mobile-submenu-toggle {
  position: absolute;
  right: 0.75rem;
  top: 0.625rem;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #6b7280;
  transition: transform 0.2s;
}

.mobile-submenu-toggle svg {
  width: 16px;
  height: 16px;
}

.mobile-menu-list > li.has-submenu.open .mobile-submenu-toggle {
  transform: rotate(90deg);
}

/* SubmenÃƒÂº */
.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  background: #f9fafb;
}

.mobile-menu-list > li.has-submenu.open .mobile-submenu {
  display: block;
}

.mobile-submenu li a {
  display: block;
  padding: 0.75rem 1.25rem 0.75rem 2rem;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}

.mobile-submenu li a:hover {
  background: #f3f4f6;
  color: #0d3671;
}

/* ========================================
   MENÃƒÅ¡ MÃƒâ€œVIL DESPLEGABLE (DEBAJO DEL HEADER)
   ======================================== */

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  background: white;
  border-bottom: 1px solid transparent;
  transition: max-height 0.35s ease, border-color 0.35s ease;
}

.mobile-dropdown-menu.open {
  max-height: 600px;
  border-bottom-color: #e5e7eb;
}

@media (min-width: 768px) {
  .mobile-dropdown-menu {
    display: none !important;
  }
}

/* Enlaces de interÃƒÂ©s (secciÃƒÂ³n especial) */
.mobile-dropdown-special {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  color: #0d3671;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-dropdown-special:hover {
  background: #f1f5f9;
}

/* Lista del menÃƒÂº */
.mobile-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-dropdown-item {
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}

.mobile-dropdown-item > a {
  display: block;
  padding: 1rem 1.25rem;
  color: #0d3671;
  text-decoration: none;
  font-size: 1rem;
}

.mobile-dropdown-item > a:hover {
  background: #f9fafb;
}

/* Toggle de submenÃƒÂº */
.mobile-dropdown-toggle {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #9ca3af;
  transition: transform 0.2s;
}

.mobile-dropdown-toggle svg {
  width: 16px;
  height: 16px;
}

.mobile-dropdown-item.open .mobile-dropdown-toggle {
  transform: rotate(90deg);
}

/* SubmenÃƒÂº */
.mobile-dropdown-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  background: #f9fafb;
  transition: max-height 0.3s ease;
}

.mobile-dropdown-item.open .mobile-dropdown-submenu {
  max-height: 300px;
}

.mobile-dropdown-submenu li a {
  display: block;
  padding: 0.75rem 1.25rem 0.75rem 2.5rem;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.9rem;
}

.mobile-dropdown-submenu li a:hover {
  background: #f3f4f6;
  color: #0d3671;
}

/* ========================================
   ENLACES DE INTERÃƒâ€°S EN MENÃƒÅ¡ MÃƒâ€œVIL
   ======================================== */

.mobile-enlaces-section {
  border-bottom: 1px solid #e5e7eb;
}

.mobile-enlaces-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  color: #0d3671;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mobile-enlaces-arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.mobile-enlaces-section.open .mobile-enlaces-arrow {
  transform: rotate(90deg);
}

.mobile-enlaces-content {
  max-height: 0;
  overflow: hidden;
  background: white;
  transition: max-height 0.3s ease;
}

.mobile-enlaces-section.open .mobile-enlaces-content {
  max-height: 800px;
}

.mobile-enlaces-categoria {
  border-bottom: 1px solid #f3f4f6;
}

/* Header de categorÃƒÂ­a (accordion) */
.mobile-categoria-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mobile-categoria-header span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0d3671;
}

.mobile-categoria-arrow {
  width: 14px;
  height: 14px;
  color: #9ca3af;
  transition: transform 0.3s ease;
}

.mobile-enlaces-categoria.open .mobile-categoria-arrow {
  transform: rotate(90deg);
}

/* Grid de enlaces (colapsable) */
.mobile-enlaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-height: 0;
  overflow: hidden;
  padding: 0 0.5rem;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-enlaces-categoria.open .mobile-enlaces-grid {
  max-height: 500px;
  padding: 0.5rem;
}

.mobile-enlace-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 0.7rem;
  text-align: center;
  transition: background 0.2s;
}

.mobile-enlace-item:hover {
  background: #f3f4f6;
}

.mobile-enlace-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  flex-shrink: 0;
}

.mobile-enlace-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   EXPLORADOR DE DOCUMENTOS
   ======================================== */

.doc-explorer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Carpeta (AÃƒÂ±o y Mes) */
.doc-folder {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.doc-folder-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}

.doc-folder-header:hover {
  background: #f9fafb;
}

.doc-folder-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.doc-folder-icon svg {
  width: 100%;
  height: 100%;
}

.doc-folder-icon-month {
  width: 40px;
  height: 40px;
}

.doc-folder-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.doc-folder-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.doc-folder-month .doc-folder-name {
  font-size: 1rem;
}

.doc-folder-count {
  font-size: 0.875rem;
  color: #6b7280;
}

.doc-folder-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #9ca3af;
  transition: transform 0.3s ease;
}

.doc-folder.open > .doc-folder-header .doc-folder-arrow {
  transform: rotate(90deg);
}

/* Contenido de carpeta */
.doc-folder-content {
  display: none;
  padding: 0 1rem 1rem 1rem;
}

.doc-folder.open > .doc-folder-content {
  display: block;
}

/* Subcarpetas (meses) */
.doc-folder-month {
  margin-left: 2rem;
  margin-top: 0.5rem;
  border-color: #e5e7eb;
}

.doc-folder-month .doc-folder-content {
  padding-left: 0.5rem;
}

/* Tarjeta de documento */
.doc-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  margin-top: 0.75rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: box-shadow 0.2s;
}

.doc-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Icono grande del documento */
.doc-card-icon {
  flex-shrink: 0;
  width: 64px;
  height: 80px;
}

.doc-card-icon svg {
  width: 100%;
  height: 100%;
}

/* Contenido de la tarjeta */
.doc-card-content {
  flex: 1;
  min-width: 0;
}

.doc-card-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0d3671;
  line-height: 1.4;
}

.doc-card-desc {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
}

/* Metadatos en lista */
.doc-card-meta {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.doc-card-meta li {
  margin-bottom: 0.125rem;
}

.doc-meta-label {
  color: #9ca3af;
}

/* Botones de acciÃƒÂ³n */
.doc-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.doc-card-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #0d3671;
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.doc-card-btn-primary:hover {
  background: #1e40af;
  color: white;
}

.doc-card-btn-primary svg {
  width: 18px;
  height: 18px;
}

.doc-card-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.doc-card-btn-secondary:hover {
  background: #e5e7eb;
  color: #0d3671;
  border-color: #9ca3af;
}

.doc-card-btn-secondary svg {
  width: 14px;
  height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .doc-folder-month {
    margin-left: 1rem;
  }

  .doc-folder-icon {
    width: 40px;
    height: 40px;
  }

  .doc-folder-icon-month {
    width: 32px;
    height: 32px;
  }

  .doc-card {
    flex-wrap: wrap;
  }

  .doc-card-icon {
    width: 56px;
    height: 70px;
  }

  .doc-card-content {
    flex: 1 1 calc(100% - 80px);
  }

  .doc-card-actions {
    width: 100%;
    flex-direction: row;
    margin-top: 0.75rem;
  }
}

@media (max-width: 480px) {
  .doc-folder-header {
    padding: 0.875rem 1rem;
  }

  .doc-folder-name {
    font-size: 1rem;
  }

  .doc-folder-month .doc-folder-name {
    font-size: 0.9rem;
  }

  .doc-card {
    padding: 1rem;
  }

  .doc-card-icon {
    width: 48px;
    height: 60px;
  }

  .doc-card-actions {
    flex-direction: column;
  }

  .doc-card-btn-primary {
    width: 100%;
  }
}

/* ========================================
   BOTÃƒâ€œN MENU PRINCIPAL
   ======================================== */

.menu-cta-button {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.625rem 1.75rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-left: auto;
}

.menu-cta-button:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* VersiÃƒÂ³n mÃƒÂ³vil del botÃƒÂ³n */
.mobile-cta-item {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.mobile-cta-button {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-cta-button:hover {
  filter: brightness(0.9);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ========================================
   ORGANIGRAMA
   ======================================== */

.org-chart-container {
  max-width: 1400px;
  margin: 3rem auto;
  padding: 2rem;
  background: #f9fafb;
  border-radius: 12px;
}

.org-chart-title {
  text-align: center;
  color: #003876;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.org-level {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1.5rem; /* Reducido para que quepan 6 */
  margin-bottom: 3rem;
  position: relative;
}

.org-level-1 {
  justify-content: center;
}

.org-level-1::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 1.5rem;
  background: #003876;
  opacity: 0.3;
}

.org-member {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  width: 190px; /* Reducido para que quepan 6 */
  text-align: center;
  border: 3px solid #059669;
  display: flex;
  flex-direction: column;
}

.org-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.org-member-foto {
  width: 100%;
  height: 220px; /* Reducido proporcional */
  overflow: hidden;
  background: #e5e7eb;
  position: relative;
}

.org-member-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.org-member-info {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 120px;
}

.org-member-nombre {
  font-size: 1rem;
  color: #1f2937;
  margin: 0 0 0.25rem 0 !important;
  margin-top: 0 !important;
}

.org-member-rango {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.org-member-cargo {
  font-size: 0.875rem;
  font-weight: 600;
  color: #003876;
  margin-top: auto; /* Empuja el cargo al fondo */
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

/* Nivel 1 - Director */
.org-level-1 .org-member {
  width: 210px;
  border: 3px solid #003876;
}

.org-level-1 .org-member-foto {
  height: 250px;
}

.org-level-1 .org-member-nombre {
  font-size: 1.125rem;
}

.org-level-1 .org-member-cargo {
  font-size: 1rem;
}

/* Error y mensajes */
.org-error,
.org-empty {
  text-align: center;
  padding: 2rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
  .org-chart-container {
    padding: 1rem;
  }

  .org-chart-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .org-level {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .org-level-1::after {
    display: none;
  }

  .org-member {
    width: 100%;
    max-width: 280px;
  }

  .org-level-1 .org-member {
    width: 100%;
    max-width: 300px;
  }
}

/* ========================================
   BUSCADOR HEADER - HOVER EFFECT
   ======================================== */

.search-box input[type="text"] {
  border: 1px solid #d1d5db;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box input[type="text"]:hover {
  border-color: #003876;
}

.search-box input[type="text"]:focus {
  border-color: #003876;
  box-shadow: 0 0 0 3px rgba(0, 56, 118, 0.1);
}

/* ========================================
   FLIPBOOK PDF
   ======================================== */

.flipbook-container {
  max-width: 400px;
  margin: 1.5rem auto;
  text-align: center;
}

.flipbook-container .flipbook-thumbnail {
  display: block;
}

.dflip-thumbnail-preview {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.dflip-thumbnail-preview img {
  display: block;
  max-width: 100%;
  height: auto;
}

.dflip-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.dflip-thumbnail-preview:hover .dflip-play-overlay {
  opacity: 1;
}

.flipbook-title {
  text-align: center;
  color: #003876;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.flipbook-loading {
  text-align: center;
  padding: 4rem 2rem;
}

.flipbook-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border: 4px solid #e5e7eb;
  border-top-color: #003876;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.flipbook-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  perspective: 2000px;
}

.flipbook-pages {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.flipbook-page {
  background: white;
}

.flipbook-page canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.flipbook-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.flipbook-btn {
  padding: 0.75rem 1.5rem;
  background: #003876;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.flipbook-btn:hover {
  background: #002855;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.flipbook-btn:active {
  transform: translateY(0);
}

.flipbook-page-num {
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 6px;
  font-weight: 600;
  color: #003876;
  border: 2px solid #003876;
}

.flipbook-error {
  color: #dc2626;
  background: #fef2f2;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .flipbook-container {
    padding: 1rem;
  }

  .flipbook-title {
    font-size: 1.25rem;
  }

  .flipbook-controls {
    flex-direction: column;
    width: 100%;
  }

  .flipbook-btn,
  .flipbook-page-num {
    width: 100%;
    justify-content: center;
  }
}

/* Thumbnail con overlay */
.flipbook-thumbnail {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.flipbook-thumbnail:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.flipbook-thumbnail canvas {
  display: block;
  width: 100%;
  height: auto;
}

.flipbook-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flipbook-thumbnail:hover .flipbook-play-overlay {
  opacity: 1;
}

.flipbook-play-btn {
  text-align: center;
  color: white;
}

.flipbook-play-btn p {
  margin-top: 0.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Modal */
.flipbook-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flipbook-modal.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.flipbook-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.flipbook-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.flipbook-modal-title {
  margin: 0;
  color: #003876;
  font-size: 1.5rem;
  font-weight: 700;
}

.flipbook-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #6b7280;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.flipbook-modal-close:hover {
  background: #f3f4f6;
  color: #dc2626;
}

.flipbook-modal-body {
  flex: 1;
  padding: 2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flipbook-modal-wrapper {
  display: flex;
  justify-content: center;
  perspective: 2000px;
}

.flipbook-modal-loading {
  text-align: center;
  padding: 4rem 2rem;
}

.flipbook-modal-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

/* Fullscreen modal styles */
.flipbook-modal-content:fullscreen,
.flipbook-modal-content:-webkit-full-screen,
.flipbook-modal-content:-moz-full-screen,
.flipbook-modal-content:-ms-fullscreen {
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
}

.flipbook-modal-content:fullscreen .flipbook-modal-body,
.flipbook-modal-content:-webkit-full-screen .flipbook-modal-body {
  padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .flipbook-container {
    padding: 1rem;
  }

  .flipbook-title {
    font-size: 1.25rem;
  }

  .flipbook-modal-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .flipbook-modal-header {
    padding: 0.75rem 1rem;
  }

  .flipbook-modal-title {
    font-size: 1.125rem;
  }

  .flipbook-modal-body {
    padding: 1rem;
  }

  .flipbook-modal-controls {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .flipbook-btn,
  .flipbook-page-num {
    width: 100%;
    justify-content: center;
  }
}

/* Modal PageFlip */
.flipbook-modal-pageflip {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flipbook-modal-pageflip.active {
  display: flex !important;
  flex-direction: column;
  opacity: 1;
}

.flipbook-modal-pf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.flipbook-modal-pf-title {
  margin: 0;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.flipbook-modal-pf-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.flipbook-modal-pf-close:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.flipbook-modal-pf-body {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.flipbook-pf-loading {
  text-align: center;
  color: white;
}

#pageflip-container {
  margin: 0 auto;
}

.pf-page {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pf-page canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.flipbook-pf-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .flipbook-modal-pf-header {
    padding: 0.75rem 1rem;
  }

  .flipbook-modal-pf-title {
    font-size: 1.125rem;
  }

  .flipbook-modal-pf-body {
    padding: 1rem;
  }

  .flipbook-pf-controls {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .flipbook-pf-controls .flipbook-btn {
    width: 100%;
    justify-content: center;
  }
}

/* DearFlip Thumbnail Styles */
.dflip-thumbnail-preview {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dflip-thumbnail-preview:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.dflip-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dflip-thumbnail-preview:hover .dflip-play-overlay {
  opacity: 1;
}

/* Override DearFlip modal styles for better integration */
.df-lightbox-wrapper {
  z-index: 999999 !important;
}

/* DearFlip Customization */
/* Fondo gris oscuro para el lightbox */
.df-lightbox-wrapper {
  background-color: rgba(30, 30, 30, 0.97) !important;
}

/* Corregir botones - iconos visibles */
.df-ui-btn {
  color: white !important;
  opacity: 0.9;
}

.df-ui-btn:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Botones de navegaciÃ³n */
.df-ui-next,
.df-ui-prev {
  background-color: rgba(0, 56, 118, 0.8) !important;
  color: white !important;
}

.df-ui-next:hover,
.df-ui-prev:hover {
  background-color: rgba(0, 56, 118, 1) !important;
}

/* Barra de herramientas superior */
.df-ui-toolbar {
  background-color: rgba(40, 40, 40, 0.95) !important;
}

/* Iconos de la barra */
.df-ui-sidemenu-close,
.df-ui-share,
.df-ui-download,
.df-ui-sound,
.df-ui-thumbnail,
.df-ui-outline,
.df-ui-search,
.df-ui-zoom-in,
.df-ui-zoom-out,
.df-ui-fullscreen {
  color: white !important;
  filter: brightness(1) !important;
}

/* Asegurar que todos los SVG sean visibles */
.df-ui-btn svg {
  fill: currentColor !important;
}

/* DearFlip - Fondo Gris Oscuro y Botones Visibles */
.df-lightbox-wrapper {
  background-color: #2a2a2a !important;
}
.df-container {
  background-color: #2a2a2a !important;
}
.df-book-wrapper {
  background-color: #2a2a2a !important;
}
.df-ui-wrapper {
  background-color: rgba(20, 20, 20, 0.95) !important;
}
.df-ui-btn,
.df-ui-btn i {
  color: #ffffff !important;
}
.df-ui-btn svg,
.df-ui-btn svg path {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}
.df-ui-next,
.df-ui-prev {
  background-color: rgba(0, 56, 118, 0.9) !important;
  color: #fff !important;
}
.df-ui-page-number {
  color: #fff !important;
  background-color: rgba(0, 0, 0, 0.6) !important;
}
.df-lightbox-close {
  color: #fff !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
}

/* ========================================
   ESTILOS MEJORADOS PARA DOCUMENTOS
   ======================================== */

/* Efecto hover mejorado en carpetas */
.doc-folder-header {
  transition: background 0.2s ease, transform 0.2s ease;
}

.doc-folder-header:hover {
  background: #f9fafb;
}

.doc-folder-header:active {
  transform: scale(0.99);
}

/* Flecha con animaciÃ³n suave */
.doc-folder-arrow {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Iconos de tipo de archivo mejorados */
.doc-card-icon img,
.doc-card-icon svg {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* AnimaciÃ³n de hover en tarjetas de documentos */
.doc-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Subcarpetas de meses mÃ¡s limpias */
.doc-folder-month {
  margin-left: 1.5rem;
  margin-top: 0.75rem;
  background: #fffbeb;
  border-color: #fde68a;
}

to {
  opacity: 1;
  transform: translateY(0);
}

/* Estilos para acordeÃ³n de documentos con jQuery slideDown */
.doc-folder-content {
  display: none;
}

.doc-folder.open > .doc-folder-content {
  display: block;
}

/* ================================================
   EXPLORADOR DE DOCUMENTOS - ESTILO CARPETAS
   ================================================ */

.file-explorer {
  background: transparent;
  padding: 0;
}

/* Breadcrumbs de navegaciÃ³n */
.file-explorer-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.file-explorer-breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s;
}

.file-explorer-breadcrumb-item:hover {
  color: #0369a1;
}

.file-explorer-breadcrumb-item.active {
  color: #1e293b;
  font-weight: 600;
  cursor: default;
}

.file-explorer-breadcrumb-separator {
  color: #cbd5e1;
}

/* Grid de carpetas */
.file-explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

/* Back header con botón y título */
.file-explorer-back-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.file-explorer-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #003876;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.file-explorer-back-btn:hover {
  background: #003876;
  color: white;
  border-color: #003876;
}

.file-explorer-back-btn svg {
  flex-shrink: 0;
}

.file-explorer-current-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Carpeta individual */
.file-folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
}

.file-folder:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2);
}

.file-folder-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 0.75rem;
}

.file-folder-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(245, 158, 11, 0.3));
}

.file-folder-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
  word-break: break-word;
  line-height: 1.3;
  max-width: 100%;
}

.file-folder-count {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Lista de archivos */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.file-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

.file-item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 60px;
}

.file-item-icon svg {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.file-item-info {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.file-item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748b;
}

.file-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.file-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.file-item-btn-primary {
  background: #003876;
  color: #fff;
}

.file-item-btn-primary:hover {
  background: #002855;
}

.file-item-btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.file-item-btn-secondary:hover {
  background: #e2e8f0;
}

.file-item-btn svg {
  width: 16px;
  height: 16px;
}

/* Mensaje vacÃ­o */
.file-explorer-empty {
  text-align: center;
  padding: 3rem;
  color: #64748b;
}

.file-explorer-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Vista para documentos permanentes */

/* Responsive */
@media (max-width: 640px) {
  .file-explorer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .file-folder {
    padding: 1rem 0.75rem;
  }

  .file-folder-icon {
    width: 48px;
    height: 48px;
  }

  .file-item {
    flex-wrap: wrap;
  }

  .file-item-actions {
    width: 100%;
    margin-top: 0.75rem;
  }

  .file-item-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Divider entre permanentes y carpetas */
.file-explorer-divider {
  border: none;
  border-top: 2px dashed #e2e8f0;
  margin: 1.5rem 0;
}

/* Icono de archivo - sin fondo extra */
.file-item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-item-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.file-item-icon svg {
  width: 100%;
  height: 100%;
}

/* Meta con etiquetas */
.file-item-meta strong {
  color: #64748b;
}

/* ================================================
   GUTENBERG - ESTILOS DE ALINEACIÓN DE TEXTO
   ================================================ */

.has-text-align-justify {
  text-align: justify !important;
}

.has-text-align-left {
  text-align: left !important;
}

.has-text-align-center {
  text-align: center !important;
}

.has-text-align-right {
  text-align: right !important;
}
