@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
    font-family: 'Fat Frank';
    src: url('assets/fonts/fat-frank-heavy.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-bg: #121212;
    --color-text: #FFFFFF;
    --color-text-muted: #A0A0A0;
    --color-primary: #65FF65;
    --color-primary-hover: #00E65C;
    --color-accent: #8E2DE2;
    --color-card-bg: rgba(255, 255, 255, 0.03);
    --color-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Fat Frank', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: clamp(12px, 0.5vw + 12px, 20px);
    overflow-x: hidden;
    scroll-padding-top: 7rem;
}

body {
    background: linear-gradient(240deg, #58df58 0%, #000000 100%);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    width: 100%;
}

h1,
h2,
h3,
.font-frank {
    font-family: var(--font-heading);
    font-weight: 800;
}



header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
}

header::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 130%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0) 100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 6rem;
    width: 100%;
    padding: 0 5vw;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 4rem;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 3rem;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link.active {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
}

.nav-link-holding {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--color-accent);
}

.nav-link-holding:hover {
    opacity: 0.85;
}

.nav-link-holding.active {
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
}

.btn-hablemos-nav {
    background-color: var(--color-primary);
    color: #000000;
    padding: 0.6rem;
    border-radius: 0.3rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-primary);
    display: inline-block;
}

.btn-hablemos-nav:hover {
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0.4rem;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle .bar {
    height: 0.2rem;
    background-color: var(--color-primary);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-toggle .bar:nth-child(1) {
    width: 100%;
}

.menu-toggle .bar:nth-child(2) {
    width: 60%;
}

.menu-toggle .bar:nth-child(3) {
    width: 80%;
}

.menu-toggle:hover .bar {
    width: 100%;
    background-color: #FFFFFF;
}

.hero-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #000000;
    overflow: hidden;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    cursor: pointer;
    overflow: hidden;
    display: block;
    background-color: #000000;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.hero-poster-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 108%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    padding: 5vh 5vw 8vh 5vw;
    margin: 0 auto;
    pointer-events: none;
    box-sizing: border-box;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 36.25rem;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-section.is-playing .hero-content,
.hero-video-wrapper.is-playing .hero-poster-img,
.hero-section.is-playing .hero-poster-img {
    opacity: 0;
    pointer-events: none;
}

.hero-section.is-playing .hero-content {
    transform: translateY(-0.5rem);
}

.hero-play-btn-center {
    position: absolute;
    top: 20%;
    left: 90%;
    transform: translate(-50%, -50%);
    width: 4.5rem;
    height: 4.5rem;
    background: rgba(0, 0, 0, 0.65);
    border: 2.5px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: var(--transition-smooth);
    box-shadow: 0 0 2rem rgba(101, 255, 101, 0.35);
}

.hero-play-btn-center .play-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-left: 0.3rem;
}

.hero-video-wrapper:hover .hero-play-btn-center,
.hero-section:hover .hero-play-btn-center {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-primary);
    color: #000000;
    box-shadow: 0 0 3rem rgba(101, 255, 101, 0.7);
}

.hero-section.is-playing .hero-play-btn-center,
.hero-video-wrapper.is-playing .hero-play-btn-center {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.7);
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.construimos-text {
    position: relative;
    display: inline-block;
}

.title-arrow {
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
    transform: translate(-80%, -30%);
}

.title-arrow svg {
    overflow: visible;
}

.hero-title {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
}

.highlight-text-white {
    color: #ffffff;
    font-family: var(--font-heading);
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 29ch;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.btn-ver-sistema {
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-ver-sistema:hover {
    transform: scale(1.04);
}

.btn-ver-img {
    width: 9.375rem;
    height: auto;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.title-highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.scribble-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-46%, -50%);
    width: 110%;
    height: 125%;
    pointer-events: none;
    object-fit: fill;
}

.square-scribble {
    width: calc(100% + 1.875rem);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.star-decor {
    position: absolute;
    right: -6rem;
    top: 1.8rem;
    width: 4rem;
    height: 4rem;
}

.star-decor img {
    width: 100%;
    height: 100%;
}

.que-construimos-section {
    width: 100%;
    padding: 1vh 0;
    position: relative;
    z-index: 1;
}

.que-construimos-section::before {
    content: "";
    position: absolute;
    top: -45%;
    left: 0;
    right: 0;
    height: 180%;
    background: linear-gradient(195deg, #696969 0%, #171717 55%, #171717 100%);
    background-size: 100% 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 85%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.que-construimos-section .container {
    width: 100%;
    padding: 0 5vw;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    position: relative;
    container-type: inline-size;
}

.que-construimos-wrapper {
    position: relative;
    width: 100%;
}

.connector-line-container {
    display: none;
}

.dotted-line-desktop {
    width: 100%;
    height: auto;
}

.const-card {
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.text-wrapper {
    width: min-content;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.const-card:hover {
    transform: translateY(-0.5rem);
}

.card-icon-wrapper {
    width: 100%;
    height: 16rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.card-icon-img {
    width: 100%;
    max-width: 13rem;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.const-card:hover .card-icon-img {
    transform: scale(1.08);
}

.card-title {
    font-size: 1.6rem;
    letter-spacing: 0.05rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: capitalize;
    color: #FFFFFF;
    position: relative;
    white-space: nowrap;
}

.const-card:not(:last-child) .card-title::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 0.5rem);
    height: 2px;
    width: calc(25cqw + 0.375rem - 100% - 1rem);
    background-image: url('assets/img/linea-punteada-1.svg?v=2');
    background-repeat: repeat-x;
    background-position: left center;
    background-size: auto 100%;
    transform: translateY(-50%);
}

.card-description {
    font-size: 0.7rem;
    color: #FFFFFF;
    line-height: 1.2;
}

.dotted-connector-horizontal {
    display: none;
}

.joy-system-section {
    padding: 7rem 0 0;
    text-align: center;
}

.logo-espiral {
    display: inline-flex;
    width: 17rem;
    height: 9rem;
    transform: translate(0%, 20%);
}

.logo-espiral img {
    width: 100%;
    height: auto;
}

.system-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.system-logo-title {
    font-size: 2rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-mark {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
}

.logo-mark img {
    width: 100%;
    height: 100%;
}

.system-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.flow-step {
    font-size: 1.6rem;
    font-weight: 500;
    font-family: var(--font-body);
}

.flow-plus {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-plus img {
    width: 100%;
    height: 100%;
}

.flow-equals {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.step-negocio {
    position: relative;
    padding: 0.8rem 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000000;
}

.marco-negocio {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-44%, -50%);
    width: calc(100% + 0.75rem);
    height: calc(100% + 0.75rem);
    pointer-events: none;
}

.system-divider-line {
    width: 80%;
    height: 3px;
    margin: 1rem 0;
    background-image: url('assets/img/linea-punteada-2.svg');
    background-repeat: repeat-x;
}

.system-tagline {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text);
}

.casos-section {
    padding: 5rem 0 0;
}

.casos-section .title-highlight {
    color: var(--color-bg);
}

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

.casos-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    margin: 3.5rem auto 0 auto;
    width: max-content;
    max-width: 100%;
    cursor: grab;
    scrollbar-width: none;
}

.casos-grid:active {
    cursor: grabbing;
}

.casos-grid::-webkit-scrollbar {
    display: none;
}

.caso-card {
    border-radius: 0;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
    width: 10rem;
    height: 18rem;
    cursor: pointer;
    border: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scroll-snap-align: start;
}

.caso-card:hover {
    transform: scale(1.03);
}

.caso-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.caso-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.caso-card:hover .caso-bg-img {
    transform: scale(1.08);
}

.caso-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.9) 100%);
    transition: var(--transition-smooth);
}

.caso-card:hover .caso-overlay {
    background: linear-gradient(180deg, rgba(0, 255, 102, 0.1) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.caso-card-title {
    position: absolute;
    bottom: 2rem;
    left: 1rem;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--color-text);
    margin: 0;
    transition: var(--transition-smooth);
}

.caso-card:hover .caso-card-title {
    color: var(--color-primary);
}

.construyen-section {
    padding: 5rem 5vw 0;
}

.construyen-container {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    align-items: center;
}

.construyen-title {
    font-size: 2.4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight-green {
    color: var(--color-primary);
    display: block;
}

.construyen-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 2rem;
    list-style: none;
    margin-top: 2rem;
}

.construyen-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
    flex: 0 1 auto;
}

.item-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-text h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.1rem;
}

.item-text p {
    color: #FFFFFF;
    font-size: 0.7rem;
    line-height: 1.2;
}

.construyen-right {
    display: flex;
    justify-content: flex-start;
}

.collage-wrapper {
    position: relative;
    width: 100%;
}

.collage-img {
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    display: block;
}

.ecosistema-section {
    padding: 5rem 5vw;
}

.ecosistema-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 3.75rem;
}

.ecosistema-holding-logo {
    width: 100%;
    max-width: 14rem;
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.ecosistema-title {
    font-size: 2.75rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight-purple {
    color: var(--color-accent);
}

.ecosistema-desc {
    color: var(--color-text);
    font-size: 16px;
    max-width: 26.25rem;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.ecosistema-grid-container {
    width: 100%;
}

.brand-column-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.brand-box {
    background-color: transparent;
    border: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

.marco-cuadrado {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    pointer-events: none;
    z-index: 0;
}

.brand-box:hover {
    background-color: rgba(0, 255, 102, 0.05);
    box-shadow: 0 0.3125rem 1.25rem rgba(0, 255, 102, 0.1);
    transform: translateY(-0.25rem);
}

.brand-logo-container {
    height: 60%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.brand-logo-img {
    max-width: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    margin: 0;
}

.brand-mona .brand-logo-img {
    max-height: 90%;
}

.brand-text-container {
    width: 100%;
    height: 2.5rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.brand-description-text {
    font-size: 0.8rem;
    color: #FFFFFF;
    text-align: center;
    font-weight: 500;
    line-height: 1.35;
    position: relative;
    z-index: 1;
    margin: 0;
}

.brand-plus {
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-plus img {
    width: 100%;
    height: 100%;
}

.holding-contact-wrapper {
    position: relative;
    width: 100%;
}

.holding-contact-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E"),
        linear-gradient(195deg, #696969 0%, #171717 55%, #171717 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
    z-index: 0;
    pointer-events: none;
}

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

.contact-section {
    padding: 5rem 5vw 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.contact-section::before {
    display: none;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 0.2fr;
    align-items: center;
    gap: 1rem;
    border-bottom: none;
}

.contact-title {
    font-size: 2rem;
    line-height: 1.1;
    font-family: var(--font-heading);
    font-weight: 900;
}

.contact-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    min-height: 15rem;
}

.contact-prompt {
    font-size: 1.7rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.btn-hablemos-footer {
    display: inline-block;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.btn-hablemos-footer:hover {
    transform: scale(1.06);
}

.btn-hablemos-img {
    width: 5rem;
    height: auto;
}

.laptop-illustration {
    position: absolute;
    right: 5rem;
    top: 6rem;
    width: 10rem;
    max-width: none;
    z-index: 2;
    pointer-events: none;
}

.laptop-img {
    width: 100%;
    height: auto;
}

.contact-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    align-items: flex-start;
    border-left: 1px solid #FFFFFF;
    padding-left: 2.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 0.7rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-info-item:hover {
    color: var(--color-primary);
}

.info-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon img {
    width: 100%;
    height: 100%;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 3rem;
    font-size: 0.5rem;
    color: var(--color-text);
}

.footer-logo-img {
    height: 3rem;
    width: auto;
}

.footer-meta {
    text-align: left;
    margin-bottom: 0.5rem;
}

.privacy-link {
    color: var(--color-text);
    text-decoration: underline;
}

.privacy-link:hover {
    color: var(--color-primary);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(0.5rem);
}

.modal-wrapper {
    position: relative;
    width: 90%;
    max-width: 90%;
    min-height: 80vh;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E"),
        linear-gradient(195deg, #333333 0%, #121212 45%, #121212 100%);
    border: none;
    border-radius: 0;
    padding: 4rem 5vw;
    z-index: 201;
    transform: translateY(2.5rem) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-wrapper {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
}

.modal-close-btn img {
    width: 100%;
    height: 100%;
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 3rem;
    align-items: center;
    margin: auto 0;
    width: 100%;
}

.modal-content-grid.inverted {
    grid-template-columns: 1.3fr 0.7fr;
}

.modal-content-grid.inverted .modal-media-col {
    order: 1;
}

.modal-content-grid.inverted .modal-text-col {
    order: 2;
}

.modal-text-col {
    position: relative;
}

.modal-title {
    font-size: 2.6rem;
    color: var(--color-primary);
    margin-bottom: 5rem;
    line-height: 1.1;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.5rem);
    }
}

.modal-icon-decor {
    position: absolute;
    right: -3rem;
    top: 3rem;
    width: 3.5rem;
    height: 3.5rem;
    animation: floatIcon 3s ease-in-out infinite;
    z-index: 10;
}

.modal-content-grid.inverted .modal-icon-decor {
    right: -2.5rem;
    left: auto;
}

.modal-icon-decor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-block {
    display: block;
}

.detail-label {
    display: inline;
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--color-text);
}

.detail-desc {
    display: inline;
    font-size: 0.8rem;
    color: var(--color-text);
    line-height: 1.1;
}

.font-frank-bold .detail-desc {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 1.25rem;
    line-height: 1.1;
}

.modal-media-col {
    display: flex;
    justify-content: center;
}

.collage-container {
    width: 90%;
    position: relative;
}

.modal-collage-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    display: block;
}

.holding-modal-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.holding-logo-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.holding-logo {
    max-width: 100%;
    height: auto;
}

.holding-text-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.holding-title {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--color-text);
    margin-bottom: 0;
}

.holding-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.holding-desc {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
}

.reveal-element {
    opacity: 0;
    transform: translateY(3rem) scale(0.96);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.const-card:nth-child(1) {
    transition-delay: 0.1s;
}

.const-card:nth-child(2) {
    transition-delay: 0.2s;
}

.const-card:nth-child(3) {
    transition-delay: 0.3s;
}

.const-card:nth-child(4) {
    transition-delay: 0.4s;
}

.caso-card:nth-child(1) {
    transition-delay: 0.1s;
}

.caso-card:nth-child(2) {
    transition-delay: 0.2s;
}

.caso-card:nth-child(3) {
    transition-delay: 0.3s;
}

.caso-card:nth-child(4) {
    transition-delay: 0.4s;
}

.caso-card:nth-child(5) {
    transition-delay: 0.5s;
}

.caso-card:nth-child(6) {
    transition-delay: 0.6s;
}

@media only screen and (max-width: 1200px) {

    .ecosistema-container,
    .construyen-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .ecosistema-left,
    .construyen-left {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .construyen-item .item-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .ecosistema-grid-container {
        max-width: 800px;
        margin: 0 auto;
    }
}

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

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(1rem);
        -webkit-backdrop-filter: blur(1rem);
        z-index: 99;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 2.5rem;
        font-size: 1.5rem;
        text-align: center;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(0.6rem) rotate(45deg);
        width: 100%;
        background-color: #FFFFFF;
    }

    .menu-toggle.active .bar:nth-child(2) {
        transform: translateX(2rem);
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-0.6rem) rotate(-45deg);
        width: 100%;
        background-color: #FFFFFF;
    }

    .hero-play-btn-center {
        top: 20%;
        left: 85%;
    }

    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: stretch;
        position: relative;
    }

    .hero-video-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-height: 100%;
    }

    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero-poster-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 35%;
    }

    .hero-container {
        position: relative;
        z-index: 10;
        width: 100%;
        min-height: 100vh;
        padding: 7.5rem 5vw 4rem 5vw;
        display: flex;
        align-items: flex-end;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .que-construimos-section::before {
        top: -21%;
        height: 102%;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .que-construimos-section .section-title {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .que-construimos-section .title-highlight {
        margin-left: 0;
    }

    .hero-container,
    .construyen-container,
    .ecosistema-container,
    .contact-container,
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .construyen-section,
    .ecosistema-section,
    .contact-section {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .construyen-left,
    .ecosistema-left {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-right: 0;
    }

    .ecosistema-holding-logo {
        max-width: 11rem;
        margin-bottom: 1.25rem;
    }

    .construyen-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: 2rem;
    }

    .collage-wrapper {
        width: 100%;
        margin-top: 2rem;
        display: flex;
        justify-content: center;
    }

    .collage-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .construyen-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .system-flow {
        flex-direction: column;
        gap: 1.5rem;
    }

    .brand-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .brand-column-wrapper {
        width: 12rem;
        max-width: 100%;
    }

    .brand-plus {
        width: 1.8rem;
        height: 1.8rem;
    }

    .contact-center,
    .contact-title {
        text-align: center;
        align-items: center;
    }

    .laptop-illustration {
        position: static;
        width: 100%;
        max-width: 18rem;
        margin: 2rem auto 0;
    }

    .contact-right {
        align-items: center;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 2rem;
        width: 100%;
    }

    .reveal-element {
        transition-duration: 0.6s;
    }

    .const-card,
    .caso-card {
        transition-delay: 0s !important;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .modal-content-grid,
    .modal-content-grid.inverted {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-text-col,
    .modal-content-grid.inverted .modal-text-col {
        order: 1;
    }

    .modal-media-col,
    .modal-content-grid.inverted .modal-media-col {
        order: 2;
    }

    .modal-details {
        margin-left: 0;
    }

    .modal-icon-decor,
    .modal-content-grid.inverted .modal-icon-decor {
        position: static;
        margin-bottom: 1.5rem;
        left: auto;
        right: auto;
    }

    .modal-title {
        margin-bottom: 1rem;
    }

    .holding-modal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .holding-title {
        font-size: 2.5rem;
    }

    .holding-text-col {
        gap: 1rem;
        text-align: center;
        align-items: center;
    }
}