/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

.convocatoria-card {
    border: 1px solid #ddd;
    margin-bottom: 50px;
    padding: 0px;
    border-radius: 5px;
  }
  
  .convocatoria-title {
    margin-top: 0;
    background-color: #f5a616;
    color: #fff !important;
    padding: 10px;
    
  }
  
  .convocatoria-bases,
  .convocatoria-avisos {
    padding: 20px;
    padding-top: 0px;

    i {
      margin-right: 10px;}
    
        ul {
        padding-left: 0px !important;
        
            li {
            list-style: none;

            }
        }
    }

  .convocatoria-bases h3,
  .convocatoria-avisos h3 {
    margin-bottom: 10px;
    text-align: center;
  }
  

  .convocatoria-bases p,
  .convocatoria-avisos p {
    margin: 5px 0;
  }
  
  .convocatoria-bases ul {
    list-style: none;
    margin: 10px 0;
    padding: 0;
  }
  
  .convocatoria-bases li {
    margin-bottom: 5px;
  }
  
  .aviso-item {
    border: 1px solid #eee;
    margin-bottom: 10px;
    padding: 10px;
  }

  .convocatoria-published {
    font-size: 0.9em;
    color: #666;
    padding: 10px;
    float: right;
  }
  
  .convocatoria-avisos a::before {
    content: "\f1c1";
    font-family: FontAwesome;
    margin-right: 5px;
  }


.convocatoria-avisos a[href$=".pdf" i]::before {
  content: "\f1c1";
  font-family: FontAwesome;
  margin-right: 5px;
}

.convocatoria-avisos a[href$=".doc" i]::before,
.convocatoria-avisos a[href$=".odt" i]::before,
.convocatoria-avisos a[href$=".docx" i]::before {
  content: "\f1c2";
  font-family: FontAwesome;
  margin-right: 5px;
}

.convocatoria-avisos a[href$=".xls" i]::before,
.convocatoria-avisos a[href$=".ods" i]::before,
.convocatoria-avisos a[href$=".xlsx" i]::before {
  content: "\f1c3";
  font-family: FontAwesome;
  margin-right: 5px;
}

.convocatoria-avisos a[href$=".ppt" i]::before,
.convocatoria-avisos a[href$=".odp" i]::before,
.convocatoria-avisos a[href$=".pptx" i]::before {
  content: "\f1c4";
  font-family: FontAwesome;
  margin-right: 5px;
}

a.navbar-brand h2 {
    font-size: 20px !important;
}

i.menu-icon.fa.fa-lock4 {
    margin-right: 6px !important;
    line-height: 0px !important;
    position: relative !important;
    vertical-align: inherit !important;
    top: 0.05em !important;
}

@media (min-width: 960px) {
    body[class*=hmenu-]:not(.hormenu-position-right) .navbar-nav-last > ul > li:last-child > a i, body[class*=hmenu-]:not(.hormenu-position-right) .navbar-nav-last > ul > li:only-child > a i {
        margin-right: 6px !important;
    }
}

/* Estilos para Ficheros Adjuntos */
.ficheros-adjuntos-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #e1e5e9;
}

.ficheros-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-bottom: 1px solid #e1e5e9;
}

.ficheros-header h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ficheros-header h3 i {
    font-size: 1.3rem;
    opacity: 0.9;
}

.ficheros-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.category-filter,
.sort-filter {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    min-width: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter:focus,
.sort-filter:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.category-filter option,
.sort-filter option {
    background: #fff;
    color: #333;
}

.sort-order-btn {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sort-order-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.ficheros-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.fichero-item {
    background: #fafbfc;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.fichero-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.fichero-icon {
    position: relative;
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.fichero-extension {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #ff6b6b;
    color: white;
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1;
}

.fichero-info {
    flex: 1;
    min-width: 0;
}

.fichero-title {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fichero-filename {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: #7f8c8d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fichero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.fichero-size,
.fichero-dimensions,
.fichero-date {
    font-size: 0.75rem;
    color: #95a5a6;
    font-weight: 500;
    background: #ecf0f1;
    padding: 2px 6px;
    border-radius: 4px;
}

.fichero-author {
    margin: 4px 0 0 0;
    font-size: 0.75rem;
    color: #16a085;
    font-weight: 500;
}

.fichero-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-download,
.btn-view,
.btn-copy {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-download {
    background: #27ae60;
    color: white;
}

.btn-download:hover {
    background: #219a52;
    transform: scale(1.05);
}

.btn-view {
    background: #3498db;
    color: white;
}

.btn-view:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.btn-copy {
    background: #f39c12;
    color: white;
}

.btn-copy:hover {
    background: #e67e22;
    transform: scale(1.05);
}

.no-results {
    text-align: center;
    padding: 40px 24px;
    color: #7f8c8d;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results p {
    font-size: 1.1rem;
    margin: 0;
}

.ficheros-adjuntos-error,
.ficheros-adjuntos-empty {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: #856404;
}

.ficheros-adjuntos-empty {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.ficheros-adjuntos-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* Responsive */
@media (min-width: 960px){
	
	.menu-smart > li > a:not(.uncode-vc-social *), .unmenu-block > li > a:not(.uncode-vc-social *){
		padding: 0px 5px 0px 14px!important;
	}
	
}

@media (max-width: 768px) {
    .ficheros-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-box,
    .category-filter,
    .sort-filter {
        width: 100%;
        min-width: auto;
    }
    
    .sort-order-btn {
        align-self: center;
    }
    
    .ficheros-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .fichero-item {
        padding: 16px;
    }
    
    .ficheros-header {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .fichero-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .fichero-info {
        text-align: center;
    }
    
    .fichero-title,
    .fichero-filename {
        white-space: normal;
    }
}

.um input[type=submit].um-button {
    background: #f5a616 !important;
    border-color: #f5a616 !important;
    color: white !important;
}

a.openlink.wpfdlightbox.wpfd_previewlink {
    display: none;
}

.wpfd_list .file h3 a {
    color: #000 !important;
}

a.downloadlink.wpfd_downloadlink {
    border-radius: 4px !important;
}

.file-dated {
    color: #666 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

a.downloadlink.wpfd_downloadlink {
    font-weight: 600 !important;
}