:root {
    --main-color-green: #008d79;
    --main-color-green-alt: #007470;    
    --main-color-green-alt2: #00c7c0;    
    --main-color-green-alt3: #009691;
    --main-color-black: #333;    
    --main-color-text: #444;
    --border-radius: 3px;
}

html {
    min-width: 320px;
}

body {
    font-family: 'Roboto', sans-serif;    
    font-size: 16px;
    font-weight: 400;
    padding: 0;
    margin: 0;
    color: var(--main-color-text);
}

.full-height {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.full-height main {
    flex-grow: 1;
}


/** General **/

.container-fluid {
    max-width: 1440px;
}

a {
    color: var(--main-color-green-alt2);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--main-color-green-alt3);
    text-decoration: none;    
}

.btn {
    border-radius: var(--border-radius);
}

.btn-primary {
    background-color: var(--main-color-green-alt);
    border: solid 1px var(--main-color-green-alt);
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: var(--main-color-green-alt);
    border: solid 1px var(--main-color-green-alt);
    filter: brightness(1.1);
    color: var(--main-color-green-alt2);
}

.btn-primary:focus, .btn-primary:active, .btn-primary:active:focus {
    background-color: var(--main-color-green-alt)!important;
    box-shadow: none!important;
}

.btn-light {
    border: solid 1px #ececec;
    background-color: #ececec;
    color: #666; 
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-light:hover {
    border: solid 1px var(--main-color-green-alt2);
    background-color: transparent;
    color: var(--main-color-green-alt2);
    
}

.btn-light:focus, .btn-light:active, .btn-light:active:focus {
    border: solid 1px var(--main-color-green-alt)!important;
    background-color: transparent!important;
    color: var(--main-color-green-alt)!important;
    box-shadow: none!important;
    
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--main-color-green-alt2);
}

/** Header **/
.header {
    background-color: #ffffff; 
    position: absolute;   
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    min-width: 320px;        
}

.header .navbar {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-right: 15px;
    padding-left: 15px;
}

.header .navbar-brand {
    font-size: 18px; 
    color: #666; 
    padding-right: 15px;    
    font-weight: 500;
}

.header .navbar-brand span {
    display: inline-block;    
}

.header .navbar-brand strong {
    color: var(--main-color-green-alt2); 
    font-weight: 500;  
}

@media (max-width: 768px) {
    .header .navbar-brand {
        font-size: 16px;
    }
}


.header .navbar-brand img {
    width: auto;
    height: 40px;
    display: inline-block;
}

.header .navbar-brand sup {
    font-size: 8px;
    vertical-align: super;
    color: var(--main-color-black);
}



.header .navbar-toggler {
    border: none;
}

.header .navbar-toggler:focus {
    outline: none;
}


.header .form-inline {
    flex-wrap: nowrap;
}

.header .form-inline .form-control {
    background-color: #eeeeee;
    border-color: #cccccc;
    border-radius: 2px 0 0 2px;
    border-right-color: #eeeeee;
    
}

.header .form-inline .form-control:focus {
    background-color: #ffffff;
    box-shadow: none;
    border-right-color:#cccccc;
}

.header .form-inline .btn {
    background-color: #eeeeee;
    border: 1px solid #cccccc;
    border-radius: 0 2px 2px 0;
    border-left: none;
    color: #cccccc;
}

.header .navbar-nav .nav-link {
    color: var(--main-color-text);
}

.header .navbar-nav .nav-link:hover {
    color: var(--main-color-green-alt2);
}

.header .navbar-nav .active .nav-link {
    color: var(--main-color-green-alt2);
}

.header .navbar-nav .nav-link span {
    display: none;
}

@media (max-width: 992px) {
    .header .navbar-nav .nav-link i {
        display: none;
    }
    .header .navbar-nav .nav-link span {
        display: block;
    }
}

.header .dropdown-menu {
    border-radius: 0 0 3px 3px;
    margin-top: 10px;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
    border-top: none;
}



/** Seccion bienvenida **/

.welcome-section { 
    padding-top: 86px;
    padding-bottom: 0px;
    background-image: url('../img/bg-home4.jpg');    
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: #ffffff; 
    border-bottom: solid 3px var(--main-color-green-alt2);
}

.welcome-section-overlay {            
    background-color: rgba(0, 0, 0, 0.1);
    padding-top: 30px;
    padding-bottom: 35px;   
}

.welcome-section .container-fluid {
    max-width: 1140px;
}

.welcome-section h1 {
    color: var(--main-color-green-alt2);
    font-weight: 400;
    font-size: 22px;
   
    margin-bottom: 15px;
    line-height: 35px;
    
}

.welcome-section h1 strong {    
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 30px;
}

@media (max-width:768px) {
    .welcome-section h1 strong {
        font-size: 24px;
    }
    .welcome-section h1 {
        font-size: 20px;
        
    }
}

.welcome-section a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.welcome-section a:hover {
    color: var(--main-color-green-alt2);
    text-decoration: none;
}

.welcome-section p {
    color:  rgba(255, 255, 255, 0.9);
}

.welcome-section .form-inline {
    flex-wrap: nowrap;
}

.welcome-section .search {
    margin-top: 40px;      
    max-width: 600px;
    margin: 0 auto; 
}

.welcome-section .search .form-control {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: 1px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    flex-grow: 1;
}

.welcome-section .search .form-control::placeholder {
    color:  rgba(255, 255, 255, 0.6);
}

.welcome-section .search .form-control:focus {
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.4);
    border-right: 1px solid #ffffff;
}

.welcome-section .search .btn {
    background-color: #ffffff;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    border: 1px solid #ffffff;
    border-left: none;
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    
}

.welcome-section .search .btn:hover {
    color: var(--main-color-green-alt2);
}


.welcome-section .stats {
    margin-bottom: 40px;
    margin-top: 20px;
    font-size: 16px; 
       
}

.welcome-section .stats span {
    font-size: 70px;
    display: block;
    line-height: 80px; 
    font-weight: 600;   
    color: rgba(255, 255, 255, 0.9);
}


.welcome-section .stats > div > div {
    border-right: 2px dotted rgba(255, 255, 255, 0.5);
    color: var(--main-color-green-alt2);
}

.welcome-section .stats > div > div:last-of-type {
    border: none;    
}






/** Contenido **/
.content {
    flex-grow: 1;
    padding-top: 30px;
    padding-bottom: 30px;    
}


.flex-container {
    display: flex;
    justify-content: space-between;    
    flex-direction: row;
}

.content-left {
    flex-grow: 1;
    padding-right: 30px;
    min-width: 0;
}

.content-right {
    flex-grow: 1;
    padding-left: 30px;
    min-width: 0;    
}

@media (max-width:992px) {
    .content-left, .content-right {
        padding: 0;
    }
    
}

.content h2 {
    font-size: 20px;
    margin-bottom: 20px; 
    color: var(--main-color-black);  
    font-weight: 600; 
}

@media (max-width:768px) {
    .content h2 {
        font-size: 18px;           
    }
}


.content.home h2 {
    font-size: 20px;
    margin-bottom: 20px; 
    color: var(--main-color-black);   
}

.content h2 i, .content.home h2 i {
    color: var(--main-color-green-alt2);
}

.content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--main-color-green-alt);
    font-weight: 600;
}

.section-grey {
    background-color: #fdfdfd;    
    border-bottom: solid 1px #f0f0f0;
}

.category-card {
    display: flex;
    justify-content: left;
    align-items: center;        
    height: 100%;
    border: 1px solid var(--main-color-green-alt);
    border-radius: var(--border-radius);      
    padding: 25px 15px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;       
    background-color: var(--main-color-green-alt);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.category-card:hover {
    text-decoration: none;
    color: var(--main-color-green-alt2);
    background-color: var(--main-color-green-alt);     
    filter: brightness(1.1);    
}

.category-card.grey {
    background-color: #f9f9f9;
    color: #000;
    border-color: #dee2e6;    
}

.category-card.grey:hover {
    background-color: #fdfdfd;
    color: var(--main-color-green-alt2);
    filter: none;
}

.content .row div[class*="col-"] {
    margin-bottom: 30px;
}

.category-card i {
    display: inline-block;
    font-size: 24px;
    margin-right: 10px;
    color: var(--main-color-green-alt2);
}


.featured-panel {
    background-color: #f7f7f7;
    border: solid 1px #dee2e6;
    border-radius: var(--border-radius);  
    padding: 40px;
}


.dataset-card {
    border: 1px solid #dee2e6;
    border-left: 6px solid var(--main-color-green-alt);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 30px;
    background-color: #fdfdfd; 
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);      
}

.dataset-card .dataset-links-top {
    display: flex;
    justify-content:flex-start;
    align-items: center;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .dataset-card .dataset-links-top {
        display: none;
    }
}

.dataset-card .dataset-links-bottom {
    display: flex;
    justify-content:space-between;
    align-items: center;
    margin-top: 10px;    
}
.dataset-card .dataset-links-bottom .btn-sm {
    font-size: 11.5px;
}

.dataset-card .link-btn {        
    padding: 2px 10px;
    font-size: 12px;    
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-right: 10px;
    border: solid 1px #f0f0f0;
    background-color: #f0f0f0;
    color: #888;
    font-weight: 600;
}

.dataset-card .link-btn:hover {
    border-color: #eeeeee;
    background-color: #eeeeee;
    color: var(--main-color-green-alt2);
    text-decoration: none;    
}



.dataset-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 5px;
    height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;    
}



.dataset-card p {
    margin: 0;
    padding: 0;
    margin-bottom: 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dataset-card .last-update {
    font-size: 14px;
    margin-bottom: 5px; 
    flex-grow: 1;   
}

.title-section { 
    padding-top: 86px;
    padding-bottom: 0px;           
    background-image: url('../img/bg-home4.jpg');    
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: #ffffff; 
    border-bottom: solid 3px var(--main-color-green-alt2);
}

.title-section-overlay {
    background-color: rgba(0, 0, 0, 0.1);    
    padding-bottom: 15px;
    padding-top: 20px;
}

.title-section h1 {
    color: #ffffff;
    font-weight: 600;
    font-size: 26px;   
    margin-top: 20px;     
}

@media (max-width: 996px) {
    .title-section h1 {
        font-size: 20px;        
    }
}

.title-section h1 strong {    
    font-weight: 600;
    
}

.title-section a {
    color: #ffffff;
    font-weight: 600;
}

.title-section a:hover {
    color: var(--main-color-green-alt2);
}


.breadcrumb {
    background-color: transparent;
    padding: 0;
    font-size: 12px;
    flex-wrap: nowrap;        
}

@media (max-width: 768px) {
    .breadcrumb {        
        font-size: 10px;
        overflow: auto;       
        
    }
    li.breadcrumb-item {                
        white-space: nowrap;
    }
}


.breadcrumb > li.breadcrumb-item + li.breadcrumb-item::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;    
    content: '\f105';
    color: var(--main-color-green-alt2);
}

li.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8)
}


.filter-list {
    margin-top: 20px;
    margin-bottom: 5px;
}

.filter {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--border-radius);
    background-color: var(--main-color-green-alt);
    color: #fff;
    margin-bottom: 5px;    
    font-size: 14px;     
}

.filter a {
    font-size: 12px;
}

.resource-card {
    border: 1px solid #dee2e6;
    border-left: 6px solid var(--main-color-green-alt);
    border-radius: var(--border-radius);
    padding: 15px;    
    margin-bottom: 30px;     
    background-color: #fdfdfd;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); 
    position: relative;
}



.resource-card .format {    
    color: #ffffff;
    font-size: 12px;
    border-radius: var(--border-radius);
    padding: 0 5px;
    line-height: 28px;
    font-weight: 600;
    margin-right: 5px; 
    background-color: var(--main-color-green-alt2);
    color: #ffffff;
    
}

.resource-card h3 {
    font-size: 18px;
    font-weight: 600;    
    margin: 0; 
    padding: 0;
    color: var(--main-color-green-alt);
    margin-bottom: 10px;    
}

.resource-card h4 {
    font-size: 14px;
    font-weight: 600;    
    margin: 0; 
    padding: 0;
    color: var(--main-color-green-alt);
    margin-bottom: 5px; 
}

.resource-card .resource-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.resource-card .resource-meta {
    font-size: 14px; 
    display: flex;               
    justify-content: flex-start;
    align-items: center; 
    flex-wrap: wrap;   
}


.resource-card .resource-meta-item {    
    font-size: 14px; 
    padding-right: 10px;   
}

.resource-card .buttons {    
    position: absolute;
    right: 15px;
    top: 30px;
}

.resource-card.org .buttons {
    position: initial; 
}

@media (max-width:768px) {
    .resource-card .buttons {    
        position: initial;        
    }
}

.resource-card .buttons .btn-sm {
    font-size: 14px;    
}

@media (max-width: 768px) {
    .resource-card .buttons .btn-sm {
        font-size: 13px;
    }
}

.excel {
    background-color: #00a649;
}

.pdf {
    background-color: #cb2f29;
}

.csv {
    background-color: #dbcf1c;
}

.image {
    background-color: #8e4ace;
}

.zip {
    background-color: #df6b00;
}

.other {
    background-color: #0576c0;
}

@media (max-width: 768px) {
    .resource-card .buttons {
        margin-top: 20px; 
        flex-grow: 1;
        text-align: right;   
    }
}

.resource-more-info {    
    margin-top: 10px;
    background-color: #fcfcfc;
    border: solid 1px #dee2e6;
    border-radius: var(--border-radius);
    padding: 10px;
    font-size: 12px;
    display: none;    
}

@media (max-width: 768px) {
    .resource-more-info {
        max-width: 85vw;
        overflow-y: scroll;
        margin: 0 auto;
        margin-top: 10px;    
    }
}




.metadata {    
    padding: 15px;
    border-radius: var(--border-radius);
    border: solid 1px #dee2e6;    
}

@media (max-width: 768px) {
    .metadata {
        width: calc(100vw-30px);
        overflow-y: auto;
    }
}

.metadata-item {    
    border-bottom: dashed 1px #dee2e6; 
    padding: 5px 0;
    
    
}

.metadata-item:last-of-type {
    border-bottom: none;
}

@media (min-width: 768px) {
    .metadata-item strong {
        display: inline-block;
        width: 250px;
    }
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 50px;
}

.link-list li {
    margin-bottom: 10px;
}

.link-list li a {
    font-weight: 600;
    color: #777;
}

.link-list li a:hover {
    color: var(--main-color-green-alt2);
}

.link-list .badge-light {
    color: #999999;
}

.content .search {
    background-color: #fdfdfd;
    border: solid 1px #dee2e6;
    border-radius: var(--border-radius);
    padding: 15px;
    padding-bottom: 10px;    
}


.content .search #query {
    flex-grow: 1;
}

.content .search .btn-sm {
    font-size: 12px;
    line-height: 20px;
    border:none;
    font-weight: 500;
}

@media (max-width:768px) {
    .content .search .form-inline {
        flex-wrap: nowrap;
    }

    .content .search .form-inline button {
        margin-left: 5px;
    }
}

.resultados .col-md-6 .dataset-card {
    margin-bottom: 0;
}

.content .filters {
    padding-bottom: 15px;    
}

@media (min-width:992px) {
    .content .filters {
        display: none;
    }
}


.content .sort label {    
    font-size: 14px;
    margin: 4px 8px 4px 0;
}

@media (max-width:768px) {
    .content .sort {
        display: none;
    }    
}

ul.pagination .page-item .page-link {
    color: var(--main-color-green-alt);
}

ul.pagination .page-item .page-link:hover {
    background-color: var(--main-color-green-alt2);
    color: #ffffff;
}

ul.pagination .page-item .page-link:focus {
    box-shadow: none;
}

ul.pagination .page-item.active .page-link {
    background-color: var(--main-color-green-alt);
    color: #ffffff;
    border-color: #dee2e6;
}

ul.pagination .page-item.disabled .page-link {    
    color: #ccc;
}




/** Sidebar **/

.sidebar {
    width: 230px; 
    flex: 0 0 230px; 
    background-color: #ffffff; 
}

@media (min-width:992px) and (max-width:1200px) {
    .sidebar {
        width: 200px; 
        flex: 0 0 200px;         
    }
}

@media (max-width:992px) {
    .sidebar {
        display: none;
    }
}

.sidebar-right {
    height: 100%;    
    border-left: solid 1px #dee2e6;
    padding-left: 30px;    
}

.sidebar-left {
    height: 100%;    
    border-right: solid 1px #dee2e6;
    padding-right: 30px;    
}

.sidebar h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    font-weight: 600;
}

.sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--main-color-green-alt);    
}

.sidebar.open {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    height: 100%; 
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2); 
    padding: 30px;  
}

.sidebar.open .sidebar-left {
    padding: 0;
    overflow-y: auto; 
    border: none;
}

.sidebar .closeBtn {    
    position: absolute;
    right: 15px;
    top: 10px;
}

.sidebar .btn {
    font-size: 12px;
    margin-top: -45px;
    margin-bottom: 30px;
}

.content table.dataTable {
    font-size: 12.5px;    
}

.content table.dataTable thead th {
    border-bottom-width: 1px;
    border-color: var(--main-color-green);
    background-color: var(--main-color-green-alt);
    color: #ffffff;
    font-weight: 500;    
}

.content table.dataTable.table-sm>thead>tr>th:not(.sorting_disabled) {
    padding-right: 30px;
}

.resource-datatable .dataTables_wrapper > div.row div.col-sm-12.col-md-6 {
    margin-bottom: 10px;
}

div.dataTables_wrapper div.dataTables_paginate .page-link {
    font-size: 12px;
}

.resource-datatable label, .dataTables_info {
    font-size: 14px;
}

.resource-iframe {
    width: 100%;
    height: 700px;
}

.map { 
    height: 700px; 
    width: 100%; 
    margin: 0 auto;
}


.resource_image {
    text-align: center;
}

.resource_image img {
    max-width: 100%;
    height: auto;
}

.chart {
    width: 100%; 
    height: auto;
    margin: 0 auto;
    margin-bottom: 60px;
    border: solid 1px #dee2e6;
    padding: 20px;
    border-radius: var(--border-radius);
}


.featured-panel .fa-check {
    font-size: 40px;
    color: #00a649;
    display: block;
    margin-bottom: 10px;
}

.form-container {
    background-color: #f8f9fa;
    border: solid 1px #dee2e6;
    border-radius: var(--border-radius);
    padding: 15px;
    width: 100%;  
    margin: 0 auto;
}

.form-container-sm {
    max-width: 700px;
}

.invalid-feedback-server {
    color: #cb2f29;
}

.content-list {
    padding: 0;
    padding-top: 5px;
    margin: 0;
    margin-left: 20px;
} 

.content-list li {
    margin-bottom: 5px;
}

code {
    color: #000;
}

.google-maps {
    width:100%; 
    height: 220px;
}

.recaptcha-container {    
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}
.g-recaptcha {
    display: inline-block;    
}

.non-field-error {
    color: #cb2f29;
}

/** Footer **/

.footer {
    background-color: #f7f7f7;
    padding: 30px 0;    
    border-top: solid 1px #dee2e6;
}

.logo-footer1, .logo-footer2 {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 30px;
}

.logo-footer1 img {
    max-width: 230px;
    height: auto;
}

.logo-footer2 img {
    max-width: 200px;
    height: auto;
}

.footer-links {
    text-align: center;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    display: inline-block;
    margin: 5px 10px;
}

.footer-links a {
    color: #666666;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--main-color-green-alt2);
    text-decoration: none;
}

.footer p {
    text-align: center;
    font-size: 12px;
    color: #999999;
    margin-top: 30px;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #999999;
    margin-top: 30px;
}
