/* --- 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-content {
    position: relative;
    background: url('../images/inicio.jpeg') no-repeat center center; 
    background-size: cover;
    padding: 50px 0;
    overflow: hidden;
}

.header-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(112, 136, 143, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1;
}

.header-content .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 (MECÁNICA INTEGRAL) --- */
.banner-1 {
    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: 80px 0;
    border-bottom: 6px solid rgba(112, 136, 143, 0.7);
}

.banner-text h2 {
    color: #fff;
    font-size: 50px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
}

.banner-text p {
    color: #fff;
    font-size: 20px;
    margin-top: 10px;
    opacity: 0.9;
}

/* --- ESTRUCTURA DE TARJETAS DE SERVICIOS --- */
.contact { 
    padding: 60px 0;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 40px;
    border-left: 10px solid rgba(112, 136, 143, 0.7);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.service-card:nth-child(even) { 
    flex-direction: row-reverse; 
    border-left: none;
    border-right: 10px solid rgba(112, 136, 143, 0.7); 
}

.service-img-container {
    flex: 0 0 320px; 
    height: 220px;
    overflow: hidden;
    border-radius: 15px;
}

.service-card img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-info { 
    flex: 1; 
}

/* 🔧 ARREGLADO: contraste de texto */
.service-info h3 { 
    color: #000000; 
    font-size: 26px; 
    font-weight: 800; 
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.service-info p { 
    font-size: 16px; 
    line-height: 1.8; 
    color: #000000; 
    margin: 0;
}

/* --- 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; }
}