/* Reset y configuración general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

h1, h2, h3 {
    text-align: center;
    margin-bottom: 1rem;
}

section {
    padding: 4rem 1rem;
    max-width: 90%;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    background: #23282b;
}

.navbar .logo {
    height: 40px;
}

.navbar .nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar .nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-menu a:hover {
    color: #ddd;
}

/* Hero */
.hero-section {
    width: 100vw;
    height: 100vh;
    background: url('../img/hero.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 1rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    background: white;
    color: black;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.hero-section button:hover {
    transform: scale(1.05);
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 90%;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Lightbox adaptación */
.lightbox img {
    max-height: 90vh;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

/* Servicios */
.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.service-card {
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    overflow: hidden;
    padding: 1rem;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.service-card img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* Sobre Nosotros */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.about-content img {
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
}

.about-text {
    max-width: 600px;
}

/* Cobertura */
.coverage-content {
    text-align: center;
}

.coverage-content img {
    max-width: 600px;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 10px;
}

/* Contacto */
.contact-section form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-section input,
.contact-section textarea,
.contact-section select,
.modal-content input,
.modal-content textarea,
.modal-content select {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

button[type="submit"] {
    background-color: black;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
}

/* Honeypot */
.honeypot {
    display: none;
}

/* Footer */
.footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

.footer .socials a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    max-width: 500px;
    width: 90%;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
} 

@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        flex-direction: column;
    }

    .navbar .nav-menu {
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
