/*
 Theme Name:     Wiki. FCS-WEB-PROJECTS
 Theme URI:      Confidential
 Description:    Child Theme
 Author:         Fernando Conte
 Author URI:     Confidential
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

/* =========================
   1. RESET DIVI WIDTH
========================= */

/* Eliminar sombra inferior del header de Divi */
#main-header,
#main-header.et-fixed-header{
  -webkit-box-shadow:none !important;
  -moz-box-shadow:none !important;
  box-shadow:none !important;
  border-bottom:none !important;
}

#main-header .container{
  width:100% !important;
  max-width:100% !important;
  padding:0 80px !important;
}

.et_pb_section{
  padding:0 !important;
}

.et_pb_row{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
}

body{
  background:#ffffff;
  color:#1f2937;
}


/* =========================
   2. VARIABLES
========================= */

:root{
  --global-header-height:74px;
  --wiki-topbar-height:40px;
}


/* =========================
   3. WRAPPER GENERAL
========================= */

.docs-wrapper{
  padding-top:var(--global-header-height) !important;
  height:auto !important;
  overflow:visible !important;
}

.docs-wrapper .et_pb_row{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
}

.docs-wrapper .et_pb_column{
  margin-bottom:0 !important;
}


/* =========================
   4. WIKI TOP HEADER
========================= */

.wiki-top-header-row{
  position:sticky !important;
  top:var(--global-header-height);
  z-index:950;
  padding:0 !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  background:rgba(255,255,255,0.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #e5e7eb;
}

.wiki-top-header-row .et_pb_column,
.wiki-top-header-row .et_pb_module{
  background:rgba(255,255,255,0.96);
}

.wiki-top-header{
  height:var(--wiki-topbar-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 80px;
  box-sizing:border-box;
}

.wiki-top-header .logo{
  font-size:16px;
  font-weight:700;
  color:#111827;
  white-space:nowrap;
}

.wiki-top-header .top-nav{
  display:flex;
  align-items:center;
  gap:28px;
  height:100%;
}

.wiki-top-header .top-nav a{
  position:relative;
  display:inline-flex;
  align-items:center;
  height:100%;
  text-decoration:none;
  color:#4b5563;
  font-size:13px;
  font-weight:500;
  transition:color .2s ease;
}

.wiki-top-header .top-nav a:hover{
  color:#111827;
}

.wiki-top-header .top-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:3px;
  background:#dc2626;
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .2s ease;
}

.wiki-top-header .top-nav a.current-section{
  color:#dc2626;
  font-weight:600;
}

.wiki-top-header .top-nav a.current-section::after{
  transform:scaleX(1);
}


/* =========================
   5. LAYOUT PRINCIPAL
========================= */

.docs-layout{
  display:grid !important;
  grid-template-columns:280px minmax(0,1fr) 260px !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  align-items:start !important;
  background:#fff;
}

/* columnas divi como grid items reales */
.docs-layout > .et_pb_column{
  float:none !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  align-self:start !important;
}

.docs-layout .wiki-sidebar,
.docs-layout .docs-content,
.docs-layout .docs-toc{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  padding: 25px !important;
}

.docs-layout .et_pb_module{
  width:100%;
  max-width:100%;
}


/* =========================
   6. SIDEBAR
========================= */

.wiki-sidebar{
  position:sticky !important;
  top:calc(var(--global-header-height) + var(--wiki-topbar-height));
  max-height:calc(100vh - var(--global-header-height) - var(--wiki-topbar-height));
  height:calc(100vh - var(--global-header-height) - var(--wiki-topbar-height));
  overflow-y:auto;
  overflow-x:hidden;
  background:#fcfcfd;
  border-right:1px solid #e5e7eb;
  padding:20px 16px 24px 16px;
  box-sizing:border-box;
  align-self:start;
  transform:none !important;
  contain:none !important;
}

.wiki-sidebar::-webkit-scrollbar{
  width:8px;
}

.wiki-sidebar::-webkit-scrollbar-thumb{
  background:#d1d5db;
  border-radius:20px;
}

.wiki-sidebar-title{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#6b7280;
  font-weight:700;
  margin-bottom:14px;
}

/* grupos del accordion */
.wiki-group{
  margin-bottom:0px;
}

.wiki-group-toggle{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  background:transparent;
  border:none;
  padding:10px 8px;
  cursor:pointer;
  color:#4b5563;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  text-align:left;
  border-left:1px solid #e5e7eb;
}

/*.wiki-group-toggle:hover{
  background:#f3f4f6;
  color:#2563eb;
}*/

.wiki-group-arrow{
  display:inline-block;
  width:12px;
  font-size:11px;
  transition:transform .2s ease;
}

.wiki-group.is-open .wiki-group-arrow{
  transform:rotate(90deg);
}

.wiki-group-content{
  display:none;
  padding:0;
}

.wiki-group.is-open .wiki-group-content{
  display:block;
}

/* artículos */
.wiki-articles,
.wiki-articles ul{
  list-style:none !important;
  margin:0!important;
  padding:0!important;
  border-left:1px solid #e5e7eb;
}

.wiki-articles > li{
  margin:0;
}

.wiki-articles > li > a{
  display:block;
  padding:8px 10px;
  text-decoration:none;
  color:#4b5563;
  font-size:13px;
  line-height:1.45;
  transition:all .15s ease;
}

.wiki-articles > li > a:hover{
  font-weight:600;
}

.wiki-articles > li.active-parent > a{
  color:#dc2626;
  font-weight:600;
  border-left:1px solid #dc2626;
}

/* subartículos */
.wiki-subarticles{
  margin-top:4px;
  padding-left:18px !important;
  border-left:1px solid #e5e7eb;
}

.wiki-subarticles li{
  margin:2px 0;
}

.wiki-subarticles li a{
  display:block;
  padding:7px 10px;
  border-radius:8px;
  text-decoration:none;
  color:#6b7280;
  font-size:13px;
  line-height:1.4;
}

.wiki-subarticles li a:hover{
  background:#f9fafb;
  color:#2563eb;
}

.wiki-subarticles li.active a{
  background:#dbeafe;
  color:#1d4ed8;
  font-weight:700;
}

.wiki-articles-ungrouped{
  margin-bottom:16px;
  padding-bottom:10px;
}


/* =========================
   7. CONTENIDO CENTRAL
========================= */

.docs-content{
  min-width:0 !important;
  width:100% !important;
  max-width:100% !important;
  overflow:visible !important;
  padding:24px 56px 80px 56px !important;
  background:#fff;
  box-sizing:border-box;
  position:relative;
  transform:none !important;
  contain:none !important;
  display:block !important;
}

/* evitar que el primer módulo empuje el layout */
.docs-content > :first-child,
.docs-content > .et_pb_module:first-child,
.docs-content > .et_pb_post:first-child{
  margin-top:0 !important;
  padding-top:0 !important;
}

.docs-content .et_pb_module{
  max-width:100% !important;
}

.docs-content .et_pb_post{
  margin-bottom:0 !important;
}

.docs-content .inner,
.docs-content .et_pb_module,
.docs-content .et_pb_post{
  max-width:860px;
}

.docs-content h1{
  font-size:24px;
  line-height:1.1;
  letter-spacing:-0.02em;
  color:#111827;
  margin-bottom:18px;
  Font-weight:bold;
}

.docs-content h2{
  font-size:21px;
  line-height:1.2;
  letter-spacing:-0.01em;
  color:#111827;
  margin-top:10px;
  margin-bottom:10px;
  padding-top:6px;
  padding-bottom:10px;
  font-weight: 700;
}

.docs-content h3{
  font-size:18px;
  line-height:1.25;
  color:#111827;
  margin-top:10px;
  margin-bottom:10px;
  padding-bottom:10px;
  font-weight: 600;
}

.docs-content h4{
  font-size:16px;
  line-height:1.3;
  color:#1f2937;
  margin-top:22px;
  margin-bottom:8px;
}

.docs-content p,
.docs-content li{
  font-size:14px;
  line-height:1.85;
  color:#374151;
}

.docs-content p{
  margin-bottom:16px;
}

.docs-content ul,
.docs-content ol{
  padding-left:22px;
  margin-bottom:18px;
}

.docs-content a{
  color:#2563eb;
  text-decoration:none;
}

.docs-content a:hover{
  text-decoration:underline;
}

/* compensar headers sticky al navegar a anclas */
.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4,
.docs-content h5,
.docs-content h6{
  scroll-margin-top:calc(var(--global-header-height) + var(--wiki-topbar-height) + 24px);
}

/* breadcrumb */
.wiki-breadcrumbs,
.docs-content .bcn_display,
.docs-content .breadcrumbs{
  font-size:13px;
  color:#6b7280;
  margin-bottom:18px;
  line-height:1.5;
  margin-top:0 !important;
  padding-top:0 !important;
}

.wiki-breadcrumbs a,
.docs-content .bcn_display a,
.docs-content .breadcrumbs a{
  color:#6b7280;
  text-decoration:none;
}

.wiki-breadcrumbs a:hover,
.docs-content .bcn_display a:hover,
.docs-content .breadcrumbs a:hover{
  color:#2563eb;
}

.wiki-breadcrumbs .separator,
.docs-content .bcn_display .separator{
  margin:0 6px;
  color:#9ca3af;
}


/* =========================
   8. TABLE OF CONTENTS
========================= */

.docs-toc{
  position:sticky !important;
  top:calc(var(--global-header-height) + var(--wiki-topbar-height) + 16px);
  max-height:calc(100vh - var(--global-header-height) - var(--wiki-topbar-height) - 16px);
  overflow-y:auto;
  overflow-x:hidden;
  padding:28px 20px 30px 12px;
  border-left:1px solid #f3f4f6;
  background:#fff;
  box-sizing:border-box;
  align-self:start;
  transform:none !important;
  contain:none !important;
}

.docs-toc::-webkit-scrollbar{
  width:6px;
}

.docs-toc::-webkit-scrollbar-thumb{
  background:#d1d5db;
  border-radius:20px;
}

.docs-toc .toc-title{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#6b7280;
  font-weight:700;
  margin-bottom:14px;
}

.docs-toc ul{
  list-style:none;
  margin:0;
  padding:0;
}

.docs-toc li{
  margin:6px 0;
}

.docs-toc a{
  display:block;
  text-decoration:none;
  color:#6b7280;
  font-size:13px;
  line-height:1.4;
  padding:4px 0;
}

.docs-toc a:hover{
  font-weight: 600;
}


/* =========================
   9. CÓDIGO
========================= */

.docs-content pre,
.code-block{
  position:relative;
  background:#0f172a;
  color:#e5e7eb;
  border-radius:14px;
  padding:18px 20px;
  margin:24px 0;
  overflow:auto;
  font-size:14px;
  line-height:1.7;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}

.docs-content pre code{
  background:transparent;
  color:inherit;
  padding:0;
}

.docs-content code{
  background:#eef2ff;
  color:#3730a3;
  padding:2px 6px;
  border-radius:6px;
  font-size:.92em;
}

.copy-btn{
  position:absolute;
  top:10px;
  right:10px;
  border:none;
  border-radius:8px;
  background:#1e293b;
  color:#fff;
  padding:6px 10px;
  font-size:12px;
  cursor:pointer;
}

.copy-btn:hover{
  background:#334155;
}

.code-lang{
  position:absolute;
  top:10px;
  left:12px;
  color:#94a3b8;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
}


/* =========================
   10. TABLAS
========================= */

.docs-content table{
  width:100%;
  border-collapse:collapse;
  margin:24px 0;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  overflow:hidden;
}

.docs-content th,
.docs-content td{
  text-align:left;
  padding:12px 14px;
  border-bottom:1px solid #e5e7eb;
  font-size:14px;
  color:#374151;
}

.docs-content th{
  background:#f9fafb;
  color:#111827;
  font-weight:700;
}


/* =========================
   11. ALERT BOXES
========================= */

.docs-note,
.docs-tip,
.docs-warning{
  border-radius:12px;
  padding:14px 16px;
  margin:20px 0;
  border:1px solid transparent;
}

.docs-note{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1e3a8a;
}

.docs-tip{
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#065f46;
}

.docs-warning{
  background:#fff7ed;
  border-color:#fdba74;
  color:#9a3412;
}


/* =========================
   12. BLOCKQUOTE
========================= */

.docs-content blockquote{
  margin:22px 0;
  padding:14px 18px;
  border-left:4px solid #93c5fd;
  background:#f8fbff;
  color:#374151;
  border-radius:0 12px 12px 0;
}


/* =========================
   13. NAVEGACIÓN ANTERIOR / SIGUIENTE
========================= */

.docs-content .post-navigation,
.docs-content .nav-single{
  margin-top:40px;
  padding-top:24px;
  border-top:1px solid #e5e7eb;
}

.docs-content .nav-previous a,
.docs-content .nav-next a{
  display:inline-block;
  padding:12px 16px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
  color:#111827;
  text-decoration:none;
  font-weight:600;
}

.docs-content .nav-previous a:hover,
.docs-content .nav-next a:hover{
  border-color:#cbd5e1;
  background:#f9fafb;
}


/* =========================
   14. RESPONSIVE
========================= */

@media (max-width:1200px){
  .docs-layout{
    grid-template-columns:260px minmax(0,1fr) !important;
  }

  .docs-toc{
    display:none;
  }
}

@media (max-width:980px){
  .docs-wrapper{
    height:auto;
    overflow:visible;
  }

  .wiki-top-header-row{
    position:relative !important;
    top:0 !important;
  }

  .wiki-top-header{
    padding:0 16px;
  }

  .docs-layout{
    display:block !important;
  }

  .docs-layout > .et_pb_column{
    width:100% !important;
    max-width:100% !important;
  }

  .wiki-sidebar{
    position:relative !important;
    top:0 !important;
    max-height:none;
    border-right:none;
    border-bottom:1px solid #e5e7eb;
  }

  .docs-content{
    padding:28px 20px 60px 20px !important;
  }

  .docs-content h1{
    font-size:32px;
  }

  .docs-content h2{
    font-size:24px;
  }

  .docs-content h3{
    font-size:24px;
  }

  .docs-toc{
    display:none;
  }
}

.wiki-breadcrumbs{
  font-size:11px;
  color:#6b7280;
  margin-bottom:18px;
  line-height:1.5;
  text-transform: uppercase;
}

.wiki-breadcrumbs ol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:0;
}

.wiki-breadcrumbs li{
  display:flex;
  align-items:center;
}

.wiki-breadcrumbs a{
  color:#6b7280;
  text-decoration:none;
  font-size:11px;
}

.wiki-breadcrumbs a:hover{
  color:#D82626;
  text-decoration:none;
}

.wiki-breadcrumbs .separator{
  margin:0 6px;
  color:#9ca3af;
}

.wiki-breadcrumbs span{
  color:#6b7280;
  font-size:11px;
}

.wiki-auto-toc ul{
  list-style:none;
  margin:0;
  padding:0;
}

.wiki-auto-toc li{
  margin:6px 0;
}

.wiki-auto-toc a{
  display:block;
  text-decoration:none;
  color:#6b7280;
  font-size:13px;
  line-height:1.4;
  padding:4px 0;
  border-left:2px solid transparent;
  padding-left:10px;
  transition:all .2s ease;
}

.wiki-auto-toc a:hover{
  font-weight: 600;
}

.wiki-auto-toc a.is-active{
  border-left-color:#dc2626;
  color:#dc2626;
}

.wiki-auto-toc .toc-h3 a{
  padding-left:24px;
  font-size:12px;
}

.wiki-auto-toc .toc-h3 a.is-active{
  color:#dc2626;
}