@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
    --ink: #172225;
    --muted: #637073;
    --paper: #f7f6f1;
    --white: #fff;
    --aqua: #55bfd2;
    --pale-aqua: #e8f3f4;
    --dark: #0d272b;
    --line: #dfe5e4;
    --page: 1280px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px
}

img {
    display: block;
    max-width: 100%
}

a {
    color: inherit
}

.page-width {
    width: min(var(--page), calc(100% - 96px));
    margin-inline: auto
}

.section {
    padding-block: 96px
}

.site-header {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px max(48px, calc((100% - var(--page))/2));
    background: rgba(247, 246, 241, .98);
    position: relative;
    z-index: 20
}

.brand img {
    width: 205px
}

.site-nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px
}

.site-nav a {
    text-decoration: none
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: #238ca0
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    padding: 8px
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--ink)
}

.hero {
    min-height: 820px;
    position: relative;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center
}

.hero-media,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.hero-media {
    object-fit: cover;
    object-position: center
}

.hero-shade {
    background: linear-gradient(90deg, rgba(9, 28, 31, .86) 0%, rgba(9, 28, 31, .68) 32%, rgba(9, 28, 31, .14) 72%)
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-block: 72px
}

.eyebrow {
    margin: 0 0 28px;
    color: var(--aqua);
    font-size: 13px;
    font-weight: 700;
    line-height: 19.5px;
    letter-spacing: 0;
    text-transform: uppercase
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    max-width: 718px;
    margin-bottom: 42px;
    font-size: clamp(56px, 6.7vw, 96px);
    line-height: 94.08px;
    font-weight: 300;
    letter-spacing: 0
}

h2 {
    font-size: clamp(38px, 4vw, 58px);
    line-height: 59.74px;
    letter-spacing: 0
}

h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 25.96px;
    letter-spacing: 0
}

.hero-copy {
    max-width: 865px;
    margin-bottom: 54px;
    color: rgba(255, 255, 255, .86);
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 36px;
    font-weight: 300;
    line-height: 36px;
    letter-spacing: 0
}

.button {
    display: inline-flex;
    justify-content: center;
    min-width: 145px;
    padding: 13px 20px;
    border-radius: 6px;
    background: var(--aqua);
    color: #0a333a;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    text-align: center;
    text-decoration: none
}

.approach {
    background: var(--paper)
}

.section-heading {
    max-width: 960px;
    margin: 0 auto 50px;
    text-align: center
}

.section-heading h2 {
    font-weight: 300
}

.section-heading>p:last-child {
    max-width: 875px;
    margin: 36px auto 0;
    color: var(--ink);
    font-size: 24px;
    font-weight: 300;
    line-height: 59.74px
}

.approach .eyebrow,
.services .eyebrow,
.certifications .eyebrow {
    font-size: 20px;
    line-height: 19.5px
}

.principles {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px
}

.principles article,
.service-grid article {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
    box-shadow: 0 12px 28px rgba(20, 34, 37, .08)
}

.principles article {
    min-height: 220px
}

.principles h3 {
    margin-bottom: 28px
}

.principles p,
.service-grid p,
.story-copy p,
.profile-copy p {
    color: var(--muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px
}

.story {
    padding-top: 70px;
    padding-bottom: 110px
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr .92fr;
    gap: 84px;
    align-items: center
}

.story-image {
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(20, 34, 37, .18)
}

.story-image img {
    width: 100%;
    aspect-ratio: 1.52;
    object-fit: cover
}

.story-copy h2 {
    margin-bottom: 22px;
    font-weight: 300
}

.story-copy>p {
    max-width: 600px;
    font-size: 24px;
    font-weight: 300;
    line-height: 24px
}

.story-copy ul {
    list-style: none;
    padding: 0;
    margin: 22px 0 0
}

.story-copy li {
    position: relative;
    padding: 9px 0 9px 27px;
    border-top: 1px solid var(--line);
    color: #4d5b5d;
    font-size: 20px;
    font-weight: 300;
    line-height: 24px
}

.story-copy li::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 15px;
    background: var(--section-accent, #7c9e91)
}

.services {
    background: var(--pale-aqua)
}

.services-heading {
    margin-bottom: 46px
}

.services-heading h2 {
    font-weight: 700
}

.service-grid {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.service-grid article {
    min-height: 330px;
    padding: 26px
}

.service-grid p {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px
}

.service-grid .succession {
    grid-column: 1/-1;
    min-height: 0;
    background: var(--aqua);
    color: #fff;
    border-color: var(--aqua)
}

.succession h3 {
    margin-bottom: 26px
}

.service-grid .succession p {
    color: rgba(255, 255, 255, .74);
    font-size: 20px;
    font-weight: 300;
    line-height: 24px
}

.profile {
    background: #fff;
    padding-block: 90px
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.28fr .72fr;
    gap: 80px;
    align-items: center
}

.profile-copy h2 {
    margin-bottom: 42px;
    font-weight: 700
}

.profile-copy .role {
    color: #208799;
    font-weight: 700
}

.profile-copy p {
    max-width: 750px;
    margin-bottom: 24px
}

.profile-image {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(20, 34, 37, .18)
}

.profile-image img {
    width: 100%;
    aspect-ratio: .85;
    object-fit: cover;
    object-position: center top
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    color: #208799;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-underline-offset: 4px
}

.gallery {
    display: grid;
    grid-template-columns: .78fr 1.08fr .82fr 1.1fr;
    gap: 8px;
    padding: 18px 32px;
    background: var(--paper)
}

.gallery img {
    width: 100%;
    height: 360px;
    object-fit: cover
}

.gallery img:nth-child(1) {
    object-position: center 44%
}

.gallery img:nth-child(2) {
    object-position: center 28%
}

.gallery img:nth-child(3),
.gallery img:nth-child(4) {
    object-position: center
}

.certifications {
    padding-block: 100px 140px
}

.cert-heading {
    max-width: 700px
}

.cert-heading h2 {
    font-weight: 700
}

.cert-grid {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px
}

.cert-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(20, 34, 37, .05)
}

.contact {
    min-height: 650px;
    display: flex;
    align-items: center;
    background: var(--dark);
    color: #fff
}

.contact-inner {
    padding-left: min(16vw, 250px)
}

.contact-label {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 700;
    line-height: 19.5px;
    text-transform: uppercase
}

.contact h2 {
    max-width: 550px;
    margin-bottom: 34px;
    font-weight: 700
}

.contact-inner>p:not(.contact-label) {
    max-width: 500px;
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    line-height: 24px
}

.contact-links {
    display: grid;
    gap: 20px;
    margin-top: 30px
}

.contact-links a {
    width: max-content;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-underline-offset: 4px
}

.whatsapp-float {
    position: fixed;
    z-index: 30;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    padding: 10px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25)
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.footer {
    min-height: 92px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    padding: 20px max(48px, calc((100% - var(--page))/2));
    background: #132326;
    color: rgba(255, 255, 255, .75);
    font-size: 16px;
    line-height: 24px
}

.footer>img {
    width: 170px;
    filter: brightness(1.15)
}

.footer nav {
    display: flex;
    gap: 20px
}

.footer nav a {
    color: #fff;
    font-weight: 700;
    text-decoration: none
}

.footer p {
    margin: 0;
    justify-self: end
}

@media(max-width:980px) {
    .page-width {
        width: min(100% - 48px, var(--page))
    }

    .site-header {
        padding-inline: 24px;
        position: sticky;
        top: 0
    }

    .nav-toggle {
        display: block
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 18px;
        background: var(--paper);
        box-shadow: 0 12px 22px rgba(20, 34, 37, .1)
    }

    .site-nav.is-open {
        display: flex
    }

    .site-nav a {
        padding: 14px 0;
        border-top: 1px solid var(--line)
    }

    .principles,
    .service-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .service-grid .succession {
        grid-column: 1/-1
    }

    .story-grid,
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 44px
    }

    .profile-image {
        max-width: 560px;
        justify-self: center
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr)
    }

    .gallery img {
        height: auto;
        object-fit: contain;
        object-position: center
    }

    .footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center
    }

    .footer p {
        justify-self: center
    }
}

@media(max-width:600px) {
    .page-width {
        width: calc(100% - 36px)
    }

    .section {
        padding-block: 64px
    }

    .brand img {
        width: 170px
    }

    .hero {
        min-height: 690px;
        align-items: end
    }

    .hero-media {
        object-position: 58% center
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(9, 28, 31, .25), rgba(9, 28, 31, .92) 74%)
    }

    .hero-content {
        padding-bottom: 52px
    }

    h1 {
        font-size: clamp(43px, 13vw, 62px);
        line-height: 1.02
    }

    h2 {
        font-size: 36px;
        line-height: 1.08
    }

    .hero-copy {
        font-size: 20px;
        line-height: 25px
    }

    .section-heading h2 br,
    .services-heading h2 br,
    .cert-heading h2 br {
        display: none
    }

    .section-heading>p:last-child {
        font-size: 16px;
        line-height: 1.6
    }

    .principles,
    .service-grid {
        grid-template-columns: 1fr
    }

    .principles article,
    .service-grid article {
        min-height: 0
    }

    .service-grid .succession {
        grid-column: auto
    }

    .story {
        padding-top: 28px
    }

    .story-copy h2 br {
        display: none
    }

    .story-image img,
    .profile-image img {
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: center
    }

    .gallery {
        grid-template-columns: 1fr;
        padding: 8px;
        gap: 12px
    }

    .gallery img {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: center
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .cert-grid img:last-child {
        grid-column: 1/-1;
        width: 50%;
        justify-self: center
    }

    .contact {
        min-height: 610px
    }

    .contact-inner {
        padding-left: 0
    }

    .contact h2 {
        font-size: 42px
    }

    .footer {
        padding-inline: 24px
    }
}

/* Contenido dinámico */
.hero h1 { white-space: normal; max-width: 760px; }
.story-grid.image-right .story-image { order: 2; }
.story-grid.image-right .story-copy { order: 1; }
.story-copy p { white-space: pre-line; }
.custom-section { background: #fff; }
.custom-section .page-width { max-width: 900px; }
.custom-section h2 { margin-bottom: 1.5rem; }
.admin-link { color: inherit; opacity: .48; font-size: .75rem; }
@media (max-width: 760px) { .story-grid.image-right .story-image, .story-grid.image-right .story-copy { order: initial; } }

/* Tema administrable */
body, .hero-copy { font-family: var(--site-font, "Inter", Arial, Helvetica, sans-serif); }
h1, .section-heading h2, .story-copy h2 { font-weight: var(--heading-weight, 300); }
.service-grid article:last-child:nth-child(5) { grid-column: 1/-1; min-height: 0; background: var(--aqua); color: #fff; border-color: var(--aqua); }
.service-grid article:last-child:nth-child(5) p { color: rgba(255,255,255,.78); font-size: 20px; font-weight: 300; }
@media (max-width: 760px) {
  .hero-media { object-position: center center; }
  .story-image img, .profile-image img { object-fit: contain; background: #fff; }
  .gallery img { object-position: center; }
}
