﻿:root {
    --db-green: #009b78;
    --db-green-dark: #007867;
    --db-teal: #005a52;
    --db-ink: #09233f;
    --db-muted: #5f7288;
    --db-mint: #eafbf6;
    --db-line: #d7eee8;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--db-muted);
    background: #fff;
    font-family: "Manrope", sans-serif;
}

section[id],
footer[id] {
    scroll-margin-top: 90px;
}

/* Encabezado */
.site-header {
    position: relative;
    z-index: 100;
}

    .site-header .navbar {
        min-height: auto;
        padding: 6px 0;
        border-bottom: 1px solid rgba(0, 90, 82, .08);
    }

.nav-shell {
    position: relative;
    width: 100%;
    max-width: 1440px;
    padding: 0 4%;
}

.site-header .navbar-brand {
    padding: 0;
}

.databit-logo {
    width: 240px !important;
    max-height: 82px !important;
    height: auto !important;
    object-fit: contain;
    object-position: left center;
}

.navbar .navbar-nav .nav-link {
    padding-right: 18px;
    padding-left: 18px;
    color: var(--db-ink);
    font-size: 15px;
    font-weight: 700;
}

    .navbar .navbar-nav .nav-link:hover,
    .navbar .navbar-nav .nav-link:focus {
        color: var(--db-green-dark);
    }

#databitMenuButton {
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Hero */
.hero-section {
    padding: 60px 0 0;
    background: radial-gradient(circle at 82% 35%, rgba(80, 232, 193, .22), transparent 31%), linear-gradient(135deg, #fbfffe 0%, #eefcf8 100%);
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image: linear-gradient(rgba(0, 120, 103, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 120, 103, .07) 1px, transparent 1px);
    background-size: 70px 70px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 55%, #000 100%);
}

.hero-title {
    margin: 0 0 24px;
    color: var(--db-ink);
    font-size: clamp(2.2rem, 3.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.065em;
}

    .hero-title span {
        position: relative;
        color: var(--db-green-dark);
        white-space: nowrap;
    }

        .hero-title span::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: -5px;
            left: 0;
            height: 8px;
            border-radius: 100%;
            background: var(--db-green);
            opacity: .27;
            transform: rotate(-1.5deg);
        }

.hero-image-column {
    position: relative;
}

.hero-visual {
    padding: 25px;
}

    .hero-visual > img {
        filter: drop-shadow(0 35px 30px rgba(0, 65, 60, .18));
    }

.visual-orbit {
    position: absolute;
    border: 1px solid rgba(0, 155, 120, .22);
    border-radius: 50%;
}

.orbit-one {
    top: 19%;
    right: 15%;
    width: 55%;
    aspect-ratio: 1;
}

.orbit-two {
    bottom: 8%;
    left: 10%;
    width: 54%;
    aspect-ratio: 1;
    border-style: dashed;
}

.floating-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border-radius: 12px;
    color: var(--db-ink);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 13px 35px rgba(0, 65, 60, .13);
    font-size: 12px;
    font-weight: 700;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

    .floating-chip i {
        color: var(--db-green);
        font-size: 20px;
    }

.chip-top {
    top: 15%;
    right: 2%;
}

.chip-bottom {
    bottom: 13%;
    left: 0;
}

.hero-wave {
    position: absolute;
    right: -5%;
    bottom: -12px;
    left: -5%;
    height: 24px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: #fff;
}

/* Tecnologias del hero */
.hero-proof-tech {
    display: flex;
    gap: 22px;
    margin-top: 60px;
}

    .hero-proof-tech > .hero-tech-item {
        display: flex;
        align-items: center;
        gap: 14px;
        width: calc(50% - 11px);
    }

.hero-tech-icon {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: var(--db-green-dark);
    background: var(--db-mint);
}

    .hero-tech-icon i {
        font-size: 23px;
    }

.hero-tech-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

    .hero-tech-content strong {
        color: var(--db-ink);
        font-size: 16px;
        font-weight: 800;
        line-height: 1.25;
    }

    .hero-tech-content span {
        margin-top: 5px;
        color: var(--db-muted);
        font-size: 12px;
        font-weight: 500;
    }

.hero-proof-single > .hero-tech-item {
    align-items: flex-start;
    width: auto;
    max-width: 420px;
}

.hero-proof-single .hero-tech-content span {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.25;
}

/* Seccion Nosotros */
.about-section {
    padding: 10px 0 40px;
}

.section-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--db-green-dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 22px;
    color: var(--db-ink);
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.section-copy {
    color: var(--db-muted);
    font-size: 17px;
    line-height: 1.8;
}

.about-single-title {
    max-width: 850px;
    margin-bottom: 16px;
}

.about-single-text {
    max-width: 950px;
}

    .about-single-text .section-copy {
        margin-bottom: 10px;
        color: #687b8e;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.65;
    }

        .about-single-text .section-copy:last-child {
            margin-bottom: 0;
        }

/* Servicios */
.services-section {
    padding: 40px 0;
}

.bg-light-mint {
    background: #f3fbf9;
}

.services-title {
    max-width: 700px;
    margin-bottom: 10px;
    font-size: clamp(1.9rem, 2.5vw, 2.5rem);
    line-height: 1.15;
}

.services-intro {
    max-width: 720px;
    margin: 0;
    color: #687b8e;
    font-size: 15px;
    line-height: 1.65;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 34px 30px;
    border: 1px solid #dfeeea;
    border-radius: 20px;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

    .service-card:hover {
        border-color: rgba(0, 155, 120, .34);
        box-shadow: 0 22px 45px rgba(0, 90, 82, .11);
        transform: translateY(-8px);
    }

.service-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 28px;
    place-items: center;
    border-radius: 16px;
    color: var(--db-green-dark);
    background: var(--db-mint);
    font-size: 28px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--db-ink);
    font-size: 19px;
    line-height: 1.25;
}

.service-card p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.65;
}

    .service-card p:last-of-type {
        margin-bottom: 18px;
    }

.service-tech {
    margin-top: auto;
    color: var(--db-green-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Footer */
.site-footer {
    padding: 0;
    border-top: 0;
    color: rgba(255, 255, 255, .75);
    background: linear-gradient(135deg, #06362f, var(--db-teal));
    font-size: 11px;
}

.footer-main,
.footer-copyright-container {
    max-width: 1100px;
}

.footer-main {
    padding-top: 40px;
    padding-bottom: 25px;
}

.footer-icon-logo {
    width: 90px;
    height: auto;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 13px;
}

    .footer-info-item address {
        margin: 0;
        color: rgba(255, 255, 255, .75);
        font-size: 13px;
        font-style: normal;
        line-height: 1.65;
    }

.footer-info-icon {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #7df0cf;
    background: rgba(255, 255, 255, .09);
    font-size: 15px;
}

.footer-contact-list,
.footer-phone-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
}

    .footer-contact-item:hover,
    .footer-contact-item:focus {
        color: #7df0cf !important;
    }

.footer-bottom {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
}

    .footer-bottom p {
        margin: 0;
        color: rgba(255, 255, 255, .55);
        font-size: 11px;
    }

/* Boton regresar arriba */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99;
    display: none;
}

    .back-top a {
        display: grid;
        width: 46px;
        height: 46px;
        place-items: center;
        border-radius: 50%;
        color: #fff;
        background: var(--db-teal);
        box-shadow: 0 12px 30px rgba(0, 65, 60, .25);
        font-size: 20px;
    }

        .back-top a:hover,
        .back-top a:focus {
            color: #fff;
            background: var(--db-green);
            transform: translateY(-2px);
        }

/* Tablet y menu movil */
@media (max-width: 991px) {
    section[id],
    footer[id] {
        scroll-margin-top: 80px;
    }

    .site-header .navbar {
        padding: 5px 0;
    }

    .databit-logo {
        width: 190px !important;
        max-height: 60px !important;
    }

    #navbarNav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 1000;
        padding: 14px 25px;
        background: #fff;
        box-shadow: 0 15px 30px rgba(9, 35, 63, .12);
    }

        #navbarNav:not(.show) {
            display: none !important;
        }

        #navbarNav.show {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            transform: none !important;
        }

        #navbarNav .navbar-nav {
            align-items: flex-start !important;
        }

        #navbarNav .nav-link {
            width: 100%;
            padding: 10px 0 !important;
        }

    .hero-section {
        padding-top: 85px;
    }

    .hero-title {
        position: relative;
        z-index: 5;
        max-width: 620px;
        margin: 0 auto 15px;
        padding: 0 15px;
        font-size: 2.25rem;
        line-height: 1.15;
        letter-spacing: -.04em;
        text-align: center;
    }

        .hero-title span {
            display: block;
            margin-top: 5px;
            white-space: normal;
        }

    .hero-image-column {
        margin-top: 20px !important;
    }

    .hero-proof-tech {
        margin-top: 28px;
        margin-bottom: 10px;
    }

    .services-section {
        padding: 55px 0;
    }
}

@media (min-width: 576px) {
    .hero-proof-single .hero-tech-content span {
        white-space: nowrap;
    }
}

/* Telefonos */
@media (max-width: 575px) {
    .nav-shell {
        padding: 0 20px;
    }

    .databit-logo {
        width: 170px !important;
        max-height: 56px !important;
    }

    .hero-section {
        padding-top: 75px;
    }

    .hero-title {
        max-width: 420px;
        padding: 0 10px;
        font-size: 1.9rem;
    }

    .hero-visual {
        padding: 10px;
    }

    .floating-chip {
        padding: 9px 11px;
        font-size: 10px;
    }

        .floating-chip i {
            font-size: 17px;
        }

    .chip-top {
        right: -2%;
    }

    .chip-bottom {
        left: -2%;
    }

    .hero-proof-tech > .hero-tech-item {
        width: 100%;
    }

    .hero-tech-content strong {
        font-size: 15px;
    }

    .section-title {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .services-title {
        font-size: 1.75rem;
    }

    .services-intro {
        font-size: 14px;
        line-height: 1.6;
    }

    .section-copy {
        font-size: 15px;
        line-height: 1.7;
    }

    .about-section {
        padding-bottom: 30px;
    }

    .services-section {
        padding: 40px 0;
    }

    .service-card {
        padding: 28px 24px;
    }

    .footer-main {
        padding-top: 18px;
        padding-bottom: 15px;
    }

    .footer-icon-logo {
        width: 72px;
    }

    .footer-info-item,
    .footer-contact-list {
        max-width: 300px;
        margin-right: auto;
        margin-left: auto;
    }

    .footer-bottom {
        padding: 8px 0;
    }

    .back-top {
        right: 16px;
        bottom: 16px;
    }
}
.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 18px;
}

.language-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

    .language-link img {
        width: 25px;
        height: 17px;
        object-fit: cover;
        border-radius: 2px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    }

    .language-link:hover,
    .language-link.active {
        color: #007867;
        opacity: 1;
    }

    .language-link:hover {
        transform: translateY(-1px);
    }

@media (max-width: 991px) {
    .language-selector {
        justify-content: center;
        margin: 15px 0 5px;
    }
}