@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* Reset y fuente */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #dadada;
    color: #111827;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding-top: 30px;
    overflow-y: auto;
    z-index: 1000;
    transition: top 0.3s ease;
}

.logo {
    position: absolute;
    top: 12px;
    left: 20px;
    width: 100px;
    height: auto;
}

.sidebar h2 {
    font-size: 24px;
    text-align: center;
    margin: 0;
}

.sidebar a {
    display: inline-block;
    padding: 15px 25px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    transition: background-color 0.3s;
    cursor: pointer;
}

.sidebar a:hover {
    background-color: #575757;
}

/* Main content */
.main {
    margin-top: 100px;
    padding: 30px;
    background-color: #f9fafb;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.main h1 {
    font-size: 30px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #111827;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 24px;
    transition: 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.card p {
    font-size: 15px;
    color: #4b5563;
}

.btn-ver-mas {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-ver-mas:hover {
    background-color: #0056b3;
}

/* Carrusel */
.carousel-wrapper {
    width: 90%;
    max-width: 600px; /* reducir max-width para imágenes más pequeñas */
    margin: 0 auto 16px auto;
}

.carousel-inner img {
    width: auto;
    max-width: 100%;
    height: 180px; /* altura reducida */
    object-fit: cover;
    border-radius: 10px;
}

/* Adaptar alturas para pantallas pequeñas */
@media (max-width: 768px) {
    .carousel-inner img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .carousel-inner img {
        height: 110px;
    }
}


/* === Diseño Responsivo === */
@media (max-width: 1024px) {
    .main {
        padding: 20px;
    }

    .sidebar a {
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }

    .sidebar a {
        padding: 10px 14px;
        font-size: 15px;
    }

    .main {
        margin-top: 20px;
        padding: 16px;
    }

    .card {
        padding: 16px;
    }

    .card h3 {
        font-size: 18px;
    }

    .card p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .main h1 {
        font-size: 22px;
        text-align: center;
    }

    .sidebar {
        flex-direction: column;
        align-items: center;
    }

    .sidebar h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .sidebar a {
        width: 100%;
        text-align: center;
        font-size: 14px;
        padding: 10px;
    }

    .card {
        margin-bottom: 16px;
    }
}