/* Importación de Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@300;400&display=swap');

/* Variables CSS para Colores y Fuentes */
:root {
    --primary-color: #007bff; /* Azul vibrante */
    --secondary-color: #6c757d; /* Gris oscuro */
    --accent-color: #28a745; /* Verde para acciones */
    --light-bg: #f8f9fa; /* Fondo claro */
    --dark-bg: #343a40; /* Fondo oscuro */
    --text-color: #333; /* Color de texto principal */
    --light-text: #fff; /* Color de texto claro */

    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--dark-bg);
    margin-bottom: 20px;
}

h1 {
    font-size: 3em;
    font-weight: 700;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #1D7A31; /* Ajustar color al pasar el mouse */
}

/* --- Header --- */
.main-header {
    background-color: var(--light-text);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--heading-font);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--dark-bg);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1500x800') no-repeat center center/cover; /* Reemplaza con tu imagen de fondo */
    color: var(--light-text);
    text-align: center;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Altura mínima para la sección */
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 25px;
    color: var(--light-text);
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About Section --- */
.about-section {
    padding: 80px 0;
    background-color: var(--light-text);
    text-align: center;
}

/* --- Services Section --- */
.services-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
    text-align: center;
}

.contact-section h2 {
    color: var(--light-text);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 1em;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.contact-form .btn {
    background-color: var(--primary-color);
}

.contact-form .btn:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

.main-footer p {
    margin: 0;
    font-size: 0.9em;
}

.social-links a {
    color: var(--light-text);
    margin-left: 20px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        margin-top: 15px;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }

    .main-footer .container {
        flex-direction: column;
        gap: 15px;
    }

    .social-links {
        margin-top: 10px;
    }

    .social-links a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 2em;
    }
}