﻿html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f5f7fa;
}

/*=========================
SIDEBAR
=========================*/

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 270px;
    height: 100vh;
    background: #146c43;
    color: white;
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0,0,0,.20);
    z-index: 1000;
}

    .sidebar .text-center {
        padding: 30px 20px;
    }

.logo-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,.20);
    margin-bottom: 20px;
}

.sidebar h2 {
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 5px;
}

.sidebar p {
    color: #d8ffd8;
    font-size: 18px;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 16px 25px;
    transition: .3s;
    font-size: 17px;
}

    .sidebar li a:hover {
        background: #198754;
        padding-left: 35px;
    }

.sidebar i {
    margin-right: 10px;
}

/*=========================
CONTENIDO
=========================*/

.main {
    margin-left: 270px;
}

.topbar {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 3px 10px rgba(0,0,0,.10);
}

    .topbar h2 {
        margin: 0;
        color: #198754;
        font-weight: bold;
    }

/*=========================
HERO
=========================*/

.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(0,0,0,.60),rgba(0,0,0,.60)), url("../img/banner.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 50px;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: 70px;
    font-weight: bold;
}

.hero h2 {
    color: #9ef3b0;
    margin: 20px 0;
}

.hero p {
    font-size: 22px;
    line-height: 1.8;
}

.hero-buttons {
    margin-top: 35px;
}

    .hero-buttons a {
        margin: 10px;
    }

/*=========================
SECCIONES
=========================*/

.section {
    padding: 70px 50px;
    background: #f8f9fa;
}

    .section h2 {
        color: #198754;
        font-weight: bold;
    }

    .section .lead {
        color: #666;
    }

/*=========================
TARJETAS
=========================*/

.card-eco {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: .4s;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    height: 100%;
    background: white;
}

    .card-eco:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 35px rgba(0,0,0,.20);
    }

    /* Todas las imágenes normales */

    .card-eco img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        display: block;
    }

/* SOLO el logo de EcoTech */

.logo-card {
    width: 100%;
    height: 260px;
    object-fit: contain !important;
    background: white;
    padding: 25px;
}

/* Cuerpo */

.card-body {
    padding: 30px;
}

    .card-body h3 {
        color: #198754;
        font-weight: bold;
        margin-bottom: 15px;
    }

    .card-body p {
        color: #555;
        text-align: justify;
        min-height: 95px;
    }

    .card-body .btn {
        border-radius: 30px;
        padding: 10px 30px;
    }

/*=========================
BOTONES
=========================*/

.btn-success {
    background: #198754;
    border: none;
}

    .btn-success:hover {
        background: #146c43;
    }

.btn-outline-light:hover {
    color: #198754;
}

/*=========================
RESPONSIVE
=========================*/

@media (max-width:991px) {

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main {
        margin-left: 0;
    }

    .hero {
        min-height: 70vh;
        padding: 30px;
    }

        .hero h1 {
            font-size: 42px;
        }

        .hero h2 {
            font-size: 28px;
        }

        .hero p {
            font-size: 18px;
        }

    .section {
        padding: 35px 20px;
    }

    .logo-img {
        width: 110px;
        height: 110px;
    }

    .card-eco img,
    .logo-card {
        height: 220px;
    }
}
/*====================================
CENTROS DE RECICLAJE
=====================================*/

#mapaReciclaje {
    width: 100%;
    height: 650px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.20);
}