/*
 * Estilos principales para Lopez Solutions Multiservices LLC
 *
 * Este archivo define variables de color, tipografía y estructura
 * responsive para la página. Se presta especial atención a
 * la claridad, la accesibilidad y el diseño responsive para
 * que la experiencia sea agradable en dispositivos móviles y de escritorio.
 */

/* Variables de colores (utilizamos una paleta sobria y profesional) */
:root {
    --primary-color: #005F73;
    --secondary-color: #0A9396;
    --accent-color: #94D2BD;
    --light-color: #FDFDFD;
    --dark-color: #001219;
    --text-color: #102A43;
}

/* Reseteo básico y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Navegación */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    font-weight: 500;
    color: var(--dark-color);
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: var(--primary-color);
}

/* Botón hamburguesa para dispositivos móviles */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero */
.hero {
    position: relative;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--light-color);
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: var(--primary-color);
}

/* About */
.about {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.about h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services */
.services {
    background-color: var(--accent-color);
    padding: 4rem 0;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.service-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.service-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

/* Contact */
.contact {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info, .contact-form {
    flex: 1 1 300px;
    min-width: 280px;
}

.contact-info h2, .contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-details {
    list-style: none;
    margin-bottom: 1rem;
}

.contact-details li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.map-responsive {
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 ratio */
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Form styles */
form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

form label {
    font-weight: 600;
    color: var(--dark-color);
}

form input, form select, form textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
}

form button {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 2rem 0;
    text-align: center;
}

.footer-content p {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: var(--light-color);
        flex-direction: column;
        width: 200px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
    }
    nav ul.open {
        max-height: 300px;
    }
    .nav-toggle {
        display: flex;
    }
}