:root {
    --azul: #20235b;
    --azul2: #30367f;
    --negro: #101116;
    --gris: #f3f4f7;
    --blanco: #ffffff;
    --texto: #272a33;
    --verde: #25d366;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--texto);
    background: var(--blanco);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(92%, var(--max));
    margin: auto;
}

/* BARRA SUPERIOR */

.topbar {
    background: var(--negro);
    color: var(--blanco);
    font-size: 0.9rem;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
    flex-wrap: wrap;
}

/* NAVEGACIÓN */

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.navwrap {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 8px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    line-height: 1.1;
}

.brand img {
    width: 150px;
    height: auto;
    max-height: 86px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 3px 8px rgba(20, 26, 65, 0.12));
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 245px;
}

.brand-copy strong {
    color: var(--azul);
    font-size: 1.18rem;
    letter-spacing: 0.6px;
    font-weight: 900;
}

.brand-copy small {
    margin-top: 6px;
    color: #5c6073;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0.15px;
}

.menu {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-left: auto;
    font-weight: 650;
}

.menu a:hover {
    color: var(--azul2);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 28px;
    color: var(--azul);
    cursor: pointer;
}

/* BOTONES */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 10px;
    font-weight: 800;
    transition: 0.2s;
    border: 0;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--azul2);
}

.btn-light {
    background: var(--blanco);
    color: var(--azul);
}

/* PORTADA */

.hero {
    min-height: 680px;
    display: grid;
    place-items: center;
    position: relative;
    color: var(--blanco);
    background:
        linear-gradient(90deg, rgba(9, 10, 16, 0.92), rgba(16, 18, 28, 0.45)),
        url("../img/proyectos/kia-rio/08-resultado-final.webp") center / cover no-repeat;
}

.hero-content {
    max-width: 720px;
    padding: 90px 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    color: #d9dcff;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    line-height: 1.02;
    margin: 12px 0 20px;
    overflow-wrap: anywhere;
}

.hero p {
    font-size: 1.2rem;
    max-width: 660px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* SECCIONES */

.section {
    padding: 88px 0;
}

.section-alt {
    background: var(--gris);
}

.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 44px;
}

.section-title span {
    color: var(--azul);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 8px 0;
}

/* TARJETAS Y SERVICIOS */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: var(--blanco);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(26, 31, 55, 0.09);
    border: 1px solid #e8e9ef;
}

.card h3 {
    margin: 8px 0;
}

.icon {
    font-size: 2rem;
}

/* NOSOTROS */

.about {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.about img {
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}

.checklist {
    padding: 0;
    list-style: none;
}

.checklist li {
    margin: 10px 0;
}

.checklist li::before {
    content: "✓";
    font-weight: 900;
    color: var(--azul);
    margin-right: 10px;
}

/* TRABAJOS */

.project {
    background: var(--negro);
    color: var(--blanco);
}

.project .section-title span {
    color: #aeb5ff;
}

.project-cover {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    background: #191b24;
    border-radius: 22px;
    padding: 24px;
}

.project-cover img {
    height: 430px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.step {
    background: var(--blanco);
    color: #222222;
    border-radius: 15px;
    overflow: hidden;
}

.step img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.step div {
    padding: 15px;
    font-weight: 800;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.gallery img {
    height: 190px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.gallery img:hover {
    transform: scale(1.02);
}

/* CONTACTO */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
}

.contact-card {
    background: var(--negro);
    color: var(--blanco);
    border-radius: 20px;
    padding: 34px;
}

.contact-item {
    margin: 20px 0;
}

.contact-item strong {
    display: block;
    color: #bfc4ff;
}

.form {
    display: grid;
    gap: 14px;
}

.form input,
.form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d8dbe5;
    border-radius: 10px;
    font: inherit;
}

.form textarea {
    min-height: 130px;
    resize: vertical;
}

.form input:focus,
.form textarea:focus {
    outline: 2px solid rgba(32, 35, 91, 0.18);
    border-color: var(--azul);
}

/* PIE DE PÁGINA */

.footer {
    background: #090a0e;
    color: #c9cbd3;
    padding: 34px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* WHATSAPP FLOTANTE */

.whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--verde);
    color: var(--blanco);
    font-size: 28px;
    z-index: 30;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

/* VISOR DE IMÁGENES */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-height: 88vh;
    max-width: 94vw;
    border-radius: 12px;
}

.lightbox button {
    position: absolute;
    right: 25px;
    top: 15px;
    background: none;
    border: 0;
    color: var(--blanco);
    font-size: 42px;
    cursor: pointer;
}

/* TABLETAS */

@media (max-width: 1120px) {
    .brand img {
        width: 125px;
    }

    .brand-copy {
        min-width: 210px;
    }

    .brand-copy strong {
        font-size: 1rem;
    }

    .brand-copy small {
        font-size: 0.82rem;
    }

    .menu {
        gap: 15px;
        font-size: 0.94rem;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .menu {
        position: absolute;
        top: 108px;
        left: 0;
        right: 0;
        background: var(--blanco);
        display: none;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 14px 25px rgba(0, 0, 0, 0.12);
    }

    .menu.open {
        display: flex;
    }

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

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

    .timeline,
    .gallery {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        min-height: 620px;
    }

    .project-cover img {
        height: 330px;
    }
}

/* CELULARES */

@media (max-width: 560px) {
    .grid-3,
    .timeline,
    .gallery {
        grid-template-columns: 1fr;
    }

    .topbar .container {
        justify-content: center;
        text-align: center;
    }

    .navwrap {
        min-height: 88px;
    }

    .brand {
        gap: 10px;
    }

    .brand img {
        width: 86px;
        max-height: 60px;
    }

    .brand-copy {
        min-width: 0;
        max-width: 175px;
    }

    .brand-copy strong {
        font-size: 0.82rem;
    }

    .brand-copy small {
        margin-top: 4px;
        font-size: 0.7rem;
        line-height: 1.25;
    }

    .menu {
        top: 88px;
    }

    .hero h1 {
        font-size: 2.65rem;
    }

    .section {
        padding: 65px 0;
    }

    .gallery img,
    .step img {
        height: 220px;
    }
}
