/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Centrado perfecto para imagen principal */
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4); 
    z-index: -1;
}

.hero-content {
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    padding: 3rem 4rem;
    margin-top: 35vh; /* Lo baja por debajo de la barbilla de la portada */
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 5px;
    color: #000;
}

.hero p {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: #333;
}

/* Sections */
section {
    padding: 6rem 10%;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* About / Stats */
.bio {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #444;
}

.about-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 4rem;
}

.about-images img {
    width: calc(33.333% - 15px);
    max-width: 300px;
    height: auto;
    object-fit: cover;
    filter: grayscale(100%); /* Efecto blanco y negro */
    transition: filter 0.3s ease;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: left;
}

.stat-box h3 {
    font-size: 1rem;
    border-bottom: 1px solid #000;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.stat-box ul {
    list-style: none;
}

.stat-box li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Portfolio Gallery Sections */
.portfolio-section {
    margin-bottom: 5rem;
}

.section-title {
    text-align: left;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    border-left: 4px solid #000;
    padding-left: 15px;
    font-weight: 600;
}

.section-title span {
    font-size: 0.9rem;
    font-weight: 300;
    color: #666;
    letter-spacing: 1px;
}

.gallery {
    column-count: 3;
    column-gap: 1.5rem;
}

.gallery-item {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    break-inside: avoid;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

img.gallery-item:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Estilos de Lightbox para ampliar */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Contact */
.contact {
    background-color: #000;
    color: #fff;
    text-align: center;
}

.contact h2 {
    color: #fff;
}

.contact-info a {
    color: #fff;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #000;
    color: #666;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem 5%;
        gap: 0.6rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        display: flex;
        gap: 1.2rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero {
        margin-top: 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-content {
        padding: 2rem;
    }
    
    section {
        padding: 4rem 5%;
    }
    
    .gallery {
        column-count: 1;
    }

    .about-images {
        flex-direction: column;
        align-items: center;
    }
    .about-images img {
        width: 100%;
        max-width: 400px;
    }
}
