/* CSS Base - Normalize */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #F7FAFF;
  overflow-x: hidden;
  font-family: "proxima-nova", sans-serif;
}

h1 {
  font-size: 2em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "neue-haas-unica", sans-serif;
}

a {
  background-color: transparent;
}

img {
  border-style: none;
  max-width: 100%;
  height: auto;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  appearance: button;
  -webkit-appearance: button;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section {
  display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

pre,
code,
kbd,
samp {
  font-family: monospace;
  font-size: 1em;
}

/* Fonts */
@font-face {
  font-family: 'neue-haas-unica';
  src: url('../../font/NeueHaasUnicaPro-Light.ttf') format('ttf');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'neue-haas-unica';
  src: url('../../font/NeueHaasUnicaPro-Regular.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'neue-haas-unica';
  src: url('../../font/NeueHaasUnicaPro-Medium.ttf') format('ttf');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'neue-haas-unica';
  src: url('../../font/NeueHaasUnicaPro-Bold.ttf') format('ttf');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.font-neue-haas-unica {
  font-family: 'neue-haas-unica';
}

.font-proxima-nova {
  font-family: 'proxima-nova';
}

.text-light {
  font-weight: 300;
}

.text-regular {
  font-weight: 400;
}

.text-medium {
  font-weight: 500;
}

.text-semibold {
  font-weight: 600;
}

.text-bold {
  font-weight: 700;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1920px;
  height: auto;
  margin: 0 auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1 0 auto;
  width: 100%;
}

.footer {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.pointer {
  cursor: pointer;
}

.bg-primary {
  background-color: #0044A6;
}

.bg-secondary {
  background-color: #E7ECF8;
}

.bg-blue-2 {
  background-color: #002266;
}

.text-white {
  color: #fff;
}

.text-white-2 {
  color: #EDF3FD;
  font-weight: 100;
}

.text-black {
  color: #000;
}

.text-primary {
  color: #0044A6;
}

.text-secondary {
  color: #E7ECF8;
}

/* Cookie Banner - Removido, ahora se maneja en cookie-banner.css */

/* Timeline Card Mobile */
.timeline-card-mobile-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.timeline-card-mobile {
  background-color: #ffffff;
  border-radius: 36px;
  max-width: 90%;
  width: 338px;
  height: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  padding: 11px 14px;
}

.timeline-card-mobile__close {
  position: absolute;
  top: 34px;
  right: 40px;
  background: none;
  border: none;
  padding: 0px;
  cursor: pointer;
  z-index: 10;
}

.timeline-card-mobile__close img {
  width: 15px;
  height: 15px;
  display: block;
}

.timeline-card__image {
  width: 100%;
  height: 100%;
  max-height: 192px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 16px;
}

.timeline-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-card-mobile__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  margin: 16px 0;
}

.timeline-card-mobile__year {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0044A6;
  color: #fff;
  padding: 8px 12px;
  border-radius: 200px;
  font-size: 15px;
  font-weight: 500;
  min-width: 85px;
  height: 40px;
}

.timeline-card-mobile__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 8px 12px;
  border-radius: 200px;
  font-size: 15px;
  font-weight: 500;
  min-width: 85px;
  height: 40px;
  border: 1px solid #707070;
}

.timeline-card-mobile__content {
  padding: 0;
}

.timeline-card-mobile__content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #00122B;
  padding: 0 12px;
}

.timeline-card-mobile__content p {
  font-size: 14px;
  color: #5D6877;
  margin: 0;
  padding: 0 12px;
  line-height: 1.5;
}

/* Header */
.header {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 840px;
  width: 100%;
  max-width: 1896px;
  border-radius: 27px;
  padding-top: 26px;
  overflow: hidden;
  font-family: 'neue-haas-unica';
}

.header__video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.header__button-container {
  align-self: center;
  position: relative;
  top: -35px;
}

.header__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__nav {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 114px;
  padding-left: 46px;
}

.nav__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-self: start;
  padding-top: 26px;
  font-weight: 500;
}

.nav__link {
  text-decoration: none;
  padding: 0.5rem 2rem 1rem 0;
}

.nav__link:hover {
  color: #ccc;
}

.logo {
  justify-self: center;
}

.logo img {
  height: 114px;
  width: auto;
}

.header__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header__main-title-container {
  height: auto;
  min-height: 200px;
  padding: 0 20px 40px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-height: none;
}

.header__main-title {
  font-size: clamp(30px, 9.8vw, 116px);
  font-weight: 400;
  margin: 0 auto;
  text-align: center;
  line-height: 1.1;
  max-height: none;
  overflow: visible;
  margin-top: 60px;
  text-transform: lowercase;
}

.header__text {
  height: 280px;
  display: flex;
  flex-direction: column;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  justify-self: start;
  align-items: center;
}

.header__left-text,
.header__right-text {
  font-weight: 400;
}

.header__left-text {
  font-family: 'proxima-nova';
  font-size: 22px;
  font-weight: 300;
  justify-self: start;
}

.header__right-text {
  font-size: 50px;
}

.header__right-text p {
  width: max-content;
  margin-bottom: 0;
  margin-top: 50px;
  text-align: center;
}

.header__left-text p {
  width: 225px;
  margin-top: 30px;
  text-align: center;
}

.header__text-button {
  font-size: 15px;
  font-weight: 100;
  color: #EDF3FD;
}

.language-container {
  padding-top: 26px;
  padding-right: 92px;
  justify-self: end;
  font-weight: 500;
}

.language-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.language-code {
  display: flex;
  align-items: center;
  width: 24px;
}

.language-code img {
  border: 2px solid #fff;
  border-radius: 200px;
  width: 18px;
  height: 18px;
}

.language-text {
  font-size: 14px;
  font-weight: 400;
  text-align: end;
}

.language-select {
  padding: 0.25rem;
  border: none;
  background-color: transparent;
  font-weight: 600;
}

.language-option {
  color: #000;
}

.menu-toggle {
  cursor: pointer;
  display: none;
  z-index: 100;
}

.menu-toggle img {
  width: 24px;
  height: 24px;
}

/* Mobile Menu - Exacto del archivo original */
.mobile-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  width: calc(100% - 20px);
  max-width: 100%;
  height: calc(100% - 32px);
  max-height: 800px;
  background-color: #EFF2F7;
  z-index: 1000;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  padding: 48px;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #012D74;
}

.mobile-menu.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

/* Overlay de fondo cuando el menú está abierto */
body.menu-open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  opacity: 0;
  animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Media queries para mobile menu */
@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
}

@media (max-width: 480px) {
  .mobile-menu {
    padding: 1.5rem;
    max-width: 95%;
    max-height: 98%;
  }
  
  .mobile-menu__nav a {
    margin-bottom: 8px;
    font-size: 1.1rem;
  }
  .mobile-menu__country {
    font-size: 1.1rem;
  }
  
  .mobile-menu__nlo-logo {
    width: 40px;
  }
  
  .mobile-menu__nlo-text {
    font-size: 0.7rem;
  }
}

.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu__logo img {
  height: 54px;
}

.mobile-menu__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #022D74;
  font-size: 24px;
  font-weight: 800;
  position: relative;
  z-index: 1001;
  padding: 8px;
  line-height: 1;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #012D74;
  border-bottom: 1px solid #012D74;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}

.mobile-menu__nav a {
  font-family: 'Neue Haas Unica', sans-serif;
  color: #022D74;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.mobile-menu__nav a:last-child {
  margin-bottom: 0;
}

.mobile-menu__countries {
  display: flex;
  flex-direction: column;
  padding: 0 0 24px 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #012D74;
}

.mobile-menu__countries-title {
  font-family: 'Neue Haas Unica', sans-serif;
  color: #012D74;
  font-size: 12px;;
  margin-bottom: 1rem;
}

.mobile-menu__country {
  font-family: 'Neue Haas Unica', sans-serif;
  color: #022D74;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-bottom: 1px solid #012D74;
  padding-bottom: 1.5rem;
}

.mobile-menu__nlo {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mobile-menu__nlo-logo {
  width: 50px;
  margin-right: 0.5rem;
}

.mobile-menu__nlo-text {
  font-family: 'Neue Haas Unica', sans-serif;
  font-size: 0.8rem;
  line-height: 1.2;
}

.mobile-menu__nlo-text .text-nlo {
  color: #022D74;
  font-family: 'proxima-nova';
  font-weight: 500;
  font-size: 12px;
}

.mobile-menu__nlo-text .text-neutral {
  color: #022D74;
  font-family: 'proxima-nova';
  font-weight: 500;
  font-size: 12px;
}

.mobile-menu__copyright {
  font-family: 'Neue Haas Unica', sans-serif;
  color: #022D74;
  font-size: 10px;
  margin-top: 0.5rem;
}

.powered-by {
  font-family: 'Neue Haas Unica', sans-serif;
  color: #022D74;
  font-size: 8px;
  margin-top: 0.5rem;
}

/* Country Buttons */
.country-website {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 17px 12px;
  padding: 0 calc((100% - (348px * 3 + 24px)) / 2);
  margin-top: -210px;
  transform: translateY(20px) !important;
}

.country-website > div:nth-last-child(-n+2) {
  grid-column: 2 / span 1;
}

.country-website > div:last-child {
  grid-column: 3 / span 1;
}

.country-button {
  position: relative;
  width: 348px;
  height: 132px;
  padding: 11px 14px;
  border-radius: 300px;
  background-color: #ffffff;
  cursor: pointer;
  text-decoration: none;
}

.country-button__container-1 {
  position: absolute;
  width: 110px;
  height: 110px;
  top: 11px;
  left: 14px;
  background-size: cover;
  background-position: center;
  border-radius: 300px;
  transition: width .35s cubic-bezier(.83,.06,.38,.9);
}

.btn-spain {
  background-image: url('../../public/country-buttons/spain.png');
}

.btn-mexico {
  background-image: url('../../public/country-buttons/mexico.png');
}

.btn-usa {
  background-image: url('../../public/country-buttons/usa-miami.png');
}

.btn-portugal {
  background-image: url('../../public/country-buttons/portugal.png');
}

.btn-morocco {
  background-image: url('../../public/country-buttons/morocco.png');
}

.btn-algeria {
  background-image: url('../../public/country-buttons/algeria.png');
}

.country-button:hover .btn-spain {
  width: 320px;
  background-image: linear-gradient(to left, #00122B, #012D7400),
    url('../../public/country-buttons/spain.png');
}
.country-button:hover .btn-mexico {
  width: 320px;
  background-image: linear-gradient(to left, #00122B, #012D7400),
    url('../../public/country-buttons/mexico.png');
}
.country-button:hover .btn-usa {
  width: 320px;
  background-image: linear-gradient(to left, #00122B, #012D7400),
    url('../../public/country-buttons/usa-miami.png');
}
.country-button:hover .btn-portugal {
  width: 320px;
  background-image: linear-gradient(to left, #00122B, #012D7400),
    url('../../public/country-buttons/portugal.png');
}
.country-button:hover .btn-morocco {
  width: 320px;
  background-image: linear-gradient(to left, #00122B, #012D7400),
    url('../../public/country-buttons/morocco.png');
}
.country-button:hover .btn-algeria {
  width: 320px;
  background-image: linear-gradient(to left, #00122B, #012D7400),
    url('../../public/country-buttons/algeria.png');
}

.country-button__container-2 {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 320px;
  height: 110px;
  border-radius: 300px;
  background: none;
}

.country-button__col-1 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 110px;
  height: 110px;
}
.country-button__col-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 188px;
  padding-left: 14px;
}

.country-button__col-2 .country-button__text {
  color: #012D74;
  font-family: 'neue-haas-unica';
  font-size: 27px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.country-button__col-2 .country-button__website {
  color: #012D74;
  font-family: 'neue-haas-unica';
  font-size: 13px;
  font-weight: 400;
  transition: color 0.5s ease;
}

.country-button:hover .country-button__col-2 .country-button__text,
.country-button:hover .country-button__col-2 .country-button__website {
  color: #ffffff;
}

/* Chips */
.chip-container {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 200px;
  padding: 0px;
  width: 152px;
  height: 48px;
  font-size: 18px;
  font-weight: 500;
}

.chip--large {
  width: 200px;
  height: 48px;
}

/* About Section */
.about {
  width: 100%;
  max-width: 1896px;
  margin: 0 auto;
  background-color: #e2ecfa;
  height: 532px;
  border-radius: 27px;
  margin-top: 55px;
  padding-left: 198px;
  display: flex;
  padding-top: 72px;
  border-radius: 27px;
}

.about__title-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.about__title h2 {
  font-size: 38px;
  margin: 38px 0 0;
}

.about__title_description {
  margin-top: 16px;
  color: #5d6877;
  width: 285px;
  font-size: 14px;
  font-weight: lighter;
}

/* Statistics */
.stadistic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.stadistic__card-container {
  max-width: 936px;
  display: flex;
  justify-content: space-between;
}

.stadistic__card {
  display: flex;
  width: 240px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stadistic__number {
  font-size: 78px;
  margin: 0;
  color: #012D74;
}

.stadistic__title {
  font-size: 26px;
  color: #00122B;
  margin-bottom: 0px;
}

.stadistic__description {
  width: 176px;
  font-size: 14px;
  font-weight: 500;
  color: #5D6877;
}

/* History Section */
.history {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1896px;
  margin: 0 auto;
  height: 900px;
  padding-top: 140px;
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.history__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 150px;
}

.history__title h2 {
  font-size: 38px;
}

.history__timeline {
  height: 525px;
  margin-left: 5%;
  position: relative;
  width: calc(100% - 150px);
  overflow-y: hidden;
}

.history__timeline-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-y: hidden;
  overflow-x: hidden;
  min-width: 1400px;
}

.timeline-image {
  width: 100%;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline__circle-container-up, .timeline__circle-container-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 510px;
}

.timeline__circle-container-up {
  justify-content: flex-start;
  position: relative;
  top: 10px;
}

.timeline__circle-container-down {
  justify-content: flex-end;
  position: relative;
  bottom: 10px;
}

.timeline__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
}

.timeline__text-title {
  font-size: 26px;
  font-weight: 700;
  margin: 27px 0 0 0;
}

.timeline__text-content {
  font-size: 14px;
  font-weight: lighter;
  text-align: center;
  color: #0044A6;
  cursor: pointer;
  width: 110px;
}

.timeline__circle-1 {
  width: 15px;
  height: 15px;
  border-radius: 200px;
  border: 1px solid #0044A6;
}

.timeline__vertical-line {
  width: 1px;
  height: 101px;
  background-color: #0044A6;
}

.timeline__vertical-line-up {
  height: 61px;
}

.timeline__circle-2 {
  width: 56px;
  height: 56px;
  border-radius: 200px;
  border: 1px solid #0044A6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.8s ease-out;
  cursor: pointer;
}

.timeline__circle-3 {
  width: 38px;
  height: 38px;
  border-radius: 200px;
  background-color: #0044A6;
  position: relative;
  transition: transform 0.8s ease-out;
}

.timeline__horizontal-line {
  width: 127px;
  height: 3px;
  margin: 0 9px;
  background-color: #0044A6;
}

/* Timeline Card */
.timeline-card_content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100%;
  height: 1px;
}

.timeline-card {
  display: block;
  position: absolute;
  left: 40%;
  opacity: 0;
  z-index: -100;
  transform: translateX(-150%);
  transition: opacity 0.5s cubic-bezier(.83,.06,.38,.9),
              transform 0.5s cubic-bezier(.83,.06,.38,.9),
              z-index 0s linear 0.5s;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  border-radius: 36px;
  padding: 11px 14px;
  width: 338px;
  height: 420px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.timeline-card.animate {
  opacity: 1;
  z-index: 100;
  transform: translateX(-40%);
  transition: opacity 0.5s cubic-bezier(.83,.06,.38,.9),
              transform 0.5s cubic-bezier(.83,.06,.38,.9),
              z-index 0s;
}

.timeline-card__close {
  position: absolute;
  top: 34px;
  right: 40px;
  background: none;
  border: none;
  padding: 0px;
  cursor: pointer;
  z-index: 10;
}

.timeline-card__close img {
  width: 15px;
  height: 15px;
  display: block;
}

.timeline-card__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  margin: 16px 0;
}

.timeline-card__year {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0044A6;
  color: #fff;
  padding: 8px 12px;
  border-radius: 200px;
  font-size: 15px;
  font-weight: 500;
  min-width: 85px;
  height: 40px;
}

.timeline-card__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 8px 12px;
  border-radius: 200px;
  font-size: 15px;
  font-weight: 500;
  min-width: 85px;
  height: 40px;
  border: 1px solid #707070;
}

.timeline-card__content {
  padding: 0;
}

.timeline-card__content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #00122B;
  padding: 0 12px;
}

.timeline-card__content p {
  font-size: 14px;
  color: #5D6877;
  margin: 0;
  padding: 0 12px;
  line-height: 1.5;
}

/* Timeline Circle Animations */

.timeline__circle-3.active {
  transform: scale(1.2);
}

/* Quitar el borde cuando el círculo 3 interno está activo */
.timeline__circle-2:has(.timeline__circle-3.active) {
  border: none;
}

.timeline__circle-3.active::before,
.timeline__circle-3.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 200px;
  border: 1px solid #0044A6;
  transform: translate(-50%, -50%);
  animation: sonar 2s linear infinite;
  opacity: 0;
}

.timeline__circle-3.active::after {
  animation-delay: 1s;
}

@keyframes sonar {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

/* Offices Section */
.offices {
  width: 100%;
  height: 614px;
  max-width: 1896px;
  margin-top: 126px;
}

.offices__container {
  width: 100%;
  height: 100%;
  background-color: #002266;
  background: radial-gradient(ellipse 600px 300px at 50% 92%, #003B97 20%, #002266 100%);
  background-image: url('../../public/banner-the-first-nlo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  border-radius: 27px;
}

.offices__content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
}

.offices__content h2 {
  font-size: 18px;
  color: #E8EFFC;
  font-weight: 600;
  width: 240px;
  letter-spacing: 7px;
  text-align: center;
  font-family: 'neue-haas-unica', sans-serif;
  padding-top: 72px;
}

.offices__content h1 {
  width: 240px;
  font-size: 112px;
  color: #E8EFFC;
  font-weight: 800;
  font-family: 'neue-haas-unica', sans-serif;
  margin: 0;
  margin-bottom: 72px;
  text-align: center;
}

.offices__content img {
  width: 46px;
  height: 46px;
  object-fit: cover;
}

.offices__content p {
  font-size: 17px;
  color: #C4D2EB;
  font-weight: lighter;
  font-family: 'neue-haas-unica', sans-serif;
}

/* MSL Group Section */
.group {
  width: 100%;
  height: auto;
  max-width: 1920px;
}

.group__container {
  justify-self: center;
  height: 100%;
  max-width: 1920px;
  margin: 83px 0;
  overflow: hidden;
  position: relative;
}

.group__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0px 45px;
}

.group__logo .group__logo-img{
  width: 200px;
  margin-top: 45px;
}

.group__logo .v-chip {
  margin-top: 45px;
  font-size: 14px;
  color: #0044A6;
}

.group__logo a {
  text-decoration: none;
}

.group__logo .v-chip .chip__text {
  text-decoration: none;
  color: #0044A6;
}

.group__logo-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.logos-carousel {
  opacity: 0.7;
  overflow: hidden;
  width: 100%;
  margin: 80px 0;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.logos-slide {
  display: flex;
  width: max-content;
  animation: slide 40s linear infinite;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 20px;
  flex-shrink: 0;
  width: 186px;
  height: 120px;
  background: none;
  padding: 16px 24px;
  border-radius: 200px;
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-260px * 10));
  }
}

/* Responsive para MSL Group y logos-carousel */
@media (max-width: 1650px) {
  .group {
    padding-top: 80px;
  }

  .group__logo {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  
  .group__container {
    margin: 60px 0;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  .logos-carousel {
    margin: 60px 0;
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .group__container {
    margin: 40px 0;
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  .logos-carousel {
    margin: 40px 0;
    width: 100%;
    overflow: hidden;
    padding: 0;
  }
  
  /* Mantener el tamaño de las imágenes igual que en desktop */
  .logo-container {
    width: 186px;
    height: 120px;
    margin: 0 10px;
  }
  
  /* Corregir el estilo para el contenedor con margen izquierdo */
  .group__container > div[style*="margin-left"] {
    margin-left: 0 !important;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Footer - Exacto del archivo original */
.footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 558px;
  max-width: 1896px;
  color: #ffffff;
  background-color: #002266;
  border-radius: 27px;
  margin-bottom: 25px;
  justify-self: center;
}

.footer__container {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 360px;
  gap: 10rem;
  padding-left: 198px;
  padding-top: 94px;
  padding-right: 218px;
}

/* Estilos columna izquierda */
.footer__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__logo img {
  width: 151px;
  height: auto;
}

.footer__title {
  font-size: 30px;
  margin: 0;
  width: max-content;
}

.footer__text {
  color: #E5ECF6;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.8;
  margin: 0;
}

/* Estilos columna central */
.footer__center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer__menu {
  padding-top: 56px;
}

.footer__menu-title {
  font-size: 18px;
  margin-bottom: 45px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1E4593;
}

.footer__menu-list {
  font-size: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__menu-list li {
  margin-bottom: 0.8rem;
}

.footer__menu-list a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-weight: 300;
}

.footer__menu-list a:hover {
  opacity: 1;
  font-weight: 500;
}

.footer__countries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  width: 100%;
}

.footer__countries .country-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  font-size: 15px;
  color: #ffffff;
}

.footer__countries img {
  width: 20px;
  height: auto;
}

/* Estilos columna derecha */
.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer__email {
  color: #ffffff;
  text-decoration: none;
  font-size: 30px;
  margin-top: 72px;
}

.footer__certification {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 377px;
}

.footer__right-container {
  padding-top: 28px;
  margin-top: 45px;
}

.footer__certification img {
  width: 115px;
  height: auto;
}

.icargo img {
  width: 160px;
  margin-top: 45px;
  height: auto;
  cursor: pointer;
}

.footer__the-first-nlo-text, .footer__nlo-text {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.footer__nlo-text {
  color: #6F89B2;
  width: 90%;
  line-height: 15px;
}

.footer__copyright {
  font-size: 12px;
  color: #ffffff;
  margin-top: 25px;
}

/* Estilos sección inferior */
.footer__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  width: 95%;
  margin: auto;
  padding-top: 1rem;
  text-align: center;
  border-top: 1px solid #1E4593;
}

.footer__bottom p {
  font-size: 0.8rem;
  margin: 0;
  color: #ffffff;
}

.footer__bottom p span {
  font-weight: 400;
}

.footer__bottom-link .text-bold{
  font-weight: 500;
}

.footer__bottom-text-tm {
  font-size: 16px;
  color: #ffffff;
}

.footer__bottom-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: lighter;
  font-size: 0.8rem;
}

/* Margin-right para el último timeline__circle-container-down a partir de 1423px */
@media (max-width: 1423px) {
  .timeline__circle-container-down:nth-last-child(2) {
    margin-right: 100px !important;
  }
}

@media (max-width: 1470px) {
  .stadistic__card-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Media Queries */
@media screen and (max-width: 1200px) {
  .header__main-title {
    font-size: clamp(40px, 9vw, 100px);
  }

  .header__right-text {
    font-size: 40px;
  }

  .header__right-text p,
  .header__left-text p {
    width: 360px;
  }

  .header__left-text {
    justify-self: center;
  }
}

@media screen and (max-width: 1024px) {
  .header {
    height: auto;
    min-height: 700px;
    padding-top: 15px;
  }

  .header__nav {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    align-items: center;
    height: auto;
    padding: 15px;
    gap: 20px;
  }

  .nav__list {
    justify-self: center;
    padding-top: 0;
  }

  .language-container {
    justify-self: center;
    padding-right: 0;
    padding-top: 0;
  }

  .nav__link {
    padding: 0.5rem 1rem;
  }

  .language-selector {
    padding-right: 0;
    margin-top: 15px;
  }

  .header__main-title {
    font-size: 80px;
    text-align: center;
  }

  .header__text {
    grid-template-columns: 1fr;
    padding: 20px;
    height: auto;
  }

  .header__right-text p,
  .header__left-text p {
    width: 65%;
    max-width: 460px;
    text-align: center;
    margin: 15px auto;
  }

  .header__button-container {
    justify-self: center;
  }

  .menu-toggle {
    display: block;
  }

  .nav__list {
    display: none;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .country-website {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 0 calc((100% - 348px) / 2);
    gap: 17px 0;
    margin-top: 24px;
  }

  .country-website > div:nth-last-child(-n+2),
  .country-website > div:last-child {
    grid-column: auto;
  }

  .about {
    flex-direction: column;
    padding: 40px 42px;
    height: auto;
    margin-top: 30px;
  }

  .about__title h2 {
    font-size: 32px;
    margin: 25px 0;
  }

  .stadistic__card-container {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .stadistic__card {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .stadistic__number {
    font-size: 60px;
  }

  .stadistic__title {
    font-size: 24px;
    font-family:  'nue', sans-serif;
    margin-top: 10px;
  }

  .stadistic__description {
    max-width: 280px;
    margin: 10px auto;
  }

  .timeline-card {
    display: none;
  }
  
  .timeline-card-mobile-container.active {
    display: flex;
  }
}

@media screen and (max-width: 768px) {
  .header__main-title-container {
    padding-bottom: 0;
  }
  .header__main-title {
    font-size: 60px;
  }
  .header__button-container {
    margin-bottom: 50px;
  }

  .header__right-text {
    font-size: 30px;
  }

  .header__left-text {
    font-size: 18px;
    min-height: 160px;
  }

  .language-text {
    text-align: center;
    font-size: 8px;
    margin-left: 15px;
  }
  .language-selector {
    margin-top: 0;
  }
  .menu-toggle {
    display: block;
  }
  .nav__list {
    display: none;
  }

  .logo {
    order: 1;
  }

  .logo img {
    height: 92px;
  }

  .country-website {
    margin-top: -50px;
  }

  .about__title_description {
    width: 100%;
    margin-top: 20px;
  }
  .about__title h2 {
    width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .country-website {
    padding: 0 calc((100% - 280px) / 2);
    margin-top: 24px;
  }
  
  .country-button {
    width: 280px;
    height: 100px;
    padding: 8px 10px;
  }
  
  .country-button__container-1 {
    width: 84px;
    height: 84px;
    top: 8px;
    left: 10px;
  }
  
  .country-button__container-2 {
    width: 260px;
    height: 84px;
  }
  
  .country-button__col-1 {
    width: 84px;
    height: 84px;
  }
  
  .country-button__col-2 {
    width: 156px;
    padding-left: 10px;
  }
  
  .country-button__col-2 .country-button__text {
    font-size: 22px;
  }
  
  .country-button__col-2 .country-button__website {
    font-size: 11px;
  }
  
  .country-button:hover .country-button__container-1 {
    width: 84px;
    background-image: url('https://cdn.pixabay.com/photo/2024/02/26/14/14/construction-8598093_1280.jpg');
  }
  
  .country-button:hover .country-button__col-2 .country-button__text,
  .country-button:hover .country-button__col-2 .country-button__website {
    color: #012D74;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px;
  }

  .cookie-text {
    font-size: 14px;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-buttons button,
  .cookie-buttons a {
    width: 100%;
    text-align: center;
  }
}

/* Media queries del footer - exactas del archivo original */
@media (max-width: 1600px) {
  .footer__container {
    gap: 5rem;
    padding-left: 100px;
    padding-right: 100px;
  }
}

@media (max-width: 1200px) {
  .footer {
    height: auto;
    padding: 50px 0 24px 0;
  }
  
  .footer__container {
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 3rem;
    padding: 50px 50px 0;
  }
  
  .footer__email {
    font-size: 24px;
    margin-top: 56px;
  }
  
  .footer__certification {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .footer {
    height: auto;
  }
  .footer__container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer__right {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding-top: 30px;
  }
  
  .footer__email {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .footer {
    border-radius: 27px 27px 0 0;
    margin-bottom: 0;
    height: auto;
    min-height: auto;
  }

  .footer__container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 40px 20px 0 20px;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .footer__left {
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .footer__left, .footer__center, .footer__right {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .footer__right {
    grid-column: span 1;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
  }
  
  .footer__center {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
  }
  
  .footer__menu {
    padding-top: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .footer__menu-title {
    margin-bottom: 25px;
    font-size: 16px;
  }
  
  .footer__email {
    font-size: 22px;
  }

  .footer__bottom{
    margin-top: 25px;
    flex-direction: column;
    gap: 15px;
    padding: 1rem 20px;
    width: calc(100% - 40px);
  }

  .footer__certification {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer__right-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .footer__container {
    padding: 30px 15px 0 15px;
    gap: 1.5rem;
  }
  
  .footer__center {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__right-container {
    width: 100%;
    max-width: 100%;
  }

  .footer__bottom {
    padding: 1rem 15px;
    width: calc(100% - 30px);
  }

  .footer__logo img {
    width: 120px;
  }

  .footer__title {
    font-size: 24px;
  }

  .footer__text {
    font-size: 11px;
  }
}

@media screen and (max-width: 480px) {
  .header {
    border-radius: 15px;
  }

  .header__main-title {
    font-size: 45px;
  }

  .header__right-text {
    font-size: 24px;
  }

  .header__left-text {
    font-size: 16px;
  }
}

/* History responsive - exacto del archivo original */
@media screen and (max-width: 1650px) {
  .history {
    padding-bottom: 80px;
    height: auto;
    min-height: 705px;
    overflow: hidden;
  }
  
  .history__container {
    padding-left: 40px;
  }
  
  .history__timeline {
    margin-left: 40px;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .history {
    padding-top: 80px;
    height: auto;
    min-height: 705px;
    overflow: hidden;
  }
  
  .history__container {
    padding-left: 20px;
  }
  
  .history__timeline {
    margin-left: 20px;
    width: calc(100% - 20px);
  }
  
  .history__title h2 {
    font-size: 28px;
    width: auto !important;
  }
}

/* Estilos para la barra de desplazamiento del timeline */
.history__timeline::-webkit-scrollbar {
  height: 8px;
}

.history__timeline::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.history__timeline::-webkit-scrollbar-thumb {
  background: #0044A6;
  border-radius: 10px;
}

.history__timeline::-webkit-scrollbar-thumb:hover {
  background: #002266;
}

/* Animaciones de scroll */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
