body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    background-color: #f5f7fa;
    color: #333;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.header p {
    color: #7f8c8d;
    font-size: 18px;
}

.carrusel-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 180px;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1000;
    transition: all 0.3s ease;
}

.carrusel {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.service {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.2;
}

.stars {
    color: #f39c12;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.reviewer {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 8px;
}

.review-text {
    font-size: 13px;
    color: #34495e;
    line-height: 1.4;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.close-btn {
    position: absolute;
    top: 6px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #95a5a6;
    transition: color 0.3s ease;
    z-index: 1010;
    background: none;
    border: none;
    padding: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #e74c3c;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #34495e;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1010;
}

.prev-btn {
    left: 6px;
}

.next-btn {
    right: 6px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Estado minimizado */
.carrusel-container.minimized {
    height: 40px;
    width: 160px;
}

.carrusel-container.minimized .carrusel,
.carrusel-container.minimized .prev-btn,
.carrusel-container.minimized .next-btn {
    display: none;
}

.minimized .close-btn {
    top: 50%;
    transform: translateY(-50%);
    right: 8px;
}

.minimized-title {
    display: none;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 120px;
    color: #3498db;
    font-weight: bold;
}

.carrusel-container.minimized .minimized-title {
    display: block;
}

/* Contenido de ejemplo */
.content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card h2 {
    color: #2c3e50;
    margin-top: 0;
}

.card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
    .carrusel-container {
        width: 35vh;
        height: 20vh;
        bottom: 2vh;
        right: 2vh;
    }

    .service {
        font-size: 1.8vh;
    }

    .stars {
        font-size: 1.5vh;
    }

    .reviewer {
        font-size: 1.4vh;
    }

    .review-text {
        font-size: 1.6vh;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

/* Celulares */
@media (max-width: 480px) {
    .carrusel-container {
        width: 30vh;
        height: 18vh;
        bottom: 1.5vh;
        right: 1.5vh;
    }

    .service {
        font-size: 1.6vh;
    }

    .stars {
        font-size: 1.4vh;
    }

    .reviewer {
        font-size: 1.3vh;
    }

    .review-text {
        font-size: 1.5vh;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}
