:root {
    --color-primary: #F3D52F;
    --color-dark: #202020;
    --color-blue: #0055EC;
    --color-pink: #F8A27D;
    --color-gray: #A0A0A0;
    --color-gray-light: #F4F4F4;
    --color-white: #ffffff;

    --font-heading: 'Jost', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    overflow-x: hidden;
}

body {
    position: relative;
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 66.666rem;
    margin: 0 auto;
    padding: 0 1.111rem;
}

.bg-yellow {
    background-color: var(--color-primary);
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.text-dark {
    color: var(--color-dark) !important;
}

.bg-blue {
    background-color: var(--color-blue);
}

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

.bg-pink {
    background-color: var(--color-pink);
}

.bg-gray {
    background-color: var(--color-gray);
    color: var(--color-white);
}

.bg-gray-light {
    background-color: var(--color-gray-light);
}

.text-yellow {
    color: var(--color-primary) !important;
}

.text-white {
    color: var(--color-white) !important;
}

.text-center {
    text-align: center;
}

.img-fluid {
    width: 100%;
}

.mb-2 {
    margin-bottom: 1.777rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 9.888rem;
    height: 2.777rem;
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 0.922rem;
    text-transform: none;
    cursor: pointer;
    border: none;
    border-radius: 0.444rem;
    letter-spacing: 0;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn-dark:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.reveal-up {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-2.5rem);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-right {
    opacity: 0;
    transform: translateX(2.5rem);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-fade {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.reveal-fade.revealed {
    opacity: 1;
}

.reveal-up.revealed,
.reveal-scale.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.333rem;
    z-index: 1000;
    background-color: var(--color-primary);
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 1.5625rem;
}

.nav ul {
    display: flex;
    gap: 2.5rem;
    font-family: var(--font-body);
    font-size: 0.922rem;
}

.nav ul li a {
    color: var(--color-dark);
    font-weight: 500;
    padding: 0.222rem 0.166rem;
}

.nav ul li a:hover,
.nav ul li a.active {
    font-weight: 700;
}

.nav ul li a.active {
    background-color: var(--color-pink);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 2rem;
    height: 1.5rem;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 0.25rem;
    width: 100%;
    background-color: var(--color-dark);
    border-radius: 0.125rem;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 50rem;
    background-image: url('../assets/images/foto-inicio.webp');
    background-size: 130%;
    background-position: right 65%;
    background-repeat: no-repeat;
}

.hero-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2.277rem;
}

.logo-text {
    font-size: 0.666rem;
    font-weight: 500;
    line-height: 1.2;
    margin-left: 1rem;
    border-left: 1px solid var(--color-dark);
    padding-left: 1rem;
}

.hero-box {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 3.111rem 2.166rem;
    width: 31.166rem;
    max-width: 100%;
}

.hero-box .hero-title {
    font-size: 3.333rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    letter-spacing: 0;
    line-height: 1.23;
    font-weight: 700;
}

.hero-box p {
    font-size: 2rem;
    font-family: var(--font-body);
    font-weight: 400;
    margin-bottom: 3rem;
    color: #EEEEEE;
}

.shapes-section {
    background-color: var(--color-dark);
}

.shapes-container {
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
}

.shapes-flex {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
}

.shape-wrapper {
    flex: 1;
    min-width: 22.222rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    aspect-ratio: 7 / 10;
}

.shape-hover-vertical {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: grayscale(100%);
    z-index: 0;
}

.shape-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.shape-wrapper:hover .shape-hover-vertical,
.shape-wrapper:hover .shape-overlay {
    opacity: 1;
}

.shape {
    width: 17.777rem;
    height: 17.777rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.777rem;
    position: relative;
    line-height: 1.3;
    z-index: 2;
}

.z-1 {
    position: relative;
    z-index: 1;
}

.shape-square {
    border: 0.666rem solid #4A4A4A;
    border-radius: 2.222rem;
}

.shape-circle {
    border: 0.666rem solid #4A4A4A;
    border-radius: 50%;
}

.shape-cross::before,
.shape-cross::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 141.42%;
    height: 0.666rem;
    background-color: #4A4A4A;
    border-radius: 5rem;
}

.shape-cross::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.shape-cross::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.circle:hover {
    border-color: var(--color-primary);
}

.perfiles {
    padding: 5.555rem 0 0 0;
    overflow: hidden;
    background-image: url('../assets/images/cuadricula.svg');
    background-repeat: repeat;
    background-size: 9vw;
}

.perfiles .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 9.6rem;
}

.perfiles-grid {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 0 13.8vw 21vw;
    align-content: space-between;
}

.perfil-card {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.perfil-box {
    width: 75%;
    aspect-ratio: 1 / 1;
    position: relative;
    z-index: 1;
}

.perfil-title {
    padding: 1.5rem;
    font-family: var(--font-body);
    font-size: 1.777rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.2;
    position: relative;
    z-index: 3;
}

.perfil-img {
    position: absolute;
    transform: translateX(-50%);
    height: auto;
    z-index: 2;
    filter: grayscale(100%);
    pointer-events: none;
}

.perfil-card:nth-child(1) .perfil-img {
    left: 25%;
    bottom: -122%;
    width: 90%;
}

.perfil-card:nth-child(2) .perfil-img {
    left: 50%;
    bottom: -126%;
}

.perfil-card:nth-child(3) .perfil-img {
    left: 74%;
    width: 94%;
    bottom: -119%;
}

.perfil-card:hover img {
    filter: grayscale(0%);
}

.diferenciacion {
    padding: 5.555rem 0;
}

.diferenciacion .container {
    max-width: none;
    width: 80%;
}

.dif-banner {
    width: 100%;
    aspect-ratio: 6 / 1;
    object-fit: cover;
    object-position: center 70%;
    display: block;
    margin: 2rem 0;
}

.big-title {
    font-size: 4.444rem;
    margin-bottom: 1.666rem;
    line-height: 0.95;
}

.diferenciacion .lead {
    font-size: 1.777rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.4;
    max-width: 55ch;
}

.diferenciacion .btn {
    padding: 1rem 3rem;
    font-size: 0.922rem;
    font-weight: 900;
    border-radius: 0.4rem;
}

.checkerboard-section {
    padding: 3rem 5vw;
}

.dif-checkerboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ch-col {
    display: block;
}

.ch-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    padding: 2rem;
    font-family: var(--font-heading);
    font-size: 1.777rem;
    font-weight: 700;
    text-align: left;
    line-height: 1.2;
    min-height: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.ch-item:last-child {
    margin-bottom: 0;
}

.ch-item.align-top {
    align-items: flex-start;
    justify-content: flex-start;
}

.ch-item.align-bottom {
    align-items: flex-end;
    justify-content: flex-start;
}

.img-overlay {
    padding: 0;
    display: block;
}

.img-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
}

.porque-mona {
    padding: 5rem 0;
    background-image: url('../assets/images/cuadricula.svg');
    background-repeat: repeat;
    background-size: 9vw;
}

.porque-mona .section-title {
    font-size: 3rem;
    margin-bottom: 2.777rem;
}

.porque-mona .container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.porque-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.222rem;
}

.pq-grid {
    display: grid;
    grid-template-columns: repeat(6, 11vw);
    grid-auto-rows: 12vw;
    justify-content: center;
    gap: 0;
}

.pq-item {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pq-item img {
    width: 100%;
    height: 12.222rem;
    object-fit: cover;
}

.pq-item.img-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pq-text h3 {
    font-size: 1.222rem;
    margin-bottom: 0.555rem;
}

.pq-text p {
    font-size: 1.111rem;
    font-weight: 400;
}

.pq-big-title {
    font-size: 3rem;
    line-height: 1.1;
}

.pq-text-box {
    padding: 2rem;
}

.pq-title {
    font-family: var(--font-heading);
    font-size: 1.444rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pq-desc {
    font-size: 1.111rem;
    font-weight: 400;
    margin-bottom: 0;
}

.no-dependemos {
    background-image: url('../assets/images/cuadricula.svg');
    background-repeat: repeat;
    background-size: 9vw;
    padding: 5rem 0;
}

.nodep-grid {
    display: grid;
    grid-template-columns: repeat(7, 9vw);
    grid-auto-rows: 9vw;
    justify-content: center;
    gap: 0;
}

.nodep-left {
    grid-column: span 3;
    grid-row: span 3;
    display: flex;
    align-items: center;
    padding: 3rem;
}

.nodep-left .big-title {
    font-size: 2.666rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.nodep-right {
    grid-column: span 4;
    grid-row: span 3;
    display: flex;
    flex-direction: column;
    background-image: url('../assets/images/servicios-02-2.webp');
    background-size: 140%;
    background-position: 8% 0%;
}

.nodep-box {
    flex: 1;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding: 1rem;
    background: transparent;
}

.chko-box {
    background: linear-gradient(to top, rgba(36, 86, 198, 0.9) 0%, transparent 100%);
    align-items: flex-end;
}

.nodep-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nodep-logo {
    height: 8rem;
    width: auto;
    object-fit: contain;
}

.nodep-text p {
    font-size: 1.333rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.trabajos {
    padding: 5.555rem 0;
}

.trabajos .section-title {
    font-size: 2.666rem;
    margin-bottom: 2rem;
}

.trabajos-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 1rem 0 0 0;
}

.trabajos-carousel-inner {
    display: flex;
    gap: 5%;
    padding: 1rem 0 3rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.trabajos-carousel-inner::-webkit-scrollbar {
    display: none;
}

.trabajo-card {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: auto;
    scroll-snap-align: start;
}

.trabajo-card:hover {
    transform: translateY(-5px);
}

.trabajo-card img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
}

.trabajo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 2rem;
    flex-grow: 1;
}

.trabajo-info p {
    font-size: 1.111rem;
    font-weight: 500;
    line-height: 1.4;
}

.trabajo-info h3 {
    font-size: 1.777rem;
    font-weight: 700;
    min-height: 4.8rem;
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    display: flex;
    width: 95vw;
    max-width: none;
    height: 95vh;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: rgba(30, 30, 30, 0.95);
}

.popup-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: transparent;
    border: 3px solid var(--color-white);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.popup-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.popup-left {
    flex: 0 0 40%;
    padding: 6rem 3rem 3rem 3rem;
    overflow-y: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.popup-left-inner {
    margin: auto 0;
}

.popup-left .big-title {
    font-size: 2.666rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.popup-left p {
    font-size: 1.222rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.popup-right {
    flex: 1;
    background: transparent;
    overflow-y: auto;
    padding: 0;
}

.popup-custom-grid {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-template-rows: repeat(13, 1fr);
    gap: 0.5rem;
    padding: 3rem 3rem 3rem 0;
    height: 100%;
}

.popup-custom-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination span {
    cursor: pointer;
}

.pagination .page-num {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.333rem;
    font-weight: 700;
    transition: background 0.2s;
    border-radius: 4px;
}

.pagination .page-num.active {
    background-color: rgba(0, 0, 0, 0.15);
    color: var(--color-dark);
}

.pagination .page-prev,
.pagination .page-next {
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.pagination .page-prev svg,
.pagination .page-next svg {
    margin-top: 3px;
}

.pagination .page-prev:hover,
.pagination .page-next:hover {
    transform: scale(1.1);
}

.beneficios {
    padding: 10rem 10vw;
}

.ben-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6vw;
    margin-bottom: 4rem;
}

.ben-item {
    padding: 2.222rem;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: flex-end;
}

.ben-item h3 {
    font-size: 1.777rem;
    font-weight: 700;
}

.futuro-box h3 {
    font-size: 2.222rem;
    font-weight: 700;
    margin-bottom: 1.111rem;
}

.futuro-box p {
    font-size: 1.333rem;
}

.conecta-aporta {
    position: relative;
    height: 45vw;
    background-image: url('../assets/images/cuadricula.svg');
    background-repeat: repeat;
    background-size: 9vw;
    overflow: hidden;
}

.tetris-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(12, 9vw);
    grid-template-rows: repeat(5, 9vw);
    z-index: 1;
    opacity: 0.95;
}

.tc:nth-child(10n) {
    border-right: none;
}

.tc:nth-child(n+41) {
    border-bottom: none;
}

.ca-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/cuadricula.svg');
    background-repeat: repeat;
    background-size: 9vw;
    font-size: 1.777rem;
    font-weight: 400;
    line-height: 1.2;
}

.ca-left,
.ca-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.ca-content h3 {
    font-size: 1.777rem;
    font-weight: 400;
}

.ca-logo {
    max-width: 18vw;
    height: auto;
    margin: 0 auto 5vw;
}

.ca-logo2 {
    max-width: 14vw;
    height: auto;
    margin: 0 auto 5vw;
}

.mona-huge {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.kut-box {
    font-size: 4rem;
    font-weight: 900;
    border: 4px solid white;
    display: inline-block;
    padding: 1rem;
}

.serv-sol-section {
    width: 100%;
}

.servicios-layout {
    display: flex;
    width: 100%;
    background:
        url('../assets/images/cuadricula.svg') repeat,
        linear-gradient(to right, var(--color-blue) 27vw, var(--color-gray-light) 27vw);
    background-size: 9vw, 100% 100%;
}

.servicios-left {
    width: 27vw;
}

.cnc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

.servicios-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 4vw 10vw;
}

.ss-title-container {
    font-size: 3.333rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0;
    text-align: center;
}

.ss-list {
    display: flex;
    flex-direction: column;
}

.ss-item {
    min-height: 9vw;
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
}

.ss-item-visuals {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ss-box {
    width: 5.5rem;
    height: 5.5rem;
    background-color: var(--color-blue);
    color: var(--color-white);
    font-size: 2.666rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    margin-left: 0;
    z-index: 1;
}

.ss-icon-img {
    position: absolute;
    left: -6rem;
    height: 9rem;
    width: auto;
    max-width: none;
    z-index: 5;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.img-3 {
    left: -5rem;
}

.ss-item-text {
    flex: 1;
    padding-left: 1.5vw;
    padding-right: 2vw;
}

.ss-item-text p {
    font-size: 1.333rem;
    line-height: 1.4;
    font-weight: 400;
    margin: 0;
}

.ss-diagram {
    padding: 6rem 0;
    background:
        url('../assets/images/cuadricula.svg') repeat,
        var(--color-gray-light);
    background-size: 9vw, auto;
    display: flex;
    justify-content: center;
}

.diagrama-relative-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.donut {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40rem;
    height: 40rem;
}

.donut-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.quadrant {
    position: absolute;
    width: 50%;
    height: 50%;
}

.quadrant-1 {
    top: 0;
    left: 0;
    background-color: var(--color-blue);
}

.quadrant-4 {
    top: 0;
    right: 0;
    background-color: var(--color-white);
}

.quadrant-2 {
    bottom: 0;
    left: 0;
    background-color: var(--color-white);
}

.quadrant-3 {
    bottom: 0;
    right: 0;
    background-color: var(--color-blue);
}

.donut-hole {
    position: absolute;
    top: 22%;
    left: 22%;
    width: 56%;
    height: 56%;
    border-radius: 50%;
    background-color: #D6D6D6;
}

.donut-num {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 2.666rem;
    font-weight: 900;
    z-index: 25;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.dn-1 {
    top: 12%;
    left: 40%;
    color: var(--color-white);
}

.dn-4 {
    top: 11%;
    left: 61%;
    color: var(--color-blue);
}

.dn-2 {
    top: 89%;
    left: 39%;
    color: var(--color-blue);
}

.dn-3 {
    top: 59%;
    left: 91%;
    color: var(--color-white);
}

@keyframes floatBob {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, -55%);
    }
}

.pi {
    position: absolute;
    z-index: 15;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
    animation: floatBob 4.5s ease-in-out infinite both;
}

.pi-1 {
    width: 26%;
    top: 24%;
    left: 17%;
    animation-delay: 0s;
}

.pi-2 {
    width: 32%;
    top: 75%;
    left: 17%;
    animation-delay: 1.2s;
}

.pi-3 {
    width: 30%;
    top: 78%;
    left: 81%;
    animation-delay: 2.4s;
}

.pi-4 {
    width: 30%;
    top: 21%;
    left: 85%;
    animation-delay: 1.8s;
}

.pt {
    position: absolute;
    max-width: 15rem;
    text-align: left;
    transform: translate(-50%, -50%);
}

.pt-1 {
    top: 15%;
    left: 24%;
}

.pt-2 {
    top: 78%;
    left: 24%;
}

.pt-4 {
    top: 12%;
    left: 76%;
}

.pt-3 {
    top: 80%;
    left: 76%;
}

.pt h4 {
    font-family: var(--font-heading);
    font-size: 1.333rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.pt p {
    font-family: var(--font-body);
    font-size: 1.111rem;
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.4;
    margin: 0;
}

.footer {
    padding: 2.5rem 4vw;
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4vw;
    max-width: 82rem;
    margin: 0 auto;
}

.f-col-logo {
    flex: 0 0 auto;
}

.f-logo-img {
    height: 5.5rem;
    width: auto;
    transition: transform 0.3s ease;
}

.f-logo-img:hover {
    transform: scale(1.05);
}

.f-col-contact {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

.f-title {
    font-family: var(--font-heading);
    font-size: 1.333rem;
    font-weight: 700;
    margin: 0;
    color: #202020;
}

.f-contact-items {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 1rem 0 2rem;
}

.f-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 1.111rem;
    font-weight: 400;
    color: #202020;
    text-decoration: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.f-contact-item:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.f-icon {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.f-contact-item:hover .f-icon {
    transform: scale(1.12);
}

.f-disclaimer p {
    font-family: var(--font-body);
    font-size: 0.722rem;
    font-weight: 500;
    color: #202020;
    line-height: 1.4;
    margin: 0;
}

.f-privacy-link {
    color: #202020;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.f-privacy-link:hover {
    opacity: 0.7;
}

.f-col-social {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.f-social-icons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.f-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.f-social-link:hover {
    transform: translateY(-4px) scale(1.15);
}

.f-icon-social {
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
}

@media (max-width: 1920px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 1440px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 1280px) {
    html {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 10px;
    }
}

@media only screen and ((max-width: 800px) or (orientation: portrait)) {

    html,
    body {
        overflow-x: hidden;
    }

    .header {
        height: auto;
        padding: 1rem 0;
    }

    .header-flex {
        flex-direction: row;
        gap: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    }

    .nav.active {
        max-height: 25rem;
        padding: 1.5rem 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }

    .hero {
        background-size: cover;
        background-position: center center;
    }

    .hero-container {
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 2rem;
    }

    .hero-box {
        max-width: 90%;
        padding: 2rem;
    }

    .shapes-flex {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .shape-wrapper {
        aspect-ratio: 4 / 5;
    }

    .shape-hover-vertical,
    .shape-overlay {
        opacity: 1;
    }

    .perfiles-grid {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding: 0 0 5rem 0;
    }

    .perfil-card {
        width: 85%;
        overflow: hidden;
    }

    .perfil-box {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .perfil-title {
        width: 65%;
    }

    .perfil-card:nth-child(1) .perfil-img,
    .perfil-card:nth-child(2) .perfil-img,
    .perfil-card:nth-child(3) .perfil-img {
        transform: none;
        left: auto;
        right: 2%;
        bottom: -33%;
        width: 60%;
    }

    .big-title {
        word-break: break-word;
    }

    .dif-grid,
    .dif-cards {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .dif-checkerboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .porque-mona {
        padding: 3rem 0;
    }

    .porque-grid {
        grid-template-columns: 1fr;
    }

    .pq-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        grid-auto-rows: 25vw;
        margin: 0;
    }

    .pq-item {
        width: 100%;
    }

    .pq-item:nth-child(1),
    .pq-item:nth-child(4),
    .pq-item:nth-child(7) {
        grid-column: 1 / 2;
    }

    .pq-item:nth-child(1) {
        order: 1;
    }

    .pq-item:nth-child(4) {
        order: 2;
    }

    .pq-item:nth-child(7) {
        order: 3;
    }

    .pq-item:nth-child(2),
    .pq-item:nth-child(5),
    .pq-item:nth-child(8) {
        grid-column: 1 / 2;
    }

    .pq-item:nth-child(2) {
        order: 4;
    }

    .pq-item:nth-child(5) {
        order: 6;
    }

    .pq-item:nth-child(8) {
        order: 8;
    }

    .pq-item:nth-child(3),
    .pq-item:nth-child(6),
    .pq-item:nth-child(9) {
        grid-column: 2 / 3;
    }

    .pq-item:nth-child(3) {
        order: 5;
    }

    .pq-item:nth-child(6) {
        order: 7;
    }

    .pq-item:nth-child(9) {
        order: 9;
    }

    .nodep-flex {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .nodep-grid {
        grid-template-columns: 90vw;
        grid-auto-rows: 70vw;
    }

    .nodep-left,
    .nodep-right {
        grid-column: 1 / 2;
        grid-row: auto;
    }

    .trabajo-card {
        flex: 0 0 47.5%;
    }

    .popup-content {
        flex-direction: column;
        overflow-y: auto;
        display: block;
    }

    .popup-close {
        position: sticky;
        top: 1.5rem;
        margin-left: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: -5rem;
        z-index: 50;
    }

    .popup-left {
        flex: 0 0 auto;
        padding-top: 6rem;
        height: auto;
        overflow: visible;
        justify-content: flex-start;
    }

    .popup-right {
        flex: 0 0 auto;
        height: auto;
        overflow: visible;
    }

    .popup-custom-grid {
        height: 80vw;
        padding: 0 2rem 3rem 2rem;
    }

    .ca-left,
    .ca-right {
        padding: 4rem 2rem;
    }

    .serv-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .servicios-layout {
        background:
            url('../assets/images/cuadricula.svg') repeat,
            var(--color-gray-light);
        background-size: 9vw, auto;
    }

    .servicios-left {
        display: none;
    }

    .proceso {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .diagrama-relative-container {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }

    .donut {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        order: 0;
        margin: 0 auto 1rem auto;
        width: 80vw;
        height: 80vw;
    }

    .pt {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        max-width: 100%;
        width: 100%;
        padding-left: 0;
        text-align: left;
    }

    .pt-1 {
        order: 1;
    }

    .pt-2 {
        order: 2;
    }

    .pt-3 {
        order: 3;
    }

    .pt-4 {
        order: 4;
    }

    .pt-1 h4::before {
        content: '1. ';
    }

    .pt-2 h4::before {
        content: '2. ';
    }

    .pt-3 h4::before {
        content: '3. ';
    }

    .pt-4 h4::before {
        content: '4. ';
    }

    .footer-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .f-col-contact {
        align-items: center;
    }

    .f-col-social {
        align-items: center;
    }

    .f-contact-items {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin: 0.5rem 0 1.5rem;
    }
}

@media (max-width: 450px) {

    .perfiles {
        background-size: 9vh;
    }

    .dif-checkerboard {
        grid-template-columns: 1fr;
    }

    .porque-mona {
        background-size: 9vh;
    }

    .no-dependemos {
        background-size: 9vh;
    }

    .trabajo-card {
        flex: 0 0 100%;
    }

    .popup-custom-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 0 1rem 3rem 1rem;
    }

    .popup-custom-grid img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .ben-grid {
        grid-template-columns: 1fr;
    }

    .conecta-aporta {
        aspect-ratio: auto;
        height: auto;
    }

    .tetris-bg {
        display: none;
    }

    .ca-wrapper {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .ca-left {
        background-color: var(--color-primary);
        background-image: url('../assets/images/cuadricula.svg');
        background-repeat: repeat;
        background-size: 9vh;
    }

    .ca-right {
        background-color: var(--color-blue);
        background-image: url('../assets/images/cuadricula.svg');
        background-repeat: repeat;
        background-size: 9vh;
    }

    .ca-logo {
        max-width: 18vh;
        margin: 0 auto 5vh;
    }

    .ca-logo2 {
        max-width: 14vh;
        margin: 0 auto 5vh;
    }

    .servicios-layout {
        flex-direction: column;
    }

    .servicios-left {
        width: 100%;
        height: 60vw;
    }

    .servicios-right {
        width: 100%;
        padding: 4vw 5vw;
    }

    .ss-title-container {
        height: auto;
        padding: 2rem 1rem;
    }

    .ss-title-container h2 {
        font-size: 2.5rem !important;
    }

    .ss-item {
        height: auto;
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .ss-item-visuals {
        width: 100%;
        height: auto;
        justify-content: center;
    }

    .ss-box {
        width: 7rem;
        height: 7rem;
        margin-left: 1rem;
    }

    .ss-icon-img {
        position: static;
        margin-right: -4rem;
    }

    .img-3 {
        margin-right: -5rem;
    }

    .ss-item-text {
        padding-left: 0;
        padding-right: 0;
    }
}