﻿/* --- VARIABLES DE COLOR --- */
:root {
    --color-principal: #0d1b2a;
    --color-secundario: #1b263b;
    --color-terciario: #e0fbfc;
    --color-acento: #41d3c1;
    --color-texto-claro: #f1f1f1;
}

/* --- ESTILOS BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--color-terciario);
    color: var(--color-principal);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h2, h3, h4 {
    color: var(--color-principal);
}

/* --- ENCABEZADO Y NAVEGACIÓN --- */
.main-header {
    background-color: var(--color-principal);
    color: var(--color-texto-claro);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 80px;
    transition: transform 0.3s ease-in-out;
}

    .logo:hover {
        transform: scale(1.1);
    }

.main-nav ul {
    list-style: none;
    display: flex;
}

    .main-nav ul li {
        margin-left: 2rem;
    }

.main-nav a {
    text-decoration: none;
    color: var(--color-texto-claro);
    font-weight: 700;
    transition: color 0.3s;
}

    .main-nav a:hover {
        color: var(--color-acento);
    }

/* --- SECCIÓN PRINCIPAL HERO --- */
.hero-section {
    background-color: var(--color-secundario);
    color: var(--color-texto-claro);
    padding: 5rem 0;
}

.hero-content-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-image {
    flex: 1;
}

    .hero-image img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

.hero-content {
    flex: 1;
}

    .hero-content h2 {
        color: var(--color-texto-claro);
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

.btn {
    display: inline-block;
    background-color: var(--color-acento);
    color: var(--color-principal);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s;
}

    .btn:hover {
        background-color: #32a69c;
    }

/* --- SECCIONES DE SERVICIOS Y GALERÍA --- */
.services-section, .gallery-section, .contact-section {
    padding: 4rem 0;
    text-align: center;
}

    .services-section h3, .gallery-section h3, .contact-section h3 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: var(--color-texto-claro);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

    .service-item:hover {
        transform: translateY(-10px);
    }

    .service-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
    }

.service-text {
    padding: 1.5rem;
}

    .service-text h4 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

    .gallery-grid img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s;
    }

        .gallery-grid img:hover {
            transform: scale(1.05);
        }

/* --- SECCIÓN DE CONTACTO --- */
.contact-section {
    background-color: var(--color-principal);
    color: var(--color-texto-claro);
}

    .contact-section p {
        color: var(--color-terciario);
    }

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
    margin-top: 2rem;
}

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
        border: none;
        border-radius: 5px;
        background-color: var(--color-secundario);
        color: var(--color-texto-claro);
    }

        .contact-form input::placeholder,
        .contact-form textarea::placeholder {
            color: #999;
        }

/* --- PIE DE PÁGINA --- */
.main-footer {
    background-color: #000;
    color: var(--color-texto-claro);
    text-align: center;
    padding: 1.5rem 0;
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }

        .main-nav ul li {
            margin: 0.5rem 0;
        }

    .hero-content-container {
        flex-direction: column-reverse; /* El contenido va arriba de la imagen en móviles */
    }

    .hero-image {
        padding-right: 0;
        margin-top: 2rem;
    }
}
