/* Generales */
:root {
    --primary-color: #000000; /* Azul oscuro */
    --secondary-color: #cacaca; /* Azul vibrante */
    --accent-color: #db2c35; /* Verde para llamadas a la acción */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --white: #fff;
    --grey-border: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 15px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #218838;
    color: var(--white);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

/* Header */
.main-header {
    background-color: var(--white);
    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 {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    height: 120px; /* Ajusta el tamaño de tu logo */
    margin-right: 10px;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-toggle {
    display: none; /* Oculto por defecto en escritorio */
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: url('../img/hero-bg.png') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 150px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Overlay oscuro */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5em;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--white);
}

/* About Section */
.about-section h2 {
    margin-bottom: 40px;
}
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Services Section */
.services-section h2 {
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.6em;
    margin-top: 15px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-item p {
    font-size: 0.95em;
    color: #555;
}

.service-item ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
    color: #666;
}

.service-item ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007bff" width="16px" height="16px"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 16px 16px;
    padding-left: 25px;
    margin-bottom: 8px;
}


/* Why Choose Us Section */
.why-choose-us-section h2 {
    margin-bottom: 40px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.reason-item {
    padding: 30px;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.reason-icon {
    font-size: 3.5em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.reason-item h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.reason-item p {
    font-size: 0.95em;
    color: #555;
}

/* Contact Section */
.contact-section h2 {
    margin-bottom: 20px;
}
.contact-section p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--grey-border);
    border-radius: 5px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: auto;
    padding: 12px 30px;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.8em;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
}

.contact-info p i {
    margin-right: 10px;
    font-size: 1.2em;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: var(--white);
    font-size: 1.8em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-footer p {
    margin-bottom: 15px;
}

.footer-nav a {
    color: var(--white);
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8em;
    }
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .reasons-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .contact-grid {
        grid-template-columns: 1fr; /* Colapsa a una columna */
    }
    .contact-info {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }
    .hero-section {
        padding: 100px 0;
        min-height: 500px;
    }
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .main-nav {
        position: relative;
    }
    .nav-toggle {
        display: block; /* Muestra el botón hamburguesa */
    }
    .nav-menu {
        display: none; /* Oculta el menú por defecto */
        flex-direction: column;
        background-color: var(--white);
        position: absolute;
        top: 60px; /* Debajo del header */
        right: 0;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        border-radius: 5px;
        padding: 10px 0;
        z-index: 999;
    }
    .nav-menu.active {
        display: flex; /* Muestra el menú cuando está activo */
    }
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid var(--light-bg);
    }
    .nav-menu li:last-child {
        border-bottom: none;
    }
    .nav-menu a {
        padding: 15px 20px;
        display: block;
        color: var(--primary-color);
    }
    .nav-menu a:hover {
        background-color: var(--light-bg);
    }
    .main-header .container {
        flex-wrap: wrap; /* Permite que el logo y el toggle se ajusten */
    }
    .logo {
        margin-right: auto; /* Empuja el logo a la izquierda */
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0;
        min-height: 400px;
    }
    .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    .hero-content .btn {
        display: block; /* Botones apilados en móvil */
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .section-padding {
        padding: 50px 0;
    }
    .footer-nav {
        flex-direction: column;
        margin-top: 15px;
    }
    .footer-nav a {
        margin: 5px 0;
    }
}