/* Corporefugio: variables compartidas para la futura integración en Textpattern. */
:root {
    --navy: #092e3d;
    --ink: #12303d;
    --ivory: #f5f2eb;
    --green: #46613d;
    --sage: #afbe8b;
    --clay: #b94d16;
    --line: #d9d8cf;
    --body: Arial, Helvetica, sans-serif;
    --display: Georgia, 'Times New Roman', serif
}

* {
    box-sizing:border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top:24px
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height:1.65
}

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

a:hover {
    text-decoration: underline;
    text-underline-offset:5px
}

button {
    font:inherit
}

img {
    max-width: 100%;
    display: block;
    height:auto
}

figure {
    margin:0
}

h1, h2, h3, p {
    margin:0
}

h1, h2, .field-copy h3 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing:-.035em
}

h2 {
    font-size:clamp(32px, 3vw, 46px)
}

p + p {
    margin-top:18px
}

em {
    font-style: normal;
    color:var(--green)
}

.wrap {
    width: min(1280px, 88%);
    margin-inline:auto
}

.section {
    padding-block:88px
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--green);
    margin-bottom:26px
}

.eyebrow:after {
    content: '';
    display: block;
    width: 30px;
    border-bottom: 2px solid currentColor;
    margin-top:14px
}

.lead {
    font-size: 20px;
    line-height:1.5
}

.text-link {
    display: inline-flex;
    gap: 22px;
    color: var(--clay);
    margin-top: 26px;
    font-size:14px
}

.button {
    min-height: 48px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    font-size: 14px;
    border: 1px solid transparent;
    line-height: 1.5;
    transition:background .2s, color .2s
}

.button:hover {
    text-decoration: none;
    background: #953b12;
    color:white
}

.button span[aria-hidden="true"],
.text-link span[aria-hidden="true"] {
    position:relative;
    display:inline-block;
    flex:0 0 18px;
    width:18px;
    height:18px;
    align-self:center;
    font-size:0;
    line-height:0
}

.button span[aria-hidden="true"]:before,
.text-link span[aria-hidden="true"]:before {
    content:'';
    position:absolute;
    left:2px;
    top:8px;
    width:14px;
    height:1px;
    background:currentColor;
    transform:rotate(-45deg);
    transform-origin:center
}

.button span[aria-hidden="true"]:after,
.text-link span[aria-hidden="true"]:after {
    content:'';
    position:absolute;
    top:2px;
    right:2px;
    width:7px;
    height:7px;
    border-top:1px solid currentColor;
    border-right:1px solid currentColor
}

.primary {
    background: var(--clay);
    color:white
}

.light {
    border-color: #c5cecb;
    color:white
}

.light:hover {
    background: var(--ivory);
    color:var(--navy)
}

.outline {
    border-color: var(--clay);
    color:var(--clay)
}

a:focus-visible, button:focus-visible {
    outline: 3px solid #e3a84c;
    outline-offset:5px
}

.skip {
    position: fixed;
    left: 12px;
    top: -100px;
    background: white;
    padding: 10px;
    z-index:100
}

.skip:focus {
    top:12px
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: 710px;
    color: white;
    background: var(--navy);
    overflow:hidden
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 64%;
    z-index:-3
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: rgba(4, 27, 39, .47);
    z-index:-2
}

.contours {
    position: absolute;
    inset: 0;
    background: url('assets/relieve.webp') left center/cover;
    opacity: .38;
    mix-blend-mode: screen;
    z-index: -1;
    pointer-events:none
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 30px;
    gap:30px
}

.brand {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink:0
}

.brand img {
    width: 78px;
    height:auto
}

.brand span {
    font-size: 12px;
    line-height:1.35
}

.masthead nav {
    display: flex;
    gap: clamp(12px, 1.5vw, 24px);
    align-items: center;
    font-size:14px
}

.masthead nav a {
    white-space:nowrap
}

.nav-contact {
    color: #ffad6e;
    border-left: 1px solid #ffffff55;
    padding-left:clamp(12px, 1.5vw, 24px)
}

.hero-content {
    padding-block:45px 58px
}

.hero-label {
    color: #d4d8c9;
    margin-bottom:20px
}

.hero-label:after {
    display:none
}

h1 {
    font-size: clamp(49px, 5.65vw, 82px);
    max-width: 820px;
    line-height: 1.02;
    letter-spacing: -.045em;
    text-shadow:0 2px 20px #092e3d44
}

h1 em {
    color:#c2ce9c
}

.hero-intro {
    font-size: 18px;
    line-height: 1.5;
    max-width: 540px;
    margin-top:28px
}

.actions {
    display: flex;
    gap: 18px;
    margin-top: 30px;
    flex-wrap:wrap
}

.hero-location {
    font-size: 12px;
    letter-spacing: .08em;
    margin-top: 34px !important;
    color:#e3e4d9
}

.work {
    display: grid;
    grid-template-columns: 1.2fr 2.8fr;
    gap:60px
}

.section-intro p:not(.eyebrow) {
    font-size: 14px;
    max-width: 350px;
    margin-top:24px
}

.section-intro h2 {
    font-size:34px
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top:10px
}

.work-grid article {
    padding: 0 22px;
    border-left:1px solid var(--line)
}

.number {
    font-family: var(--display);
    font-size: 37px;
    color: var(--green);
    line-height:1
}

.work-grid h3 {
    font-size: 17px;
    line-height: 1.4;
    margin-block: 25px 20px;
    min-height: 48px;
    font-weight: 600;
    letter-spacing:-.03em
}

.work-grid h3:after {
    content: '';
    display: block;
    width: 25px;
    border-bottom: 2px solid var(--clay);
    margin-top:20px
}

.work-grid p {
    font-size: 13px;
    line-height:1.8
}

.territory {
    border-block: 1px solid var(--line);
    background:#eeeae2
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: end;
    margin-bottom:42px
}

.section-heading > p {
    max-width: 490px;
    font-size:16px
}

.panorama img {
    width: 100%;
    height:auto
}

.panorama figcaption, figure figcaption {
    font-size: 11px;
    color: #52636a;
    line-height: 1.6;
    margin-top:12px
}

.field-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 90px;
    align-items: center;
    margin-top:55px
}

.field-grid + .field-grid {
    margin-top:70px;
    padding-top:70px;
    border-top:1px solid var(--line)
}

.field-grid--reverse {
    grid-template-columns:1.15fr .85fr
}

.field-grid--reverse .field-copy {
    order:1
}

.field-grid--reverse figure {
    order:2;
    justify-self:end
}

.field-grid figure {
    max-width:440px
}

.field-grid img {
    width: 100%;
    aspect-ratio: 1.2;
    object-fit: cover;
    object-position:center 35%
}

.field-copy h3 {
    font-size: 37px;
    margin-bottom:24px
}

.field-copy > p:not(.eyebrow) {
    max-width:540px
}

.aroma {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-block: 100px;
    background:#f7f4ed
}

.aroma-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 85px;
    align-items:center
}

.aroma h2 {
    font-size:clamp(37px, 4vw, 59px)
}

.aroma-logo {
    display:block;
    width:min(100%, 340px);
    height:auto;
    margin-top:34px
}

.aroma .eyebrow {
    color:var(--clay)
}

.aroma .button {
    margin-top:28px
}

.watermark {
    position: absolute;
    width: 570px;
    right: -100px;
    bottom: -30px;
    opacity: .08;
    pointer-events: none;
    z-index:-1
}

.aroma .watermark {
    filter:brightness(0)
}

.cooperations {
    position:relative;
    overflow:hidden;
    background:var(--navy);
    color:var(--ivory)
}

.cooperations:after {
    content:'';
    position:absolute;
    width:420px;
    height:420px;
    right:-190px;
    top:-210px;
    border:1px solid #afbe8b2b;
    border-radius:50%;
    box-shadow:0 0 0 70px #afbe8b12, 0 0 0 140px #afbe8b0a;
    pointer-events:none
}

.cooperations-heading {
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:85px;
    align-items:end;
    margin-bottom:62px
}

.cooperations .eyebrow {
    color:var(--sage)
}

.cooperations-heading > p {
    max-width:520px;
    color:#d7dfdc
}

.cooperation-route {
    --route-gap:22px;
    position:relative;
    display:grid;
    grid-template-columns:repeat(6, minmax(0, 1fr));
    gap:var(--route-gap);
    list-style:none;
    margin:0;
    padding:0
}

.cooperation-route:before {
    content:'';
    position:absolute;
    left:9%;
    right:9%;
    top:33px;
    border-top:1px solid #afbe8b80
}

.cooperation-stop {
    position:relative;
    min-width:0
}

.cooperation-number {
    display:block;
    margin-bottom:14px;
    font-family:var(--display);
    font-size:16px;
    line-height:1;
    color:var(--sage)
}

.cooperation-node {
    position:relative;
    z-index:1;
    display:block;
    width:11px;
    height:11px;
    margin:0 0 24px 2px;
    border:2px solid var(--navy);
    border-radius:50%;
    background:var(--clay);
    box-shadow:0 0 0 1px var(--sage)
}

.cooperation-card {
    display:flex;
    min-height:178px;
    padding:20px;
    flex-direction:column;
    justify-content:space-between;
    border:1px solid #ffffff24;
    background:#f5f2eb;
    color:var(--ink);
    transition:transform .2s, border-color .2s
}

.cooperation-card:hover {
    transform:translateY(-5px);
    border-color:var(--sage);
    text-decoration:none
}

.cooperation-mark {
    display:flex;
    height:86px;
    align-items:center;
    justify-content:center
}

.cooperation-mark img {
    width:auto;
    max-width:150px;
    max-height:70px;
    object-fit:contain
}

.cooperation-mark--tall img {
    max-height:84px
}

.cooperation-mark--square img {
    max-height:82px
}

.cooperation-name {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-top:15px;
    border-top:1px solid var(--line);
    font-size:12px;
    line-height:1.4;
    color:#52636a
}

.cooperation-name:after {
    content:'\2197\FE0E';
    font-family:Arial, Helvetica, sans-serif;
    font-size:16px;
    font-weight:400;
    color:var(--clay)
}

.cooperations-review {
    margin-top:28px;
    font-size:12px;
    color:#9fb1ad
}

 .news {
    border-top: 1px solid var(--line);
    background: var(--ivory);
  }

  .news-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 32px;
  }

  .news-heading .eyebrow {
    margin-bottom: 18px;
  }

  .news-track {
    display: grid;
    grid-auto-flow: column;
    /* Dos tarjetas completas y una parte de la siguiente invitan a continuar. */
    grid-auto-columns: calc((100% - 48px) / 2.3);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--green) var(--line);
  }

  .news-track:focus-visible {
    outline: 3px solid var(--clay);
    outline-offset: 6px;
  }

  .news-card {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    scroll-snap-align: start;
  }

  .news-card:nth-child(2) {
    border-top-color: var(--clay);
  }

  .news-card:nth-child(3) {
    border-top-color: var(--navy);
  }

  .news-category {
    color: var(--green);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 20px;
  }

  .news-card h3 {
    font-family: var(--display);
    font-size: 27px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.025em;
    margin-bottom: 18px;
  }

  .news-card p:not(.news-category) {
    font-size: 14px;
    line-height: 1.75;
  }

  .news-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green);
    margin-top: 8px;
  }

  .news-hint-arrow {
    position: relative;
    display: block;
    flex: 0 0 72px;
    width: 72px;
    height: 14px;
  }

  .news-hint-arrow:before {
    content: '';
    position: absolute;
    left: 0;
    right: 1px;
    top: 7px;
    height: 1px;
    background: currentColor;
  }

  .news-hint-arrow:after {
    content: '';
    position: absolute;
    right: 1px;
    top: 3px;
    width: 8px;
    height: 8px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
  }

  @media (max-width: 1000px) {
    .news-track {
      grid-auto-columns: 44%;
    }

  }

  @media (max-width: 760px) {
    .news-track {
      grid-auto-columns: 70%;
      gap: 16px;
    }

    .news-card {
      padding: 24px;
    }

    .news-card h3 {
      font-size: 25px;
    }

    .news-hint {
      justify-content: space-between;
      gap: 12px;
    }

    .news-hint-arrow {
      flex-basis: 54px;
      width: 54px;
    }
  }
  
  .news-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 24px;
  border-radius: 2px;
}

.about {
    border-top:1px solid var(--line)
}

.team {
    margin-top:75px;
    padding-top:65px;
    border-top:1px solid var(--line)
}

.team-heading {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:40px;
    margin-bottom:32px
}

.team-heading h3 {
    max-width:560px;
    font-family:var(--display);
    font-size:36px;
    font-weight:400;
    line-height:1.12;
    letter-spacing:-.03em
}

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

.team-card {
    display:flex;
    flex-direction:column;
    min-width:0;
    overflow:hidden;
    background:#fff;
    border:1px solid var(--line);
    border-top:3px solid var(--green)
}

.team-card:nth-child(2) {
    border-top-color:var(--clay)
}

.team-card:nth-child(3) {
    border-top-color:var(--navy)
}

.team-card:nth-child(4) {
    border-top-color:var(--sage)
}

.team-card > img {
    display:block;
    width:100%;
    aspect-ratio:1;
    object-fit:cover
}

.team-card-copy {
    display:flex;
    flex:1;
    flex-direction:column;
    padding:24px 22px 26px
}

.team-card h4 {
    font-family:var(--display);
    font-size:24px;
    font-weight:400;
    line-height:1.15;
    letter-spacing:-.02em
}

.team-role {
    min-height:38px;
    margin-top:10px;
    color:var(--green);
    font-size:11px;
    font-weight:600;
    line-height:1.45;
    letter-spacing:.09em;
    text-transform:uppercase
}

.team-card-copy > p:last-child {
    margin-top:20px;
    font-size:13px;
    line-height:1.75
}

.about .panorama {
    margin-top:70px
}

.footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy);
    color: #f5f2eb;
    padding-block:70px 24px
}

.footer .eyebrow {
    color:var(--sage)
}

.contact-heading {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ffffff25;
    padding-bottom: 50px;
    margin-bottom:45px
}

.contact-heading h2 {
    font-size:40px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr .6fr;
    gap: 50px;
    align-items:start
}

.footer address {
    font-style: normal;
    font-size: 14px;
    line-height: 2;
    overflow-wrap:anywhere
}

.footer nav {
    display: grid;
    gap: 7px;
    font-size:13px
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 55px;
    padding-top: 20px;
    border-top: 1px solid #ffffff25;
    font-size: 11px;
    color:#bdcbc9
}

.menu-toggle {
    display: none;
    background: transparent;
    color: white;
    border: 1px solid #ffffff88;
    padding: 7px 15px;
    cursor:pointer
}

.menu-toggle[hidden] {
    display: none
}

@media (min-width: 1600px) {
    .hero {
        min-height:800px
    }

    .hero-content {
        padding-top: 70px
    }
}

@media (max-width: 1100px) {
    .masthead {
        flex-wrap:wrap
    }

    .masthead nav {
        width:100%;
        justify-content:space-between;
        gap:18px
    }

    .brand span {
        max-width:130px
    }

    .work {
        gap: 32px;
        grid-template-columns:1fr
    }

    .team-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .work-grid article:first-child {
        border-left: 0;
        padding-left:0
    }

    .section-intro h2 br {
        display:none
    }

    .section-intro p:not(.eyebrow) {
        max-width:650px
    }

    .work-grid {
        margin-top:12px
    }

    .field-grid, .section-heading, .aroma-grid {
        gap:45px
    }

    .cooperations-heading {
        gap:45px
    }

    .cooperation-route {
        grid-template-columns:repeat(6, 190px);
        overflow-x:auto;
        padding-bottom:18px;
        scroll-snap-type:x mandatory;
        scrollbar-width:thin;
        scrollbar-color:var(--sage) #ffffff1c
    }

    .cooperation-stop {
        scroll-snap-align:start
    }

    .cooperation-route:before {
        left:4px;
        right:auto;
        width:calc(1140px + (5 * var(--route-gap)))
    }

    .hero {
        min-height: 670px
    }
}

@media (max-width: 760px) {
    .wrap {
        width:88%
    }

    .section {
        padding-block:55px
    }

    .masthead {
        flex-wrap: wrap;
        padding-block: 22px;
        gap:20px
    }

    .brand {
        gap:13px
    }

    .brand img {
        width:58px
    }

    .brand span {
        font-size: 10px;
        max-width:145px
    }

    .menu-toggle:not([hidden]) {
        display:block
    }

    .masthead nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content:flex-start;
        gap: 8px 24px;
        padding: 12px 0;
        font-size:14px
    }

    .js .masthead nav {
        display:none
    }

    .js .masthead nav.is-open {
        display:flex
    }

    .masthead nav a {
        padding-block:8px
    }

    .nav-contact {
        padding-left: 0;
        border:0
    }

    .hero {
        min-height:690px
    }

    .hero-photo {
        object-position:64% center
    }

    .hero-shade {
        background:rgba(4, 27, 39, .64)
    }

    .hero-content {
        padding-block:37px 50px
    }

    h1 {
        font-size:clamp(42px, 9.6vw, 66px)
    }

    .hero-intro {
        font-size: 16px;
        max-width:360px
    }

    .desktop-break {
        display:none
    }

    .hero-label {
        font-size: 9px;
        letter-spacing:.15em
    }

    .actions {
        gap:12px
    }

    .button {
        font-size: 13px;
        min-height:48px
    }

    .hero-location {
        font-size:10px
    }

    .work-grid {
        grid-template-columns: 1fr 1fr;
        gap:32px 0
    }

    .work-grid article {
        padding-inline:18px
    }

    .work-grid article:nth-child(odd) {
        padding-left: 0;
        border:0
    }

    .work-grid h3 {
        font-size:16px
    }

    .work-grid p {
        font-size:13px
    }

    .section-heading, .field-grid, .aroma-grid {
        grid-template-columns: 1fr;
        gap:28px
    }

    .team {
        margin-top:50px;
        padding-top:45px
    }

    .team-heading {
        display:block;
        margin-bottom:26px
    }

    .team-heading h3 {
        margin-top:18px;
        font-size:31px
    }

    .team-heading h3 br {
        display:none
    }

    .team-grid {
        grid-template-columns:1fr;
        gap:18px
    }

    .team-role {
        min-height:0
    }

    .about .panorama {
        margin-top:50px
    }

    .cooperations-heading {
        grid-template-columns:1fr;
        gap:24px;
        margin-bottom:42px
    }

    .cooperations-heading h2 br {
        display:none
    }

    .cooperation-route {
        width:calc(100% + 6vw);
        grid-template-columns:repeat(6, min(76vw, 250px));
        gap:16px
    }

    .cooperation-route:before {
        width:calc((6 * min(76vw, 250px)) + 80px)
    }

    .cooperation-card {
        min-height:170px
    }

    .section-heading {
        margin-bottom:28px
    }

    .section-heading h2 br {
        display:none
    }

    .field-grid {
        margin-top:35px
    }

    .field-grid + .field-grid {
        margin-top:45px;
        padding-top:45px
    }

    .field-grid--reverse figure {
        order:initial;
        justify-self:stretch
    }

    .field-grid--reverse .field-copy {
        order:initial
    }

    .field-grid figure {
        max-width:none
    }

    .field-grid img {
        aspect-ratio:1.25
    }

    .field-copy h3 {
        font-size:32px
    }

    .field-copy h3 br {
        display:none
    }

    .panorama img {
        min-height: 165px;
        object-fit:cover
    }

    .panorama figcaption {
        font-size:10px
    }

    .aroma h2 {
        font-size:40px
    }

    .aroma-grid {
        gap:25px
    }

    .aroma-logo {
        width:min(82%, 300px);
        margin-top:26px
    }

    .lead {
        font-size:18px
    }

    .watermark {
        width:5	70px
    }

    .contact-heading {
        display: block;
        padding-bottom: 35px;
        margin-bottom:35px
    }

    .contact-heading h2 {
        font-size:34px
    }

    .contact-heading .button {
        margin-top:28px
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap:30px
    }

    .footer nav {
        grid-template-columns:1fr 1fr
    }

    .footer-bottom {
        gap: 20px;
        align-items:start
    }

    .footer-bottom a {
        white-space:nowrap
    }

    .footer {
        padding-top:55px
    }

    .footer .brand img {
        width:70px
    }

    .footer .brand span {
        font-size: 12px;
        max-width: none
    }
}

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

    * {
        transition: none !important
    }
}
