:root {
    --primario: #000000;
    --secundario: #1a1a1a;
    --acento: #666666;
    --fondo: #ffffff;
    --gris-suave: #f9f9f9;
}

/* Reset y Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: var(--primario); line-height: 1.6; }
.contenedor { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* Definimos la fuente localmente */

/* Montserrat Regular */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Montserrat Bold/ExtraBold */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.woff2') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* Navegación */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: white; position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo-contenedor { display: flex; align-items: center; gap: 12px; }
.logo-icono { width: 45px; height: auto; }
.logo-texto { display: flex; flex-direction: column; }
.logo-texto .nombre { font-size: 1.5rem; font-weight: 800; line-height: 1; text-transform: lowercase; }
.logo-texto .eslogan { font-size: 0.6rem; letter-spacing: 1.5px; color: var(--acento); }

.enlaces { display: flex; list-style: none; gap: 30px; align-items: center; }
.enlaces a { text-decoration: none; color: var(--primario); font-size: 0.85rem; font-weight: 500; }
.btn-contacto { background: black; color: white !important; padding: 8px 18px; }

/* Hero */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    color: white;
    overflow: hidden;
}
.hero-contenido {
    position: relative;
    z-index: 10;
    text-align: center; /* Centra el texto y el botón */
    width: 100%; /* Asegura que el contenedor use todo el espacio para centrar */
    max-width: 1200px; /* Para que no se pegue a los bordes en pantallas gigantes */
    padding: 0 20px;
}
.hero-contenido h1 {
    color: #ffffff !important; /* El !important asegura que nada lo sobrescriba */
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Un toque de sombra para que resalte más */
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto hace que se comporte como background-size: cover */
    z-index: -1;
    filter: brightness(0.6); /* El oscurecido que hacíamos con el gradiente */
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 auto 20px auto; /* Centra el bloque del h1 */
    color: #ffffff;
}
.btn-principal {
    display: inline-block;
    padding: 15px 35px;
    background: #ffffff;
    color: #000000 !important; /* Letras negras sobre fondo de botón blanco */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Servicios */
.seccion-servicios { padding: 100px 0; background: var(--gris-suave); }
.titulo-seccion { text-align: center; font-size: 2rem; margin-bottom: 60px; text-transform: lowercase; font-weight: 800; }
.grid-servicios { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.servicio-card { background: white; padding: 40px; border: 1px solid #eee; position: relative; }
.servicio-numero { font-size: 4rem; font-weight: 800; color: #f2f2f2; position: absolute; top: 10px; right: 20px; }
.servicio-card h3 { position: relative; z-index: 2; margin-bottom: 15px; }
.lista-detalles { list-style: none; margin-top: 20px; border-top: 1px solid #eee; padding-top: 20px; }
.lista-detalles li { font-size: 0.85rem; color: var(--acento); margin-bottom: 5px; }

/* Proyectos */
.seccion-proyectos { padding: 100px 0; }
.grid-proyectos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.proyecto-img img { width: 100%; height: 400px; object-fit: cover; display: block;}
.placeholder-img { background: #eee; height: 450px; display: flex; align-items: center; justify-content: center; color: #aaa; }
.proyecto-info { padding: 20px 0; }

/* Footer */
.footer { background: #000; color: #fff; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-logo-wrap .nombre { color: white; font-size: 1.8rem; font-weight: 800; text-transform: lowercase; }
.footer h4 { margin-bottom: 20px; font-size: 0.9rem; letter-spacing: 1px; }
.footer p, .footer a { color: #888; text-decoration: none; font-size: 0.85rem; margin-bottom: 10px; display: block; }
.footer-copy { text-align: center; border-top: 1px solid #222; padding-top: 30px; font-size: 0.7rem; color: #444; }

/* Mobile */
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 25px; height: 2px; background: black; }

 /* Formulario */
.formulario {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grupo-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grupo-input label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grupo-input input, 
.grupo-input select, 
.grupo-input textarea {
    padding: 12px;
    border: 1px solid #e0e0e0;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.grupo-input input:focus, 
.grupo-input textarea:focus {
    border-color: #000;
}

.btn-enviar {
    background: #000;
    color: #fff;
    padding: 15px 40px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
    
    /* Ajustes de tamaño */
    width: fit-content; 
    min-width: 200px;
    align-self: flex-start; /* Esto lo mantiene a la izquierda pero con su tamaño justo */
}

.btn-enviar:hover {
    background: #333;
}

@media (max-width: 600px) {
    .proyecto-img img, .placeholder-img {
        height: 250px; /* En el móvil reducimos la altura para que se vea el título debajo */
    }
    
    .proyecto-card {
        margin-bottom: 20px; /* Espacio extra entre tarjetas en vertical */
    }

    .titulo-seccion {
        font-size: 1.6rem; /* Título un poco más pequeño para que no rompa */
        margin-bottom: 30px;
    }

    .btn-enviar {
        width: 100%;
        align-self: stretch;
    }

}


@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .enlaces { display: none; position: absolute; top: 75px; left: 0; width: 100%; background: white; flex-direction: column; padding: 40px; }
    .enlaces.active { display: flex; }
    .hero h1 { font-size: 2.2rem; }
}

/* Sección Contacto */
.seccion-contacto {
    padding: 100px 0 140px 0;
    background-color: #fff;
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.titulo-izq {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.metodos-directos {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}



/* Ajuste móvil */
@media (max-width: 768px) {
    .contacto-wrapper { grid-template-columns: 1fr; gap: 40px; }
}