/* =========================================
   ORANGE Engineering & Supplies - CSS UNIFICADO
   ========================================= */

   :root {
    --azul-oscuro: #1a2a3a;      
    --naranja-corp: #e67e22;     
    --naranja-hover: #d35400;
    --gris-fondo: #f4f7f6;
    --blanco: #ffffff;
    --skew-angle: -13deg;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--azul-oscuro); /* Fondo de toda la página azul */
}

body {
    line-height: 1.6;
    color: #333;
    background-color: var(--azul-oscuro); /* Consistencia con HTML */
    overflow-x: hidden;
}

/* =========================================
   HEADER (BLANCO)
   ========================================= */
header {
    background: var(--blanco); 
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 10px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-img {
    height: 80px;
    width: auto;
    transition: transform 0.3s;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li { margin-left: 30px; }

nav ul li a {
    color: var(--azul-oscuro); /* Texto oscuro sobre header blanco */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav ul li a:hover { color: var(--naranja-corp); }

/* =========================================
   HERO DIAGONAL (ESTILO PROPUESTA 4)
   ========================================= */
#hero-diagonal {
    height: 90vh;
    display: flex;
    position: relative;
    overflow: hidden;
    background-color: var(--azul-oscuro);
}

.hero-split {
    position: absolute;
    width: 55%; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-split.izq {
    left: 0;
    background: linear-gradient(rgba(26, 42, 58, 0.75), rgba(26, 42, 58, 0.75)), 
                url('../img/hero-bg-fab.jpg') center/cover no-repeat;
    color: var(--blanco);
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%);
    z-index: 2;
}

.hero-split.der {
    right: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75)), 
                url('../img/hero-bg-ing.jpg') center/cover no-repeat;
    color: var(--azul-oscuro);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-content {
    max-width: 420px;
    padding: 20px;
    z-index: 5;
}

.hero-split.izq .hero-content { margin-right: 18%; text-align: right; }
.hero-split.der .hero-content { margin-left: 18%; text-align: left; }

.hero-content h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 15px; }
.hero-content h1 span { color: var(--naranja-corp); }

/* LÍNEAS SEGMENTADAS FLOTANTES */
.diagonal-divider {
    position: absolute;
    top: 15%;
    left: 50%;
    width: 12px;
    height: 70%;
    background: linear-gradient(to bottom, transparent, var(--naranja-corp) 15%, var(--naranja-corp) 85%, transparent);
    transform: translateX(-49%) skewX(var(--skew-angle));
    z-index: 10;
}

.hero-split.izq::before, .hero-split.izq::after,
.hero-split.der::before, .hero-split.der::after {
    content: "";
    position: absolute;
    background-color: var(--naranja-corp);
    transform: skewX(var(--skew-angle));
    z-index: 11;
}

.hero-split.izq::before { top: 10%; right: 10%; width: 4px; height: 90px; opacity: 0.6; }
.hero-split.izq::after { bottom: 12%; right: 18%; width: 8px; height: 140px; opacity: 0.5; }
.hero-split.der::before { top: 20%; left: 15%; width: 6px; height: 210px; opacity: 0.5; }
.hero-split.der::after { bottom: 8%; left: 12%; width: 3px; height: 70px; opacity: 0.5;}

/* =========================================
   SECCIONES DE CONTENIDO (FONDO AZUL)
   ========================================= */
#servicios { 
    padding: 100px 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
    color: var(--blanco); 
}

.titulo-seccion {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    border-bottom: 5px solid var(--naranja-corp);
    display: table;
    margin: 0 auto 60px;
}

.cards-flex { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }

.card {
    background: rgba(255, 255, 255, 0.05); /* Tarjetas semi-transparentes sobre azul */
    padding: 40px;
    width: 500px;
    border-radius: 8px;
    border-left: 8px solid var(--naranja-corp);
    color: var(--blanco);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.1); }

.card h3 { color: var(--naranja-corp); margin-bottom: 15px; }

/* NORMATIVAS */
#normativas { 
    background: rgba(0, 0, 0, 0.2); 
    padding: 60px 0; 
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 5px solid var(--naranja-corp);
}

.normas-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--blanco);
    font-weight: 700;
}

/* BOTONES */
.btn-naranja {
    background: var(--naranja-corp);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

.btn-oscuro {
    background: transparent;
    color: var(--azul-oscuro);
    padding: 14px 30px;
    border: 2px solid var(--azul-oscuro);
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

.footer-principal {
    padding: 60px 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

/* RESPONSIVO */
@media (max-width: 992px) {
    #hero-diagonal { flex-direction: column; height: auto; }
    .hero-split { position: relative; width: 100%; height: 50vh; clip-path: none !important; }
    .diagonal-divider, .hero-split::before, .hero-split::after { display: none; }
    .hero-split.izq .hero-content, .hero-split.der .hero-content { margin: 0; text-align: center; }
}