/**
 * Componentes Reutilizables
 * Estilos para botones, inputs, radio buttons y otros componentes compartidos
 */

/* Inputs con símbolo de moneda */
.input-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.currency-symbol {
    position: absolute;
    left: calc(50% - 150px + 1.5rem);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    pointer-events: none;
}

.input-wrapper input {
    padding-left: 2.5rem;
    width: 300px;
    max-width: 90%;
}

.input-wrapper input::placeholder {
    opacity: 0.7;
}

/* Grupos de radio buttons */
.radio-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.radio-option:has(input[type="radio"]:checked) {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: var(--text-color);
}

.radio-option:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--text-color);
}

.radio-option input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    accent-color: var(--text-color);
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    position: relative;
    background-color: transparent;
    box-sizing: border-box;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked {
    background-color: var(--text-color);
    border-color: var(--text-color);
    box-shadow: inset 0 0 0 3px var(--primary-color);
}

.radio-option span {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Selector de tiempo (horas y minutos) */
.time-selector {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.time-input-group select,
.time-input-group input[type="number"] {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--text-color);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    min-width: 80px;
}

/* Ocultar flechitas de inputs numéricos */
.time-input-group input[type="number"]::-webkit-inner-spin-button,
.time-input-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.time-input-group input[type="number"] {
    -moz-appearance: textfield;
}

.time-input-group input[type="number"]::placeholder {
    opacity: 0.7;
}

.time-input-group select:focus,
.time-input-group input[type="number"]:focus {
    outline: none;
    background-color: var(--text-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.time-input-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Grupos de botones */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botón volver */
.btn-volver {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-volver:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}
