/* ========================================
CSS - Geotrack360 v4.0
Botón de Login añadido
========================================
*/

/* ------------------- */
/* VARIABLES DE COLOR Y FUENTES */
/* ------------------- */
:root {
    --brand-purple: #6D4DD6;
    --dark-blue: #0A2540;
    --text-light: #F6F9FC;
    --text-dark: #363636;
    --background-gray: #F8F9FA;
    --font-family: 'Inter', sans-serif;
}

/* ------------------- */
/* RESET Y GLOBALES */
/* ------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: #FFF;
    color: var(--text-dark);
    line-height: 1.6;
}

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

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.05rem;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}


/* ------------------- */
/* HEADER Y NAVEGACIÓN */
/* ------------------- */
.header {
    background-color: var(--brand-purple);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav__logo-img {
    height: 35px;
    width: auto;
}

.nav__menu {
    /* Estilos para el contenedor del menú móvil (se aplican en @media) */
}

.nav__list {
    display: flex;
    align-items: center; /* Asegura la alineación vertical */
    list-style: none;
    gap: 2.25rem;
}

.nav__link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s;
}

.nav__link:hover {
    opacity: 0.8;
}

/* Estilos para el botón de login en el header */
.btn--header-login {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--text-light);
    border-radius: 6px;
}

.btn--header-login:hover {
    opacity: 1;
    background-color: var(--text-light);
    color: var(--brand-purple);
}

.nav__toggle {
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
    color: var(--text-light);
}
        
/* ------------------- */
/* HERO SECTION */
/* ------------------- */
.hero {
    padding-top: 90px;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-light);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero-background-city.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(10, 37, 64, 0.6);
    background-blend-mode: multiply;
    z-index: -1;
}

.hero__content {
    max-width: 650px;
    text-align: center;
    margin: 0 auto;
    padding: 2rem 0;
}
        
.hero__title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: #FFF;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 550px;
    color: #E2E8F0;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    text-decoration: none;
    padding: 0.9rem 2.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, background-color 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--brand-purple);
    color: #FFF;
}
        
.btn:hover {
    background-color: #8A6EE2;
}

/* ------------------- */
/* FEATURES SECTION */
/* ------------------- */
.features {
    background-color: var(--background-gray);
}

.features__layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background-color: #FFF;
    padding: 1.25rem;
    border-radius: 12px;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.feature-card__icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #ebe5ff;
    margin-bottom: 1rem;
}

.feature-card__icon i {
    font-size: 1.4rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    color: var(--dark-blue);
    margin-bottom: 0.4rem;
}

.feature-card p {
    color: #6B7280;
    font-size: 0.85rem;
    line-height: 1.5;
}

.features__showcase img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* ------------------- */
/* SOLUTIONS SECTION */
/* ------------------- */
.solutions {
    padding-bottom: 3rem;
}

.solutions__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.solution-card {
    position: relative;
    color: var(--text-light);
    padding: 3rem;
    border-radius: 16px;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s;
}

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

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: transform 0.4s;
}

#solution-logistica::before {
    background-image: linear-gradient(to top, rgba(10, 20, 40, 0.95) 0%, rgba(10, 20, 40, 0.2) 50%), url('geotrack_soluciones_logistica.jpg');
}

#solution-construccion::before {
    background-image: linear-gradient(to top, rgba(10, 20, 40, 0.95) 0%, rgba(10, 20, 40, 0.2) 50%), url('geotrack_soluciones_construccion.jpg');
}

.solution-card:hover::before {
    transform: scale(1.1);
}

.solution-card__content {
    position: relative;
    z-index: 2;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.6);
}

.solution-card__content h3 {
    font-size: 2rem;
    color: #FFF;
    margin-bottom: 1rem;
}

.solution-card__content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.solution-card__content ul {
    list-style: none;
    padding-left: 0;
}

.solution-card__content ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.solution-card__content ul i {
    color: var(--brand-purple);
    font-size: 1.4rem;
}

/* ------------------- */
/* PLATFORM SECTION */
/* ------------------- */
.platform {
    background-color: var(--background-gray);
}

.platform__mockup {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.platform__mockup-desktop {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.platform__mockup-mobile {
    position: absolute;
    bottom: -10%;
    right: 0%;
    width: 25%;
    height: auto;
    border-radius: 12px;
    border: 3px solid #FFF;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}


/* ------------------- */
/* CONTACT SECTION */
/* ------------------- */
.contact {
    padding-top: 5rem;
    padding-bottom: 4rem;
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact__info h3 {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.contact__info p {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
}

.contact__info ul {
    list-style: none;
    padding-left: 0;
}

.contact__info ul li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.contact__info ul i {
    color: var(--brand-purple);
    font-size: 1.4rem;
}

.contact__form {
    background-color: #FFF;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    font-family: var(--font-family);
    font-size: 0.95rem;
}

.contact__form .btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
}

/* ------------------- */
/* FOOTER */
/* ------------------- */
.footer {
    background-color: var(--brand-purple);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 2.5rem;
    margin-top: 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 1.5rem;
}

.footer__logo-img {
    height: 35px;
    width: auto;
    margin-bottom: 1rem;
}

.footer__brand p {
    max-width: 300px;
    font-size: 0.9rem;
}

.footer h4 {
    font-size: 1.1rem;
    color: #FFF;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

/* Regla para alinear íconos y texto en el footer */
.footer__contact ul li {
    display: flex;
    align-items: center;
}

.footer a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer a:hover {
    color: #FFF;
}
.footer__contact ul i {
    margin-right: 0.5rem;
}

.footer__copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 1.25rem 0;
    font-size: 0.85rem;
}


/* --- Responsive para secciones --- */
@media screen and (max-width: 992px) {
    .features__layout {
        grid-template-columns: 1fr;
    }
    .contact__grid {
        grid-template-columns: 1fr;
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(109, 77, 214, 0.95);
        backdrop-filter: blur(10px);
        transition: right 0.4s ease-in-out;
        padding-top: 3rem;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .nav__link {
        font-size: 1.3rem;
    }

    .show-menu {
        right: 0;
    }
    
    .nav__toggle {
        display: block;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    .features__layout {
        gap: 2rem;
    }

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

    .features__showcase {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .solutions__grid {
        grid-template-columns: 1fr;
    }
    
    .contact__grid {
        grid-template-columns: 1fr;
    }
    
    .platform__mockup-mobile {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Estilos para el botón de login en móvil */
    .nav__item .btn--header-login {
        border: none;
        background-color: var(--dark-blue);
        padding: 0.8rem 2.5rem;
        border-radius: 8px;
        margin-top: 1rem;
    }

    .nav__item .btn--header-login:hover {
        background-color: var(--dark-blue);
        color: var(--text-light);
        opacity: 0.9;
    }
}