/* =====================================================
   NOVAS - DISEÑO FINAL UNIFICADO (TIPOGRAFÍA + IMÁGENES)
   ===================================================== */

/* =====================================================
   1. TIPOGRAFÍA GLOBAL
   ===================================================== */

/* INTRODUCCIONES (Verdana 10pt) */
.article-introtext,
.article-introtext p,
.articleBody,
.articleBody p,
.items-leading .article-introtext,
.items-leading .article-introtext p,
.article-list .article-introtext p,
.article-list .articleBody p {
    font-family: verdana, geneva, sans-serif !important;
    font-size: 10pt !important;
    line-height: 1.3 !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
}

/* CUERPO DEL ARTÍCULO (Trebuchet 12pt) */
.article-body,
.article-body p,
.article-content,
.article-content p,
.item-content,
.item-content p,
.article-details p {
    font-family: 'trebuchet ms', geneva !important;
    font-size: 12pt !important;
    line-height: 1.4 !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
}

/* Títulos */
.items-leading h2,
.article-header h2,
.sp-page-title-heading {
    font-family: 'trebuchet ms', geneva !important;
}

/* Fecha */
.article-info {
    font-family: verdana, geneva, sans-serif !important;
    font-size: 8pt !important;
}

/* Botón */
.readmore a {
    font-family: verdana, geneva, sans-serif !important;
    font-size: 10pt !important;
}

/* =====================================================
   2. IMÁGENES DE PORTADA (TAMAÑO FIJO 800x500)
   ===================================================== */

.items-leading img:first-of-type,
.article-list .article-introtext img,
.article-list .articleBody img {
    width: 800px !important;
  /*  height: 500px !important; */
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px;
   /*  display: block; */
    margin: 0 auto 20px auto;
}

/* =====================================================
   3. IMÁGENES INTERNAS (LIBRES)
   ===================================================== */

.article-body img,
.article-content img,
.item-content img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 6px;
    margin: 10px 0;
}

/* =====================================================
   4. RESPONSIVE IMÁGENES PORTADA (MÓVIL)
   ===================================================== */

@media (max-width: 768px) {

    .items-leading img:first-of-type,
    .article-list .article-introtext img,
    .article-list .articleBody img {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
    }
}

/* =====================================================
   5. CONTENEDORES PRINCIPALES
   ===================================================== */

body.itemid-115 #sp-main-body,
body.itemid-799 #sp-main-body {
    max-width: 1600px;
    margin: 0 auto;
    padding: 50px;
}

.blog-featured,
.com-content-category-blog {
    max-width: 1200px;
    margin: 0 auto;
}

/* Títulos de página */
body.itemid-115 .sp-page-title-heading,
body.itemid-799 .sp-page-title-heading {
    font-size: 30px;
    padding-bottom: 10px;
    margin-bottom: 35px;
}

/* =====================================================
   6. NOTICIA PRINCIPAL (LEADING)
   ===================================================== */

.items-leading .article-body,
.items-leading .item-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 6px solid #1f6fb2;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.items-leading h2 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 700;
}

/* =====================================================
   7. GRID DE NOTICIAS SECUNDARIAS
   ===================================================== */

/* Escritorio: 2 columnas */
.article-list .col-lg-6 {
    flex: 0 0 calc(50% - 11px) !important;
    max-width: calc(50% - 11px) !important;
}

/* Móvil: 1 columna */
@media (max-width: 768px) {
    .article-list .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.article-list .article-body,
.article-list .item-content {
    background: white;
    padding: 14px;
    border-radius: 6px;
    border-left: 3px solid #e5e5e5;
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
    transition: all 0.3s ease;
    height: 100%;
}

.article-list .article-body:hover,
.article-list .item-content:hover {
    border-left-color: #1f6fb2;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

.article-header h2 {
    font-size: 16px;
    line-height: 1.2;
    margin: 6px 0;
    font-weight: 600;
}

.article-header a {
    text-decoration: none;
    color: #222;
}

/* Fecha */
.article-info {
    color: #777;
    margin-bottom: 4px;
}

/* =====================================================
   8. BOTÓN READMORE
   ===================================================== */

body.itemid-799 .readmore {
    margin-top: 6px;
}

body.itemid-799 .readmore a {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    background: #a4ccec;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

body.itemid-799 .readmore a:hover {
    background: #6099c7;
}

/* Ocultar badge */
.featured-article-badge {
    display: none !important;
}

/* =====================================================
   9. IDIOMAS (MENÚ)
   ===================================================== */

#language_btn_131 {
  background-color: #5a9ad3 !important;
  border-color: #5c85a8 !important;
  color: #fff !important;
}

#language_btn_131:hover {
  background-color: #1e60a3 !important;
  border-color: #35414b !important;
}

.mod-languages .dropdown-item {
  padding: 1px 2px !important;
  font-size: 12px;
  line-height: 1 !important;
}

.mod-languages .dropdown-menu img {
  width: 14px;
}

.mod-languages .dropdown-item img {
  width: 12px;
  height: auto;
  display: block;
}

.dropdown-menu {
    --bs-dropdown-min-width: 5rem;
}

.mod-languages .dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px !important;
  line-height: 1 !important;
  font-size: 12px;
}

/* =====================================================
   10. HEADER MÓVIL VALGA
   ===================================================== */

@media (max-width: 768px) {

  #sp-header .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  #sp-logo {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 70%;
  }

  #sp-menu {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    gap: 5px;
  }

  .mod-languages {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .mod-languages .btn {
    padding: 1px 3px;
    font-size: 12px;
    white-space: nowrap;
  }
}



/* 📍 Centrar TODO el bloque del formulario */
#search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}


/* 🔍 Limitar ancho y centrar contenido interno */
#search-form form {
    width: 100%;
    max-width: 500px;
}


/* 🧱 Asegurar que input + botones no se desplacen raro */
#search-form .input-group {
    width: 100%;
}

.result__taxonomy {
    Display: none !important;
}

.result__title-url {
    display: none !important;
}


/* 📦 Contenedor de resultados centrado */
.com-finder__results {
    max-width: 900px;      /* ancho cómodo (puedes subir a 1000 si quieres) */
    margin: 0 auto;        /* centra */
    padding: 0 20px;       /* margen lateral */
}


/* 🧾 Espacio entre buscador y resultados */
#search-form {
    margin-bottom: 40px;
}


/* 🧱 Tarjetas (mejoradas con más aire) */
.result__item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


/* 📝 Mejor lectura */
.result__title {
    margin-bottom: 10px;
}

.result__description {
    margin-bottom: 10px;
}

.result__title-text,
.result__description {
    letter-spacing: 0 !important;
}

/* 📏 Interlineado normal */
.result__title-text,
.result__description,
.result__taxonomy {
    line-height: normal;
}

/* Centrar el label y los botones en móviles */
@media (max-width: 767px) {
    #search-form .form-inline {
        display: flex;
        flex-direction: column; /* apila label, input y botones */
        align-items: center;    /* centra horizontal */
    }

    #search-form .form-inline label {
        margin: 0 0 5px 0;  /* elimina me-2 y da margen abajo */
        text-align: center;
        width: 100%;
        max-width: 500px; /* mismo ancho que input */
    }

    #search-form .input-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 500px;
    }

    #search-form .input-group .btn {
        margin-top: 10px;
        width: 100%;
        max-width: 300px; /* ajusta si quieres */
    }
}