:root {
    --color-principal: #C1121F;
    --color-secundario: #F47474;
    --color-matias: #3A86FF;
    --color-agustin: #8338EC;
    --color-peluquero3: #FFC300;
    --color-peluquero4: #00A693;
    --fondo-oscuro: #0D0D0D;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.12);
    --radius: 14px;
    --shadow-card: 0 6px 18px rgba(0, 0, 0, 0.45);
    --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, 0.6);
    --gap: 12px;
    --speed: 220ms;
    --font-title: 'Staatliches', sans-serif;
    --font-ui: 'Inter', sans-serif;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    background: var(--fondo-oscuro);
    color: #fff;
    font-family: var(--font-ui);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

#hora-area select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    background-repeat: no-repeat;
    background-position: right 10px center;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

.container {
    max-width: 820px;
    margin: 28px auto;
    padding: 18px;
}

#loader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.logo {
    font-size: 90px;
    animation: bounce 900ms infinite ease-in-out;
    margin-bottom: 18px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

.loading-bar {
    width: 260px;
    height: 10px;
    border-radius: 999px;
    background: #222;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--color-principal);
    animation: loading 2.6s forwards;
}

@keyframes loading {
    to {
        width: 100%;
    }
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.title {
    font-family: var(--font-title);
    color: var(--color-principal);
    font-size: 2.2rem;
    margin: 0;
    background-color: var(--fondo-oscuro);
    z-index: 1;
}

.select-compact {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    outline: none;
}

select option {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-weight: 600;
}

.form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.full {
    grid-column: 1/-1;
}

.label {
    font-size: .9rem;
    color: #ddd;
    margin-bottom: 6px;
    display: block;
}

.input,
.select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.input-area {
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
}

.input-area input {
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 1rem;
    color: #fff;
    outline: none;
    cursor: pointer;
}

.btn-add {
    margin-top: 4px;
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    background: var(--color-principal);
    color: #fff;
    box-shadow: 0 6px 18px rgba(193, 18, 31, 0.12);
}

.btn-add:hover {
    transform: translateY(-4px);
    background: var(--color-secundario);
}

.turno {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-card);
}

#listaCard {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    padding: 18px;
    border-radius: 18px;
    margin-top: 20px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-icon {
    width: 22px;
    height: 22px;
    fill: var(--color-principal);
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
}

.chip.peluquero1 {
    background: var(--color-matias);
}

.chip.peluquero2 {
    background: var(--color-agustin);
}

.chip.peluquero3 {
    background: var(--color-peluquero3);
}

.chip.peluquero4 {
    background: var(--color-peluquero4);
}

.btn-del {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

#modalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    z-index: 999;
}

#modal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 340px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: var(--font-ui);
    transition: transform 0.2s ease;
}

#modal h3 {
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--color-principal);
}

#modal p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #ddd;
}

#modal .modal-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

#modal .modal-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

#modal .modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.12);
}

#modal .modal-btn.confirm {
    background: var(--color-principal);
    color: #fff;
    box-shadow: 0 6px 18px rgba(193, 18, 31, 0.25);
}

#modal .modal-btn.confirm:hover {
    background: var(--color-secundario);
    transform: translateY(-2px);
}


@media (max-width:540px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .turno {
        grid-template-columns: 40px 1fr auto;
        padding: 10px;
    }

    .title {
        font-size: 1.6rem
    }
}