@charset "UTF-8";
/* ==============================
VARIABLES
================================= */
/* ==============================
   THEME VARIABLES INHERIT FROM GAVIAS INUSTI THEME
   ============================== */
/* ==============================
GENERAL
================================= */
/* Revistas */
.node-detail .editorial-single .field--name-field-imagen-de-portada img {
  max-height: 600px;
  margin: 0 auto;
}
.node-detail .editorial-single {
  /* Contenedor de la imagen */
}
.node-detail .editorial-single .field--name-field-imagen-de-portada {
  float: left;
  /* Mueve el elemento a la izquierda */
  margin-right: 20px;
  /* Espacio entre la imagen y el texto */
  margin-bottom: 10px;
  /* Espacio si el texto llega a bajar */
  max-width: 40%;
  /* Opcional: limita el ancho de la imagen para que no ocupe todo */
}
.node-detail .editorial-single .field--name-field-imagen-de-portada img {
  margin: 0px 20px 20px 0px;
}
.node-detail .editorial-single {
  /* Limpieza (Opcional pero recomendado) */
  /* Esto asegura que otros elementos después del texto no se suban */
}
.node-detail .editorial-single .field--name-body::after {
  content: "";
  display: table;
  clear: both;
}

/* Área de PDF */
.pdf-actions {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px dashed #dee2e6;
}

.pdf-info {
  display: flex;
  align-items: center;
}

.pdf-icon {
  width: 50px;
  height: 50px;
  background: #ea130e;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 15px;
  font-weight: bold;
}

/* Botones */
.btn-custom {
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-primary-dark {
  background: #e3001b;
  color: white;
  border: 2px solid #e3001b;
}

.btn-primary-dark:hover {
  background: transparent;
  color: #e3001b;
  text-decoration: none;
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid #e3001b;
  color: #ea130e;
}

.btn-outline-dark:hover {
  border-color: #ea130e;
  text-decoration: none;
  background: #ea130e;
}

/* Magazine Card */
.magazine-card {
  background: #fff;
  border-radius: 24px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.6s ease;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  /* Contenedor de la Imagen con Perspectiva */
}
.magazine-card .img-wrapper div {
  perspective: 1200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: transparent;
  flex-shrink: 0;
}
.magazine-card img {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  transform: rotateY(15deg) rotateX(4deg) scale(0.9);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.1);
}
.magazine-card {
  /* Hover: La imagen vuelve a su posición normal */
}
.magazine-card:hover img {
  transform: rotateY(0deg) rotateX(0deg) scale(1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.magazine-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}
.magazine-card {
  /* Contenido de la Card */
}
.magazine-card .magazine-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.magazine-card .publication-date {
  font-size: 0.8rem;
  color: #ea130e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1.5rem;
}
.magazine-card .content-footer {
  margin-top: auto;
}
.magazine-card {
  /* Botón Estilizado */
}
.magazine-card .btn-magazine {
  width: 100%;
}
.magazine-card .btn-magazine:hover {
  color: #ea130e !important;
}
.magazine-card .btn-magazine:focus, .magazine-card .btn-magazine:focus-visible {
  color: #fff !important;
}

/* Eventos */
.event-block-2 {
  padding-bottom: 0px;
}
.event-block-2 .event-meta {
  display: flex;
}
.event-block-2 .event-image img {
  border-radius: 12px;
  height: 250px !important;
}

.event-block .event-image img {
  border-radius: 12px 12px 0px 0px;
  width: 100%;
  max-height: 400px;
}
.event-block .event-content {
  border-radius: 0px 0px 12px 12px;
}
.event-block .event-content .field--name-field-lugar-evento {
  display: inline;
}

/* Node */
.node--view-mode-full .post-block.event-full .post-thumbnail img {
  border-radius: 12px 12px 0px 0px;
}
.node--view-mode-full .event-full .post-thumbnail {
  margin-bottom: 0px;
}
.node--view-mode-full .item-image img,
.node--view-mode-full img,
.node--view-mode-full iframe {
  border-radius: 12px;
}
.node--view-mode-full .post-block .post-thumbnail img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

.event-full .event-info {
  border-radius: 0px 0px 12px 12px;
}

.post-list-small-2 .post-block .post-image img {
  border-radius: 12px;
  height: 80px;
}

.archivos-adjuntos .btn {
  border-radius: 12px !important;
  padding: 15px 15px !important;
}

.docs-dropdown a:not([href]):not([tabindex]):hover,
.docs-dropdown a[aria-expanded=false]:hover,
.docs-dropdown a[aria-expanded=true] {
  text-decoration: underline !important;
  cursor: pointer;
}
.docs-dropdown .dropdown-menu.show {
  padding: 0px;
  left: unset;
  right: 0px;
  width: 300px;
}
.docs-dropdown .dropdown-menu.show ul {
  list-style-type: none;
  padding: 0px;
}
.docs-dropdown .dropdown-menu.show ul li a {
  display: block;
  width: 100%;
  padding: 10px;
  text-decoration: none;
  cursor: pointer;
}
.docs-dropdown .dropdown-menu.show ul li a:hover {
  background-color: #ea130e;
  color: white;
}
.docs-dropdown .dropdown-menu.show ul li span:last-child {
  display: none;
}

.auto-dropdown.docs-dropdown .dropdown-menu.show {
  padding: 0px;
  left: auto;
  right: auto;
  width: auto;
}

.field--type-file iframe.pdf {
  width: 100% !important;
  height: calc(100vh - 120px) !important;
}

/* Tags */
.node-detail .field--name-field-noticia-tags,
.node--view-mode-full .field--name-field-noticia-tags {
  margin-top: 20px;
}
.node-detail .field--name-field-noticia-tags .field__items,
.node--view-mode-full .field--name-field-noticia-tags .field__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.node-detail .field--name-field-noticia-tags .field__item,
.node--view-mode-full .field--name-field-noticia-tags .field__item {
  letter-spacing: 1px;
  font-size: 12px;
}
.node-detail .field--name-field-noticia-tags .field__item a,
.node--view-mode-full .field--name-field-noticia-tags .field__item a {
  background: #f6f6f6;
  padding: 10px 15px;
  color: #2f2f2f;
  border-radius: 12px;
}
.node-detail .field--name-field-noticia-tags .field__item a:active, .node-detail .field--name-field-noticia-tags .field__item a:hover,
.node--view-mode-full .field--name-field-noticia-tags .field__item a:active,
.node--view-mode-full .field--name-field-noticia-tags .field__item a:hover {
  background: #ea130e;
  color: #fff;
}
.node-detail .field__label,
.node--view-mode-full .field__label {
  font-size: 16px;
  font-weight: 700;
  color: #4C4C4C;
}

/* Noticia Multimedia Carousel */
.noticia-multimedia-carousel .item-image img {
  border-radius: 12px;
}

/* News Teaser Card Styles */
.news-teaser-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  border: 1px solid #eee;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: stretch;
  max-width: 768px;
  padding: 20px;
}
.news-teaser-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}
.news-teaser-card:hover .news-teaser-image-wrapper img {
  transform: scale(1.05);
}

.news-teaser-image-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
}
.news-teaser-image-wrapper img,
.news-teaser-image-wrapper .field,
.news-teaser-image-wrapper .field--item,
.news-teaser-image-wrapper picture {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.news-image-clipper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.news-teaser-date {
  position: absolute;
  top: auto;
  left: auto;
  bottom: -25px;
  right: 15px;
  width: 50px;
  height: 50px;
  background-color: #ea130e;
  color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 10;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.news-teaser-date .day {
  font-size: 16px;
  font-weight: 700;
}
.news-teaser-date .month {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 500;
}

.news-teaser-content {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-teaser-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
}
.news-teaser-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}
.news-teaser-title a:hover {
  color: #ea130e;
}

.news-teaser-body {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.news-teaser-body p {
  margin-bottom: 10px;
}
.news-teaser-body p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .news-teaser-card {
    flex-direction: column;
  }
  .news-teaser-image-wrapper {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
  }
  .news-teaser-image-wrapper img,
  .news-teaser-image-wrapper .field,
  .news-teaser-image-wrapper .field--item,
  .news-teaser-image-wrapper picture {
    height: 100%;
    object-fit: cover;
  }
  .news-image-clipper {
    height: 100%;
  }
  .news-teaser-date {
    bottom: -25px;
    top: auto;
    right: 20px;
    left: auto;
  }
  .news-teaser-content {
    padding: 35px 20px 20px;
  }
}
/* ==============================
TOPBAR REGION
================================= */
.topbar {
  background: #3366cc !important;
  height: 50px;
  align-content: center;
}
.topbar .topbar-content-inner.has-language-block .language-region {
  top: 0;
}

.govi-topbar-logo {
  display: flex;
  align-items: center;
}

/* ==============================
MIDDLE TOPBAR REGION
================================= */
.middle-topbar-content > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0px;
}
.middle-topbar-content .block {
  margin-bottom: unset;
}

/* ==============================
SEARCH FORM
================================= */
/* Contenedor principal */
.govi-search-form {
  width: 100%;
  max-width: 300px;
}
.govi-search-form form {
  display: flex;
}
.govi-search-form {
  /* Wrappers del input */
}
.govi-search-form .form-type-search,
.govi-search-form .form-item-keys {
  width: 100%;
}
.govi-search-form {
  /* Input de búsqueda */
}
.govi-search-form .govi-search-form-input {
  width: 100%;
  height: 41px;
  padding: 0 40px 0 8px;
  border: 2px solid #6f6f6f;
  border-radius: 30px;
}
.govi-search-form {
  /* Contenedor de acciones */
}
.govi-search-form #edit-actions,
.govi-search-form .form-actions {
  background-color: transparent;
  border-radius: 50%;
  margin-left: -35px;
  width: 30px;
  height: 30px;
  color: #fff !important;
  display: flex;
}
.govi-search-form {
  /* Botón submit */
}
.govi-search-form .search-form__submit {
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  margin: 3px 0 0 -3px;
  padding: 0;
  color: transparent;
}

/* Variante offcanvas */
.after-offcanvas .govi-search-form {
  max-width: 100%;
}

/* Menu Bar (Hamburger) */
header.header-default .menu-bar {
  left: 0;
  right: unset;
}

/* ==============================
PERFIL DIRECTIVO
================================= */
.node--type-perfil-directivo .badge {
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25rem;
  border-radius: 10px;
  z-index: 10;
}

.perfil-directivo-full img {
  border-radius: 20px;
}
.perfil-directivo-full h2 {
  font-size: 2.5rem;
}

/* ==============================
MOBILE
================================= */
/* Dispositivos medianos (tabletas, 768px y más) */
@media (min-width: 768px) {
  /* ==============================
  BREADCRUMBS
  ================================= */
  .breadcrumb_background_secondary-left.breadcrumb-style,
  .breadcrumb_background_secondary-right.breadcrumb-style {
    position: relative;
  }
  .breadcrumb_background_secondary-right.breadcrumb-style::after,
  .breadcrumb_background_secondary-left.breadcrumb-style::before {
    content: "";
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: var(--breadcrumb-background-secondary-image);
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    z-index: 1;
  }
  .breadcrumb_background_secondary-right.breadcrumb-style::after {
    right: 0;
    background-position: right center;
  }
  .breadcrumb_background_secondary-left.breadcrumb-style::before {
    left: 0;
    background-position: left center;
  }
  .breadcrumb_background_secondary-left .breadcrumb-content-main,
  .breadcrumb_background_secondary-right .breadcrumb-content-main {
    width: 50%;
    margin: unset;
    padding: 0px 30px;
  }
  .breadcrumb_background_secondary-left .breadcrumb-content-main {
    left: 50%;
  }
}
/* Mega Extra small devices (portrait phones, less than 576px) */
@media (max-width: 300px) {
  .docs-dropdown .dropdown-menu.show {
    width: 100%;
  }
}
/* Extra small devices (portrait phones, less than 576px) */
/* @media (max-width: 575.98px) { ... } */
@media (max-width: 650px) {
  .event-block-2 .event-content-inner {
    padding: 20px;
  }
}
/* Small devices (landscape phones, less than 768px) */
/* @media (max-width: 767.98px) { ... } */
@media (max-width: 991.98px) {
  /* Middle top bar */
  .middle-topbar-content .govi-search-form {
    display: none;
  }
  .middle-topbar-content > div:first-child {
    justify-content: center;
  }
  .menu--main .gva-navigation .gva_menu.gva_menu_main > li > a {
    text-align: left !important;
  }
  .gva-navigation ul.menu > li {
    position: relative;
    padding: 8px 0 8px;
    list-style-type: none;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
  }
  .gva-navigation .menu-item.menu-item--expanded {
    border-bottom: none;
  }
}
/* Large devices (desktops, less than 1200px) */
/* @media (max-width: 1199.98px) { ... } */

/*# sourceMappingURL=style.css.map */
