* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    width: 80%;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 0.5rem;
    font-size: 4.5rem;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.2;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    color: black;
    background-color: white;
}

.portafolio {
    position: relative;
    display: flex;
    flex-wrap: column;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.paisajes-btn,
.videos-btn,
.retratos-btn {
    position: relative;
    overflow: hidden;
    width: 33.333%;
}

@media (max-width: 768px) {
    .portafolio {
        flex-direction: column;
    }

    .paisajes-btn,
    .videos-btn,
    .retratos-btn {
        width: 100%;
    }
}

.paisajes-btn a,
.videos-btn a,
.retratos-btn a {
    position: relative;
    display: block;
    color: white;
    text-decoration: none;
    overflow: hidden;
}

.paisajes-btn a::before,
.videos-btn a::before,
.retratos-btn a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.paisajes-btn:hover a::before,
.videos-btn:hover a::before,
.retratos-btn:hover a::before {
    background-color: rgba(0, 0, 0, 0.3);
}

.paisajes-btn img,
.videos-btn video,
.retratos-btn img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform: scale(1.1);
}

.paisajes-btn:hover img,
.videos-btn:hover video,
.retratos-btn:hover img {
    transform: scale(1.3);
}

.portafolio h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    margin: 0;
    text-align: center;
    width: 100%;
    font-size: 2rem;
    font-weight: bold;
    z-index: 2;
    transition: transform 0.3s ease;
}

.paisajes-btn:hover h2,
.videos-btn:hover h2,
.retratos-btn:hover h2 {
    transform: translate(-50%, -50%) scale(1.05);
}