:root{
    --bg-1: #f8fbfd;
    --bg-2: #f0f6fb;
    --primary: #0b2545;
    --primary-2: #132f5b;
    --accent: #ff6b6b;
    --gold: #f2c94c;
    --muted: #2b2b2b;
    --card: #ffffff;
    --card-border: #ececec;
}

*{box-sizing:border-box}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
    margin: 0;
    padding: 0;
    color: var(--muted);
}

/* Header consistente con el tema */
.header-top {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    padding: 22px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top h1{
    margin:0;
    color: white;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.btn-regreso{
    position: absolute;
    left: 18px;
    background: rgba(255,255,255,0.12);
    color: var(--gold);
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .25s ease;
}

.btn-regreso svg{ display:block; color:currentColor }
.btn-regreso:hover{ background: rgba(255,255,255,0.18); transform: translateX(-3px); }

.review-section,
.reviews {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(180deg, #f2efe9 0%, #e9e7df 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(11,37,69,0.08);
    border-left: 6px solid var(--gold);
}

.review-section h2,
.reviews h2 {
    color: var(--primary);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 10px;
    margin-top: 0;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid var(--card-border);
    border-radius: 5px;
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
    background: #fafafa;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(242,201,76,0.2);
}

button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

button:hover {
    background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11,37,69,0.15);
}

.stars {
    margin: 15px 0;
}

.stars label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary);
}

.star {
    font-size: 30px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
    margin-right: 5px;
}

.star:hover {
    color: var(--gold);
}

.star.selected {
    color: var(--gold);
}

.review {
    border-top: none;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 4px 12px rgba(11,37,69,0.06);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.review-header div {
    flex: 1;
}

.review h4 {
    margin: 0 0 8px 0;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
}

.btn-eliminar {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: auto;
}

.btn-eliminar:hover {
    background: #e55a5a;
    transform: scale(1.05);
}

.btn-eliminar:active {
    transform: scale(0.95);
}

.review p {
    margin: 5px 0;
    color: #333;
    line-height: 1.5;
}

.review p:last-child {
    color: var(--primary);
    font-weight: bold;
    margin-top: 10px;
}

.review .fecha {
    font-size: 12px;
    color: #999;
    font-weight: normal !important;
    margin-top: 8px;
}

.review .estrellas {
    color: var(--gold);
    font-size: 18px;
    margin-top: 10px;
}

/* Responsivo para móviles */
@media (max-width: 900px) {
    .header-top h1 { font-size: 1.4rem; }
    .review-section, .reviews { margin: 30px 16px; padding: 20px; }
}

@media (max-width: 900px) {
    .header-top h1 { font-size: 1.4rem; }
    .review-section, .reviews { margin: 30px 16px; padding: 20px; }
}

@media (max-width: 768px) {
    .header-top {
        padding-top: 60px;
    }
}

@media (max-width: 600px) {
    .review-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-eliminar {
        width: 100%;
        margin-top: 10px;
    }

    .review-section,
    .reviews {
        padding: 20px;
        margin: 15px auto;
    }
}