/* --- HOJA DE ESTILOS: REFORMAS CASTRO (INDUSTRIAL REDISEÑO) --- */

:root {
    --color-primary: #4f4f4f; /* Gris industrial */
    --color-primary-hover: #333333;
    --color-text-main: #111111; /* Negro fuerte */
    --color-text-muted: #4a5568;
    --color-bg-light: #f7fafc;
    --color-bg-white: #ffffff;
    --color-border: #e2e8f0;
    --font-main: 'Montserrat', sans-serif;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Reset y Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    /* Ocultar barra de desplazamiento */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: 800; /* Extra bold industrial */
    color: var(--color-text-main);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

p {
    color: var(--color-text-muted);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* NAVBAR */
.navbar-reformas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 2px solid var(--color-text-main);
    z-index: 1000;
    padding: 20px 0;
}

.nav-contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-text-main);
}

.logo-light {
    font-weight: 300;
    color: #718096;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-text-main);
}

.btn-presupuesto-nav {
    background-color: var(--color-text-main);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 800;
    transition: background-color 0.3s ease !important;
}

.btn-presupuesto-nav:hover {
    background-color: var(--color-primary-hover);
}

/* HERO SPLIT 50/50 */
.hero-split-reformas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    min-height: 600px;
    background-color: var(--color-bg-light);
    padding-top: 80px; /* Compensa el navbar */
}

.hero-bloque-texto {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-align: left;
}

.hero-contenido-interno {
    max-width: 500px;
}

.etiqueta-hero {
    display: inline-block;
    background-color: var(--color-text-main);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.hero-bloque-texto h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-bloque-texto p {
    font-size: 1.05rem;
    margin-bottom: 35px;
}

.hero-botones {
    display: flex;
    gap: 15px;
}

.btn-reformas {
    display: inline-block;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primario {
    background-color: var(--color-text-main);
    color: #ffffff;
    border: 2px solid var(--color-text-main);
}

.btn-primario:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-secundario {
    background-color: transparent;
    color: var(--color-text-main);
    border: 2px solid var(--color-text-main);
}

.btn-secundario:hover {
    background-color: var(--color-text-main);
    color: #ffffff;
}

.hero-bloque-imagen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bloque-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen completa a la celda */
}

/* SECCIÓN ZIGZAG (PROYECTOS RECIENTES) */
.seccion-proyectos-zigzag {
    padding: 100px 20px;
    background-color: var(--color-bg-white);
}

.contenedor-zigzag {
    max-width: 1100px;
    margin: 0 auto;
}

.zigzag-cabecera {
    text-align: left;
    margin-bottom: 60px;
    border-bottom: 2px solid var(--color-text-main);
    padding-bottom: 20px;
}

.subtitulo {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #718096;
    display: block;
    margin-bottom: 10px;
}

.zigzag-cabecera h2 {
    font-size: 2.2rem;
}

.zigzag-fila {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.zigzag-fila.invertida {
    grid-template-columns: 0.9fr 1.1fr;
}

.zigzag-fila:last-child {
    margin-bottom: 0;
}

.zigzag-imagen {
    background-color: #cbd5e0;
    height: 350px;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 2px solid var(--color-text-main);
}

.zigzag-imagen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 60%);
}

.zigzag-imagen span {
    position: relative;
    z-index: 2;
}

.bg-cocina { background-image: url('../img/reformas_casa.jpg'); }
.bg-bano { background-image: url('../img/reformas_casa.jpg'); filter: grayscale(100%); }

.zigzag-texto {
    text-align: left;
}

.proyecto-num-grande {
    font-size: 3rem;
    font-weight: 800;
    color: #e2e8f0;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.zigzag-texto h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.zigzag-texto p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.proyecto-ubicacion {
    font-size: 0.85rem;
    font-weight: 700;
    color: #718096;
}

/* SECCIÓN PROCESO DE OBRA HORIZONTAL */
.seccion-proceso-obra {
    padding: 100px 20px;
    background-color: var(--color-bg-light);
}

.contenedor-proceso {
    max-width: 1100px;
    margin: 0 auto;
}

.seccion-cabecera-centro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.seccion-cabecera-centro h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.pasos-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

/* Línea de fondo simulada */
.pasos-grid-horizontal::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #cbd5e0;
    z-index: 1;
}

.paso-item {
    position: relative;
    z-index: 2;
    text-align: center;
}

.paso-numero-circulo {
    width: 50px;
    height: 50px;
    background-color: var(--color-text-main);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    border: 3px solid var(--color-bg-light);
}

.paso-item h4 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.paso-item p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* FORMULARIO COMPACTO CENTRADO */
.seccion-presupuesto-compacto {
    padding: 100px 20px;
    background-color: var(--color-bg-white);
}

.contacto-compacto-contenedor {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.cabecera-compacto {
    margin-bottom: 35px;
}

.cabecera-compacto h2 {
    font-size: 2rem;
    margin: 5px 0 10px 0;
}

.form-compacto {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.form-compacto input,
.form-compacto select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-border);
    border-radius: 0;
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-compacto input:focus,
.form-compacto select:focus {
    border-color: var(--color-text-main);
}

.btn-bloque {
    width: 100%;
    cursor: pointer;
    border: none;
}

.contacto-datos-rapidos {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.divisor-contacto {
    margin: 0 10px;
    color: #cbd5e0;
}

/* FOOTER */
.footer-reformas-simple {
    background-color: var(--color-text-main);
    color: #a0aec0;
    padding: 30px 20px;
    border-top: 1px solid #2d3748;
}

.footer-reformas-simple .footer-contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-reformas-simple span {
    font-weight: 800;
    color: #ffffff;
    font-size: 1.05rem;
}

.footer-reformas-simple p {
    font-size: 0.8rem;
}

/* RESPONSIVO */
@media (max-width: 968px) {
    .hero-split-reformas {
        grid-template-columns: 1fr;
        height: auto;
        padding-top: 20px;
    }
    .hero-bloque-texto {
        padding: 60px 20px;
        text-align: center;
    }
    .hero-contenido-interno {
        max-width: 100%;
    }
    .hero-botones {
        justify-content: center;
    }
    .hero-bloque-imagen {
        height: 350px;
    }
    .zigzag-fila, .zigzag-fila.invertida {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .pasos-grid-horizontal {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pasos-grid-horizontal::before {
        display: none; /* Quitamos la línea de unión en móvil */
    }
    .navbar-reformas {
        position: static;
        padding: 15px 0;
    }
    .nav-links {
        display: none;
    }
}

@media (max-width: 576px) {
    .footer-reformas-simple .footer-contenido {
        flex-direction: column;
        align-items: flex-start;
    }
}
