@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --color-principal: #8b2742;
  --color-secundario: #333333;
  --color-secundario-ligero: #808080;
  --color-fuente-color: #d03938;
  interpolate-size: allow-keywords;
}

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

body,
html {
  margin: 0;
  padding: 0;
}
.dnone {
  display: none;
}
/* Hide untranslated text until i18n.js applies the translations,
   so the base text never flashes before the chosen language. */
html:not(.translated) [data-translate] {
  visibility: hidden;
}
html:not(.translated) [data-translate-placeholder]::placeholder {
  color: transparent;
}
body {
  font-family: Montserrat, sans-serif;
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 300;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #000000d1;
  z-index: 1000;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 1200px;
  }
  .header {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    .logo {
      height: 96px;
      width: 96px;
      transition: height 0.3s ease;
      a {
        display: block;
        height: 100%;
      }
      img {
        height: 100%;
      }
    }
    .logo.scrolled {
      height: 76px;
      width: 76px;
    }
  }
  .collapsible {
    display: grid;
    grid-template-rows: 1fr;
    margin-top: 15px;
    visibility: visible;
    opacity: 1;
    transition:
      grid-template-rows 0.3s ease,
      margin-top 0.3s ease,
      opacity 0.3s ease,
      visibility 0s linear 0s;
    > * {
      overflow: hidden;
      min-height: 0;
    }
  }
  .collapsible.collapsed {
    grid-template-rows: 0fr;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    transition:
      grid-template-rows 0.3s ease,
      margin-top 0.3s ease,
      opacity 0.3s ease,
      visibility 0s linear 0.3s;
    > * {
      padding: 0;
    }
  }
}
section,
footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  justify-content: center;
}
footer {
  .contenido {
    /* Bottom room keeps the scroll-to-top button off the last line. */
    padding: 30px 0 100px;
  }
  /* Shown by script.js once the first .fixed-bg-section scrolls into view. */
  .scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition:
      opacity 0.5s ease,
      transform 0.5s ease,
      visibility 0s linear 0.5s,
      background-color 0.3s ease,
      color 0.3s ease;
    &.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        visibility 0s linear 0s,
        background-color 0.3s ease,
        color 0.3s ease;
    }
    &:hover {
      background-color: #d6d6d6;
      color: #000;
    }
  }
  .logo {
    height: 70px;
    width: 70px;
  }
  .column {
    gap: 5px;
  }
  .column:nth-child(2) {
    align-items: end;
    text-align: right;
  }
  i.fa {
    font-size: 20px;
  }
  a {
    width: fit-content;
    color: #fff;
    transition: color 0.3 ease;
    &:hover {
      color: var(--color-principal);
    }
  }
}
.portada {
  height: 100vh;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(./img/portada.jpg);
  background-size: cover;
  justify-content: center;
  align-items: center;
}
.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}
.row-single {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
  justify-content: center;
  .column {
    max-width: 60%;
  }
}
.contenido {
  width: 1200px;
  padding: 120px 0px;
}
.ligth {
  span {
    color: var(--color-secundario);
  }
  .title {
    span {
      color: var(--color-fuente-color);
    }
  }
  .sangria {
    background-color: var(--color-fuente-color);
  }
}
.color {
  background-color: var(--color-principal);
  color: #ffffff;
  span {
    color: #ffffff;
  }
}
.ligth {
  background-color: #ffffff;
}
.dark {
  background-color: var(--color-secundario);
}
.title {
  font-size: 35px;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 30px;
  margin-top: 30px;
  width: 40%;
  line-height: 45px;
}
.cv {
  padding-top: 70px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 300;
  a {
    font-size: 14px;
  }
  .column {
    justify-content: start;
  }
  .title {
    width: 100%;
    font-weight: 400;
    font-size: 35px;
    span {
      color: var(--color-principal);
    }
  }
}
.bold {
  font-weight: 500;
}
.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-width: min(375px, 100%);
}
.collapsible {
  display: grid;
  grid-template-rows: 1fr;
  align-items: stretch;
  visibility: visible;
  opacity: 1;
  transition:
    grid-template-rows 0.3s ease,
    margin-top 0.3s ease,
    opacity 0.3s ease,
    visibility 0s linear 0s;
  > * {
    overflow: hidden;
    min-height: 0;
  }
}
.collapsible.collapsed {
  grid-template-rows: 0fr;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  transition:
    grid-template-rows 0.3s ease,
    margin-top 0.3s ease,
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
  > * {
    padding: 0;
  }
}
.sangria {
  height: 3px;
  width: 55px;
  background-color: #fff;
}

.hamburger {
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}
.menu {
  padding: 20px 0px;
  transition: padding-bottom 0.3s ease;
  span {
    cursor: pointer;
    font-size: 25px;
    font-weight: 100;
  }
  li span:hover {
    font-weight: 400;
  }
}
li {
  padding: 15px;
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.image-section {
  img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
#gmap {
  iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
  }
}
.column.quote {
  gap: 0px;
  h1 {
    color: var(--color-fuente-color);
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
  }
  span {
    font-weight: 300;
    line-height: 1;
    color: #777;
    font-size: 16px;
  }
}

.colored {
  color: var(--color-fuente-color);
}
.contenido.quote {
  gap: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 210px 40px;
  text-align: center;
  h1 {
    font-size: 45px;
    line-height: 50px;
    font-weight: 500;
    padding: 0px;
    margin: 0px;
  }
  span {
    padding-top: 20px;
    color: #fff;
    font-weight: 300;
    font-size: 30px;
  }
}
.fixed-bg-section {
  background-size: cover;
  background-attachment: fixed;
}
.fixed-bg-section.first {
  background-image: url(./img/quote1.jpg);
}
.fixed-bg-section.second {
  background-image: url(./img/quote1.jpg);
}
.fixed-bg-section.third {
  background-image: url(./img/quote3.jpg);
}
.fixed-bg-section.fourth {
  background-image: url(./img/quote4.jpg);
}
.fixed-bg-section.fifth {
  background-image: url(./img/quote5.jpg);
}
.practice-areas-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 20px;
  > div {
    width: 33%;
    font-size: 16px;
    line-height: 1.4;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    cursor: pointer;
    > span {
      font-weight: 300;
      color: var(--color-principal);
      filter: grayscale(100%);
      &:first-child {
        font-size: 40px;
        width: 10%;
      }
      &:nth-child(2) {
        padding-left: 20px;
        padding-right: 60px;
        font-weight: 400;
      }
    }
  }
  .practice-area.inactive {
    > span {
      filter: grayscale(0%);
      transition: filter 0.3s ease;
      &:nth-child(2) {
        padding-left: 0px;
        transition: padding 0.3s ease;
      }
    }
  }
  .practice-area.inactive:hover {
    > span {
      filter: grayscale(100%);
      transition: filter 0.3s ease;
      &:nth-child(2) {
        padding-left: 20px;
        transition: padding 0.3s ease;
      }
    }
  }
}
.brands-strip {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-around;
  img {
    cursor: pointer;
    max-width: 200px;
    max-height: 100px;
  }
  .brand.inactive img {
    filter: grayscale(100%);
    opacity: 0.5;
    transition:
      filter 0.3s ease,
      opacity 0.4s ease;
  }
  .brand.inactive:hover img {
    opacity: 1;
    filter: grayscale(0%);
  }
}
.reference-close-btn,
.area-close-btn {
  width: 25px;
  margin-top: -70px;
  margin-bottom: 70px;
  cursor: pointer;
}

a {
  text-decoration: none;
  background-color: transparent;
}
.cta-container {
  width: 100%;
  padding-top: 50px;
  a {
    color: #ffffff;
    padding: 5px;
    border: 1px solid #ffffff;
    transition:
      color 0.3s ease,
      background-color 0.3s ease;
    &:hover {
      color: var(--color-principal);
      background-color: #ffffff;
    }
  }
}
#partners {
  .row {
    align-items: flex-start;
  }
}
.column.multiple {
  min-width: 500px;
}
.partner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-top: 10px;
  gap: 20px;
  .cta-container {
    padding: 0;
  }
  h1 {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-secundario);
    margin: 0;
    padding: 0;
  }
  .column {
    flex: 1;
    min-width: 0;
    span {
      flex: 1;
    }
  }
  img {
    width: 220px;
    height: 255px;
    object-fit: cover;
  }
  .cta-container {
    a {
      color: var(--color-principal);
    }
  }
}
.professionals {
  padding: 20px;
  justify-content: space-between;
}
.professional {
  color: var(--color-secundario-ligero);
  img {
    height: 220px;
    object-fit: cover;
    object-position: 50% 0%;
  }
  h1 {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    padding: 0;
  }
  h2 {
    font-size: 11px;
    font-weight: 300;
    margin: 0;
    padding: 0;
  }
  min-width: 30%;
  max-width: 30%;
  gap: 5px;
  .cta-container {
    padding: 0;
    margin: 0;
    a {
      border: 0;
      transition: color 0.3s ease;
      color: var(--color-secundario-ligero);
      padding: 0;
      &:hover {
        background-color: transparent;
        color: #ffffff;
      }
    }
  }
}
.contact-info {
  font-size: 23px;
  line-height: 28px;
  transition: color 0.3s ease;
  cursor: pointer;
  &.row {
    flex-wrap: nowrap;
  }
  .column {
    min-width: 0;
  }
  span {
    text-wrap: initial;
    overflow-wrap: anywhere;
  }
  span:hover {
    color: var(--color-fuente-color);
  }
}
#contact-us > .contenido {
  container-type: inline-size;
}
/* Center the contact info once it wraps below the form:
   2 × 375px column min-width + 20px gap. */
@container (width < 770px) {
  .contact-info {
    justify-content: center;
    text-align: center;
    .column {
      flex: 0 1 auto;
      align-items: center;
    }
  }
}
form {
  border: 1px solid #000000;
  color: var(--color-secundario);
  padding: 24px;
  position: relative;
  .column {
    width: 100%;
  }
  .separator-y {
    width: 1px;
    background-color: #b4b4b4;
  }
  .row {
    align-items: stretch;
    container-type: inline-size;
  }
  /* Hide the separator once its row wraps. Breakpoints follow from the
     min-widths: 375px column + 33% third + 2 gaps + 1px separator, and
     2 × 43% halves + 2 gaps + 1px separator. Update them together. */
  @container (width < 621px) {
    .separator-y:has(+ .third) {
      display: none;
    }
  }
  @container (width < 293px) {
    .separator-y:has(+ .half) {
      display: none;
    }
  }
  .half {
    width: 43%;
    min-width: 43%;
    flex: 0;
    flex-basis: 0;
  }
  .third {
    width: 33%;
    min-width: 33%;
    flex: 0;
    flex-basis: 0;
    gap: 5px;
  }
  textarea {
    border: none;
    outline: none;
    margin-bottom: 25px;
  }
  button {
    position: absolute;
    bottom: 0;
    right: -1px;
    background: #000;
    color: #fff;
    border-radius: 0;
    border: 1px solid black;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    transition:
      color 0.3s ease,
      background-color 0.3s ease;
    &:hover {
      background-color: #fff;
      color: #000000;
    }
    &:disabled {
      background: #666;
      border-color: #666;
      cursor: not-allowed;
      &:hover {
        background-color: #666;
        color: #fff;
      }
    }
  }

  .file-btn {
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
    background: #575858;
    color: #fff;
    font-weight: 300;
    border-radius: 0;
    border: 1px solid #575858;
    width: fit-content;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    transition:
      color 0.3s ease,
      background-color 0.3s ease;
    &:hover {
      background-color: #fff;
      color: #575858;
    }
  }
  .invisible {
    display: none;
  }
  .file-name {
    margin-top: -15px;
    margin-bottom: 10px;
    font-size: 12px;
    overflow-wrap: anywhere;
    &:empty {
      display: none;
    }
    i.fa {
      color: #2e7d32;
      margin-right: 5px;
    }
  }
  .form-message {
    margin-top: 10px;
    font-size: 12px;
    &:empty {
      display: none;
    }
    &.success {
      color: #2e7d32;
    }
    &.error {
      color: var(--color-fuente-color);
    }
  }
}

#work-with-us-form {
  textarea {
    border-bottom: 1px solid black;
  }
}
input {
  width: 100%;
  border: none;
  margin-bottom: 25px;
  border-bottom: 1px solid black;
  outline: none;
}
@media (max-width: 1240px) {
  .contenido {
    width: 900px;
  }
  header {
    nav {
      width: 980px;
    }
  }
  .practice-areas-container {
    > div {
      > span {
        &:nth-child(2) {
          padding-right: 40px;
        }
      }
    }
  }
}

.show-sm {
  display: none;
}
@media (max-width: 1000px) {
  .column.multiple {
    min-width: min(370px, 100%);
  }
  .partner {
    .column {
      gap: 5px;
    }
    span {
      font-size: 11px;
      line-height: 12px;
    }
    img {
      width: 170px;
      height: 210px;
      object-fit: cover;
    }
  }
  .contenido.quote {
    padding: 160px 40px;
  }
  .contenido {
    width: 780px;
  }
  header {
    nav {
      width: 780px;
    }
  }
  .practice-areas-container {
    > div {
      width: 50%;
      > span {
        &:nth-child(2) {
          padding-right: 60px;
        }
      }
    }
  }
}

@media (max-width: 900px) {
  .contenido {
    width: 100%;
    padding: 50px 15px;
  }
}
@media (max-width: 800px) {
  .professional {
    min-width: 220px;
    max-width: 50%;
  }
  .column.multiple {
    width: 100%;
  }
  .partner {
    padding: 0 20px;
    .column {
      gap: 20px;
    }
    h1 {
      color: var(--color-fuente-color);
      font-size: 24px;
    }
    span {
      font-size: 14px;
      line-height: 12px;
    }
  }
  .reference-close-btn,
  .area-close-btn {
    margin-top: 0;
    margin-bottom: 0px;
    padding-bottom: 20px;
  }
  .contenido {
    width: 100%;
    padding: 50px 15px;
  }
  header {
    nav {
      width: 100%;
      padding-left: 15px;
      padding-right: 15px;
    }
  }
  .contenido.quote {
    text-align: left;
    padding: 90px 15px;
    h1 {
      width: 100%;
      font-size: 34px;
    }
    span {
      width: 100%;
      font-size: 26px;
    }
  }
  .practice-areas-container {
    > div {
      width: 100%;
    }
  }
}

@media (max-width: 500px) {
  .professional {
    max-width: 100%;
  }
  .partner {
    padding: 0 20px;
    .column {
      gap: 10px;
    }
    img {
      height: auto;
      width: 100%;
      aspect-ratio: 335 / 300;
      object-fit: cover;
      object-position: 50% 20%;
    }
    h1 {
      color: var(--color-fuente-color);
      font-size: 24px;
    }
    span {
      font-size: 14px;
      line-height: 12px;
    }
  }
  .practice-areas-container {
    > div > span:nth-child(2) {
      padding-right: 0;
    }
  }
  .hide-sm {
    display: none;
  }
  .show-sm {
    display: flex;
  }
}
