
:root {
    --black: #000;
    --yellow: #FBC80B;
    --cyan: #149FBD;
}
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--yellow);
    font-family: Manrope, Arial, sans-serif;
}
.container {
    width: min(1140px, 88%);
    margin: auto;
}
.site-header {
    height: 82px;
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--cyan);
}
.navbar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand img {
    width: 190px;
    height: 58px;
    display: block;
    object-fit: contain;
}
.menu {
    display: flex;
    align-items: center;
    gap: 29px;
}

.menu a {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s;
}

.menu a:hover {
    color: var(--cyan);
}
.menu .nav-button {
    padding: 12px 17px;
    border: 1px solid var(--yellow);
    border-radius: 99px;
    color: var(--yellow);
}

.menu-button {
    display: none;
    border: 1px solid var(--cyan);
    background: var(--black);
    cursor: pointer;
    padding: 5px;
}
.menu-button i {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px;
    background: var(--yellow);
}
.hero {
    position: relative;
    min-height: 670px;
    overflow: hidden;
    padding: 125px 0;

    background:
        linear-gradient(
            rgba(0, 0, 0, .78),
            rgba(0, 0, 0, .88)
        ),
        url("../img/imagen2.png") center / cover no-repeat;

    color: var(--yellow);
    border-bottom: 1px solid var(--cyan);
}
.hero-lines {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            var(--cyan) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            var(--cyan) 1px,
            transparent 1px
        );

    background-size: 75px 75px;
    opacity: .12;
}
.hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}
.hero-copy {
    max-width: 710px;
}

.overline {
    margin: 0 0 21px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;

    color: var(--cyan);
}
.hero h1,
.about h2,
.section-intro h2,
.contact h2 {
    margin: 0;

    font:
        600
        clamp(45px, 5.6vw, 78px)
        / .98
        'Space Grotesk',
        sans-serif;

    letter-spacing: -4px;
}
.hero h1 {
    max-width: 710px;
}
.hero h1 em {
    font-style: normal;
    color: var(--cyan);
}
.hero-text {
    max-width: 500px;

    margin: 29px 0;

    font-size: 17px;
    line-height: 1.6;

    color: var(--yellow);
}
.button {
    display: inline-flex;
    align-items: center;
    gap: 24px;

    padding: 15px 19px;

    border: 1px solid var(--yellow);
    border-radius: 99px;

    font: 700 13px Manrope;

    text-decoration: none;
    cursor: pointer;
}
.button b {
    font-size: 20px;
}
.button-primary {
    background: var(--yellow);
    color: var(--black);
}
.tech-banner {
    position: relative;

    flex: 0 0 360px;

    width: 360px;
    height: 360px;

    display: grid;
    place-items: center;
}
.tech-ring {
    position: absolute;
    inset: 0;

    border: 0;
    border-radius: 50%;

    display: grid;
    place-items: center;

    animation: spinRing 16s linear infinite;

    overflow: visible;
}
.tech-ring::before {
    content: "";

    position: absolute;
    inset: 28px;

    border: 1px solid var(--cyan);
    border-radius: 50%;
}
.tech-ring span {
    position: absolute;
    inset: -4px;

    display: block;

    font: 800 12px/1 Manrope;
    letter-spacing: 3px;

    color: var(--yellow);

    text-align: center;
    transform: rotate(0deg);

    white-space: nowrap;
}
.tech-disc {
    position: relative;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: var(--black);

    border: 3px solid var(--yellow);

    box-shadow:
        0 0 0 9px var(--black),
        0 0 0 10px var(--cyan),
        0 0 45px rgba(20, 159, 189, .25);

    animation: spinDisc 7s linear infinite;
}
.tech-disc::before {
    content: "";

    position: absolute;
    inset: 10px;

    border-radius: 50%;

    border: 1px dashed var(--cyan);
}
.tech-disc::after {
    content: "";

    position: absolute;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    

    z-index: 2;
}
.tech-banner:hover .tech-ring {
    animation-duration: 6s;
}

.tech-banner:hover .tech-disc {
    animation-duration: 2.5s;
}
@keyframes spinRing {
    to {
        transform: rotate(360deg);
    }
}
@keyframes spinDisc {
    to {
        transform: rotate(-360deg);
    }
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}
.hero-orb-a {
    right: 13%;
    bottom: 10%;

    width: 230px;
    height: 230px;

    background: var(--cyan);

    box-shadow:
        0 0 100px 35px
        rgba(20, 159, 189, .35);

    opacity: .75;
}
.hero-orb-b {
    right: 38%;
    bottom: 3%;

    width: 115px;
    height: 115px;

    background: var(--yellow);

    box-shadow:
        0 0 70px 25px
        rgba(251, 200, 11, .3);

    opacity: .7;
}
.hero-device {
    position: absolute;

    right: 8%;
    bottom: -115px;

    width: 420px;
    height: 505px;

    padding: 15px;

    background: var(--yellow);

    border: 1px solid var(--cyan);

    border-radius: 20px 20px 0 0;

    transform: rotate(8deg);

    box-shadow:
        0 20px 80px
        rgba(20, 159, 189, .25);
}
.device-top {
    display: flex;
    gap: 5px;
}
.device-top span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--cyan);
}
.device-screen {
    height: 450px;

    margin-top: 12px;
    padding: 36px;

    background: var(--black);
    color: var(--yellow);

    border: 1px solid var(--cyan);
}
.device-screen small {
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--cyan);
}
.device-screen strong {
    display: block;

    margin-top: 70px;

    font:
        600
        38px / .95
        'Space Grotesk';

    letter-spacing: -2px;
}
.screen-bars {
    display: flex;
    gap: 8px;

    margin-top: 40px;
}
.screen-bars i {
    height: 9px;

    background: var(--yellow);

    border-radius: 9px;
}
.screen-bars i:nth-child(1) {
    width: 40%;
}
.screen-bars i:nth-child(2) {
    width: 25%;
    background: var(--cyan);
}
.screen-bars i:nth-child(3) {
    width: 14%;
    background: var(--yellow);
}
.section {
    padding: 120px 0;
}

.about {
    background: var(--black);
    border-bottom: 1px solid var(--yellow);
}
.about-grid {
    display: grid;

    grid-template-columns: 1fr 1.65fr;

    gap: 65px;

    align-items: center;
}


.about-image {
    position: relative;

    min-height: 420px;

    overflow: hidden;

    border: 1px solid var(--cyan);

    box-shadow:
        0 0 0 1px var(--yellow);
}
.about-image::before {
    content: "";

    position: absolute;
    inset: 12px;

    border: 1px solid var(--yellow);

    z-index: 2;

    pointer-events: none;
}
.about-image img {
    width: 100%;
    height: 100%;

    min-height: 420px;

    display: block;

    object-fit: cover;

    transition:
        transform .6s,
        filter .4s;
}
.about-image:hover img {
    transform: scale(1.06);
    filter: saturate(1.15);
}
.about h2 {
    font-size: clamp(38px, 4.3vw, 62px);
}
.about p:not(.overline) {
    max-width: 650px;

    font-size: 16px;
    line-height: 1.7;

    color: var(--yellow);
}
.arrow-link {
    display: inline-block;

    margin-top: 20px;
    padding-bottom: 5px;

    color: var(--cyan);

    border-bottom: 1px solid;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;
}
.arrow-link b {
    padding-left: 14px;
}
.services {
    background: var(--black);
}

.section-intro {
    margin-bottom: 55px;
}

.section-intro h2 {
    font-size: clamp(39px, 4.5vw, 63px);
}

.card-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}
.service-card {
    position: relative;

    background: var(--black);

    border: 1px solid transparent;

    box-shadow:
        0 0 0 1px var(--cyan);

    transition:
        transform .25s,
        box-shadow .25s;
}
.service-card::before {
    content: "";

    position: absolute;
    inset: -2px;

    z-index: -1;

    background:
        linear-gradient(
            90deg,
            var(--yellow),
            var(--cyan),
            var(--yellow)
        );

    background-size: 200% 100%;

    animation:
        borderMove 4s linear infinite;
}
@keyframes borderMove {

    0% {
        background-position: 0 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}
.service-card:hover {
    transform: translateY(-8px);

    background: var(--yellow);

    box-shadow:
        0 0 25px rgba(20, 159, 189, .3),
        0 0 15px rgba(251, 200, 11, .2);
}
.service-card:hover .card-body h3,
.service-card:hover .card-body p,
.service-card:hover .card-body a {
    color: var(--black);
}
.service-image {
    height: 205px;

    position: relative;

    overflow: hidden;

    background: var(--black);
}
.service-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    filter:
        saturate(.9)
        contrast(1.05);
}
.service-image::after {
    content: "";

    position: absolute;
    inset: 0;

    border: 2px solid var(--yellow);

    opacity: .55;

    pointer-events: none;
}
.service-image span {
    position: absolute;

    z-index: 2;

    top: 18px;
    left: 20px;

    font:
        600
        24px
        'Space Grotesk';

    color: var(--yellow);

    text-shadow:
        0 0 10px var(--black);
}
.card-body {
    padding: 27px;
}

.card-body h3 {
    margin: 0;

    font:
        600
        25px
        'Space Grotesk';

    letter-spacing: -1px;

    color: var(--yellow);
}

.card-body p {
    min-height: 74px;

    font-size: 14px;
    line-height: 1.6;

    color: var(--cyan);
}

.card-body a {
    color: var(--yellow);

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;
}

.card-body a:hover {
    color: var(--cyan);
}

.card-body b {
    padding-left: 10px;
}
.project-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
}
.project {
    position: relative;

    height: 285px;

    overflow: hidden;

    padding: 27px;

    color: var(--yellow);

    background: var(--black);

    border: 1px solid var(--cyan);

    cursor: pointer;

    transition:
        transform .25s,
        box-shadow .25s,
        border-color .25s;
}
.project img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: .28;

    transition:
        transform .5s,
        opacity .3s,
        filter .3s;
}
.project::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent 45%,
            rgba(20, 159, 189, .18)
        );

    transition: background .3s;
}
.project span,
.project h3 {
    position: relative;
    z-index: 2;
}
.project span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;

    color: var(--cyan);
}
.project h3 {
    position: absolute;

    z-index: 2;

    bottom: 15px;

    margin: 0;
    font:
        600
        clamp(28px, 3vw, 43px)
        / .94
        'Space Grotesk';

    letter-spacing: -2px;

    color: var(--yellow);
}
.project:nth-child(odd):hover {
    border-color: var(--yellow);

    box-shadow:
        inset 0 0 0 2px var(--yellow),
        0 0 25px rgba(251, 200, 11, .22);

    background: var(--yellow);
    color: var(--black);
}
.project:nth-child(even):hover {
    border-color: var(--cyan);

    box-shadow:
        inset 0 0 0 2px var(--cyan),
        0 0 25px rgba(20, 159, 189, .22);

    background: var(--cyan);
    color: var(--black);
}

.project:nth-child(odd):hover::after {
    background: rgba(251, 200, 11, .78);
}

.project:nth-child(even):hover::after {
    background: rgba(20, 159, 189, .78);
}
.project:hover span,
.project:hover h3 {
    color: var(--black);
}

.project:hover img {
    transform: scale(1.08);

    opacity: .55;

    filter: saturate(1.2);
}
.project.active {
    border-color: var(--cyan);

    box-shadow:
        inset 0 0 0 2px var(--cyan),
        0 0 30px rgba(20, 159, 189, .3);

    background: var(--cyan);

    color: var(--black);
}

.project.active::after {
    background: rgba(20, 159, 189, .78);
}

.project.active span,
.project.active h3 {
    color: var(--black);
}

.project.active img {
    opacity: .65;
}
.contact {
    background: var(--black);

    color: var(--yellow);

    border-top: 1px solid var(--cyan);
}

.contact-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;
}

.contact h2 {
    font-size: clamp(40px, 4.8vw, 68px);
}

.contact > p {
    line-height: 1.7;
}
.contact-details {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 40px;
}
.contact-details a {
    color: var(--cyan);

    font-size: 18px;
    font-weight: 800;

    text-decoration: none;
}

.contact-details span {
    font-size: 13px;

    color: var(--yellow);
}
form {
    padding: 34px;

    background: var(--black);

    color: var(--yellow);

    border: 1px solid var(--yellow);
}

label {
    display: block;

    margin-bottom: 16px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;

    color: var(--cyan);
}

input,
textarea {
    width: 100%;

    margin-top: 7px;
    padding: 12px 0;

    border: 0;

    border-bottom: 1px solid var(--cyan);

    background: transparent;

    color: var(--yellow);

    font: 14px Manrope;

    outline: none;
}

input:focus,
textarea:focus {
    border-bottom-color: var(--yellow);
}

input::placeholder,
textarea::placeholder {
    color: var(--cyan);
    opacity: .75;
}

textarea {
    height: 74px;

    resize: vertical;
}
.button-dark {
    width: 100%;

    justify-content: space-between;

    margin-top: 5px;

    background: var(--cyan);

    color: var(--black);

    border-color: var(--cyan);
}
.form-status {
    min-height: 20px;

    margin: 13px 0 0;

    color: var(--yellow);

    font-size: 13px;
}
footer {
    padding: 46px 0 0;

    background: var(--black);

    color: var(--yellow);

    border-top: 1px solid var(--yellow);
}
.footer-grid {
    display: grid;

    grid-template-columns:
        1fr
        1.5fr
        1fr;

    align-items: center;

    gap: 30px;
}
.footer-brand img {
    width: 190px;
    height: 70px;

    object-fit: contain;
}
.footer-grid p {
    font-size: 13px;
    color: var(--cyan);
}
.socials {
    display: flex;

    justify-content: flex-end;

    gap: 18px;
}
.socials a {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid var(--cyan);

    border-radius: 50%;

    color: var(--yellow);

    transition: .2s;
}

.socials a:hover {
    color: var(--black);

    background: var(--yellow);

    border-color: var(--yellow);

    transform: translateY(-3px);
}

.socials svg {
    width: 21px;
    height: 21px;

    fill: currentColor;
}
.copyright {
    margin-top: 38px;

    padding: 16px;

    text-align: center;

    border-top: 1px solid var(--cyan);

    color: var(--cyan);

    font-size: 11px;
}
@media (max-width: 780px) {

    .hero-content {
        display: block;
    }

    .hero-copy {
        max-width: none;
    }


    /* BANNER TECNOLÓGICO */

    .tech-banner {
        position: relative;

        flex: 0 0 360px;

        width: 360px;
        height: 360px;

        display: grid;
        place-items: center;
    }

    .tech-ring {
        position: absolute;
        inset: 0;

        border: 0;
        border-radius: 50%;

        display: grid;
        place-items: center;

        animation: spinRing 16s linear infinite;

        overflow: visible;
    }

    .tech-ring::before {
        content: "";

        position: absolute;
        inset: 28px;

        border: 1px solid var(--cyan);

        border-radius: 50%;
    }

    .tech-ring span {
        position: absolute;
        inset: -4px;

        display: block;

        font: 800 12px/1 Manrope;

        letter-spacing: 3px;

        color: var(--yellow);

        text-align: center;

        transform: rotate(0deg);

        white-space: nowrap;
    }

    .tech-disc {
        position: relative;

        width: 150px;
        height: 150px;

        border-radius: 50%;

        display: grid;
        place-items: center;

        background: var(--black);

        border: 3px solid var(--yellow);

        box-shadow:
            0 0 0 9px var(--black),
            0 0 0 10px var(--cyan),
            0 0 45px rgba(20, 159, 189, .25);

        animation: spinDisc 7s linear infinite;
    }

    .tech-disc::before {
        content: "";

        position: absolute;
        inset: 10px;

        border-radius: 50%;

        border: 1px dashed var(--cyan);
    }

    .tech-disc::after {
        content: "";

        position: absolute;

        width: 28px;
        height: 28px;

        border-radius: 50%;

        background: var(--cyan);

        border: 5px solid var(--yellow);

        z-index: 2;
    }

    .tech-banner:hover .tech-ring {
        animation-duration: 8s;
    }

    .tech-banner:hover .tech-disc {
        animation-duration: 3s;
    }

    .tech-ring span {
        font-size: 8px;
        letter-spacing: 2px;
    }



    .about-image,
    .about-image img {
        min-height: 300px;
        height: 300px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }



    .site-header {
        height: 68px;
    }

    .brand img {
        width: 145px;
        height: 52px;
    }




    .menu-button {
        display: block;
    }

    .menu {
        display: none;

        position: absolute;

        top: 68px;
        left: 0;

        width: 100%;

        padding: 22px 6%;

        background: var(--black);

        border-bottom: 1px solid var(--cyan);

        flex-direction: column;

        align-items: flex-start;
    }

    .menu.open {
        display: flex;
    }


    .hero {
        min-height: 660px;

        padding-top: 80px;
    }

    .hero h1,
    .about h2,
    .section-intro h2,
    .contact h2 {
        letter-spacing: -2.5px;
    }

    .hero-device {
        right: -115px;
        bottom: -125px;

        transform:
            rotate(7deg)
            scale(.76);

        transform-origin: bottom right;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;

        gap: 26px;
    }

    .section {
        padding: 80px 0;
    }


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


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

    .project {
        height: 220px;

        padding: 20px;
    }

    .contact-grid {
        gap: 45px;
    }


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

    .socials {
        justify-content: flex-start;
    }

    .footer-grid p {
        margin: 0;
    }

}


@media (max-width: 430px) {

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

    .hero h1 {
        font-size: 46px;
    }

    .hero-text {
        font-size: 15px;
    }

    .hero-device {
        display: none;
    }

}
html,
body,
a,
button,
.project,
.service-card {
    cursor: url("../img/logo.svg") 16 16, auto;
}
.tech-banner {
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-disc {
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: girar 10s linear infinite;
}

.tech-disc img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes girar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
/* CAPMOK — tipografía Montserrat */
body,
input,
textarea,
button { font-family: 'Montserrat', Arial, sans-serif; }
body { font-weight: 300; }
.hero h1,
.about h2,
.section-intro h2,
.contact h2,
.project h3,
.service-card h3 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; }
.hero-text,
.about-copy > p,
.section-intro,
.card-body p,
.contact > p,
.footer-grid p { font-weight: 300; }
.overline,
.menu a,
.button,
.card-body a,
.project span,
label { font-weight: 600; }

/* Submenú Nosotros — escritorio y móvil */
.menu-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}
.dropdown-toggle span {
    font-size: 16px;
    line-height: 1;
    transition: transform .2s ease;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 190px;
    padding: 9px;
    background: var(--black);
    border: 1px solid var(--cyan);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,.45);
    z-index: 100;
}
.menu-dropdown:hover .dropdown-menu,
.menu-dropdown:focus-within .dropdown-menu,
.menu-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.menu-dropdown.open .dropdown-toggle span {
    transform: rotate(180deg);
}
.dropdown-menu a {
    display: block;
    padding: 11px 13px;
    white-space: nowrap;
    color: var(--yellow);
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    color: var(--black);
    background: var(--yellow);
}

@media (max-width: 780px) {
    .menu {
        z-index: 50;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
    }
    .menu-dropdown {
        display: block;
        width: 100%;
        height: auto;
    }
    .dropdown-toggle {
        width: 100%;
        padding: 8px 0;
        justify-content: space-between;
    }
    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        margin: 2px 0 8px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        border-left: 2px solid var(--cyan);
        border-top: 0;
        border-right: 0;
        border-bottom: 0;
        padding: 0 0 0 12px;
        transition: opacity .2s ease, max-height .25s ease, visibility .2s ease;
    }
    .menu-dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 180px;
        transform: none;
    }
    .dropdown-menu a {
        font-size: 12px;
        padding: 10px 13px;
    }
}

