:root {
    --primary: #003876; /* Azul Corporativo SAFI/Edilresine */
    --safi-yellow: #FFB400; /* Amarillo de seguridad industrial */
    --safi-dark: #002650;
    --accent: #f8f9fa;
    --dark: #121212;
    --grey: #5a5a5a;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.main-header {
    background: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { height: 60px; width: auto; display: block; transition: transform 0.3s ease; }
.brand-logo:hover { transform: scale(1.02); }

.nav-links a { 
    text-decoration: none; 
    color: var(--dark); 
    margin-left: 25px; 
    font-weight: 600; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    transition: var(--transition); 
}
.nav-links a:hover { color: var(--primary); }
.btn-contact { 
    background: var(--primary); 
    color: white !important; 
    padding: 12px 24px; 
    border-radius: 2px; 
    box-shadow: 0 4px 6px rgba(0,56,118,0.2);
}

/* Hero Section */
.hero-safi {
    /* Mantenemos el degradado azul corporativo para legibilidad */
    background: linear-gradient(rgba(0, 56, 118, 0.85), rgba(0, 56, 118, 0.85)), 
                url('img/safi01.png') center/cover; /* <--- Cambia el nombre aquí */
    
    height: 85vh;
    display: flex;
    align-items: center;
    color: white;
}
.hero-tag { 
    background: var(--safi-yellow); 
    color: var(--dark); 
    padding: 5px 15px; 
    font-weight: 800; 
    font-size: 0.8rem; 
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}
.hero-safi h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; max-width: 900px; }
.hero-safi p { font-size: 1.3rem; max-width: 650px; margin-bottom: 40px; opacity: 0.9; }

/* Buttons */
.hero-btns { display: flex; gap: 20px; }
.btn-large { 
    background: var(--safi-yellow); 
    color: var(--dark); 
    padding: 18px 35px; 
    text-decoration: none; 
    font-weight: 800; 
    text-transform: uppercase;
    transition: var(--transition);
}
.btn-outline { 
    border: 2px solid white; 
    color: white; 
    padding: 16px 35px; 
    text-decoration: none; 
    font-weight: 800; 
    text-transform: uppercase;
    transition: var(--transition);
}
.btn-large:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* Sections */
section { padding: 100px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; color: var(--primary); font-weight: 800; }
.subtitle { display: block; text-align: center; color: var(--primary); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; }

/* About & Services Grid */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.img-responsive { width: 100%; border-radius: 2px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 40px; }
.stat-card { border-bottom: 4px solid var(--safi-yellow); background: var(--accent); padding: 25px 15px; text-align: center; }
.stat-card span { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); }

/* Engineering Section */
.engineering-section { background: var(--safi-dark); color: white; }
.eng-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 40px; }
.eng-item { padding: 30px; background: rgba(255,255,255,0.05); border-left: 5px solid var(--safi-yellow); }
.eng-item h3 { color: var(--safi-yellow); margin-bottom: 15px; font-size: 1.3rem; }

/* Product Cards */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.product-card { background: white; border: 1px solid #eee; padding: 40px; transition: var(--transition); }
.product-card:hover { border-color: var(--safi-yellow); transform: translateY(-10px); }
.icon-big { font-size: 3rem; color: var(--primary); margin-bottom: 25px; display: block; }
.product-info h3 { margin-bottom: 20px; font-size: 1.5rem; }
.product-info ul { list-style: none; }
.product-info li { margin-bottom: 10px; color: var(--grey); padding-left: 20px; position: relative; }
.product-info li::before { content: "→"; position: absolute; left: 0; color: var(--safi-yellow); font-weight: bold; }

/* Global Section & Lists */
.global-section { background: var(--accent); }
.check-list { list-style: none; margin-top: 25px; }
.check-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; font-weight: 600; }
.check-list i { color: var(--primary); font-size: 1.2rem; }

/* CTA Box */
.cta-box { background: var(--primary); color: white; padding: 80px 40px; text-align: center; }
.contact-methods { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }
.btn-outline-white { border: 2px solid white; color: white; padding: 18px 35px; text-decoration: none; font-weight: 800; transition: var(--transition); }

/* Footer */
.footer { background: var(--dark); color: #888; padding: 60px 0; text-align: center; border-top: 1px solid #333; }

/* Responsive */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-safi h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .eng-grid { grid-template-columns: 1fr; }
    .contact-methods { flex-direction: column; }
}