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

/* GENERAL */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: white;
    line-height: 1.6;
    padding-top: 64px;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("images/estructura-sola.png") center center / cover no-repeat;
    transform: scale(1.12);
    filter: blur(7px) brightness(0.58);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.20);
    z-index: -1;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
    min-height: 64px;
}

/* LOGO */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo-text {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo-silver,
.logo-gold {
    display: inline-block;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35),
        0 2px 0 rgba(0, 0, 0, 0.25),
        0 3px 6px rgba(0, 0, 0, 0.45);
}

.logo-silver {
    background: linear-gradient(to bottom,
            #ffffff 0%,
            #f2f2f2 18%,
            #cfcfcf 38%,
            #ffffff 52%,
            #9c9c9c 72%,
            #eeeeee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-gold {
    background: linear-gradient(to bottom,
            #fff4b0 0%,
            #ffd95a 18%,
            #c69214 40%,
            #ffea8a 55%,
            #9f6d00 75%,
            #f5cd45 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* LINKS */
.nav-links {
    list-style: none;
    display: flex;
    gap: 14px;
}

.nav-links a {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.7px;
    padding: 7px 13px;
    border-radius: 8px;
    color: #f2f2f2;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.22) 0%,
            rgba(210, 210, 210, 0.11) 35%,
            rgba(115, 115, 115, 0.16) 55%,
            rgba(35, 35, 35, 0.22) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.42),
        0 2px 8px rgba(0, 0, 0, 0.35);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.58);
    transition: all 0.25s ease;
}

.nav-links a:hover {
    color: #fff7d1;
    background: linear-gradient(to bottom,
            rgba(255, 245, 185, 0.95) 0%,
            rgba(255, 219, 105, 0.88) 28%,
            rgba(205, 153, 22, 0.92) 52%,
            rgba(255, 236, 148, 0.90) 72%,
            rgba(128, 86, 0, 0.88) 100%);
    border: 1px solid rgba(255, 220, 120, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        inset 0 -1px 0 rgba(115, 72, 0, 0.40),
        0 4px 12px rgba(0, 0, 0, 0.42),
        0 0 12px rgba(255, 210, 90, 0.18);
    transform: translateY(-1px);
}

.nav-links a:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.35),
        0 1px 4px rgba(0, 0, 0, 0.28);
}

/* HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("images/fondo.jpg") center center / cover no-repeat;
    z-index: 0;
    animation: zoomHero 20s ease-in-out infinite alternate;
}

@keyframes zoomHero {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* OVERLAY */
.overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* HERO TEXT */
#hero-text {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.15),
        0 0 20px rgba(255, 255, 255, 0.08);
    padding: 12px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

#hero-text:hover {
    letter-spacing: 8px;
    text-shadow:
        0 0 15px rgba(255, 255, 255, 0.25),
        0 0 30px rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

#hero-text::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin: 12px auto 0;
    transition: width 0.4s ease, opacity 0.4s ease;
    opacity: 0.7;
}

#hero-text:hover::after {
    width: 100px;
    opacity: 1;
}

.hero-out {
    opacity: 0;
    transform: translateY(20px);
}

.hero-in {
    opacity: 1;
    transform: translateY(0);
}

/* SECCIONES */
section {
    padding: 80px 10%;
}

/* TITULOS */
h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-left: 5px solid #ff4d00;
    padding-left: 10px;
}

/* ABOUT */
.about {
    background-color: rgba(10, 10, 10, 0.28);
}

.about p {
    margin-bottom: 20px;
    color: #ccc;
}

/* FIRMA */
.firma {
    margin-top: 40px;
    font-weight: bold;
}

/* SERVICES */
.services {
    background: rgba(10, 10, 10, 0.28);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-items: center;
}

.service-card {
    width: 100%;
    max-width: 320px;
    background: rgba(26, 26, 26, 0.68);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(34, 34, 34, 0.82);
}

.service-card h3 {
    margin-bottom: 15px;
    color: white;
}

.service-card p {
    color: #ccc;
}

/* LGS */
.lgs {
    background-color: rgba(10, 10, 10, 0.28);
    padding: 80px 10%;
}

.lgs p {
    margin-bottom: 20px;
    color: #ccc;
}

.lgs-list {
    margin: 20px 0;
    padding-left: 20px;
}

.lgs-list li {
    margin-bottom: 10px;
    color: #ddd;
}

.lgs-final {
    margin-top: 20px;
    font-weight: bold;
    color: white;
}

/* PROJECTS */
.projects {
    padding: 80px 10%;
    background: rgba(10, 10, 10, 0.22);
}

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

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(17, 17, 17, 0.68);
    transition: box-shadow 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

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

.project-card:hover {
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.25);
}

/* CONTACT */
.contact {
    background: rgba(10, 10, 10, 0.25);
}

.contact p {
    margin-bottom: 10px;
}

.contact a {
    color: #ff4d00;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* INTRO VIDEO */
#intro-video {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 9999;
    overflow: hidden;
}

#intro-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fade-out {
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

/* MOBILE */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    body::before {
        transform: scale(1.08);
        filter: blur(6px) brightness(0.55);
    }

    .navbar {
        justify-content: center;
        padding: 15px 50px 15px 20px;
        min-height: 70px;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.92);
        flex-direction: column;
        text-align: center;
        display: none;
        gap: 0;
        padding: 8px 0 12px;
    }

    .nav-links.active {
        display: flex;
    }

    .logo-text {
        font-size: 1.05rem;
        gap: 5px;
    }

    .nav-links li {
        padding: 8px 0;
        border-top: none;
    }

    .nav-links a {
        display: inline-block;
        min-width: 150px;
        text-align: center;
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .hero {
        height: 100vh;
        padding: 0;
        background-position: center center;
        background-size: cover;
    }

    .overlay {
        width: 100%;
        height: 100%;
        padding: 20px;
        background: rgba(0, 0, 0, 0.35);
    }

    #hero-text {
        font-size: 2rem;
    }

    section {
        padding: 50px 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .about {
        text-align: left;
    }

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

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

    .project-card img {
        height: 240px;
    }

    .lgs {
        padding: 50px 20px;
    }
}