/* =========================================================
   SISTEMA DE ESTILOS INSTITUCIONAL -
   Documento: Directorio de Recursos por Capas de Conexión Primitiva
   Estilo: Profesional · Gerencial · Educativo · Institucional
   Paleta: Colores claros / intermedios · Sin tonos oscuros dominantes
   ========================================================= */


/* =========================================================
   CABECERA INSTITUCIONAL
   ========================================================= */

header {
    background: #f3f6fa;
    border-bottom: 1px solid #d7e1ec;
    padding: 20px 0;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.branding-icon {
    background: #e2ecf5;
    color: #2f4a63;
    font-weight: bold;
    font-size: 1.4rem;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid #c7d6e5;
}

.branding-text h1 {
    color: #2f4a63;
    margin: 0;
}

.branding-text p {
    color: #4a5d73;
    margin: 4px 0 0 0;
}


/* =========================================================
   NAVEGACIÓN PRINCIPAL
   ========================================================= */

nav a {
    color: #3a506b;
    background: #e8eff6;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #d2dce7;
    text-decoration: none;
    margin-right: 8px;
    font-size: 0.95rem;
}

nav a:hover {
    background: #dfe8f2;
    border-color: #c4d2e0;
}


/* =========================================================
   INTRODUCCIÓN GENERAL
   ========================================================= */

.intro {
    background: #f7f9fc;
    border: 1px solid #d9e4ef;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.intro h2 {
    color: #2f4a63;
}

.intro p {
    color: #4a5568;
    line-height: 1.6;
}

.intro-meta {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-pill {
    background: #e6eef7;
    color: #3a506b;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #c9d7e6;
    font-size: 0.85rem;
}


/* =========================================================
   CAPAS · CONTENEDORES PRINCIPALES
   ========================================================= */

.capa {
    margin-top: 40px;
    background: #f5f8fc;
    border: 1px solid #d6e2ef;
    padding: 25px;
    border-radius: 10px;
}

.capa-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.capa-titulo h3 {
    color: #2f4a63;
    margin: 0;
}

.capa-titulo small {
    color: #4a5d73;
}

.capa-meta span {
    background: #e3edf7;
    color: #3a506b;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #c7d6e5;
    font-size: 0.85rem;
}


/* =========================================================
   RECURSO DEMO (WIDGET)
   ========================================================= */

.recurso-demo {
    background: #f8fafc;
    border: 1px solid #d9e4ef;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.recurso-demo h4 {
    color: #2f4a63;
}

.recurso-demo p {
    color: #4a5568;
}

.recurso-meta {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recurso-meta span {
    background: #e8eff6;
    color: #3a506b;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #c9d7e6;
    font-size: 0.85rem;
}

.recurso-meta .pill-id {
    background: #e2ecf7;
    border-color: #c4d4e6;
    font-weight: 600;
}


/* =========================================================
   RECURSO WIDGET · FORMULARIOS
   ========================================================= */

.recurso-widget {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recurso-widget label {
    color: #3a506b;
    font-weight: 500;
}

.recurso-widget input,
.recurso-widget select,
.recurso-widget textarea {
    background: #f1f5fa;
    border: 1px solid #cbd8e6;
    color: #2f3e50;
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    font-size: 0.95rem;
}

.recurso-widget input::placeholder,
.recurso-widget textarea::placeholder {
    color: #7a8a9c;
}

.recurso-widget button {
    background: #dce7f3;
    color: #2f4a63;
    border: 1px solid #c2d3e4;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.recurso-widget button:hover {
    background: #d4e0ed;
    border-color: #b8c9d9;
}


/* =========================================================
   RECURSO ANÁLISIS (FICHAS)
   ========================================================= */

.recurso-analisis {
    background: #f5f7fa;
    border: 1px solid #d9e2ec;
    padding: 20px;
    border-radius: 8px;
}

.recurso-analisis h5 {
    color: #334e68;
    margin-bottom: 12px;
}

.recurso-analisis dt {
    font-weight: bold;
    color: #243b53;
    margin-top: 10px;
}

.recurso-analisis dd {
    margin-left: 10px;
    color: #4a5568;
}


/* =========================================================
   BLOQUES DE CÓDIGO
   ========================================================= */

.codigo-bloque {
    background: #eef2f7;
    border: 1px solid #cbd5e0;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
}

.codigo-bloque summary {
    cursor: pointer;
    font-weight: bold;
    color: #2d3748;
}

.codigo-contenido {
    margin-top: 10px;
}

.codigo-etiqueta {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 5px;
}

pre {
    background: #f0f4f8;
    border: 1px solid #d9e2ec;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
}

.nota {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #3a506b;
    background: #edf2f7;
    padding: 10px;
    border-radius: 6px;
}
