/*
 * ============================================================
 *  Tema IIEG para CKAN — Estilos base
 * ============================================================
 */

/* ---------- Variables de color institucional IIEG ---------- */
:root {
  --iieg-primary:     #5c2472;   /* Azul institucional */
  --iieg-secondary:   #ff8300;   /* Azul secundario */
  --iieg-accent:      #172a55;   /* Naranja acento */
  --iieg-bg:          #fff;   /* Fondo general */
  --iieg-text:        #465055;   /* Texto principal */  
  --iieg-white:       #ffffff;
  --iieg-medio:       #ff9d00;
}


@font-face {
    font-family: 'Garet-Bold';
    src: url('../fonts/Garet-Bold.woff2') format('woff2'),
        url('../fonts/Garet-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Garet';
    src: url('../fonts/Garet-Regular.woff2') format('woff2'),
        url('../fonts/Garet-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Garet-Extra';
    src: url('../fonts/Garet-ExtraBold.woff2') format('woff2'),
        url('../fonts/Garet-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body{
  font-family: 'Garet' !important;
  font-size: 16px !important;
  color: #465055;
}

h1{
  font-family: 'Garet-Extra' !important;
  font-size: 36px !important;
  color: #5c2472;
}

h2{
  font-family: 'Garet-Extra' !important;
  font-size: 30px !important;
  color: #172a55;
}

h3{
  font-family: 'Garet-Bold' !important;
  font-size: 24px !important;
  color: #172a55;
}

.rsicon{
  padding: 7px 7px 7px 7px;
  width: 35px;
  height: 35px;
}
.ri--facebook-fill {
  display: inline-block;
  width: 21px;
  height: 21px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14 13.5h2.5l1-4H14v-2c0-1.03 0-2 2-2h1.5V2.14c-.326-.043-1.557-.14-2.857-.14C11.928 2 10 3.657 10 6.7v2.8H7v4h3V22h4z'/%3E%3C/svg%3E");
}

.line-md--instagram {
  display: inline-block;
  width: 21px;
  height: 21px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M16 3c2.76 0 5 2.24 5 5v8c0 2.76 -2.24 5 -5 5h-8c-2.76 0 -5 -2.24 -5 -5v-8c0 -2.76 2.24 -5 5 -5h4Z'/%3E%3Cpath d='M12 8c2.21 0 4 1.79 4 4c0 2.21 -1.79 4 -4 4c-2.21 0 -4 -1.79 -4 -4c0 -2.21 1.79 -4 4 -4'/%3E%3C/g%3E%3Ccircle cx='17' cy='7' r='1.5' fill='%23ffffff'/%3E%3C/svg%3E");
}

.pajamas--twitter {
  display: inline-block;
  width: 21px;
  height: 21px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M9.294 6.928L14.357 1h-1.2L8.762 6.147L5.25 1H1.2l5.31 7.784L1.2 15h1.2l4.642-5.436L10.751 15h4.05zM7.651 8.852l-.538-.775L2.832 1.91h1.843l3.454 4.977l.538.775l4.491 6.47h-1.843z'/%3E%3C/svg%3E");
}

.ri--linkedin-fill {
  display: inline-block;
  width: 21px;
  height: 21px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.94 5a2 2 0 1 1-4-.002a2 2 0 0 1 4 .002M7 8.48H3V21h4zm6.32 0H9.34V21h3.94v-6.57c0-3.66 4.77-4 4.77 0V21H22v-7.93c0-6.17-7.06-5.94-8.72-2.91z'/%3E%3C/svg%3E");
}

.mdi--youtube {
  display: inline-block;
  width: 21px;
  height: 21px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m10 15l5.19-3L10 9zm11.56-7.83c.13.47.22 1.1.28 1.9c.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83c-.25.9-.83 1.48-1.73 1.73c-.47.13-1.33.22-2.65.28c-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44c-.9-.25-1.48-.83-1.73-1.73c-.13-.47-.22-1.1-.28-1.9c-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83c.25-.9.83-1.48 1.73-1.73c.47-.13 1.33-.22 2.65-.28c1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44c.9.25 1.48.83 1.73 1.73'/%3E%3C/svg%3E");
}


.rounded-full{
  border-radius: 100% !important;
} 

.logos{
  width: 150px;
  height: 75px;
}
.bg-tertiary {
  background-color: var(--iieg-secondary) !important;
}
.bg-tertiary:hover{
  background-color: var(--iieg-medio) !important;
}
/* =====================================================
   The "account masthead" bar across the top of the site
   ===================================================== */

.account-masthead {
    background-color: var(--iieg-primary) !important;
}
/* The "bubble" containing the number of new notifications. */
.account-masthead .account .notifications a span {
  background-color: white;
}

.account-masthead .account ul li{
  border: none !important;
}
/* The text and icons in the user account info. */
.account-masthead .account ul li a {
  color: white;
}
/* The user account info text and icons, when the user's pointer is hovering
   over them. */
.account-masthead .account ul li a:hover {
  color: white;
  background-color: var(--iieg-secondary);
}


/* ========================================================================
   The main masthead bar that contains the site logo, nav links, and search
   ======================================================================== */

.masthead {
  background-color: var(--iieg-primary) !important;
}
/* The "navigation pills" in the masthead (the links to Datasets,
   Organizations, etc) when the user's pointer hovers over them. */
.masthead .navigation .nav-pills li a:hover {
  background-color: var(--iieg-secondary);
  color: white;
}
/* The "active" navigation pill (for example, when you're on the /dataset page
   the "Datasets" link is active). */
.masthead .navigation .nav-pills li.active a {
  background-color: var(--iieg-accent);
}
/* The "box shadow" effect that appears around the search box when it
   has the keyboard cursor's focus. */
.masthead input[type="text"]:focus {
  -webkit-box-shadow: inset 0px 0px 2px 0px var(--iieg-accent);
  box-shadow: inset 0px 0px 2px 0px var(--iieg-accent);
}


/* ===========================================
   The content in the middle of the front page
   =========================================== */

/* Remove the "box shadow" effect around various boxes on the page. */
.box {
  box-shadow: none;
}
/* Remove the borders around the "Welcome to CKAN" and "Search Your Data"
   boxes. */
.hero .box {
  border: none;
}


/* Change the colors of the "Search Your Data" box. */
.homepage .module-search .module-content {
  color: var(--iieg-text);
  background-color: white;
}
/* Change the background color of the "Popular Tags" box. */
.homepage .module-search .tags {
  background-color: var(--iieg-secondary);
}
/* Remove some padding. This makes the bottom edges of the "Welcome to CKAN"
   and "Search Your Data" boxes line up. */
.module-content:last-child {
  padding-bottom: 0px;
}
.js .image-upload #field-image-upload{
  opacity: 1 !important;
}
.primary .module-content:last-child{
  padding-bottom: 30px !important;
}
.homepage .module-search {
  padding: 0px;
}
/* Add a border line between the top and bottom halves of the front page. */
.homepage [role="main"] {}


/* ====================================
   The footer at the bottom of the site
   ==================================== */

.site-footer,
body {
  background-color: var(--iieg-primary) !important;
}
/* The text in the footer. */
.site-footer,
.site-footer label,
.site-footer small {
  color: var(--iieg-bg);
}
/* The link texts in the footer. */
.site-footer a {
  color: var(--iieg-bg);
}

.site-footer a:hover{
  color: var(--iieg-secondary);
}

/* ---------- Botones ---------- */
.btn-primary {
  background-color: var(--iieg-secondary);
  border-color: var(--iieg-secondary);
  transition: background-color 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--iieg-primary);
  border-color: var(--iieg-primary);
}

/* ---------- Encabezados ---------- */
h1, h2, h3 {
  color: var(--iieg-primary);
}

/* ---------- Links ---------- */
a {
  color: var(--iieg-secondary);
}

a:hover {
  color: var(--iieg-primary);
}

/* ---------- Fondo general ---------- */
body, .main {
  background-image: none !important;
  background-color: var(--iieg-bg) !important;
  color: var(--iieg-text);
}

/*grid*/
.media-heading{
  float:left;
  margin-right: 10px !important;
}

.media-item, .module-item {
  width: 20% !important;
}

.media-item span.count, .module-item span.count{
  margin-top: 5px;
  display: block;
}
.search-form{
  width: 80%;
  float: left;
  margin-bottom: 0px;
  border-bottom: 0px;
}

#dataset-search-form{
  width: 100%;
  float: left;
}

#dataset-search-form .input-group,
#group-datasets-search-form .input-group{
  width: 60% !important;
  float: left;
}

.list-unstyled {
  padding-left: 0;
  width: 100% !important;
  float: left !important;
}

.dataset-heading{
  font-size: 36px !important;
}

.empty, .texto{
  font-size:18px !important;
  color: var(--iieg-text) !important;
}

.dataset-item{
  padding-right: 15px;
}

.dataset-item:hover{
  border-right: 5px solid var(--iieg-primary);
}
.dataset-resources li a{
  background-color: var(--iieg-secondary) !important;
}

.badge-default[href]:hover, .badge-default[href]:focus{
  background-color: var(--iieg-accent) !important;
}

.masthead .main-navbar ul li:hover a, 
.masthead .main-navbar ul li:focus a, .masthead .main-navbar ul li.active a,
.account-masthead .account ul li a:hover{
  background-color: var(--iieg-secondary) !important;
}

.account-masthead .account ul li a{
  color: #fff !important;
}
.masthead .main-navbar ul li a{
  font-size: 18px !important;
}

#content a{
  color: var(--iieg-accent) !important;
}

#content a:hover{
  color: var(--iieg-primary) !important;
}

.btn-primary, .btn-light, .btn-default{
  background-color: var(--iieg-accent) !important;
  border-color: var(--iieg-accent) !important;
  color: white !important;
}

.btn-primary:hover, .btn-light:hover, .btn-default:hover{
  background-color: var(--iieg-primary) !important;
  border-color: var(--iieg-primary) !important;
  color: white !important;
}

#content a.btn,
#content a.dropdown-toggle{
  color: white !important;
}

.btn-success:hover,
.btn-success{
  background-color: var(--iieg-secondary) !important;
  border-color: var(--iieg-secondary) !important;
}

.wrapper{
  box-shadow: 0px !important;
  border: 0px !important;
}

.main .secondary{
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #ccc !important;
}

#group-search-form{
  width: 100% !important;
  float: left !important;
}
.media-heading{
  float: none !important;
}

.media-grid, .module-grid {  
  background: none !important;
  border: 0px !important;
  border-width: 0px;
  width: 100% !important;
  float: left !important;
  margin-bottom: 50px !important;
}

.recent-datasets-list li a{
  color: var(--iieg-primary) !important;
}

.recent-datasets-list li a:hover{
  color: var(--iieg-secondary) !important;
}

.navbar{
  flex-wrap: nowrap;
}
.lateral{
  display: inline-flex;
}
.datos-logo{
  width: 75%;
}
.iieg-logo{
  width: 75%;  
}

.pagination-wrapper{
  width: 100%;
  float: left;
  margin-top: 50px;
}

@media (min-width: 576px) {}
@media (min-width: 768px) { 
  .datos-logo, .iieg-logo{
    width: auto;
    margin-left: 110px;
  }
}
@media (min-width: 992px) {}
@media (min-width: 1200px) {}
@media (min-width: 1400px) {}