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

:root {
    --bg-color: #fcfcfc;
    --text-main: #111;
    --text-muted: #666;
    --accent: #111;
    --font-main: 'Inter', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

body {
    font-family: var(--font-main);
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #fff;
    transition: color 0.3s;
}

.logo span {
    display: block;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    opacity: 0.9;
    margin-top: 2px;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header.scrolled .logo,
.header.scrolled .nav-link {
    color: #000;
}

.header.scrolled .nav-link::after {
    background: #000;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.header.scrolled .bar {
    background: #000;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://cdn.mos.cms.futurecdn.net/4oKsXuShGrm8v5UUYkQdkK.jpg') center/cover no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 900px;
    animation: fadeUpLoad 1.2s ease-out forwards;
    opacity: 0;
}

@keyframes fadeUpLoad {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-content .subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    background: #fff;
    color: #000;
    transition: var(--transition-smooth);
    border: 2px solid #fff;
}

.btn:hover {
    background: transparent;
    color: #fff;
}

.section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project {
    height: 400px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.project-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: 0.4s;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.project:hover .project-overlay {
    opacity: 1;
}

.project-info h3 {
    color: #fff;
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.project-info p {
    color: #ddd;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-hint {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.3s ease;
    animation: pulse 2s infinite;
}

.project-hint span {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
}

.project:hover .project-hint {
    opacity: 0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.servicios {
    background: #fff;
    padding: 6rem 0;
}

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

.service-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    cursor: default;
}

.service-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    filter: grayscale(100%) brightness(0.7);
}

.service-card:hover .service-bg {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(0.4);
}

.service-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: #fff;
    z-index: 2;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    position: relative;
}

.service-title::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #fff;
    margin: 10px auto 0;
    transition: width 0.4s ease;
}

.service-card:hover .service-title::after {
    width: 50px;
}

.service-desc {
    font-size: 0.9rem;
    max-width: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    font-weight: 300;
}

.service-card:hover .service-desc {
    opacity: 1;
    transform: translateY(0);
}

.estudio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.estudio-img {
    height: 500px;
    background-size: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}

.estudio-img:hover {
    filter: grayscale(0%);
}

.estudio-text p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.contacto {
    background: #0a0a0a;
    color: #fff;
    padding: 6rem 0 3rem 0;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contacto h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.invitacion {
    color: #666;
    margin-bottom: 3rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input {
    width: 100%;
    padding: 1.2rem;
    background: #151515;
    border: 1px solid #222;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #fff;
    background: #1a1a1a;
}

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

.submit-btn {
    padding: 1.2rem;
    background: #fff;
    color: #000;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 1rem;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #333;
    color: #fff;
}

.footer-legal {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #888;
}

.separator {
    color: #333;
    margin: 0 5px;
}

.devs-credit {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 0.5rem;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1400px) {
    .container {
        padding: 0 3rem;
    }

    .hero-content h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 900px) {
    .section {
        padding: 3rem 0;
    }

    .servicios {
        padding: 3rem 0;
    }

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

    .estudio-img {
        height: 300px;
    }

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

    .service-card {
        height: 280px;
    }

    .service-bg {
        filter: grayscale(0%) brightness(0.4) !important;
        transform: scale(1.05);
    }

    .service-desc {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .service-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .service-title::after {
        width: 40px;
    }

    h2 {
        margin-bottom: 2.5rem;
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-link {
        color: #fff !important;
        font-size: 1.5rem;
    }

    .mobile-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .separator {
        display: none;
    }

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