/** 
 * main.css
 *
 * 
 */

/*********************************************************************
 * 1. General HTML tags
 *
 */

 :root {
  font-size: 14px; 

  --blue: #00367e;
  --orange: #e89a2e;

  --blue-dark: #00285f;
  --blue-soft: #e8f0fa;
  --blue-medium: #cedff6;
  --blue-background: #f6f8fb;
  --blue-background2: #e6f1fc;
  --grey-background: #f2f2f2;
  --orange-soft: #fff3df;
  --orange-background: #fffcf7;

  --muted-bg: #f2f5f9;

  --green: #589623;
  --green-background: #f4fffe;
  --green-background2: #f8fcf4;

  --white: #ffffff;
  --black: #1f2530;
  --text: #263241;
  --muted: #6b7480;
  --border: #dfe6ef;

  --font-main: "Open Sans", Arial, sans-serif;

  --container: 1180px;

  --radius-small: 8px;
  --radius-medium: 17px;
  --radius-large: 22px;

  --shadow-soft: 0 20px 55px rgba(0, 54, 126, 0.12);
  --shadow-card: 0 12px 32px rgba(0, 54, 126, 0.10);
  --shadow-small: 3px 3px 12px rgba(0, 54, 126, 0.10);

  --font-size-titles: clamp(2.4rem, 5vw, 3.2rem);
}

@media only screen and (min-width: 768px) {
    :root {
      font-size: 16px; 
    }
}

@media only screen and (min-width: 1300px) {
    :root {
      font-size: 17px; 
    }
}

* {
	box-sizing: border-box; 
}

html {
	padding: 0;
	margin: 0; 
    scroll-behavior: smooth;
}


body {
	padding: 0;
	margin: 0; 
    -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    max-width: 1260px; 
    margin: 0 auto;
    padding: 0 8px;
}


body, td {
	font-family: var(--font-main);
	font-size: 1rem; 
	color: var(--text);
    background: var(--white);
    line-height: 1.45;
    font-weight: 400;
}

input, textarea {
	font-family: var(--font-main);
	font-size: 1rem; 
	color: var(--text);
    line-height: 1.45;
    font-weight: 400;
}


img {
	max-width: 100%; 
}


a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--orange);
}

img,
svg {
  max-width: 100%;
}



blockquote {
	margin-left: 0;
	padding-left: 1.5em;
	padding-right: 2em; 
	border-left: 4px solid #ddd; 
	font-style: italic; 
	color: #777; 
}

pre, code {
	background: #eee; 
	border: 1px solid #ddd; 
}

pre {
	font-size: 0.875rem; 
	line-height: 1.4em;
	padding: 1em;
	border-left: 4px solid #ddd; 
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 2rem;
}

p, li {
    margin: 0 0 1em 0;
}

strong {
    font-weight: bold;
}

.bodytxt {
    margin-bottom: 80px;
}


/*Glyphicons*/

@font-face {
  font-family: 'Glyphicons Halflings';

  src: url('fonts/glyphicons-halflings-regular.eot');
  src: url('fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('fonts/glyphicons-halflings-regular.woff') format('woff'), url('fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}




/*********************************************************************
 * Header
 *
 */

 .site-header {
  padding-top: 20px;
  position: relative;
  background: var(--white);
}

.header-inner {
  min-height: 88px;
  position: relative;
  padding-bottom: 5px;
}

.logo {
  max-width: 110px;
  margin: 0 0 20px 0;
  display: block;
}

@media only screen and (min-width: 480px) {
.logo {
  max-width: 150px;
}
}


/* Menu */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  font-size: 0.92rem;
  font-weight: 700;
  width: 100%;
  background-color: var(--blue-background2);
  background-color: rgba(234, 245, 255, 0.86);
  backdrop-filter: blur(16px);
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.main-nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 25px;
  width: 100%;
}

.main-nav-toggle {
  display: none;
}

.nav-dropdown-label {
  display: inline-block;
  color: var(--blue);
  border-bottom: 3px solid transparent;
  cursor: default;
}

.nav-dropdown-label.current {
  border-bottom-color: var(--orange);
}

.main-nav a {
  color: var(--blue);
  border-bottom: 3px solid transparent;
}

.main-nav a.current {
    border-bottom-color: var(--orange);
}

.main-nav a.contacte-button {
    border-bottom: none;
    margin-left: auto;
    transition: background 0.2s ease;
    background-image: url(img/envelope.png);
    background-position: center left 13px;
    background-repeat: no-repeat;
    background-size: 23px 17px;
    padding-left: 44px;
    min-height: 20px;
}

.main-nav a:hover {
  color: var(--orange);
}

.nav-button {
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white) !important;
}

.nav-button:hover {
  background: var(--green);
  color: var(--white) !important;
}

/* Submenu */

/* MENÚ DESPLEGABLE */

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 34px;
}

.nav-dropdown-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: currentColor;
  transform: translateY(-50%);
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-submenu-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 250px;
  padding-top: 10px;
}

.nav-submenu {
  padding: 10px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.nav-submenu a {
  display: block;
  padding: 11px 14px;
  border-bottom: none;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.nav-submenu a:hover,
.nav-submenu a:focus,
.nav-submenu a.current {
  color: var(--orange);
  border-bottom: none;
}

.nav-dropdown:hover .nav-submenu-wrap,
.nav-dropdown:focus-within .nav-submenu-wrap,
.nav-dropdown.is-open .nav-submenu-wrap {
  display: block;
}

/* MENU MOBILE */

@media (max-width: 767.98px) {

  .main-nav {
    padding: 8px 0;
    font-size: 0.99rem;
  }

  .main-nav-inner {
    display: block;
  }

  .main-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: transparent;
    min-height: 46px;
    border: 0;
    color: var(--blue);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
  }

  .main-nav-toggle-icon {
    position: relative;
    width: 22px;
    height: 16px;
    flex: 0 0 22px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .main-nav-toggle-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    border-top: 2px solid currentColor;
    transform: translateY(-50%);
  }

  .main-nav.is-menu-open .main-nav-toggle-icon {
    border-top: 0;
    border-bottom: 0;
  }

  .main-nav.is-menu-open .main-nav-toggle-icon::before {
    top: 50%;
    transform: rotate(45deg);
  }

  .main-nav.is-menu-open .main-nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    border-top: 2px solid currentColor;
    transform: rotate(-45deg);
  }

.main-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    margin-top: 0;
    padding: 0;

    transform: translateY(-6px);
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      transform 0.25s ease,
      margin-top 0.25s ease,
      padding-top 0.25s ease,
      padding-bottom 0.25s ease,
      visibility 0s linear 0.35s;
  }

  .main-nav.is-menu-open .main-nav-menu {
    max-height: 900px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    padding-bottom: 10px;

    transform: translateY(0);
    transition:
      max-height 0.4s ease,
      opacity 0.25s ease,
      transform 0.25s ease,
      margin-top 0.25s ease,
      padding-top 0.25s ease,
      padding-bottom 0.25s ease,
      visibility 0s;
  }

/*   .main-nav-menu > a,
  .main-nav-menu > .nav-dropdown {
    border-bottom: 1px solid var(--border);
  }

  .main-nav-menu > a:last-child,
  .main-nav-menu > .nav-dropdown:last-child {
    border-bottom: 0;
  } */

  .main-nav a,
  .nav-dropdown-label {
    display: block;
    padding: 7px 0;
    border-bottom: 0;
    color: var(--blue);
  }

  .main-nav a.current,
  .nav-dropdown-label.current {
    border-bottom: 0;
    color: var(--orange);
  }

  .main-nav a.contacte-button {
    display: inline-flex;
    align-items: center;
    align-self: center;
    margin-left: 0;
    margin-top: 12px;
    margin-bottom: 10px;
    padding: 12px 17px 12px 44px;
    border-bottom: 0;
  }

  .nav-dropdown {
    display: block;
    position: relative;
    padding-right: 0;
  }

  .nav-dropdown-label {
    padding-right: 44px;
    cursor: pointer;
  }

  .nav-dropdown-toggle {
    top: 7px;
    right: 0;
    width: 38px;
    height: 38px;
    transform: none;
    color: var(--blue);
  }

  .nav-dropdown-toggle::after {
    top: 12px;
    left: 14px;
    transition: transform 0.18s ease, top 0.18s ease;
  }

  .nav-dropdown.is-open .nav-dropdown-toggle::after {
    top: 15px;
    transform: rotate(225deg);
  }

  .nav-submenu-wrap {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 12px 14px;
  }

  .main-nav .nav-dropdown:hover .nav-submenu-wrap,
  .main-nav .nav-dropdown:focus-within .nav-submenu-wrap {
    display: none;
  }

  .main-nav .nav-dropdown.is-open .nav-submenu-wrap {
    display: block;
  }

  .nav-submenu {
    padding: 0 0 0 12px;
    border-left: 3px solid var(--orange);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-submenu a {
    padding: 7px 0;
    white-space: normal;
    font-weight: 600;
  }
}


/* Idiomes */


.languages {
	list-style: none; 
	margin: 0;
	padding: 0; 
    position: absolute;
    top: 0;
    right: 10px;

    z-index: 50;
    display: inline-flex;
  flex-direction: column;
}

.languages li {
  display: none;
  margin: 0;
  padding: 0;
}

.languages li.current {
  display: block;
  order: -1;
}

.languages:hover li,
.languages:focus-within li {
  display: block;
}

.languages a {
  display: block;
  padding: 5px 34px 5px 5px;
  background: var(--white);
  color: var(--blue);
  font-size: 0.8rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.languages li.current a {
  position: relative;
  cursor: default;
}

.languages li.current a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
}

.languages li:not(.current) {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}

.languages li:not(.current) a {
  padding: 5px 5px 5px 5px;
}


@media (max-width: 1100px) {

.header-inner {
    padding: 18px 0;
  }

  .main-nav {
    justify-content: flex-start;
  }

}


/*********************************************************************
 * BOTONS
 *
 */


.botonwrapper {
    text-align: center;
    padding-top: 30px;
}


/* #downloadgraficarubrica,
#downloadgraficarubricapdf,
.documentlink,
#btnExport {
    display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
    border: 2px solid var(--blue);
  color: var(--blue);
  background: var(--white);
}


#downloadgraficarubrica:hover,
#downloadgraficarubrica:hover,
.documentlink:hover,
#btnExport:hover {
    transform: translateY(-2px);
    border-color: var(--orange);
  color: var(--orange);
} */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border: none;
  /* box-shadow: 0 12px 24px rgba(232, 154, 46, 0.28); */
}

.btn-primary:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: var(--white);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--white);
}

/*********************************************************************
 * ACORDIONS
 *
 */


.accordion {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin-bottom: 50px;
}

.accordion .accordion-item {
  border: 0;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-small);
  overflow: hidden;
}

.accordion .accordion-header {
  margin: 0;
}

.accordion .accordion-button {
  padding: 24px 32px 24px 28px;
  background: var(--white);
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: none;
}

.accordion .accordion-button:not(.collapsed) {
  background: var(--white);
  color: var(--blue);
  box-shadow: none;
}


.accordion .accordion-button::after {
  width: auto;
  height: auto;
  margin-left: auto;
  background-image: none;
  content: "+";
  color: var(--orange);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  transform: none;
}

.accordion .accordion-button:not(.collapsed)::after {
  content: "−";
  background-image: none;
  transform: none;
}

.accordion .accordion-body {
  padding: 0 28px 26px;
}

.accordion .accordion-body p {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.75;
}

.accordion .accordion-body li {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.75;
}

@media (max-width: 680px) {
  .accordion .accordion-button {
    padding: 22px 56px 22px 22px;
  }

  .accordion .accordion-body {
    padding: 0 22px 22px;
  }
}


/*********************************************************************
 * Main content
 *
 */

#main {
	padding: 50px 0; 
	margin: 0; 
	clear: both; 
}

body.home #main {
    padding-top: 0;
    padding-bottom: 0; 
}

#content {
	padding-bottom: 2em; 
}

body.home #content {
	padding-bottom: 0; 
}

figure {
	display: table;
	width: 1px;
	margin: 1em 0;
}

figure img {
	display: table-row;
	margin-bottom: 0.5em;
}

figure figcaption {
	display: table-row;
	font-size: smaller;
	color: #777;
	line-height: 1.4em;
}

/* Dos columnes */

@media only screen and (min-width: 768px) {

    .doscol {
     display: flex;
     flex-flow: row nowrap;
     justify-content: space-between;
    }

    .doscol > div {
    width: 48%;
    }

}


/* SECCIONES GENERALES */



.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* TÍTOL PAGINA */

.page-header {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--blue);
  color: var(--white);
}

.page-header-inner {
  position: relative;
  z-index: 2;
}

.page-header-content {
  max-width: 60%;
  padding: 80px 0;
}

.page-header-inner-wide .page-header-content {
  max-width: none;
}

.page-header-content h1 {
  margin: 0;
  color: var(--white);
  font-size: var(--font-size-titles);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-header-content p:not(.section-kicker) {
  margin: 24px 0 0;
  color: var(--white);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
}

.page-header-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 43%;
  height: 100%;
  z-index: 1;

  clip-path: polygon(0 0, 100% 0, 100% 100%, 16% 100%);
}

.page-header-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {

.page-header-photo {
  display: none;
}
.page-header-content {
  max-width: 100%;
  padding: 50px 0;
}

}




/*********************************************************************
 * HOME
 *
 */



 /* SLIDER */


.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slider .carousel-item {
  min-height: 660px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slide {
  min-height: 660px;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  align-items: center;
}

.hero-text-box {
  max-width: 670px;
  padding: 46px;
  border-radius: var(--radius-medium);
  background: rgba(0, 54, 126, 0.9);
  box-shadow: var(--shadow-soft);
  /* border-top: 8px solid var(--orange); */
}


.hero-text-box h1 {
  margin: 0;
  color: var(--white);
  font-size: var(--font-size-titles);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-text-box p:not(.section-kicker) {
  margin: 24px 0 0;
  color: var(--white);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-slider .btn-primary:hover {
  background-color: var(--orange);
}

.hero-slider .carousel-indicators {
  margin-bottom: 28px;
}

.hero-slider .carousel-indicators button {
  width: 15px;
  height: 15px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: var(--white);
  opacity: 0.6;
}

.hero-slider .carousel-indicators .active {
  background-color: var(--orange);
  opacity: 1;
}

.hero-slider .carousel-indicators button:hover {
    opacity: 1;
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-slider .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e89a2e' stroke-width='4' stroke-linecap='square' stroke-linejoin='round'%3E%3Cpath d='M8 4l8 8-8 8'/%3E%3C/svg%3E");
}

.hero-slider .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e89a2e' stroke-width='4' stroke-linecap='square' stroke-linejoin='round'%3E%3Cpath d='M16 4l-8 8 8 8'/%3E%3C/svg%3E");
}



@media (max-width: 820px) {
  .hero-slider .carousel-item,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 70px 0 110px;
  }

  .hero-text-box {
    padding: 32px;
  }
}

@media (max-width: 620px) {
  .hero-text-box {
    padding: 26px;
    border-radius: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Animacio */


@media only screen and (min-width: 768px) {

    .hero-slider .hero-text-box {
      opacity: 0;
      transform: translateX(-36px);
    }

    .hero-slider .carousel-item.active .hero-text-box {
      animation: heroTextIn 0.75s ease forwards;
    }
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* CAJAS DESTACADAS FEATURED HOME */

.featured-section {
  position: relative;
  z-index: 5;
  margin-top: 0;
  padding-top: 45px;
  padding-bottom: 50px;
  background-color: var(--green);
  background-image: url(img/bggreen.jpg);
  background-size: cover;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}


a.featured-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px;
  border-radius: var(--radius-medium);
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom: 8px solid var(--orange);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  color: inherit;
  text-decoration: none;
}

a.featured-card:hover {
  color: inherit;
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0, 54, 126, 0.16);
}

a.featured-card:focus-visible {
  outline: 3px solid rgba(232, 154, 46, 0.45);
  outline-offset: 4px;
}



.featured-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.featured-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.featured-card h2 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 1.35rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.featured-card p {
  margin: 0;
  color: var(--muted);
}

.card-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--blue);
  font-weight: 700;
  transition: color 0.2s ease;
}

.card-button::after {
  content: "→";
  color: var(--green);
  font-size: 1.1rem;
}

a.featured-card:hover .card-button,
a.featured-card:focus .card-button {
  color: var(--orange);
}


@media (max-width: 1100px) {

.featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
    a.featured-card {
    min-height: 0;
  }
}

@media (max-width: 820px) {
.featured-section {
    margin-top: -56px;
  }
  .featured-card {
  min-height: 220px;
  }

}

@media (max-width: 620px) {

  .featured-grid {
    grid-template-columns: 1fr;
  }


}

/* DESTACATS HOME */



/* VÍDEOS */

.experienciesdestacades-section {
  padding: 50px 0 80px 0;
  background: var(--muted-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.experienciesdestacades-section .section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.experienciesdestacades-section .section-heading h2 {
  margin: 0;
  color: var(--blue);
  font-size: var(--font-size-titles);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.experienciesdestacades-section .section-heading p:not(.section-kicker) {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 1.08rem;
}

.experienciesdestacades-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  gap: 36px;
  align-items: stretch;
}

.experienciesdestacades-section .video-card {
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.experienciesdestacades-section .video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--blue);
}

.experienciesdestacades-section .video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.experienciesdestacades-section .video-content {
  padding: 25px;
}

.experienciesdestacades-section .video-content h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.experienciesdestacades-highlight {
  padding: 40px;
  border-radius: 34px;

  background: var(--white);

  color: var(--white);
  box-shadow: var(--shadow-card);
}

.experienciesdestacades-highlight h3 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.experienciesdestacades-highlight p {
  margin: 22px 0 0;
  color: var(--text);
  font-size: 1rem;
}

.experienciesdestacades-highlight .btn {
  margin-top: 34px;
}

@media (max-width: 1100px) {
.experienciesdestacades-highlight {
    padding: 32px;
    border-radius: 26px;
  }
}


@media (max-width: 768px) {

  .experienciesdestacades-highlight {
    min-height: auto;
  }

  .experienciesdestacades-section .experienciesdestacades-grid {
    grid-template-columns: 1fr;
  }

  
}






/* CONNECTAR BOTONES HOME */


/* NEWSLETTER + BLOG */

.connect-section {
  padding: 80px 0 90px 0;
  background:var(--blue);
}

.connect-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.58fr);
  gap: 48px;
  align-items: flex-start;
}

.connect-content h2 {
  max-width: 780px;
  margin: 0;
  color: var(--white);
  font-size: var(--font-size-titles);;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.connect-content p:not(.section-kicker) {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--white);
  font-size: 1.2rem;
}

.connect-actions {
  display: grid;
  gap: 18px;
}

.connect-button {
  display: grid;
  gap: 6px;
  padding: 28px;
  border-radius: var(--radius-medium);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;

    background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 80px auto;
  padding-right: 115px;
}

.connect-button span {
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.connect-button strong {
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.connect-button:hover {
  transform: translateY(-4px);
  color: var(--blue);
}

.connect-button-primary {
  background-color: var(--orange);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.connect-button-primary:hover {
  color: var(--white);
}

.connect-button-secondary {
  background-color: var(--white);
  color: var(--blue);
}

.connect-button-secondary span {
  color: var(--orange);
}

@media (max-width: 1100px) {
  .connect-button {
    padding: 24px;
    background-size: 60px auto;
  padding-right: 95px;
  }

    .connect-button strong {
    font-size: 1.55rem;
  }
}

@media (max-width: 768px) {
.connect-section {
    padding: 65px 0;
  }

  .connect-card {
    grid-template-columns: 1fr;
  }

}





/*********************************************************************
 * PAGINES LEGAL 
 *
 */


 .muted-block {
  background-color: var(--muted-bg);
  padding: 20px 40px;
  border-radius: 50px;
  font-size: 90%;
 }


/*********************************************************************
 * Footer 
 *
 */




#footer {
	clear: both; 
    padding: 50px 0 0 0;
    background-color: var(--blue-background2);
    color: var(--blue);
}


#footer p a {
    color: var(--blue);
}

#footer p a:hover {
    color: var(--blue);
}

#footer > .container {
    margin-bottom: 60px;
}

#footer .footercol1 {
    text-align: center;
    margin-top: 50px;
    font-size: 80%;
}

#footer .footercol2 {
    text-align: center;
    font-size: 80%;
    margin-top: 30px;
}

#footer .footercol1 p {
    margin: 20px 0 0 0;
    font-weight: 300;
}

#footer .logo_creative a {
    width: 82px;
    margin: 0;
}

#footer .logo_creative img {
    width: 82px;
    margin: 0;
}

#footer .footercreative {
    max-width: 768px;
}

#footer .footercreative p {
    margin-bottom: 8px;
    color: var(--blue);
    font-weight: 300;
}

#footer .logofooter {
    width: 150px;
}

    #footer .trescol {
      display: flex;
    }

@media only screen and (max-width: 767.9px) {
    #footer .trescol {
      flex-flow: column nowrap;
    }
    #footer .footercontact {
      order: 0;
    }
    #footer .footercol1 {
      order: 1;
    }
    #footer .footercol2 {
      order: 2;
    }
}

@media only screen and (min-width: 768px) {

   #footer .trescol {
     flex-flow: row nowrap;
     justify-content: space-between;
     align-items: center;
    }

    #footer .trescol > div {
    width: 33.3%;
    }

  #footer .footercol2 {
    margin: 0;
    text-align: right;
  }

  #footer .footercol1 {
    margin: 0;
    text-align: left;
  }

}

/* Menu legal */

#footer .footermenu {
    padding: 10px 0;
    margin: 0;
    background-color: var(--blue);
    font-size: 80%;
}

.footernav {
    text-align: center;
    padding: 0;
    margin: 0;
    color: var(--white);
}

.footernav, .footernav li {
    list-style: none;
}

.footernav li {
    display: inline-block;
    margin: 0;
    padding: 0;
    margin-right: 0.4em;
}

.footernav li::after {
    content: '-';
    margin-left: 0.4em;
}


.footernav li:last-of-type::after {
    content: '';
}

.footernav li:last-of-type {
    margin-right: 0;
}


#footer .footermenu .footernav li a {
    color: var(--white);
}

/* Footer contacte */

.footercontact h6 {
    color: var(--blue);
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.02em;
    font-size: 1.9rem;
    margin: 0 0 10px 0;
    text-align: center;
}

.footercontact p {
    text-align: center;
}

.footercontact p a {
    color: var(--blue);
}

.footercontact .botonwrapper {
  padding-top: 20px;
}

.footersocial {
    text-align: center;
}

.footersocial a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: var(--blue);
    white-space: nowrap;
    text-indent: -999px;
    font-size: 0.1rem;
    border-radius: 15px;
    margin: 0 5px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
    overflow: hidden;
}

a.linkfacebook {
    background-image: url(img/facebook.svg);
}

a.linkinstagram {
    background-image: url(img/instagram.svg);
}

a.linktwitter {
    background-image: url(img/twitter.svg);
}

a.linkyoutube {
    background-image: url(img/youtube.svg);
}



@media only screen and (min-width: 768px) {


.footersocial a {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-size: 40px 40px;
}

}






/*********************************************************************
 * Footer rúbricas
 *
 */

.footerrubrica .footertxt {
    padding: 40px 0;
    max-width: 768px;
    margin: 0 auto;
    font-size: 80%; 
    text-align: center;
}

.footerrubrica .footerlogos {
    margin: 30px 0 10px 0;
    
    display: -webkit-box;
 display: -ms-flexbox;
 display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
 -ms-flex-wrap:nowrap;
     flex-wrap:nowrap;
-webkit-box-pack: start;
    -ms-flex-pack: start;
        justify-content: flex-start;
-webkit-box-align: start;
    -ms-flex-align: start;
-webkit-box-align: stretch;
    -ms-flex-align: stretch;
        align-items: stretch;
}

.footerrubrica .footerlogos div {
    margin: 0 15px;
}

@media only screen and (min-width: 768px) {
   .footerrubrica .footerlogos div {
    margin: 0 30px;
}
}

.footerrubrica .footerlogos img {
    width: auto;
    height: auto;
    max-height: 55px;
    max-width: 100%;
    display: block;
}




/*********************************************************************
 * Pagina resultat
 *
 */


.graficarubricawrap {
    max-width: 600px;
    margin: 0 auto;
}

.downloadgraficarubricawrap {
    text-align: center;
    margin-bottom: 40px;
}


.msfinal {
    margin-bottom: 30px;
    padding: 20px 25px;
    background-color: #f7f0e4;
}

.msfinal ul {
    margin-bottom: 0;
}

.msfinal ul li {
    margin-bottom: 0;
}


.msfinaldocuments .document {
    text-align: center;
    margin: 0 20px 20px 20px;
}


.msfinaldocuments .document p {
    font-weight: bold; 
    text-align: center;
    color: #aa8b0a;
    line-height: 1.4;
}

@media only screen and (min-width: 768px) {
    .msfinaldocuments {
    display: -webkit-box;
 display: -ms-flexbox;
 display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
 -ms-flex-wrap:nowrap;
     flex-wrap:nowrap;
-webkit-box-pack: justify;
    -ms-flex-pack: justify;
        justify-content: space-between;
-webkit-box-align: start;
    -ms-flex-align: start;
-webkit-box-align: stretch;
    -ms-flex-align: stretch;
        align-items: stretch;
}
    
.msfinaldocuments .document {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}
    
}



/*********************************************************************
 * Formulari Rúbrica
 *
 */


 body.rubrica #main {
  padding-top: 0;
  background: var(--muted-bg);
 }



 body.rubrica #main .page-header {
  margin-bottom: 60px;
 }

.rubrica-container .bodytxt a {
  text-decoration: underline;
  font-weight: bold;
  color: var(--blue);
}

.rubrica-container .bodytxt a:hover,
.rubrica-container .bodytxt a:focus,
.rubrica-container .bodytxt a:active {
  color: var(--orange);
}

/*General formulari*/



form#rubricaform ul, form#rubricaform li {
    list-style: none;
}

form#rubricaform > .rubricaformwrap > .rubricafield {
    padding: 30px;
    border: 1px solid #dddddd;
    margin-bottom: 25px;
    border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

#wrap_comentari > .InputfieldHeader {
    margin-bottom: 15px;
}


/*Error*/
.InputfieldError {
    color: red;
    font-size: 0.9em;
    margin-top: 3px;
}

.camporequerido:not(:focus) {
    border: 2px solid red;
}


/*margenes*/

form#rubricaform > .rubricaformwrap > .rubricafield > .rubricaformwrap > .rubricafield {
    margin-bottom: 30px;
}

form#rubricaform > .rubricaformwrap > .rubricafield:first-of-type > .rubricaformwrap > .rubricafield {
    margin-bottom: 10px;
}

form#rubricaform > .rubricaformwrap > .rubricafield > .rubricaformwrap > .rubricafield:last-of-type {
    margin-bottom: 0;
}

/*Carrusel*/

form#rubricaform > .rubricaformwrap > .rubricafield {
    display: none;
}

form#rubricaform > .rubricaformwrap > .rubricafield:first-of-type {
    display: block;
}


/*Formulario radios*/

.rubrica-radios {
    margin-top: 25px;
}

.rubrica-radios > label.InputfieldHeaderHidden {
    display: none;
}

.rubrica-radios ul.InputfieldRadiosStacked {
    padding-left: 65px;
}

.rubrica-radios ul.InputfieldRadiosStacked input {
    margin-right: 6px;
}

.rubrica-radios ul.InputfieldRadiosStacked {
    margin: 10px 0 0 0;
}

.rubrica-radios ul.InputfieldRadiosStacked li {
    text-indent: -19px;
}

.rubrica-radios ul.InputfieldRadiosStacked li:last-of-type {
    margin-bottom: 0;
}

.rubrica-radios ul.InputfieldRadiosStacked label:hover {
    text-decoration: underline;
    cursor: pointer;
}







/*Titols ambits*/

.rubrica-ambit-titol {
    text-align: center;
    margin-bottom: 10px;
}

.rubrica-ambit-titol .InputfieldContent {
    display: inline-block;
    color: #ab833a;
    text-transform: uppercase;
    font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 2px;
  line-height: 2em;
}

.rubrica-ambit-text {
    background: #f7f0e4;
    font-size: 0.95em;
    padding: 15px 20px;
    line-height: 1.7;
    margin-bottom: 20px;
}


.rubrica-ambit-text p {
  margin-bottom: 10px;  
}

.rubrica-ambit-text p:last-of-type {
  margin-bottom: 0;  
}


/*Titols dimensions*/

.rubrica-pregunta-titol {
    margin-top: 25px;
}


.rubrica-toggle-titol {
    font-weight: 700;
    color: #002f6c;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    cursor: pointer;
}

.rubrica-toggle-titol:hover {
    text-decoration: underline;
}

.rubrica-toggle-titol::after {
    content: "\e253";
    position: relative;
  top: 1px;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: normal;
  line-height: 1;
    font-size: 0.75em;
    margin-left: 4px;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.rubrica-toggle-titol.tancat::after {
    content: "\e086";
}


.rubrica-toggle-titol.tancat {
    text-decoration: underline;
}

.rubrica-toggle-titol {
    margin-bottom: 10px !important;
}



/*Textos dimensions*/

.rubrica-toggle-text {
    background: #e8eef6;
    font-size: 0.9em;
    padding: 15px;
}

.rubrica-toggle-text p {
  margin-bottom: 10px;  
}

.rubrica-toggle-text p:last-of-type {
  margin-bottom: 0;  
}


/*Primer slide*/

#wrap_comentari textarea {
    width: 100%;
}


@media only screen and (min-width: 1100px) {
    
.rubrica-step-intro .Inputfield {
    float: left;
    width: 33%;
    padding-bottom: 30px;
}


.rubrica-step-intro .botonwrapper {
clear: left;
float: none;
padding-bottom: 0;
width: auto;
}
    
}

/*********************************************************************
 * Submissions
 *
 */


body.submissions #content table th,
body.submissions #content table td {
    font-size: 0.81rem;
    line-height: 1.1;
    padding: 6px 10px 6px 0;
}

body.submissions #content table tr {
    border-bottom: 1px solid #dddddd;
}

body.submissions #content table {
    margin: 30px auto;
}

body.submissions #main .container {
    max-width: 1265px;
}

a.modalink {
    text-decoration: underline;
    cursor: pointer;
    color: #666666;
}

.modal .modal-header {
    border-bottom: none;
    display: block;
    text-align: right;
    padding: 10px 20px;
}

.modal .modal-header a.close {
    cursor: pointer;
}

#tablaexcel {
    display: none;
}

.btnExportwrap {
    text-align: center;
    padding-top: 30px;
}



/*********************************************************************
 * Search
 *
 */

.aps-search-form {
  width: 100%;
  max-width: 110px;
  height: 30px;
  display: flex;
  gap: 5px;
  align-items: center;
  background: #f5f5f5;
  border: 0;
  border-radius: 0;
  padding: 5px 9px 5px 12px;
  position: absolute;
  top: 50px;
  right: 10px;
}

@media only screen and (min-width: 480px) {
.aps-search-form {
  max-width: 200px;
}
}

.aps-search-form input[type="search"] {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.aps-search-form input[type="search"]::-webkit-search-decoration,
.aps-search-form input[type="search"]::-webkit-search-cancel-button,
.aps-search-form input[type="search"]::-webkit-search-results-button,
.aps-search-form input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

.aps-search-form button {
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}

.aps-search-form button:hover {
  color: var(--orange);
}

.aps-search-icon {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

/* Pagina resultats */

.aps-search-result {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.aps-search-result h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.aps-search-result h2 a {
  color: var(--blue);
  text-decoration: none;
}

.aps-search-result h2 a:hover {
  color: var(--orange);
}

/*********************************************************************
 * Accessibility helpers
 *
 */

/* Hide visually, but remain approachable for screenreader */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	white-space: nowrap;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
}

/* Show bypass link on hover */

.element-focusable:focus {
	clip: auto;
	overflow: visible;
	height: auto;
}

/* Sample styling for bypass link */

.bypass-to-main:focus {
	top: 0;
	left: 0;
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-align: center;
	background: #333;
	color: #fff;
}
