
:root {
  --premium-ink: #061724;
  --premium-panel: rgba(255, 255, 255, 0.055);
  --premium-panel-strong: rgba(255, 255, 255, 0.09);
  --premium-line: rgba(214, 186, 120, 0.26);
  --premium-line-strong: rgba(214, 186, 120, 0.44);
  --premium-glow: rgba(214, 186, 120, 0.18);
  --premium-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --premium-shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.2);
  --premium-radius: clamp(18px, 2.2vw, 30px);
  --premium-radius-small: 14px;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  background: var(--custom-color-1);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(214, 186, 120, 0.11), transparent 29rem),
    linear-gradient(180deg, #00253b 0%, #061724 58%, #00253b 100%);
  color: rgba(249, 249, 249, 0.78);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.035), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 104px);
  opacity: 0.55;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--custom-color-2);
  outline-offset: 4px;
}

h1,
h2,
h3,
.news-title {
  background: transparent;
  color: var(--custom-color-2);
  text-wrap: balance;
}

h1,
h2,
.news-title {
  letter-spacing: 0;
}

p {
  max-width: 68ch;
}

.wide {
  width: min(var(--wide), calc(100% - 48px));
}

.content {
  width: min(var(--content), 100%);
}

.site-header {
  border-bottom: 1px solid rgba(214, 186, 120, 0.12);
  background: var(--custom-color-1);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.16);
  backdrop-filter: none;
  transition:
    padding 0.35s var(--ease-premium),
    background 0.35s var(--ease-premium),
    box-shadow 0.35s var(--ease-premium);
}

.site-header.is-scrolled {
  background: var(--custom-color-1);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
}

.header-inner {
  transition: min-height 0.35s var(--ease-premium);
}

.is-scrolled .header-inner {
  min-height: 72px;
}

.site-logo,
.footer-logo-horizontal {
  filter: none;
}

.site-logo img,
.footer-logo-horizontal img {
  transition: transform 0.45s var(--ease-premium), opacity 0.45s var(--ease-premium);
}

.site-logo:hover img,
.footer-logo-horizontal:hover img {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.025);
}

.menu-icon {
  border: 1px solid rgba(214, 186, 120, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 0.28s var(--ease-premium), background 0.28s var(--ease-premium), border-color 0.28s var(--ease-premium);
}

.menu-icon:hover {
  border-color: var(--premium-line-strong);
  background: rgba(214, 186, 120, 0.1);
  transform: translateY(-50%) scale(1.04);
}

.site-menu {
  overflow: hidden;
  border: 1px solid var(--premium-line);
  background: rgba(0, 37, 59, 0.94);
  box-shadow: var(--premium-shadow-soft);
  backdrop-filter: blur(18px);
}

.site-menu a {
  border-radius: 10px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-menu a:hover {
  background: rgba(214, 186, 120, 0.1);
  color: var(--custom-color-2);
  transform: translateX(-3px);
}

.wp-section {
  position: relative;
  padding-top: clamp(84px, 8vw, 132px);
  padding-bottom: clamp(84px, 8vw, 132px);
}

.wp-section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 48px));
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(214, 186, 120, 0.18), transparent);
  transform: translateX(-50%);
}

.hero-copy {
  min-height: calc(100svh - 114px);
  display: grid;
  align-content: center;
  gap: clamp(28px, 4vw, 54px);
  padding-top: clamp(54px, 6vw, 94px);
}

.hero-copy::before {
  display: none;
}

.hero-copy .content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 5.35rem);
  line-height: 0.94;
}

.hero-copy p {
  margin-inline: auto;
  color: rgba(249, 249, 249, 0.82);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
}

.hero-copy > .wide.image-rounded {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: var(--premium-radius);
  box-shadow: var(--premium-shadow);
  isolation: isolate;
}

.hero-copy > .wide.image-rounded::after,
.image-rounded::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(0, 37, 59, 0.06), rgba(0, 37, 59, 0.28));
}

.hero-copy > .wide.image-rounded img {
  aspect-ratio: 16 / 8.3;
  object-fit: cover;
  transform: scale(1.01);
}

.wp-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 44px;
  padding: 0.78rem 1.18rem;
  border: 1px solid var(--premium-line-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(214, 186, 120, 0.98), rgba(214, 186, 120, 0.72));
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  color: var(--custom-color-1);
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.28s var(--ease-premium), box-shadow 0.28s var(--ease-premium), background 0.28s var(--ease-premium);
}

.wp-button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-premium);
}

.wp-button:hover {
  background: linear-gradient(135deg, #d6ba78, #f2dda8);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  color: var(--custom-color-1);
  transform: translateY(-2px);
}

.wp-button:hover::before {
  transform: translateX(120%);
}

.button-row {
  gap: 12px;
}

.image-rounded {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(214, 186, 120, 0.2);
  border-radius: var(--premium-radius);
  box-shadow: var(--premium-shadow-soft);
  isolation: isolate;
}

.image-rounded img,
.image-rounded {
  border-radius: var(--premium-radius);
}

.image-rounded img {
  transition: transform 0.8s var(--ease-premium), filter 0.8s var(--ease-premium);
}

.image-rounded:hover img {
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.035);
}

.columns,
.section-media,
.section-media.reverse,
.location-grid {
  gap: clamp(32px, 6vw, 86px);
}

.column.align-center,
.section-media > div:not(:has(figure)),
.schedule-block,
.contact-box {
  position: relative;
}

.column.align-center,
.section-media > div:not(:has(figure)),
.schedule-block {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(214, 186, 120, 0.16);
  border-radius: var(--premium-radius);
  background: linear-gradient(145deg, var(--premium-panel), rgba(255, 255, 255, 0.026));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

.check-list {
  padding-left: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-inline-start: 2rem;
}

.check-list li + li {
  margin-top: 0.42rem;
}

.check-list li::before {
  position: absolute;
  top: 0.18rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.12rem;
  height: 1.12rem;
  border: 1px solid rgba(214, 186, 120, 0.42);
  border-radius: 999px;
  color: var(--custom-color-2);
  content: "\2713";
  font-size: 0.72rem;
  line-height: 1;
}

.team-grid {
  gap: clamp(28px, 4vw, 64px);
}

.hover-card {
  border: 1px solid rgba(214, 186, 120, 0.2);
  border-radius: var(--premium-radius);
  box-shadow: var(--premium-shadow-soft);
  background: var(--premium-panel);
}

.hover-card img {
  transition: transform 0.75s var(--ease-premium), filter 0.75s var(--ease-premium);
}

.hover-card .overlay {
  align-items: flex-end;
  padding: clamp(22px, 3vw, 38px);
  background: linear-gradient(180deg, rgba(0, 37, 59, 0.02) 18%, rgba(0, 37, 59, 0.86) 100%);
  opacity: 1;
  text-align: left;
}

.hover-card .overlay > div {
  width: 100%;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(214, 186, 120, 0.22);
  border-radius: 18px;
  background: rgba(0, 37, 59, 0.62);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  transform: translateY(10px);
  transition: transform 0.35s var(--ease-premium), background 0.35s var(--ease-premium);
}

.hover-card:hover .overlay > div,
.hover-card:focus-within .overlay > div {
  background: rgba(0, 37, 59, 0.76);
  transform: translateY(0);
}

.hover-card:hover img,
.hover-card:focus-within img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

.hover-card h3 {
  color: var(--custom-color-2);
  font-size: clamp(1.65rem, 2vw, 2.15rem);
}

.hover-card p {
  color: rgba(255, 255, 255, 0.86);
}

.work-form,
.contact-form {
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid rgba(214, 186, 120, 0.18);
  border-radius: var(--premium-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--premium-shadow-soft);
}

.work-form input,
.work-form textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
  min-height: 46px;
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.work-form input:focus,
.work-form textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(214, 186, 120, 0.68);
  box-shadow: 0 0 0 4px rgba(214, 186, 120, 0.13);
}

.section-media .image-rounded img {
  aspect-ratio: 4 / 3;
}

#tarifas .wide {
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid rgba(214, 186, 120, 0.2);
  border-radius: var(--premium-radius);
  background:
    linear-gradient(135deg, rgba(214, 186, 120, 0.11), transparent 52%),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--premium-shadow-soft);
}

#tarifas a,
.contact-box a {
  color: var(--custom-color-1);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

#tarifas a {
  color: var(--custom-color-2);
}

.schedule-block h3 {
  margin-top: 0.6rem;
}

.schedule-block p {
  margin-inline: auto;
  color: rgba(249, 249, 249, 0.86);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.25;
}

.footer-map iframe {
  height: clamp(320px, 40vw, 480px);
  border: 1px solid rgba(214, 186, 120, 0.2);
  border-radius: var(--premium-radius);
  box-shadow: var(--premium-shadow-soft);
}

.contact-box {
  overflow: hidden;
  border: 1px solid rgba(214, 186, 120, 0.28);
  border-radius: var(--premium-radius);
  background:
    linear-gradient(135deg, rgba(214, 186, 120, 0.16), transparent 46%),
    var(--base-2);
  box-shadow: var(--premium-shadow);
  color: var(--custom-color-1);
}

.contact-box::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(0, 37, 59, 0.03), transparent 44%);
}

.contact-box > * {
  position: relative;
}

.contact-box p {
  margin-inline: auto;
}

.social-links {
  gap: 0.65rem;
}

.social-links a {
  border: 1px solid rgba(214, 186, 120, 0.26);
  box-shadow: 0 12px 26px rgba(0, 37, 59, 0.18);
  transition: transform 0.25s var(--ease-premium), background 0.25s ease, color 0.25s ease;
}

.social-links a:hover {
  background: var(--custom-color-2);
  color: var(--custom-color-1);
  transform: translateY(-3px);
}

.site-footer {
  border-top: 1px solid rgba(214, 186, 120, 0.14);
  background: rgba(0, 0, 0, 0.12);
}

.mobile-sticky-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: none;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: var(--custom-color-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: var(--custom-color-1);
  font-family: "Barlow Condensed", sans-serif;
  line-height: 1;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 782px) {
  .site-menu:not([hidden]) {
    min-width: 260px;
  }

  .hero-copy .button-row {
    margin-top: 0.4rem;
  }
}

@media (max-width: 781px) {
  .wide {
    width: min(100%, calc(100vw - 40px));
  }

  .site-header,
  .wp-section,
  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-inner {
    min-height: 70px;
  }

  .is-scrolled .header-inner {
    min-height: 64px;
  }

  .site-logo {
    width: min(214px, 56vw);
    height: 70px;
  }

  .site-menu {
    right: -2px;
    width: min(300px, calc(100vw - 40px));
  }

  .site-menu a {
    min-height: 44px;
  }

  .wp-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero-copy {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .hero-copy > .wide.image-rounded img {
    aspect-ratio: 4 / 4.7;
  }

  .column.align-center,
  .section-media > div:not(:has(figure)),
  .schedule-block {
    padding: 22px;
  }

  .team-grid .hover-card {
    min-height: auto;
  }

  .hover-card .overlay {
    position: static;
    padding: 0;
    background: transparent;
  }

  .hover-card .overlay > div {
    border-width: 0;
    border-top: 1px solid rgba(214, 186, 120, 0.2);
    border-radius: 0;
    background: rgba(0, 37, 59, 0.86);
    transform: none;
  }

  .work-form,
  .contact-form {
    padding: 22px;
  }

  .contact-box {
    padding: 34px 20px;
  }

  .contact-form {
    width: 100%;
  }

  .mobile-sticky-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .wp-button {
    width: 100%;
    text-align: center;
  }

  .button-row {
    width: 100%;
  }

  .hero-copy .button-row {
    max-width: 320px;
    margin-inline: auto;
  }

  .work-form,
  .contact-form {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Integration fixes: retain the new-design identity without overlaying biographies. */
.site-logo,
.footer-logo-horizontal {
  background: var(--custom-color-1);
  border-radius: 12px;
}

.site-footer {
  background: var(--custom-color-1);
}

/* More specific than .contact-box a: icons must contrast with their navy discs. */
.contact-box .social-links a {
  color: var(--base-2);
  width: 44px;
  height: 44px;
}

.contact-box .social-links a:hover {
  color: var(--custom-color-1);
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 36px);
  align-items: stretch;
}

.team-member:last-child:nth-child(odd) {
  grid-column: auto;
  justify-self: stretch;
  width: auto;
}

.team-grid .hover-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.team-grid .hover-card img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.team-grid .hover-card .overlay {
  position: static;
  flex: 1;
  align-items: stretch;
  padding: 0;
  background: rgba(0, 37, 59, 0.86);
}

.team-grid .hover-card .overlay > div {
  border: 0;
  border-radius: 0;
  padding: clamp(20px, 2vw, 28px);
  transform: none;
  box-shadow: none;
}

.team-grid .hover-card p + p {
  margin-top: 0.75rem;
}

.careers-details {
  max-width: 980px;
  margin: 28px auto 0;
}

.careers-details > summary {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin-inline: auto;
  cursor: pointer;
  list-style: none;
}

.careers-details > summary::-webkit-details-marker {
  display: none;
}

.careers-details > summary:focus-visible {
  outline: 2px solid var(--custom-color-2);
  outline-offset: 5px;
}

.careers-details > summary::after {
  content: "+";
  margin-left: 0.75rem;
}

.careers-details[open] > summary::after {
  content: "−";
}

.work-form .wp-button {
  grid-column: 1 / -1;
}

.wp-button:active,
.mobile-sticky-cta:active {
  transform: translateY(1px);
}

@media (max-width: 1023px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 781px) {
  .site-footer {
    padding-bottom: 96px;
  }

  .contact-box p,
  #tarifas a {
    overflow-wrap: anywhere;
  }
}


/* Keep the existing dropdown below the entire header, including its padding. */
.site-menu {
  top: calc(100% + 30px);
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
}

:root {
  --dropdown-open-dur: 250ms;
  --dropdown-close-dur: 150ms;
  --dropdown-pre-scale: 0.97;
  --dropdown-closing-scale: 0.99;
  --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.t-dropdown {
  transform-origin: top left;
  transform: scale(var(--dropdown-pre-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-open-dur) var(--dropdown-ease),
    opacity   var(--dropdown-open-dur) var(--dropdown-ease);
  will-change: transform, opacity;
}
.t-dropdown[data-origin="top-right"]     { transform-origin: top right; }
.t-dropdown[data-origin="top-center"]    { transform-origin: top center; }
.t-dropdown[data-origin="bottom-left"]   { transform-origin: bottom left; }
.t-dropdown[data-origin="bottom-center"] { transform-origin: bottom center; }
.t-dropdown[data-origin="bottom-right"]  { transform-origin: bottom right; }

.t-dropdown.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.t-dropdown.is-closing {
  transform: scale(var(--dropdown-closing-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-close-dur) var(--dropdown-ease),
    opacity   var(--dropdown-close-dur) var(--dropdown-ease);
}

@media (prefers-reduced-motion: reduce) {
  .t-dropdown { transition: none !important; }
}

/* Separate routes for candidates and commercial partnerships. */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  align-items: start;
}

.opportunities-grid > article {
  min-width: 0;
  scroll-margin-top: 150px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
}

.opportunities-grid h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.opportunities-grid .content {
  width: 100%;
  margin: 0;
}

.opportunities-grid .careers-details {
  width: 100%;
  margin: 0;
}

.opportunities-grid summary {
  max-width: 100%;
  text-align: center;
}

.form-mail-note {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 767px) {
  .opportunities-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 3rem;
  }

  .opportunities-grid > article {
    display: block;
    grid-row: auto;
  }

  .opportunities-grid .careers-details {
    margin-top: 1.5rem;
  }
}

/* Reserve space for the rates action instead of padding an inline text link. */
.rates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}

.rates-copy {
  min-width: 0;
}

#tarifas .rates-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: auto;
  max-width: 100%;
  color: var(--custom-color-1);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .rates-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}
