/**
 * Estilos para el Buscador de Llantas
 * Diseño minimalista, compacto y responsive
 */

.llantas-buscador-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.llantas-buscador-header {
    background-color: rgba(248, 249, 250, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.llantas-buscador-tabs {
    display: flex;
    gap: 0;
}

.llantas-tab-btn {
    flex: 0 0 auto;
    padding: 12px 18px;
    background-color: transparent;
    color: #34495e;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.llantas-tab-btn:hover {
    color: #2c3e50;
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-1px);
}

.llantas-tab-btn.active {
    color: #e6bf22;
    border-bottom-color: #e6bc22;
    font-weight: 700;
    background-color: rgba(230, 126, 34, 0.05);
}

.llantas-buscador-content {
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.98);
}

.llantas-tab-content {
    display: none;
}

.llantas-tab-content.active {
    display: block;
}

.llantas-search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.llantas-form-row {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.llantas-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.llantas-form-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.llantas-select {
    padding: 12px 36px 12px 14px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2334495e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    min-height: 46px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.llantas-select:hover {
    border-color: #e6bc22;
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.llantas-select:focus {
    outline: none;
    border-color: #e6c222;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
    background-color: rgba(255, 255, 255, 1);
}

.llantas-select:disabled {
    background-color: #f9f9f9;
    cursor: not-allowed;
    border-color: #e5e5e5;
    color: #999;
}

.llantas-btn-group {
    display: flex;
    flex-direction: column;
}

.llantas-search-btn {
    background: linear-gradient(135deg, #f3e012 0%, #e6a822 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(231, 126, 34, 0.3);
}

.llantas-search-btn:hover {
    background: linear-gradient(135deg, #e6b522 0%, #d3ac00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(231, 126, 34, 0.4);
}

.llantas-search-btn:active {
    transform: translateY(0);
}

/* Botón de búsqueda ya no tiene icono */

.llantas-buscador-loading {
    text-align: center;
    padding: 20px;
    color: #34495e;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Responsive - Tablets */
@media (max-width: 768px) {
    .llantas-buscador-container {
        max-width: 100%;
        margin: 20px 10px;
    }

    .llantas-buscador-content {
        padding: 20px;
    }

    .llantas-form-row {
        flex-wrap: wrap;
        gap: 14px;
    }

    .llantas-form-group {
        flex: 1 1 50px;
        min-width: 150px;
    }

    .llantas-tab-btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    .llantas-search-btn {
        width: 100%;
        max-width: 100%;
    }
}

/* Responsive - Móviles pequeños */
@media (max-width: 480px) {
    .llantas-buscador-container {
        margin: 10px;
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .llantas-buscador-header {
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .llantas-buscador-content {
        padding: 16px;
    }

    .llantas-form-row {
        flex-direction: column;
        gap: 12px;
    }

    .llantas-form-group {
        width: 100%;
    }

    .llantas-tab-btn {
        padding: 8px 12px;
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .llantas-form-group label {
        font-size: 11px;
    }

    .llantas-select {
        font-size: 13px;
        padding: 9px 30px 9px 10px;
        min-height: 40px;
    }

    .llantas-search-btn {
        padding: 11px 20px;
        font-size: 12px;
        min-height: 40px;
        width: 100%;
    }
}

/* Estilos adicionales para el resultado de búsqueda */
.llantas-results {
    margin-top: 24px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.llantas-no-results {
    text-align: center;
    padding: 40px 24px;
    color: #7f8c8d;
}

.llantas-no-results h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Ajustes para mejorar la accesibilidad */
.llantas-select:focus-visible,
.llantas-search-btn:focus-visible,
.llantas-tab-btn:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Transiciones suaves */
.llantas-tab-content {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
