/* ==================== RESERVA.CSS ==================== */

.reserva-section {
    padding: 3rem 2.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.reserva-header {
    margin-bottom: 2.5rem;
}

/* Aviso login */
.reserva-aviso-login {
    background: #fff8e8;
    border-left: 3px solid #d4aa00;
    padding: 1rem 1.2rem;
    font-size: 13px;
    color: #7a5c00;
    margin-bottom: 1.5rem;
}

.reserva-aviso-login a {
    color: #5a4400;
    font-weight: 500;
    text-decoration: underline;
}

/* GRID DE PASOS */
.reserva-grid {
    display: grid;
    grid-template-columns: 220px 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* PASO */
.reserva-paso {
    border: 1px solid #e8e8e8;
    padding: 1.5rem;
}

.paso-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

.paso-num {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #ddd;
    line-height: 1;
}

/* SERVICIOS */
.servicios-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.servicio-opcion {
    cursor: pointer;
    display: block;
}

.servicio-opcion input[type="radio"] {
    display: none;
}

.servicio-opcion-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.9rem;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    transition: all 0.15s;
}

.servicio-opcion input:checked+.servicio-opcion-inner {
    border-color: #1a1a1a;
    background: #1a1a1a;
}

.servicio-opcion input:checked+.servicio-opcion-inner .servicio-opcion-nombre,
.servicio-opcion input:checked+.servicio-opcion-inner .servicio-opcion-precio {
    color: #fff;
}

.servicio-opcion-inner:hover {
    border-color: #888;
}

.servicio-opcion-nombre {
    color: #333;
    font-weight: 500;
}

.servicio-opcion-precio {
    font-size: 11px;
    color: #aaa;
}

/* CALENDARIO */
.calendario {
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: #1a1a1a;
    color: #fff;
}

.cal-mes-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.cal-nav {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.cal-nav:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cal-grid {
    background: #fff;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-dow {
    text-align: center;
    padding: 0.5rem 0;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ccc;
    border-bottom: 1px solid #f0f0f0;
}

.cal-dias-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-dia {
    text-align: center;
    padding: 0.55rem 0;
    font-size: 12px;
    cursor: pointer;
    color: #333;
    border-bottom: 0.5px solid #f5f5f5;
    border-right: 0.5px solid #f5f5f5;
    transition: background 0.1s;
}

.cal-dia:hover {
    background: #f5f4f0;
}

.cal-dia.selected {
    background: #1a1a1a;
    color: #fff;
    font-weight: 500;
}

.cal-dia.bloqueado {
    color: #ddd;
    cursor: default;
    text-decoration: line-through;
}

.cal-dia.bloqueado:hover {
    background: transparent;
}

.cal-dia.completo {
    background: #fff0f0;
    color: #d44;
    cursor: default;
    font-weight: 500;
}

.cal-dia.completo:hover {
    background: #ffe5e5;
}

.cal-dia.pasado {
    color: #e0e0e0;
    cursor: default;
}

.cal-dia.pasado:hover {
    background: transparent;
}

.cal-dia.hoy {
    font-weight: 700;
}

.cal-dia.empty {
    cursor: default;
}

.cal-dia.empty:hover {
    background: transparent;
}

/* HORAS */
.horas-container {
    min-height: 120px;
}

.horas-placeholder {
    font-size: 12px;
    color: #bbb;
    text-align: center;
    padding: 2rem 0;
    font-style: italic;
}

.horas-loading {
    text-align: center;
    padding: 2rem 0;
    font-size: 12px;
    color: #bbb;
}

.horas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.hora-btn {
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 0.5rem;
    text-align: center;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    color: #444;
    transition: all 0.15s;
}

.hora-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.hora-btn.selected {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.hora-btn.ocupada {
    background: #f8f8f8;
    color: #ccc;
    cursor: default;
    text-decoration: line-through;
}

.hora-btn.ocupada:hover {
    border-color: #e0e0e0;
}

/* DIA BLOQUEADO aviso */
.dia-bloqueado-aviso {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    padding: 2rem 0;
    font-style: italic;
}

/* RESUMEN */
.reserva-resumen {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.resumen-card {
    border: 1px solid #e0e0e0;
    border-left: 3px solid #1a1a1a;
    padding: 1.5rem;
    background: #f9f9f9;
    flex: 1;
}

.resumen-tag {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 6px;
}

.resumen-detalle {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.resumen-sub {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 1.2rem;
}

.reserva-flash {
    margin-bottom: 1rem;
    padding: 0.7rem 1rem;
    font-size: 13px;
}

.reserva-flash.ok {
    background: #f0f5e8;
    border-left: 3px solid #4a7a1a;
    color: #3b6d11;
}

.reserva-flash.error {
    background: #fff5f5;
    border-left: 3px solid #e24b4a;
    color: #a32d2d;
}

.resumen-btn {
    width: 100%;
    text-align: center;
}

.resumen-email-aviso {
    font-size: 11px;
    color: #aaa;
    align-self: flex-end;
    max-width: 260px;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* Campo Teléfono en el Resumen (para usuarios sin teléfono registrado) */
.telefono-reserva-wrapper {
    margin-bottom: 1.2rem;
}

.telefono-reserva-wrapper label {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
}

.telefono-reserva-wrapper input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d2d2d2;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    text-align: center;
    border-radius: 0;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}

.telefono-reserva-wrapper input:focus {
    border-color: #1a1a1a;
}