@import "layout/header.css";
@import "layout/footer.css";
@import "layout/menu.css";
*::before,
*::after,
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
:root {
  --bg-white: #ffffff;
  --bg-light: #f5f5f5;
  --bg-black: #1a1a1a;
  --bg-black-light: #333333;
  --bg-gray-dark: #4a4a4a;
  --bg-gray-medium: #706f6f;
  --bg-gray-light: #e5e5e5;
  --bg-gray: #b3b3b3;
  --bg-red: #ef1b25;
  --bg-red-dark: #d3151d;
  --bg-gold: #f5f2ed;
  --bg-blue: #0047ab;
  --bg-blue-light: #5e7982;
  --bg-orange: #f78d6b;
  --bg-card-list: #f8f9fa;
  --bg-card-list-border: #e9ecef;
  --bg-green: #49746b;
  --bg-green-dark: #084e4a;
  --bg-card-blue: #f0f4f8;
  --bg-card-gray: #f1f1f1;
  --bg-card-purple: #f6f3ff;

  --container-content-width: 1258px;
  --container-narrow-width: 800px;
  --container-safe-area: 2.5rem;

  --container-max-width: calc(
    var(--container-content-width) + var(--container-safe-area)
  );

  --container-narrow-max-width: calc(
    var(--container-narrow-width) + var(--container-safe-area)
  );

  --container-gutter: clamp(1rem, 0.5rem + 2.5vw, 1.25rem);

  --mt-sm: 0.75rem;
  --mt-md: 1.5rem;
}

.container,
.container-narrow {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-gutter);
  box-sizing: border-box;
}

.container {
  max-width: var(--container-max-width);
}

.container-narrow {
  max-width: var(--container-narrow-max-width);
}
body {
  font-family: "Plus Jakarta Sans";

  font-weight: 400;
  line-height: 1.5rem;
  font-size: 1rem;
  color: var(--bg-black);
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main {
  overflow: visible;
}
.landing {
  display: flex;
  flex-direction: column;
}
.landing > section:first-child {
  padding-top: 7rem;
}
.landing > section:last-child {
  padding-bottom: 7rem;
}
.landing > section {
  padding: 3.5rem 0;
}
section[id] {
  scroll-margin-top: 60px;
}
.text-center {
  text-align: center;
}
a {
  text-decoration: none;
  color: var(--bg-red);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--bg-black);
  margin-top: 0;
  margin-bottom: 1.25rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 500;
}

h1 {
  font-family: "Plus Jakarta Sans";
  font-size: 2.75rem;
  line-height: 1.33333;
  margin-bottom: 2rem;
  letter-spacing: -0.034em;
}

h2 {
  font-family: "Plus Jakarta Sans";
  font-size: 2rem;
  line-height: 2.75rem;
  letter-spacing: -0.034em;
}

h3 {
  font-family: "Plus Jakarta Sans";
  font-size: 1.3125rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
  font-weight: 600;
}

h4 {
  font-family: "Plus Jakarta Sans";
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

h5 {
  font-family: "Plus Jakarta Sans";
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.028em;
}

h6 {
  font-family: "Plus Jakarta Sans";
  font-size: 0.9rem;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--gray-medium);
  letter-spacing: 0.05em;
}
.title-section {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 20px;
  width: 600px;
  margin: 0 auto 2rem auto;
  justify-content: center;
}
.text p a,
.field--name-field-text-item p a,
.content__body p a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text ul,
.field--name-field-text-item ul,
.content__body ul {
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-direction: column;
}
.text ul li,
.field--name-field-text-item ul li,
.content__body ul li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  text-align: left;
  line-height: 1.5;
}

.text ul li::before,
.field--name-field-text-item ul li::before,
.content__body ul li::before {
  background: url(/themes/custom/iberica/images/icon-list.svg) no-repeat center
    center;
  width: 19px;
  height: 14px;
  top: 6px;
  content: "";
  position: absolute;
  left: 0;
  background-size: 16px auto;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 16px 24px;
  border: solid 1px var(--bg-red);
  border-radius: 100px;
  background-color: var(--bg-red);
  color: var(--bg-white);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.3s;
  box-sizing: border-box;
  line-height: 1;
  transition: 0.3s;
}
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 16px 24px;
  border: solid 1px var(--bg-black);
  border-radius: 100px;
  color: var(--bg-white);
  background-color: var(--bg-black);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.3s;
  box-sizing: border-box;
  line-height: 1;
}
.button-white {
  background-color: var(--bg-white);
  border: solid 1px var(--bg-black);
  color: var(--bg-black);
  transition: 0.3s;
}
.primary:hover,
.secondary:hover,
.button-white:hover {
  background-color: var(--bg-red-dark);
  border: solid 1px var(--bg-red-dark);
  color: var(--bg-white);
}
.field__label {
  font-weight: 600;
}
.page-node-type-project .image__wrapper {
  background-color: var(--bg-blue-light);
  padding: 4.5rem 0 0 0 !important;
}
.buttons {
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  margin: 2rem 0 0 0;
}
.buttons a {
  text-decoration: none !important;
}
.arrow-top {
  width: 55px;
  height: 55px;
  bottom: 3.4375rem;
  right: 3.4375rem;
  background: url(/themes/custom/iberica/images/arrow-top.svg) no-repeat center
    center var(--bg-white);
  display: block;
  background-size: 37%;
  position: fixed;
  z-index: 30;
  font-size: 0;
  border-radius: 50%;
  -webkit-box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0.1490196078);
  box-shadow: 0 4px 8px 3px #00000026;
  -webkit-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
  -webkit-transform: translateY(15px);
  transform: translateY(15px);
  visibility: hidden;
  opacity: 0;
}

.arrow-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.page-node-type-page .region-content {
  padding-bottom: 3.5rem;
}
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: transparent;
}

table thead th {
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--bg-gray-medium);
}

table tbody td {
  padding: 1.2rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--bg-gray-medium);
  transition: background-color 0.2s ease;
}

table tbody tr:last-child td {
  border-bottom: none;
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  .title-section {
    width: 100%;
  }
  .region-header a.primary {
    padding: 10px 34px !important;
  }
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    border: 1px solid var(--bg-gray-medium);
    margin-bottom: 1rem;
  }

  td {
    border: none;
    border-bottom: 1px solid var(--bg-gray-medium);
    position: relative;
    padding-left: 50% !important;
    text-align: right;
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
  }
  .landing > section:first-child {
    padding-top: 0rem;
  }
  .paragraph--type--box:has(#block-dynamicmenu) {
    display: none;
  }
}
