/* Prevenir el desbordamiento u overflow horizontal en todo el sitio */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
}

/* Asegura que ninguna fila interna rompa el ancho máximo */
.row {
    --bs-gutter-x: 1.5rem;
    margin-right: 0 !important;
    margin-left: 0 !important;
}
:root {
    --bg-dark: #000000; /* Fondo negro sólido */
    --bg-card: #141517;
    --steel-silver: #d1d5db;
    --steel-accent: #9ca3af;
    --steel-light: #f3f4f6;
    --border-steel: #374151;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: #e5e7eb;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Montserrat', sans-serif;
}

/* TOPBAR */
.topbar {
    background-color: #00156b !important;
    border-bottom: none !important;
    font-size: 0.88rem;
}

.topbar a {
    color: var(--steel-silver);
    text-decoration: none;
    transition: color 0.3s;
}

.topbar a:hover {
    color: #ffffff;
}

/* NAVBAR */
.navbar-custom {
    background-color: #000000 !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.navbar-brand img {
    height: 130px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.03);
}

/* NAVBAR LINKS E INTERACCIÓN DE LÍNEA INFERIOR */
.nav-link {
    color: var(--steel-silver) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent; /* Reserva el espacio para evitar saltos */
}

/* Estado ACTIVO (Sección actual donde está posicionado el usuario): Línea en tono gris acero */
.nav-link.active {
    color: #ffffff !important;
    border-bottom: 2px solid var(--steel-accent) !important; /* Gris acero (#9ca3af) */
}

/* Estado HOVER (Al pasar el cursor sobre cualquier menú): Línea en Amarillo / Dorado */
.nav-link:hover {
    color: #ffffff !important;
    border-bottom: 2px solid #d4af37 !important; /* Dorado / Amarillo de la marca */
}

/* Botón estilo Dorado / Bronce */
.btn-steel {
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    color: #000000;
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.65rem 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.btn-steel:hover {
    background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 100%);
    color: #000000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.btn-steel-outline {
    background: rgba(0, 0, 0, 0.6);
    color: var(--steel-light);
    border: 1px solid var(--steel-accent);
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.btn-steel-outline:hover {
    background: #ffffff;
    color: #000000;
}

/* Banner Hero con fondo de imagen visible */
.hero-section {
    position: relative;
    min-height: 85vh;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65)), 
                url('../img/banner.jpg') center/cover no-repeat !important;
    display: flex;
    align-items: center;
}

.hero-title span {
    color: #d4af37;
    background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Botón "Ver Productos" - Estilo Acero / Plata Metálico */
.btn-steel-products {
    background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
    color: #0f1012 !important;
    border: 1px solid #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.65rem 1.4rem;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.btn-steel-products:hover {
    background: #ffffff;
    color: #000000 !important;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Botón "Cotizar por WhatsApp" - Verde Oficial WhatsApp */
.btn-whatsapp {
    background-color: #25D366 !important;
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.65rem 1.4rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #20ba5a !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
    transform: translateY(-2px);
}

/* Estilos para la sección Quiénes Somos */
.about-section {
    background-color: #0b0c0e;
    border-bottom: 1px solid #1f2937;
}

.about-experience-card {
    background: linear-gradient(145deg, #181a1d 0%, #0f1012 100%);
    border: 1px solid #374151;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.about-experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f3e5ab);
}

/* Estilos para la sección de tarjetas de servicios */
.features-section {
    background-color: var(--bg-dark);
    position: relative;
    z-index: 2;
}

.feature-card {
    background-color: #ffffff;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: #000000;
    color: #d4af37;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: #d4af37;
    color: #000000;
}
/* ESTILOS DE GALERÍA HORIZONTAL LIMPIA */
.gallery-section {
    background-color: #000000;
    border-top: 1px solid #1f2937;
}

.gallery-item-clean {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 10; /* Proporcion rectangular mas compacta */
    background-color: #141517;
    border: 1px solid #374151;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item-clean img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efecto sutil al pasar el cursor por encima de cada foto */
.gallery-item-clean:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.gallery-item-clean:hover img {
    transform: scale(1.05);
}

/* Botones de navegación lateral */
.gallery-nav-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #374151;
    background-color: #141517;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    background-color: #d4af37;
    color: #000000;
    border-color: #d4af37;
}

/* ESTILOS PARA EL MÓDULO DE PROCESO DE COMPRA */
.process-section {
    background-color: var(--bg-dark);
    position: relative;
    border-top: 1px solid #1f2937;
}

.process-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    color: #1f2937;
}

.process-icon-circle {
    width: 55px;
    height: 55px;
    background-color: #9ca3af; /* Color gris base idéntico a la referencia */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

/* Efecto al pasar el cursor por cada paso */
.process-steps-list > div:hover .process-icon-circle {
    background-color: #d4af37; /* Cambia a dorado/amarillo institucional de WD */
    transform: scale(1.08);
}

.btn-process-cta {
    background: linear-gradient(135deg, #1f2937 0%, #000000 100%);
    color: #ffffff;
    border: none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-process-cta:hover {
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    color: #000000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}
/* Forzar que el módulo de proceso mantenga fondo blanco y texto oscuro en celulares */
.process-card {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.process-card h3 {
    color: #000000 !important;
}

.process-card span.text-dark,
.process-card span.fw-medium,
.process-card div span {
    color: #1f2937 !important;
}

/* Corrección definitiva para el fondo blanco del último módulo en celulares */
@media (max-width: 768px) {
    .process-card {
        background-color: #ffffff !important;
        color: #1f2937 !important;
    }
    .process-card h3 {
        color: #000000 !important;
    }
    .process-card span {
        color: #1f2937 !important;
    }
}
/* MÓDULO DE VIDEO DE FABRICACIÓN */
.video-section {
    background-color: #0b0c0e;
    border-top: 1px solid #1f2937;
    position: relative;
}

.video-container-card {
    position: relative;
    background-color: #141517;
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-container-card:hover {
    border-color: #d4af37;
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.25);
}

.video-container-card video {
    border-radius: 12px;
    display: block;
    max-height: 520px;
    object-fit: cover;
}
/* ESTILOS PARA EL FOOTER DE WD IRON WORKS */
.footer-section {
background-color: #08080a;
border-top: 2px solid #1f2937;
position: relative;
font-size: 0.9rem;
}

.text-gold {
color: #d4af37 !important;
}

.footer-links a {
color: #9ca3af;
text-decoration: none;
transition: all 0.3s ease;
display: inline-block;
}

.footer-links a:hover {
color: #d4af37;
transform: translateX(5px);
}

.social-icon-btn {
width: 38px;
height: 38px;
background-color: #141517;
border: 1px solid #374151;
color: #ffffff;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
transition: all 0.3s ease;
}

.social-icon-btn:hover {
background-color: #d4af37;
color: #000000;
border-color: #d4af37;
transform: translateY(-3px);
}

/* BOTÓN DESTACADO PARA EL CATÁLOGO EN EL MENÚ */
.nav-link-catalog {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #d4af37 !important;
    border: 1px solid #d4af37 !important;
    border-radius: 20px !important;
    padding: 0.35rem 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease !important;
}

.nav-link-catalog:hover {
    background: #d4af37 !important;
    color: #000000 !important;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
    border-bottom: 1px solid #d4af37 !important; /* Mantiene el borde redondeado */
}

/* Ajuste de alineación para la versión móvil */
@media (max-width: 991px) {
    .nav-link-catalog {
        display: inline-block;
        margin-top: 5px;
        margin-bottom: 5px;
        width: fit-content;
    }
}

/* ESTILOS DE LA PÁGINA SERVICIOS (Basados en referencia) */
.services-header-section {
    background: linear-gradient(180deg, #18191c 0%, #0b0c0e 100%);
    border-bottom: 1px solid #1f2937;
}

.services-title-badge {
    color: #e65100; /* Tono naranja rojizo idéntico a la referencia */
    font-weight: 700;
    font-size: 1.75rem;
    font-family: 'Montserrat', sans-serif;
}

.services-header-text {
    color: #d1d5db;
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 300;
}

.services-detail-section {
    background-color: #000000;
}

/* Tarjetas individuales de servicios */
.service-box {
    background: #0f1012;
    border: 1px solid #1f2937;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-box:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.service-box-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* Banner CTA dentro de servicios */
.services-cta-banner {
    background: linear-gradient(135deg, #181a1d 0%, #0f1012 100%);
    border: 1px solid #374151;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* ESTILOS PARA EL MÓDULO DE SERVICIOS EN CUADRÍCULA CON FONDO */
.services-grid-section {
    background-color: #000000;
}

.service-card-bg {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid #374151;
    transition: all 0.3s ease;
}

.service-card-bg:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.service-card-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
}

.service-icon-top {
    font-size: 2rem;
    color: #e65100; /* Tono naranja/dorado idéntico a la referencia */
}

.btn-service-action {
    background: linear-gradient(135deg, #f3f4f6 0%, #d1d5db 100%);
    color: #000000;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.6rem 1.8rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-service-action:hover {
    background: #d4af37;
    color: #000000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

/* ESTILOS DEL MÓDULO DE CONTACTO Y VIDEO EN SERVICIOS */
.service-cta-video-section {
    background-color: #000000;
}

.service-cta-card {
    background-color: #141517;
}

/* Fondo estilo Acero Industrial Oscuro con Acento Dorado */
.service-cta-content {
    background: linear-gradient(135deg, #141517 0%, #050607 100%);
    border-left: 1px solid #374151;
}

/* Efecto de destello metálico sutil al fondo */
.service-cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.btn-service-vendor {
    background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
    color: #000000;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.8px;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-service-vendor:hover {
    background: #d4af37;
    color: #000000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}
/* ESTILOS DE LA PÁGINA NOSOTROS */

/* Hero Banner Superior */
.about-hero-image {
    min-height: 300px;
    width: 100%;
}

/* Texto Introductorio */
.about-lead-text {
    font-weight: 400;
    line-height: 1.6;
    color: #1a1a1a;
}

/* Tarjeta de Misión y Visión Oscura */
.mission-vision-card {
    background-color: #2b2b2b;
    border: 1px solid #3d3d3d;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Franja Visual Parallax / Intermedia */
.about-craft-banner {
    position: relative;
    border-top: 1px solid #374151;
    border-bottom: 1px solid #374151;
}

/* Módulo de Valores */
.about-values-section {
    border-top: 1px solid #1f2937;
}

.value-icon {
    font-size: 2.2rem;
    color: #e65100; /* Tono naranja industrial de referencia */
}

.value-item p {
    line-height: 1.7;
}

/* ESTILOS DE LA GALERÍA COLLAGE ALEATORIA */
.gallery-page-header {
    background: linear-gradient(180deg, #18191c 0%, #000000 100%);
    border-bottom: 1px solid #1f2937;
}

.gallery-collage-section {
    background-color: #000000;
}

/* Grilla principal tipo CSS Grid */
.collage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 15px;
}

.collage-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #374151;
    background-color: #141517;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Modificadores de tamaño para el efecto collage */
@media (min-width: 768px) {
    .col-span-2 { grid-column: span 2; }
    .row-span-2 { grid-row: span 2; }
}

/* Efecto hover con overlay tenue */
.collage-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: center;
}

.collage-item:hover {
    border-color: #d4af37;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    z-index: 2;
}

.collage-item:hover img {
    transform: scale(1.08);
}

.collage-item:hover .collage-overlay {
    opacity: 1;
}

/* Ajustes responsivos para celulares */
@media (max-width: 575px) {
    .collage-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    .col-span-2, .row-span-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}
/* ESTILOS DE LA PÁGINA CONTACTO */
.contact-header-section {
    background: linear-gradient(180deg, #18191c 0%, #000000 100%);
    border-bottom: 1px solid #1f2937;
}

.contact-card, .contact-info-card {
    background-color: #141517;
}

/* Personalización de los Campos del Formulario */
.custom-input {
    background-color: #090a0b !important;
    border: 1px solid #374151 !important;
    color: #ffffff !important;
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
}

.custom-input:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
}

.custom-input::placeholder {
    color: #6b7280 !important;
}

/* Iconos de la tarjeta de contacto */
.info-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* ESTILOS DEL ACORDEÓN DE PREGUNTAS FRECUENTES */
.custom-accordion .accordion-item {
    background-color: #141517 !important;
    border-color: #374151 !important;
}

.custom-accordion .accordion-button {
    background-color: #141517 !important;
    color: #ffffff !important;
    font-size: 1.05rem;
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: #d4af37 !important;
    background-color: #1f2024 !important;
    box-shadow: none !important;
}

.custom-accordion .accordion-button::after {
    filter: invert(1);
}

.custom-accordion .accordion-body {
    background-color: #141517 !important;
    color: #9ca3af !important;
    line-height: 1.7;
    font-size: 0.95rem;
}