:root {
    --primary-color: #1a1a1a;
    --secondary-color: #E60000;
    --background-color: #ffffff;
    --light-gray-bg: #f8f9fa; /* Un gris un poco más cálido */
    --border-color: #e0e0e0;
    --font-primary: 'Poppins', sans-serif;
}

/* ... ESTILOS GLOBALES (igual que antes) ... */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); color: var(--primary-color); background-color: var(--background-color); font-size: 16px; line-height: 1.7; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 4rem 0; }
h1, h2, h3 { font-weight: 600; }
h1 { font-size: 4rem; line-height: 1.2; font-weight: 700; }
h2 { font-size: 2.5rem; line-height: 1.3; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); }
.accent-dot { color: var(--secondary-color); }

/* --- CABECERA (sin cambios) --- */
.header { background-color: var(--background-color); padding: 1.5rem 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 30px; }
.nav a { margin-left: 2rem; font-weight: 600; font-size: 1rem; }

/* --- SECCIÓN HERO (con más contenido) --- */
.hero { height: 80vh; position: relative; display: flex; align-items: center; justify-content: center; padding: 0; background-color: #111; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2)); }
.hero-content { 
    position: relative; 
    z-index: 2; 
    text-align: center; 
    color: var(--background-color);
    max-width: 800px;
    margin: 0 auto;
}
.hero-subtitle { 
    font-size: 1.2rem; 
    margin-top: 1rem; 
    margin-bottom: 2rem; 
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* AÑADIDO: Estilos para el botón principal */
.btn { display: inline-block; padding: 0.8rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background-color: var(--secondary-color); color: var(--background-color); }
.btn-primary:hover { background-color: #ff1a1a; transform: translateY(-3px); }

/* --- AÑADIDO: SECCIÓN DE SERVICIOS CON TARJETAS --- */
.services { background-color: var(--light-gray-bg); padding: 4rem 0; }
.section-title-center { text-align: center; margin-bottom: 3rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card { background-color: var(--background-color); border-radius: 10px; padding: 2.5rem 2rem; text-align: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }
.service-icon { font-size: 3rem; margin-bottom: 1rem; color: var(--secondary-color); }
.service-card p { color: #555; font-size: 0.95rem; }

/* --- SECCIÓN DE PROYECTOS --- */
.projects { 
    background-color: var(--background-color);
    padding: 4rem 0;
}
.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem;
}
.project-item { 
    display: block; 
    position: relative; 
    overflow: hidden; 
    border-radius: 10px;
    background: var(--background-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.project-item:hover { 
    transform: translateY(-10px);
}
.project-item img { 
    width: 100%; 
    height: 300px;
    object-fit: cover;
    display: block; 
    transition: transform 0.5s ease;
}
.project-item:hover img { 
    transform: scale(1.05);
}
.project-info { 
    padding: 2rem;
    background: var(--background-color);
}
.project-info h3 { 
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}
.project-category {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.project-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* --- AÑADIDO: SECCIÓN DE CONTACTO MEJORADA --- */
.contact { background: var(--light-gray-bg); padding: 4rem 0; }
.contact-wrapper { 
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.text-center {
    text-align: center;
}
.contact-info {
    max-width: 600px;
}
.contact-info h3 { 
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.contact-info p {
    margin-bottom: 1.5rem;
}
.contact-button-wrapper {
    margin-top: 2rem;
}
.contact-form input, .contact-form textarea { 
    width: 100%; 
    border: 1px solid var(--border-color); 
    padding: 1rem; 
    margin-bottom: 1rem; 
    font-family: var(--font-primary); 
    font-size: 1rem; 
    background: var(--background-color);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--background-color);
    color: var(--primary-color);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer-logo img {
    height: 40px;
}
.footer-logo p {
    opacity: 0.7;
}

/* Empresas Asociadas */
.footer-partners {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.footer-partners h4 {
    margin-bottom: 1.5rem;
}
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.partner-link {
    display: block;
    transition: opacity 0.3s ease;
}
.partner-link:hover {
    opacity: 0.8;
}
.partner-logo {
    height: 50px;
    width: auto;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-link:hover .partner-logo {
    filter: grayscale(0%);
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer-social h4 {
    margin-bottom: 0.5rem;
}
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.footer-social a {
    color: var(--primary-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.footer-social a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Media Queries para Responsividad */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }

    .nav a {
        margin-left: 0;
    }

    .hero {
        height: 60vh;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .footer-container {
        gap: 3rem;
    }

    .partners-grid {
        gap: 2rem;
    }

    .partner-logo {
        height: 40px;
        max-height: 40px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        height: 50vh;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact-wrapper {
        padding: 2rem 1rem;
    }

    .footer-logo img {
        height: 30px;
    }

    .partners-grid {
        gap: 1.5rem;
    }

    .partner-logo {
        height: 35px;
        max-height: 35px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Ajustes generales para mejorar la responsividad */
img {
    max-width: 100%;
    height: auto;
}

.section-title-center {
    padding: 0 1rem;
}

.project-item img {
    height: 250px;
}

@media screen and (max-width: 768px) {
    .project-item img {
        height: 200px;
    }
}

@media screen and (max-width: 480px) {
    .project-item img {
        height: 180px;
    }
}
