/* ======== RESET ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", system-ui, sans-serif;
}

body {
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* ======== CONTENEDOR ======== */
.container {
    padding: 20px;
    padding-bottom: 120px;
    max-width: 900px;
    margin: auto;
}

/* ======== HEADER ======== */
.header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-direction: column;
}

.back-btn {
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    transition: 0.25s ease;
}

.back-btn:hover {
    transform: translateX(-4px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* ======== MENSAJES ======== */
.mensaje {
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.mensaje.success {
    background: rgba(0, 255, 120, 0.15);
    border: 1px solid rgba(0, 255, 120, 0.3);
}

.mensaje.error {
    background: rgba(255, 0, 80, 0.15);
    border: 1px solid rgba(255, 0, 80, 0.3);
}

/* ======== FORMULARIO ======== */
.form-consulta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ======== GRUPOS ======== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ======== INPUTS ======== */
input {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(12px);
    transition: 0.25s ease;
}

input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
}

/* ======== BOTÓN SUBMIT ======== */
.btn-submit {
    padding: 16px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #ffffff25, #ffffff10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
    transition: 0.25s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

/* ======== LISTA DE CITAS ======== */
.citas-container {
    margin-top: 30px;
}

.citas-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ======== TARJETA DE CITA ======== */
.cita-card {
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    transition: 0.25s ease;
}

.cita-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.12);
}

/* ======== HEADER DE CITA ======== */
.cita-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cita-id {
    font-weight: 700;
    font-size: 1.1rem;
}

.cita-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Estados */
.estado-pendiente {
    background: rgba(255, 200, 0, 0.2);
    border: 1px solid rgba(255, 200, 0, 0.4);
}

.estado-aceptada {
    background: rgba(0, 255, 120, 0.2);
    border: 1px solid rgba(0, 255, 120, 0.4);
}

/* ======== INFO DE CITA ======== */
.cita-info {
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.info-label {
    opacity: 0.8;
}

.info-value {
    font-weight: 600;
}

/* ======== ACCIONES ======== */
.cita-acciones {
    display: flex;
    justify-content: flex-end;
}

.btn-cancelar {
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 0, 80, 0.15);
    border: 1px solid rgba(255, 0, 80, 0.3);
    color: #ff4d6d;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn-cancelar:hover {
    background: rgba(255, 0, 80, 0.25);
    box-shadow: 0 0 18px rgba(255, 0, 80, 0.3);
}

/* ======== SIN CITAS ======== */
.sin-citas {
    margin-top: 30px;
    text-align: center;
    opacity: 0.85;
}

.btn-nueva-cita {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    transition: 0.25s ease;
}

.btn-nueva-cita:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ======== BARRA INFERIOR ======== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.25s ease;
}

.nav-item.active,
.nav-item:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.nav-icon {
    font-size: 1.4rem;
}

/* ======== RESPONSIVE ======== */
@media (min-width: 700px) {
    .form-consulta {
        max-width: 600px;
        margin: auto;
    }
}
