* {
    box-sizing: border-box;
    font-family: "Rubik", sans-serif;
}

body {
    margin: 0;
    color: #252b30;
}

.site-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding-right: 2rem;
    padding-left: 2rem;
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    background-color: #14588d;
}

.site-header .navbar {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.site-header .navbar > .site-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: none;
}

.site-header .navbar-links {
    flex: 0 0 auto;
    margin-left: auto;
}

.site-header .navbar-nav {
    column-gap: 1.25rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .site-header .navbar-links {
        flex: 0 0 100%;
        margin-left: 0;
        order: 1;
    }

    .site-header .navbar-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .site-header .navbar-nav .nav-link {
        text-align: left;
    }
}

.navbar-brand {
    color: #fff;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: #fff;
}

.navbar-brand-copy {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.1;
}

.navbar .navbar-nav .nav-link {
    color: #fff;
    font-weight: 400;
}

.navbar .navbar-nav .nav-link.active {
    color: #fff;
    font-weight: 700;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.navbar .navbar-nav .nav-link:focus-visible,
.navbar-brand:focus-visible,
.navbar-toggler:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.navbar-toggler {
    border-color: #fff;
}

.home-page {
    min-height: 100vh;
    background: #fff;
}

.home-hero {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: calc(100vh - 85.2px);
    min-height: calc(100svh - 85.2px);
    align-items: stretch;
    justify-content: center;
}

.home-hero-background {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image: url("../assets/imgs/todos_azules_resize.webp");
    background-size: cover;
    background-position: center top;
    transform: scale(1);
    transform-origin: center top;
    will-change: transform;
}

.home-hero::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    content: "";
}

.home-hero-layout {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 4rem 2rem;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center;
}

.home-eyebrow {
    margin: 0 0 1.1rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.home-hero h1 {
    margin: 0 0 1.25rem;
    color: #fff;
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    font-weight: 600;
    line-height: 1.12;
}

.home-hero h1 span {
    color: #fff;
}

.home-intro {
    max-width: 700px;
    margin: 0;
    color: #f5f5f5;
    font-size: 1.3rem;
    line-height: 1.8;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.4rem;
}

.home-primary-button {
    display: inline-block;
    padding: 0.7rem 1rem;
    border: 2px solid #fff;
    background-color: transparent;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

.home-primary-button:hover,
.home-primary-button:focus-visible {
    background-color: #fff;
    color: #14588d;
}

.home-primary-button:focus-visible,
.home-section-card:focus-visible {
    outline: 2px solid #14588d;
    outline-offset: 4px;
}

.home-sections {
    padding-top: 64px;
    padding-bottom: 4.5rem;
}

.home-sections-heading {
    margin-bottom: 1rem;
}

.home-sections-heading h2 {
    margin: 0;
    color: #252b30;
    font-size: 1.4rem;
    font-weight: 600;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.home-section-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 1rem 0;
    border-top: 2px solid #d6e2eb;
    color: #252b30;
    text-decoration: none;
}

.home-card-title {
    color: #14588d;
    font-size: 1.1rem;
    font-weight: 600;
}

.home-card-title span {
    margin-left: 0.2rem;
}

.home-section-card:hover .home-card-title,
.home-section-card:focus-visible .home-card-title {
    text-decoration: none;
}

.home-section-card:hover,
.home-section-card:focus-visible {
    border-color: #14588d;
}

.home-card-description {
    color: #4b5359;
    font-size: 16px;
    line-height: 1.6;
}

.site-footer {
    padding: 1.25rem 0;
    background-color: #f5f5f5;
    color: #454b50;
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-page {
    padding-top: 64px;
    padding-bottom: 80px;
}

.about-title {
    margin: 0 0 1.5rem;
    color: #252b30;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.12;
}

.about-title span:last-child {
    color: #14588d;
}

.team-page {
    padding-top: 64px;
    padding-bottom: 80px;
}

.team-heading {
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.team-eyebrow,
.team-number {
    margin: 0 0 0.6rem;
    color: #14588d;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.team-title {
    margin: 0 0 1rem;
    color: #252b30;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.12;
}

.team-title span {
    color: #14588d;
}

.team-intro {
    margin: 0;
    color: #252b30;
    font-size: 1.2rem;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
}

.team-card {
    overflow: hidden;
    border-top: 2px solid #d6e2eb;
    background-color: #fff;
}

.team-photo-placeholder {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(145deg, #eaf2f8, #d6e6f1);
    color: #14588d;
}

.team-photo-silhouette {
    position: relative;
    display: block;
    width: 112px;
    height: 126px;
}

.team-photo-silhouette::before,
.team-photo-silhouette::after {
    position: absolute;
    left: 50%;
    display: block;
    background-color: #9abbd3;
    content: "";
    transform: translateX(-50%);
}

.team-photo-silhouette::before {
    top: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
}

.team-photo-silhouette::after {
    bottom: 0;
    width: 112px;
    height: 58px;
    border-radius: 58px 58px 0 0;
}

.team-photo-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.team-card-copy {
    padding: 1.25rem 0 0;
}

.team-card-copy .team-number {
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
}

.team-card-copy h2 {
    margin: 0 0 0.6rem;
    color: #252b30;
    font-size: 1.35rem;
    font-weight: 600;
}

.team-card-copy > p:last-child {
    margin: 0;
    color: #4b5359;
    line-height: 1.7;
}

.about-intro {
    max-width: 680px;
    margin: 0 0 2rem;
    color: #252b30;
    font-size: 1.25rem;
    line-height: 1.7;
}

.about-carousel {
    margin-bottom: 3rem;
}

.about-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.about-carousel-track::-webkit-scrollbar {
    display: none;
}

.about-carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.about-carousel-slide img {
    display: block;
    width: auto;
    max-width: min(640px, 100%);
    max-height: 65vh;
    height: auto;
    margin-inline: auto;
}

.about-carousel-slide.is-active img {
    animation: about-photo-enter 220ms ease-out;
}

@keyframes about-photo-enter {
    from {
        opacity: 0.75;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-carousel-slide.is-active img {
        animation: none;
    }
}

.about-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.about-carousel-button {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #14588d;
    background-color: #fff;
    color: #14588d;
    font-size: 1.25rem;
    cursor: pointer;
}

.about-carousel-button:disabled {
    opacity: 0.5;
    cursor: default;
}

.about-carousel-button:focus-visible,
.about-carousel-track:focus-visible,
.about-related-links a:focus-visible {
    outline: 2px solid #14588d;
    outline-offset: 3px;
}

.about-carousel-counter {
    min-width: 3rem;
    color: #4b5359;
    text-align: center;
}

.about-section {
    display: grid;
    grid-template-columns: 240px minmax(0, 600px);
    column-gap: 2rem;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px solid #d6e2eb;
}

.about-section h2 {
    margin: 0;
    color: #252b30;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
}

.about-section-copy p {
    margin: 0;
    color: #4b5359;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-section-copy p + p {
    margin-top: 1.125rem;
}

.about-related-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 3rem;
}

.about-related-links a {
    color: #14588d;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.about-related-links a:hover,
.about-related-links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

@media (max-width: 699.98px) {
    .about-page {
        padding-top: 48px;
    }

    .team-page {
        padding-top: 48px;
    }

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

    .about-section {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .site-container {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .home-card-grid {
        gap: 1rem;
    }
}

@media (max-height: 800px) {
    .home-hero h1 {
        font-size: clamp(2rem, 5vw, 3.25rem);
    }
}

@media (max-width: 575.98px) {
    .home-card-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-background {
        transform: none;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.contact-label {
    color: #252b30;
    font-size: 1rem;
    font-weight: 500;
}

.contact-textarea {
    display: block;
    width: 100%;
    min-height: 9rem;
    padding: 0.75rem;
    border: 1px solid #14588d;
    border-radius: 0;
    background-color: #fff;
    color: #252b30;
    font-size: 1.1rem;
    line-height: 1.6;
    resize: vertical;
}

.contact-textarea:focus-visible {
    outline: 2px solid #14588d;
    outline-offset: 3px;
}

.contact-textarea[aria-invalid="true"] {
    border-color: #a4262c;
}

.contact-counter {
    color: #4b5359;
    font-size: 0.9rem;
}

.contact-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-button {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.7rem 1rem;
    border: 2px solid #14588d;
    border-radius: 0;
    background-color: transparent;
    color: #14588d;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
}

.contact-button:hover,
.contact-button:focus-visible {
    background-color: #14588d;
    color: #fff;
}

.contact-button:focus-visible {
    outline: 2px solid #14588d;
    outline-offset: 3px;
}

.contact-button:disabled {
    opacity: 0.5;
    cursor: default;
}

.contact-button:disabled:hover {
    background-color: transparent;
    color: #14588d;
}

.contact-link {
    margin-top: 1.5rem;
}

.contact-status {
    min-height: 1.6rem;
    margin: 0;
    color: #4b5359;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-status[data-state="success"] {
    color: #14588d;
    font-weight: 500;
}

.contact-status[data-state="error"] {
    color: #a4262c;
}

@media (max-width: 575.98px) {
    .contact-button {
        width: 100%;
        text-align: center;
    }
}
