* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #222;
}

h2 {
    margin-bottom: 20px;
    font-size: 1.6rem;
}

#summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#summary h3 {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1rem;
    text-align: left;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.95rem;
}

thead {
    background-color: #e0e0e0;
}

th, td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.price {
    font-weight: bold;
}

.verde, .naranja, .rojo {
    display: inline-block;
    width: 20px;
    height: 10px;
    border-radius: 5px;
}

.verde { background-color: #4CAF50; }
.naranja { background-color: #FF9800; }
.rojo { background-color: #F44336; }

.footer {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #555;
}

/* ✅ Mobile Optimization */
@media (max-width: 600px) {
    body {
        padding: 15px 10px;
    }

    #summary h3 {
        font-size: 0.95rem;
    }

    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        padding: 10px;
    }

    td {
        text-align: right;
        padding: 8px 10px;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 8px;
        font-weight: bold;
        text-align: left;
    }
}
