/* --- CONFIGURACIÓN GENERAL Y RESET --- */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* --- NAVEGACIÓN (BLOQUES DE COLORES) --- */
.header_nav {
    background: #111;
}

.navbar-nav {
    display: flex !important;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.navbar-nav > li {
    flex: 1;
    padding: 0 !important;
}

.navbar-nav > li > a {
    display: block;
    text-align: center;
    color: #fff !important;
    text-decoration: none;
    padding: 18px 5px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    border-bottom: 4px solid rgba(0,0,0,0.3);
}

.navbar-nav > li > a span {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

/* Colores corporativos por pestaña */
.navbar-nav > li > a.blue   { background-color: #2c3e50; }
.navbar-nav > li > a.orang  { background-color: #F47320; }
.navbar-nav > li > a.sky    { background-color: #00a69c; }

.navbar-nav > li > a:hover {
    padding-top: 22px;
    padding-bottom: 14px;
    filter: brightness(1.2);
}

/* --- SECCIÓN LOGO (BANNER CON TALLER BORROSO) --- */
.header_nav + div {
    position: relative;
    background: url('../images/inicio.jpeg') no-repeat center center !important; 
    background-size: cover !important;
    padding: 50px 0 !important;
    overflow: hidden;
}

/* Efecto de cristal naranja sobre la imagen del taller */
.header_nav + div::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(112, 136, 143, 0.7); 
    backdrop-filter: blur(6px); /* Desenfoque moderno */
    z-index: 1;
}

.header_nav + div .container {
    position: relative;
    z-index: 2;
}

.logo { float: left; width: 25%; }
.img-responsive { max-width: 100%; height: auto; display: block; }

.ad-ph { float: right; width: 70%; text-align: right; color: #fff; }
.ad-ph h1 { margin: 0 0 5px 0; font-weight: 900; text-transform: uppercase; font-size: 24px; text-shadow: 1px 1px 4px rgba(0,0,0,0.2); }
.ad-ph p { margin: 2px 0; font-size: 15px; font-weight: 500; }

/* --- BANNER TÍTULO CONTACTO (CON FLEX E IMAGEN) --- */
.banner-1 {
    /* El degradado (linear-gradient) oscurece la imagen para que se lea el texto */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('../images/fondo2.jpg'); 
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    border-bottom: 6px solid #ffffff;
    text-align: left; /* Alineado a la izquierda según tu imagen */
}

.banner-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.banner-text {
    flex: 1;
    text-align: left;
}

.banner-text h2 {
    color: #fff;
    font-size: 60px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
}

.banner-text p {
    color: #fff;
    font-size: 18px;
    max-width: 500px; /* Limita el ancho del texto */
    margin-top: 10px;
}

.banner-img-container {
    flex: 1;
    text-align: right;
}

.img-banner-destacada {
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.5s ease;
}

.img-banner-destacada:hover {
    transform: scale(1.05);
}

/* --- CUERPO DE CONTACTO (FONDO1.PNG) --- */
.contact { 
    padding: 80px 0;
    background-attachment: fixed;
}

.map iframe {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(14, 14, 16, 0.978);
    margin-bottom: 50px;
    border: 5px solid white;
}

/* Bloque del formulario Glassmorphism */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.4);
}

.contact-bottom { display: flex; gap: 20px; margin-bottom: 15px; }
.col-md-4.in-contact { flex: 1; }

.in-contact input, .contact-bottom-top textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    transition: 0.3s ease;
    box-sizing: border-box;
}

.in-contact input:focus, .contact-bottom-top textarea:focus {
    outline: none;
    border-color: #F47320;
    box-shadow: 0 0 0 4px rgba(244, 115, 32, 0.1);
}

.contact-bottom-top textarea { height: 180px; margin: 20px 0; }

/* Botón Enviar Flama */
input[type="submit"] {
    background: linear-gradient(to bottom, #8dbb25, #7a9f20);
    color: #fff;
    border: none;
    padding: 18px 81px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.4s;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(141, 187, 37, 0.4);
}

input[type="submit"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(141, 187, 37, 0.5);
}

/* --- BLOQUE VISÍTENOS (ESTILO COMPACTO TERMINADO) --- */
.address-more {
    margin-top: 40px; /* Subido de 80px a 40px */
    padding: 35px 30px; /* Más pequeño y estilizado */
    background: url('../images/fondo3.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.address-more::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(184, 184, 184, 0.85); /* Capa gris de la referencia */
    z-index: 1;
}

.address-more h3 {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #F47320; /* Naranja fuerte */
    font-weight: 800;
    text-transform: uppercase;
}

.address-grid {
    position: relative;
    z-index: 2;
    text-align: center;
    float: left;
    width: 33.33%;
}

.address1 p { 
    color: #fff; 
    font-weight: 600; 
    font-size: 15px; 
    margin: 2px 0;
}

.address1 a { color: #fff; text-decoration: none; font-weight: bold; }

/* --- FOOTER --- */
.footer {
    background: #0a0a0a;
    color: #999;
    padding: 80px 0 40px;
    border-top: 5px solid #F47320;
}

.footer-left h3 {
    color: #F47320;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 25px;
}

.foot-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #222;
    text-align: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .navbar-nav > li { flex: 0 0 33.33%; }
    .logo, .ad-ph { width: 100%; float: none; text-align: center; }
    .banner-flex { flex-direction: column; text-align: center; }
    .banner-text { text-align: center; }
    .banner-img-container { display: none; }
    .contact-bottom { flex-direction: column; gap: 15px; }
    .address-grid { width: 100%; margin-bottom: 30px; }
    .address-more { margin-top: 30px; padding: 30px 15px; }
}

@media (max-width: 600px) {
    .navbar-nav > li { flex: 0 0 100%; }
    .banner-text h2 { font-size: 40px; }
    .contact-form { padding: 30px 20px; }
}