/* =========================
   VARIABLES
========================= */

:root {

    --black: #080808;
    --dark: #101010;
    --gray: #8d8d8d;
    --white: #f5f5f5;

    --accent: #ffdb38;

    --border: rgba(255,255,255,0.12);

    --font-title: "Space Grotesk", sans-serif;
    --font-body: "DM Sans", sans-serif;

}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    background: var(--black);

    color: var(--white);

    font-family: var(--font-body);

    overflow-x: hidden;
}

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

img {

    width: 100%;

    display: block;

    object-fit: cover;
}


/* =========================
   HEADER
========================= */

.header {

    position: fixed;

    top: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(8,8,8,0.75);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);
}

.navbar {

    max-width: 1400px;

    margin: auto;

    padding: 22px 5%;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {

    font-family: var(--font-title);

    font-size: 25px;

    font-weight: 700;

    letter-spacing: -1px;
}

.logo span,
h1 span,
h2 span {

    color: var(--accent);
}

.nav-menu {

    display: flex;

    align-items: center;

    gap: 35px;

    list-style: none;
}

.nav-menu a {

    font-size: 14px;

    color: #ccc;

    transition: 0.3s;
}

.nav-menu a:hover {

    color: var(--accent);
}

.nav-contact {

    border: 1px solid var(--border);

    padding: 10px 18px;

    border-radius: 30px;
}

.menu-toggle {

    display: none;

    background: none;

    border: none;

    color: white;

    font-size: 25px;
}


/* =========================
   HERO
========================= */

.hero {

    min-height: 100vh;

    position: relative;

    display: flex;

    align-items: center;

    padding: 150px 8% 80px;

    overflow: hidden;
}

.hero-background {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            rgba(8,8,8,0.95),
            rgba(8,8,8,0.4)
        ),

        url("../img/hero.jpg");

    background-size: cover;

    background-position: center;

    z-index: -2;
}

.hero-background::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 70% 40%,
            rgba(215,255,56,0.10),
            transparent 35%
        );
}

.hero-content {

    max-width: 850px;

    position: relative;

    z-index: 2;
}

.eyebrow {

    color: var(--accent);

    font-size: 12px;

    letter-spacing: 3px;

    font-weight: 700;

    margin-bottom: 25px;
}

.hero h1 {

    font-family: var(--font-title);

    font-size: clamp(60px, 9vw, 135px);

    line-height: 0.9;

    letter-spacing: -6px;

    margin-bottom: 40px;
}

.hero-description {

    max-width: 550px;

    color: #c5c5c5;

    font-size: 18px;

    line-height: 1.7;

    margin-bottom: 40px;
}

.hero-buttons {

    display: flex;

    gap: 15px;
}

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 15px 25px;

    border-radius: 40px;

    font-weight: 600;

    transition: 0.3s;
}

.btn-primary {

    background: var(--accent);

    color: #000;
}

.btn-primary:hover {

    transform: translateY(-4px);

    box-shadow: 0 15px 30px rgba(215,255,56,0.15);
}

.btn-secondary {

    border: 1px solid var(--border);

    color: white;
}

.btn-secondary:hover {

    background: white;

    color: black;
}

.hero-stats {

    position: absolute;

    bottom: 50px;

    right: 8%;

    display: flex;

    gap: 50px;
}

.hero-stats div {

    display: flex;

    flex-direction: column;
}

.hero-stats strong {

    font-size: 25px;
}

.hero-stats span {

    color: var(--gray);

    font-size: 12px;
}


/* =========================
   SECTIONS
========================= */

.section {

    max-width: 1400px;

    margin: auto;

    padding: 140px 7%;

    position: relative;
}

.section-number {

    position: absolute;

    top: 80px;

    left: 7%;

    color: var(--accent);

    font-size: 12px;

    font-weight: bold;
}

.section-heading {

    margin-bottom: 80px;
}

.section-heading h2,
.about-title h2,
.contact h2 {

    font-family: var(--font-title);

    font-size: clamp(45px, 6vw, 85px);

    line-height: 0.95;

    letter-spacing: -4px;
}


/* =========================
   ABOUT
========================= */

.about-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    margin-bottom: 100px;
}

.about-text {

    color: #aaa;

    font-size: 17px;

    line-height: 1.8;
}

.about-text p {

    margin-bottom: 25px;
}

.skills {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.skills span {

    border: 1px solid var(--border);

    border-radius: 30px;

    padding: 12px 20px;

    color: #aaa;

    font-size: 13px;
}


/* =========================
   SERVICES
========================= */

.services {

    background: var(--dark);

    max-width: none;

    padding-left: 7%;

    padding-right: 7%;
}

.services-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1px;

    background: var(--border);
}

.service-card {

    background: var(--dark);

    padding: 50px;

    min-height: 400px;

    transition: 0.4s;
}

.service-card:hover {

    background: #171717;
}

.service-number {

    color: var(--gray);

    font-size: 13px;

    margin-bottom: 50px;
}

.service-icon {

    font-size: 35px;

    margin-bottom: 25px;
}

.service-card h3 {

    font-family: var(--font-title);

    font-size: 30px;

    margin-bottom: 20px;
}

.service-card p {

    color: #999;

    line-height: 1.7;

    max-width: 500px;

    margin-bottom: 25px;
}

.service-card ul {

    list-style: none;

    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.service-card li {

    font-size: 12px;

    color: #aaa;

    border: 1px solid var(--border);

    padding: 7px 12px;

    border-radius: 20px;
}


/* =========================
   PORTFOLIO
========================= */

.portfolio-filters {

    display: flex;

    gap: 10px;

    margin-bottom: 40px;

    flex-wrap: wrap;
}

.filter {

    background: none;

    color: #999;

    border: 1px solid var(--border);

    padding: 10px 18px;

    border-radius: 30px;

    cursor: pointer;

    transition: 0.3s;
}

.filter.active,
.filter:hover {

    background: var(--accent);

    color: black;

    border-color: var(--accent);
}

.portfolio-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.portfolio-item {

    height: 400px;

    position: relative;

    overflow: hidden;

    cursor: pointer;
}

.portfolio-item.large {

    height: 600px;
}

.portfolio-item img {

    height: 100%;

    transition: transform 0.7s;
}

.portfolio-item:hover img {

    transform: scale(1.07);
}

.portfolio-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 30px;

    background:
        linear-gradient(
            transparent 40%,
            rgba(0,0,0,0.9)
        );

    opacity: 0;

    transition: 0.4s;
}

.portfolio-item:hover .portfolio-overlay {

    opacity: 1;
}

.portfolio-overlay span {

    color: var(--accent);

    font-size: 11px;

    letter-spacing: 2px;
}

.portfolio-overlay h3 {

    font-family: var(--font-title);

    font-size: 28px;

    margin-top: 8px;
}

.portfolio-item.hide {

    display: none;
}


/* =========================
   PROCESS
========================= */

.process {

    background: var(--dark);

    max-width: none;

    padding-left: 7%;

    padding-right: 7%;
}

.process-grid {

    display: grid;

    grid-template-columns: repeat(4,1fr);

    border-top: 1px solid var(--border);
}

.process-item {

    padding: 40px 30px;

    border-right: 1px solid var(--border);

    min-height: 300px;
}

.process-item span {

    color: var(--accent);

    font-size: 12px;
}

.process-item h3 {

    font-family: var(--font-title);

    margin: 50px 0 20px;

    font-size: 24px;
}

.process-item p {

    color: #888;

    line-height: 1.7;
}


/* =========================
   CTA
========================= */

.cta {

    padding: 180px 7%;

    text-align: center;

    background:

        radial-gradient(
            circle,
            rgba(215,255,56,0.08),
            transparent 40%
        );
}

.cta h2 {

    font-family: var(--font-title);

    font-size: clamp(50px,8vw,110px);

    line-height: 0.9;

    letter-spacing: -5px;

    margin-bottom: 30px;
}

.cta p {

    max-width: 500px;

    margin: 0 auto 35px;

    color: #999;

    line-height: 1.7;
}


/* =========================
   CONTACT
========================= */

.contact-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;
}

.contact-description {

    color: #888;

    max-width: 500px;

    line-height: 1.7;

    margin-top: 30px;
}

.contact-info {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 20px;
}

.contact-info > a {

    font-family: var(--font-title);

    font-size: 25px;

    border-bottom: 1px solid var(--border);

    padding-bottom: 8px;
}

.contact-info > a:hover {

    color: var(--accent);
}

.contact-info p {

    color: #888;
}

.socials {

    display: flex;

    gap: 20px;

    margin-top: 30px;
}

.socials a {

    color: #999;

    font-size: 13px;
}

.socials a:hover {

    color: var(--accent);
}


/* =========================
   FOOTER
========================= */

footer {

    padding: 50px 7%;

    border-top: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.footer-logo {

    font-family: var(--font-title);

    font-size: 25px;

    font-weight: bold;
}

.footer-logo span {

    color: var(--accent);
}

footer p {

    color: #666;

    font-size: 12px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .nav-menu {

        position: absolute;

        top: 75px;

        left: 0;

        width: 100%;

        background: #0a0a0a;

        flex-direction: column;

        padding: 30px;

        display: none;
    }

    .nav-menu.active {

        display: flex;
    }

    .menu-toggle {

        display: block;
    }

    .hero {

        padding-left: 6%;

        padding-right: 6%;
    }

    .hero h1 {

        font-size: clamp(55px, 12vw, 100px);

    }

    .hero-stats {

        display: none;
    }

    .about-grid,
    .contact-grid {

        grid-template-columns: 1fr;

        gap: 50px;
    }

    .services-grid {

        grid-template-columns: 1fr;
    }

    .process-grid {

        grid-template-columns: repeat(2,1fr);
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .navbar {

        padding: 18px 6%;
    }

    .hero {

        min-height: 100svh;

        padding: 130px 6% 60px;
    }

    .hero h1 {

        font-size: 62px;

        letter-spacing: -4px;
    }

    .hero-description {

        font-size: 16px;
    }

    .hero-buttons {

        flex-direction: column;

        align-items: flex-start;
    }

    .section {

        padding: 100px 6%;
    }

    .section-number {

        left: 6%;

        top: 50px;
    }

    .section-heading {

        margin-bottom: 50px;
    }

    .section-heading h2,
    .about-title h2,
    .contact h2 {

        font-size: 48px;

        letter-spacing: -3px;
    }

    .service-card {

        padding: 35px 25px;

        min-height: 350px;
    }

    .portfolio-grid {

        grid-template-columns: 1fr;
    }

    .portfolio-item,
    .portfolio-item.large {

        height: 400px;
    }

    .process-grid {

        grid-template-columns: 1fr;
    }

    .process-item {

        border-right: none;

        border-bottom: 1px solid var(--border);
    }

    .cta {

        padding: 120px 6%;
    }

    .cta h2 {

        font-size: 58px;
    }

    footer {

        flex-direction: column;

        gap: 20px;

        text-align: center;
    }
}

/* =========================
   GALERÍA / LIGHTBOX
========================= */
.portfolio-item { cursor: pointer; }
.portfolio-overlay small {
    display: block;
    color: #ddd;
    margin-top: 12px;
    font-size: 12px;
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0,0,0,.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.lightbox-content {
    width: min(1100px, 88vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-media {
    width: 100%;
    height: min(72vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-media img,
.lightbox-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-info {
    width: 100%;
    padding: 18px 0 0;
    text-align: center;
}
.lightbox-info span {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 2px;
}
.lightbox-info h3 {
    font-family: var(--font-title);
    font-size: 25px;
    margin: 7px 0;
}
.lightbox-info p {
    color: #888;
    font-size: 12px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,.08);
    color: white;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 35px;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: .2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent);
    color: #000;
}
.lightbox-close { top: 25px; right: 30px; font-size: 32px; }
.lightbox-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 30px; top: 50%; transform: translateY(-50%); }

@media (max-width: 700px) {
    .lightbox { padding: 18px; }
    .lightbox-content { width: 92vw; }
    .lightbox-media { height: 62vh; }
    .lightbox-close { top: 15px; right: 15px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}
