:root {
    --primary-green: #449e21; /* Verde BioPlanet */
    --dark-bg: #0a0a0a;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

/* Utilidades de texto */
.text-green { color: var(--primary-green) !important; }
.bg-green { background-color: var(--primary-green) !important; }

/* Navbar y Logo (AJUSTADO) */
.navbar {
    background-color: var(--dark-bg);
    padding: 10px 0;
}
.navbar-brand img {
    height: 80px; /* Logo más grande en escritorio */
    max-width: 100%;
    transition: height 0.3s ease;
}
.nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin: 0 10px;
}
.nav-link:hover {
    color: var(--primary-green) !important;
}
.btn-whatsapp-nav {
    background-color: var(--primary-green);
    color: #fff;
    font-weight: 600;
    border-radius: 5px;
}
.btn-whatsapp-nav:hover {
    background-color: #357a19;
    color: #fff;
}

/* Hero Section con Inclinación (AJUSTADO) */
/* ==========================================================================
   Hero Section Exacta al Diseño
   ========================================================================== */
.hero-section {
    position: relative;
    /* Mantenemos la foto del montacargas abarcando toda la sección */
    background: url('../img/compra-residuos-industriales-grande.jpg') no-repeat center right / cover;
    padding: 180px 0 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Capa oscura inclinada para Escritorio */
.hero-bg-slant {
    position: absolute;
    top: -15%;
    bottom: -15%;
    left: -15%;
    width: 66%; /* Ajustado para dar paso perfecto a la foto en el lado derecho */
    background-color: rgba(5, 5, 5, 0.95);
    transform: skewX(-12deg);
    border-right: 6px solid var(--primary-green);
    z-index: 1;
}

/* Capa oscura para Móviles */
.hero-bg-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.95) 50%, rgba(5, 5, 5, 0.7) 100%);
    border-bottom: 5px solid var(--primary-green);
    z-index: 1;
}

/* Contenido y Tipografía (Grosor Corregido) */
.hero-content {
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700; /* Texto grueso según la imagen de referencia */
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-content p.lead {
    font-weight: 600; /* Texto secundario con mayor peso */
}

.btn-custom-green {
    background-color: var(--primary-green);
    color: white;
    font-weight: 700;
    border: none;
}
.btn-custom-green:hover { background-color: #357a19; color: white;}

.btn-outline-custom {
    border: 1.5px solid #fff;
    color: #fff;
    font-weight: 700;
}
.btn-outline-custom:hover { background-color: #fff; color: #000; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 991px) {
    .hero-section {
        padding: 140px 0 60px;
        text-align: center;
        background-position: center center;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* Secciones Generales */
.section-title {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}
.section-title-left {
    border-left: 4px solid var(--primary-green);
    padding-left: 10px;
}

/* Cards de Materiales */
.material-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.material-card:hover {
    transform: translateY(-5px);
}
.material-card img {
    height: 180px;
    object-fit: cover;
}
.material-card .card-title {
    font-weight: 700;
    font-size: 1.5rem;
}
.material-card .card-text { font-size: 1rem; }

/* Cards de Servicios */
.service-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
.service-img {
    height: 100%;
    min-height: 280px;
    background-size: cover;
    background-position: center;
}
.service-icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

/* Banner Certificados */
.banner-cert {
    background-color: #eef5ea;
    border-top: 1px solid #d5e8ce;
    border-bottom: 1px solid #d5e8ce;
}

/* Por qué elegirnos */
.feature-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* Footer / Contacto */
.contact-section {
    background-color: #fcfcfc;
    padding: 60px 0;
}
.map-placeholder {
    width: 100%;
    height: 250px;
    background-color: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}
.contact-info i {
    color: var(--primary-green);
    width: 25px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 991px) {
    .navbar-brand img {
        height: 60px; /* Reducción del logo en tablet/móvil */
    }
    .hero-section {
        padding: 130px 0 60px;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .d-flex.gap-3 {
        justify-content: center;
    }
}

/* ==========================================================================
   Botón Flotante de WhatsApp
   ========================================================================== */
.btn-whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp-float:hover {
    background-color: #20ba5a;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}