/* ==================================================
   VARIABLES
================================================== */

:root {

    /* Colores */

    --primary-color: #0047B8;
    --primary-dark: #00348A;

    --secondary-color: #FF7A00;
    --secondary-dark: #d96600;

    --dark-color: #2E2E2E;
    --dark-light: #555555;

    --gray-color: #EAEAEA;
    --light-color: #F8F8F8;

    --white-color: #FFFFFF;

    /* Tipografía */

    --font-main: 'Montserrat', sans-serif;

    /* Sombras */

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, .10);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .15);

    /* Bordes */

    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 30px;

    /* Transiciones */

    --transition: .3s ease;

    /* Contenedor */

    --container-width: 1200px;
}


/* ==================================================
   RESET
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark-color);
    background-color: var(--white-color);
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}


/* ==================================================
   CLASES GENERALES
================================================== */

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--secondary-color);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-top: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 15px 30px;

    background: var(--secondary-color);
    color: var(--white-color);

    border-radius: var(--radius-lg);

    font-weight: 600;

    transition: var(--transition);
}

.btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white-color);
}

.btn-secondary:hover {
    background: var(--white-color);
    color: var(--primary-color);
}


/* ==================================================
   HEADER
================================================== */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;

    z-index: 999;

    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);

    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 90px;
}

.logo img {
    width: 180px;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-nav {
    padding: 12px 25px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
}


/* ==================================================
   HERO
================================================== */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    position: relative;

    padding-top: 120px; /* Evita que el header fijo tape el contenido */
    padding-bottom: 60px;

    background:
        linear-gradient(rgba(0,0,0,.65),
        rgba(0,0,0,.65)),
        url('../img/hero.jpg') center/cover;
}

.hero-content {
    position: relative;
    color: var(--white-color);
    max-width: 700px;
}

.hero-subtitle {
    display: inline-block;

    color: var(--secondary-color);

    font-weight: 700;
    letter-spacing: 2px;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.3rem, 4.5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;

    margin-bottom: 30px;
}

.hero-features i {
    color: var(--secondary-color);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}


/* ==================================================
   SERVICIOS
================================================== */

.services {
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white-color);

    padding: 40px 30px;

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);

    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
}


/* ==================================================
   FLOTAS
================================================== */

.fleet {
    background: var(--primary-color);
    color: var(--white-color);
}

.fleet-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.fleet-image img {
    border-radius: var(--radius-md);
}

.fleet-content span {
    color: var(--secondary-color);
    font-weight: 700;
}

.fleet-content h2 {
    font-size: 2.7rem;
    margin: 20px 0;
}

.fleet-content p {
    margin-bottom: 30px;
}

.fleet-content ul li {
    margin-bottom: 20px;
}

.fleet-content i {
    color: var(--secondary-color);
    margin-right: 10px;
}


/* ==================================================
   NOSOTROS
================================================== */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 30px;
}

.about-item {
    text-align: center;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
}

.about-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}


/* ==================================================
   GALERIA
================================================== */

.gallery {
    background: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

.gallery-grid img {
    border-radius: var(--radius-md);
    height: 320px;
    object-fit: cover;

    transition: var(--transition);
}

.gallery-grid img:hover {
    transform: scale(1.03);
}


/* ==================================================
   CTA
================================================== */

.cta {
    padding: 80px 0;

    background:
        linear-gradient(rgba(0,71,184,.9),
        rgba(0,71,184,.9)),
        url('../img/flotas.jpg') center/cover;

    text-align: center;
    color: var(--white-color);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 35px;
}


/* ==================================================
   CONTACTO
================================================== */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-info div {
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {

    width: 100%;

    padding: 18px;

    border: 1px solid #ddd;

    border-radius: var(--radius-sm);

    font-family: inherit;
}

.contact-form textarea {
    resize: none;
    height: 180px;
}

.contact-map {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-color);
    transition: var(--transition);
}

.contact-map:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(0.2) opacity(0.95);
    transition: var(--transition);
}

.contact-map:hover iframe {
    filter: grayscale(0) opacity(1);
}


/* ==================================================
   FOOTER
================================================== */

.footer {
    background: var(--dark-color);
    color: var(--white-color);

    padding: 40px 0;

    text-align: center;
}

.footer img {
    width: 180px;
    margin: 0 auto 20px;
}

.footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer p:last-child {
    margin-bottom: 0;
}

.footer a.developer-link {
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.footer a.developer-link:hover {
    color: var(--white-color);
}


/* ======================================
   HEADER SCROLLED
====================================== */

.header.scrolled{

    background: rgba(255,255,255,.98);

    box-shadow: var(--shadow-md);

}

/* ======================================
   ANIMACIONES
====================================== */

.service-card,
.about-item,
.fleet-image,
.fleet-content,
.gallery-grid img{

    opacity: 0;
    transform: translateY(40px);

    transition: .8s ease;
}

.show{

    opacity: 1 !important;
    transform: translateY(0) !important;

}

/* ======================================
   WHATSAPP FLOAT
====================================== */

.whatsapp{

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 65px;
    height: 65px;

    background: #25D366;
    color: white;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 2rem;

    box-shadow: var(--shadow-lg);

    z-index: 999;

    transition: var(--transition);
}

.whatsapp:hover{

    transform: scale(1.1);

}

/* ==================================================
   RESPONSIVE
================================================== */

@media(max-width: 992px) {

    .nav-menu,
    .btn-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .fleet-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media(max-width: 768px) {

    .section {
        padding: 70px 0;
    }

    .hero {
        text-align: center;
    }

    .hero-buttons,
    .hero-features {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .fleet-content h2,
    .cta h2 {
        font-size: 2rem;
    }
}

/* ======================================
   MOBILE MENU
====================================== */

@media(max-width:992px){

    .nav-menu{

        position: absolute;

        top: 90px;
        left: -100%;

        width: 100%;

        background: var(--white-color);

        flex-direction: column;

        padding: 40px 0;

        text-align: center;

        box-shadow: var(--shadow-md);

        transition: var(--transition);
    }

    .nav-menu.active{
        left: 0;
    }

}