/* ===== RESET ===== */
body {
    margin: 0;
    font-family: sans-serif;
    background: #f5f5f5;
}

/* ===== CONTENEDOR ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===== HEADER ===== */
header {
    background: #1c1c1c;
    padding: 10px 0;
}

.logo {
    height: 90px;
    width: auto;
}
@media (max-width: 768px) {
    .logo {
        height: 60px;
    }
}
/* ===== NAV ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* MENÚ */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: white;
    text-decoration: none;
}

/* BOTÓN */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

.card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn:hover {
    background: #8c5f3d;
}

/* ===== HERO ===== */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
    url('https://images.unsplash.com/photo-1503387762-592deb58ef4e') center/cover;
}

.hero h1 {
    font-size: 50px;
}

.btn {
    display: inline-block;
    background: #a47148;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;

    max-height: 80vh;      /* 🔥 limita altura */
    overflow-y: auto;      /* 🔥 permite scroll vertical */
}
.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    gap: 10px;
    margin-top: 20px;
}

.modal-gallery img {
    width: 100%;
    border-radius: 5px;
}


/* ===== SERVICIOS ===== */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 20px;
}

.card {
    background: #EAE6EF;
    padding: 20px;
    border-radius: 5px;
}

/* ===== GALERÍA ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* ===== FORM ===== */
form {
    display: grid;
    gap: 10px;
    max-width: 500px;
}

input, textarea {
    padding: 10px;
}

/* ===== FOOTER ===== */
footer {
    background: #1c1c1c;
    color: white;
    text-align: center;
    padding: 20px;
}
.whatsapp img {
    width: 30px;
    height: 30px;
}
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 26px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.whatsapp:hover {
    transform: scale(1.1);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        background: #1c1c1c;
        top: 70px;
        right: 0;
        width: 200px;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px;
    }
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

#contacto {
    padding-bottom: 100px;
}

.section-title-box {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #1c1c1c;
    border-radius: 6px;
    text-align: center;
    margin: 0 auto 40px;
    background: transparent;
}
#servicios,
#galeria,
#contacto {
    padding-top: 40px;
}

