:root {
    --primary-color: rgb(0, 107, 255);
    --secondary-color: #000000;
    --text-color: #333333;
    --text-color-light: #ffffff;
    --header-color: #ffffff;
    --footer-bg-color: #080F19;
    --footer-border-color: #192A44;
    --btn-border-radius: 0.5rem;
    --gray-color: #c8c8c8;
    --gray-color-light: #f9f9f9;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 98px;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.container p {
    line-height: 1.8;
}

.header {
    background: linear-gradient(to bottom, var(--footer-bg-color), transparent);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    transition: background-color 0.3s ease, background 0.3s ease;
}

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

.header .logo {
    height: 54px;
    width: auto;
}

.header.header-exoesqueleto-active {
    background: #ffffff;
}

.header.header-exoesqueleto-active .nav-links a:not(.btn) {
    color: #000000;
}

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

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--header-color);
    transition: color 0.3s ease;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--btn-border-radius);
    text-decoration: none;
    color: var(--text-color-light) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-color-light);
}

.hero {
    position: relative;
    z-index: 1;
    color: #ffffff;
    padding-top: calc(10rem + 56px);
    padding-bottom: 2rem;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("/public/images/fondo-hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-text {
    width: min(630px, 50%);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

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

.hero-features {
    margin-top: 2rem;
    width: min(630px, 70%);
    display: flex;
}

.hero-features-list {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.hero-features-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 200px;
}

.hero-features-item img {
    width: 40px;
    height: 40px;
}

.hero-features-item p {
    font-size: 0.75rem;
}

.hero .cta-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.container h2 {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.container h3 {
    font-size: 1.5rem;
    margin-top: 0;
}

.features {
    background-color: #f5f6f8;
    padding: 2rem 0;
}

.features .container {
    display: flex;
    gap: 3rem;
    justify-content: space-between;
}

.features .features-info {
    width: 45%;
}

.features .features-info p {
    line-height: 1.5;
}

.features .features-info ul {
    list-style-image: url("public/svgs/check.svg");
    padding-left: 1rem;
}

.features .features-info ul li {
    margin: 0.75rem 0;
}

.features .btn {
    display: inline-block;
    margin: 1.25rem 0;
}

.features .features-image,
.about .about-image {
    width: 65%;
}

.features .features-image img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.applications {
    padding: 2rem 0;
    background-color: var(--footer-bg-color);
    color: var(--text-color-light);
}

.applications .container h2,
.applications .container h3 {
    text-align: center;
}

.applications .container h3 {
    margin-bottom: 1rem;
}

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

.applications-description span {
    color: var(--primary-color);
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.card {
    --card-color: lch(from var(--footer-bg-color) calc(l + 10) c h);
    width: min(280px, 25%);
    background-color: var(--card-color);
    border-radius: 12px;
    overflow: clip;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: -1.5rem;
    object-fit: cover;
    position: relative;
    z-index: 1;
    aspect-ratio: 4/3;
    object-position: center top;
}

.card-body {
    background-color: lch(from var(--card-color) calc(l + 10) c h);
    padding: 1rem;
    border-radius: 12px;
    min-height: 160px;
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.card-body p {
    font-size: 0.75rem;
}

.card-header p {
    font-size: 1rem;
    line-height: 1.2;
}

.card-header img {
    width: 80px;
    height: 80px;
}

.card-description {
    margin: 1rem 0 0;
    line-height: 1.5;
}

.about-content {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.about-info {
    width: 55%;
}

.about-list {
    width: 100%;
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;

}

.about-list li {
    margin: 1rem 0;
    padding: 1rem;
    width: 100px;
}

.about-list li:not(:last-child) {
    border-right: 1px solid var(--gray-color);
}

.about-list li div {
    text-align: center;
}

.about-list-item-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.about-list-item-image-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: clip;
    background-color: var(--gray-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-list-item-image-wrap img {
    width: 40px;
    height: auto;
    margin: 0 auto;
    object-fit: cover;
}

.about-list-text {
    font-size: 0.75rem;
    margin: 0;
}

.about-list-tittle {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.about-image img {
    width: 90%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    margin: auto;
}

.about-icons-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
    margin: 3rem auto;
    background-color: var(--gray-color-light);
    padding: 1rem;
    border-radius: 12px;
}

.about-icon {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.about-icon img {
    width: 40px;
    height: 40px;
}

.cta-final {
    background-color: var(--footer-bg-color);
    color: #fff;
}

.cta-final-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
}

.cta-final-icon-wrap {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(from var(--primary-color) r g b / 0.2);
    border-radius: 50%;
}

.cta-final-description {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
}

.cta-final-text {
    font-size: 1rem;
    margin: 0;
}

.cta-final-text h2 {
    font-size: 1.2rem !important;
    font-weight: bold;
    color: unset;
    margin-bottom: 0;
}

.cta-final-text p {
    margin-top: 0.5rem;
}

.cta-final-buttons {
    display: flex;
    gap: 1rem;
}

.footer {
    border-top: thin solid var(--footer-border-color);
    background-color: var(--footer-bg-color);
    color: #ffffff;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 3rem 0;
}

.footer-logo p {
    color: #cdcdcd;
    font-size: 0.8rem;
    margin: 0.5rem 0 0;
}

.footer .logo {
    width: 200px;
    height: auto;
}

.footer-section-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-content ul {
    list-style: none;
    padding: 0;
}

.footer-content li {
    margin: 0.5rem 0;
}

.footer-content a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    border-top: thin solid var(--footer-border-color);
    padding-top: 1rem
}

.footer-copyright p {
    text-align: center;
    color: #cdcdcd;
    font-size: 1rem;
    margin: 0;
}

/* =========================================
   Scroll Animations
   ========================================= */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.1, 0, 0.1, 1), transform 0.7s cubic-bezier(0.1, 0, 0.1, 1);
}

.animate-on-scroll.slide-left {
    transform: translateX(-40px);
}

.animate-on-scroll.slide-right {
    transform: translateX(40px);
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translate(0, 0);
}

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

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

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

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

/* =========================================
   Responsive Styles
   ========================================= */

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 20;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--header-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.header.header-exoesqueleto-active .burger-menu span {
    background-color: var(--secondary-color);
}

@media (max-width: 992px) {
    .features .container {
        flex-direction: column;
        align-items: center;
    }

    .features .features-info,
    .features .features-image,
    .about .about-image {
        width: 100%;
    }

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

    .card-container {
        flex-wrap: wrap;
    }

    .card {
        width: calc(50% - 1.5rem);
        max-width: 280px;
    }

    .about-content {
        flex-direction: column-reverse;
    }

    .about-info {
        width: 100%;
    }

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

@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .burger-menu {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--footer-bg-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 15;
    }

    .header.header-exoesqueleto-active .nav {
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .burger-menu.active span:first-child {
        transform: rotate(45deg);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .hero {
        padding-top: 5rem;
        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

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

    .hero-features {
        width: 100%;
        justify-content: center;
        margin-top: 2rem;
    }

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

    .hero-features-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .card {
        width: 100%;
        max-width: 280px;
    }

    .about-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .about-list li {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-color);
        padding-bottom: 1.5rem;
    }

    .about-list li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .about-icons-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .cta-final-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-final-description {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer .social-links {
        justify-content: center;
    }
}