/* --- 1. Variables y Reset --- */
:root {
    /* Paleta: Blanco, Negro, Gris */
    --color-black: #111111;
    --color-dark-gray: #333333;
    --color-gray: #888888;
    --color-light-gray: #f4f4f4;
    --color-white: #ffffff;

    /* Espaciado y Fuentes */
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-black);
    line-height: 1.6;
    background-color: var(--color-white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- 2. Utilidades y Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section__title--left { text-align: left; }

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--color-black);
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: transparent;
    color: var(--color-black);
}

/* --- 3. Header --- */
.header {
    background-color: var(--color-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-light-gray);
}

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

.header__logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.nav__list { display: flex; gap: 2rem; align-items: center; }
.nav__toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* --- 4. Hero Section --- */
.hero {
    height: 80vh;
    background-color: var(--color-dark-gray); /* Fallback color */
    background-image: url('https://images.unsplash.com/photo-1534150029984-d62ee5ee24c5?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.hero__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Oscurecer imagen */
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* --- 5. Servicios (Cards) --- */
.services { background-color: var(--color-light-gray); }

.services__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-5px); border-color: var(--color-black); }

.card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card__title { margin-bottom: 0.5rem; font-size: 1.25rem; }
.card__text { color: var(--color-dark-gray); }

/* --- 6. About --- */
.about__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.about__placeholder {
    background-color: var(--color-gray);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: bold;
}

.about__list li { margin-bottom: 0.5rem; }

/* --- 7. Footer --- */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-sm) 0;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer__logo { font-size: 1.5rem; margin-bottom: 1rem; }
.footer__col h4 { margin-bottom: 1rem; color: var(--color-gray); }
.footer__bottom {
    text-align: center;
    border-top: 1px solid var(--color-dark-gray);
    padding-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* --- 8. Responsive (Mobile) --- */
@media (max-width: 768px) {
    .nav__list { display: none; }
    .nav__toggle { display: block; }

    .hero__title { font-size: 2.5rem; }

    .about__grid { grid-template-columns: 1fr; }
    .section__title--left { text-align: center; }

    /* Menú móvil simple activado por JS */
    .nav__list.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: 1rem;
        border-bottom: 1px solid var(--color-light-gray);
    }
}